feat(ui): standardize design system, modals, sidebar, and form inputs

- 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
This commit is contained in:
s.esmaeili
2026-09-12 01:33:07 +03:30
parent 9a991fc1f1
commit 1ae87c97b7
87 changed files with 7844 additions and 5718 deletions
+35 -31
View File
@@ -1214,17 +1214,18 @@ onBeforeUnmount(() => {
--note-default: #ffffff;
--teal: #0d9488;
--teal-soft: #ccfbf1;
--radius: 15px;
--radius: 10px;
--shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
max-width: 1200px;
margin: 0 auto;
padding: 0.5rem 0 4rem;
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
}
.page-head h1 {
margin: 0;
font-size: 1.55rem;
font-weight: 800;
font-weight: 600;
color: #0f172a;
}
.lead {
@@ -1236,7 +1237,7 @@ onBeforeUnmount(() => {
.banner-error {
margin: 0.75rem 0 0;
padding: 0.65rem 0.85rem;
border-radius: 12px;
border-radius: var(--radius);
background: #fef2f2;
color: #b91c1c;
font-size: 0.9rem;
@@ -1339,7 +1340,7 @@ onBeforeUnmount(() => {
.view-toggle {
display: inline-flex;
border: 1px solid #e2e8f0;
border-radius: 10px;
border-radius: var(--radius);
overflow: hidden;
background: #fff;
}
@@ -1356,7 +1357,7 @@ onBeforeUnmount(() => {
}
.sort-select {
border: 1px solid #e2e8f0;
border-radius: 10px;
border-radius: var(--radius);
padding: 0.35rem 0.55rem;
background: #fff;
color: #334155;
@@ -1367,7 +1368,7 @@ onBeforeUnmount(() => {
border: 0;
background: transparent;
color: #64748b;
border-radius: 10px;
border-radius: var(--radius);
padding: 0.35rem;
cursor: pointer;
display: inline-flex;
@@ -1420,7 +1421,7 @@ onBeforeUnmount(() => {
width: 38px;
height: 38px;
border: 0;
border-radius: 12px;
border-radius: var(--radius);
background: var(--teal);
color: #fff;
display: inline-flex;
@@ -1518,7 +1519,7 @@ onBeforeUnmount(() => {
z-index: 5;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 12px;
border-radius: var(--radius);
box-shadow: var(--shadow);
min-width: 140px;
padding: 0.25rem;
@@ -1530,7 +1531,7 @@ onBeforeUnmount(() => {
background: transparent;
text-align: start;
padding: 0.45rem 0.65rem;
border-radius: 8px;
border-radius: var(--radius);
cursor: pointer;
font-size: 0.85rem;
color: #334155;
@@ -1591,7 +1592,7 @@ onBeforeUnmount(() => {
.card-thumb {
margin-top: 0.45rem;
border-radius: 10px;
border-radius: var(--radius);
overflow: hidden;
flex-shrink: 0;
max-height: 72px;
@@ -1609,7 +1610,7 @@ onBeforeUnmount(() => {
align-items: center;
gap: 0.3rem;
padding: 0.25rem 0.5rem;
border-radius: 8px;
border-radius: var(--radius);
background: rgba(15, 23, 42, 0.06);
font-size: 0.75rem;
color: #475569;
@@ -1750,7 +1751,7 @@ onBeforeUnmount(() => {
z-index: 1;
width: min(520px, 100%);
max-height: min(92vh, 840px);
border-radius: 18px;
border-radius: var(--radius, 10px);
background: #fff;
box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
display: flex;
@@ -1774,25 +1775,28 @@ onBeforeUnmount(() => {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.85rem 1rem;
padding: 16px;
border-bottom: 1px solid #e2e8f0;
}
.panel-head h2 {
margin: 0;
font-size: 1.05rem;
font-size: 16px;
font-weight: 500;
color: var(--ink);
line-height: 1.4;
}
.panel-scroll {
flex: 1;
overflow: auto;
padding: 1rem;
padding: 16px;
display: flex;
flex-direction: column;
gap: 0.75rem;
gap: 16px;
}
.panel-foot {
display: flex;
gap: 0.5rem;
padding: 0.85rem 1rem;
gap: 12px;
padding: 16px;
border-top: 1px solid #e2e8f0;
}
@@ -1808,7 +1812,7 @@ onBeforeUnmount(() => {
.body-canvas {
width: 100%;
border: 0;
border-radius: 14px;
border-radius: var(--radius);
padding: 0.85rem;
resize: vertical;
min-height: 160px;
@@ -1897,7 +1901,7 @@ onBeforeUnmount(() => {
gap: 0.3rem;
border: 1px solid #e2e8f0;
background: #fff;
border-radius: 10px;
border-radius: var(--radius);
padding: 0.35rem 0.55rem;
font-size: 0.8rem;
color: #475569;
@@ -1920,7 +1924,7 @@ onBeforeUnmount(() => {
.field select,
.field input[type='text'] {
border: 1px solid #e2e8f0;
border-radius: 10px;
border-radius: var(--radius);
padding: 0.45rem 0.55rem;
font-size: 0.9rem;
color: #0f172a;
@@ -1937,7 +1941,7 @@ onBeforeUnmount(() => {
gap: 0.65rem;
align-items: flex-start;
padding: 0.7rem 0.75rem;
border-radius: 12px;
border-radius: var(--radius);
background: #f0fdfa;
border: 1px solid #99f6e4;
cursor: pointer;
@@ -1966,7 +1970,7 @@ onBeforeUnmount(() => {
.check-row input[type='text'] {
flex: 1;
border: 1px solid #e2e8f0;
border-radius: 8px;
border-radius: var(--radius);
padding: 0.35rem 0.5rem;
}
.linkish {
@@ -1990,7 +1994,7 @@ onBeforeUnmount(() => {
align-items: center;
gap: 0.3rem;
background: #f1f5f9;
border-radius: 8px;
border-radius: var(--radius);
padding: 0.25rem 0.45rem;
font-size: 0.75rem;
color: #475569;
@@ -2007,7 +2011,7 @@ onBeforeUnmount(() => {
border: 0;
background: var(--teal);
color: #fff;
border-radius: 12px;
border-radius: var(--radius, 10px);
padding: 0.55rem 1rem;
font-weight: 700;
cursor: pointer;
@@ -2021,7 +2025,7 @@ onBeforeUnmount(() => {
border: 1px solid #e2e8f0;
background: #fff;
color: #475569;
border-radius: 12px;
border-radius: var(--radius, 10px);
padding: 0.55rem 1rem;
cursor: pointer;
}
@@ -2101,7 +2105,7 @@ onBeforeUnmount(() => {
.sheet {
position: relative;
background: #fff;
border-radius: 18px 18px 0 0;
border-radius: var(--radius) var(--radius) 0 0;
padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
max-height: 85vh;
overflow: auto;
@@ -2174,7 +2178,7 @@ onBeforeUnmount(() => {
.editor-panel {
width: min(100%, 520px);
max-height: 94vh;
border-radius: 16px;
border-radius: var(--radius);
}
.panel-root {
padding: 0.5rem;