@justin_evo/evo-ui 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.d.ts +11 -0
- package/dist/AutoComplete/AutoComplete.d.ts +95 -0
- package/dist/Badge/Badge.d.ts +23 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/Button/Button.d.ts +54 -0
- package/dist/Card/Card.d.ts +60 -0
- package/dist/Checkbox/Checkbox.d.ts +16 -0
- package/dist/CommandPalette/CommandPalette.d.ts +17 -0
- package/dist/Container/Container.d.ts +10 -0
- package/dist/Divider/Divider.d.ts +7 -0
- package/dist/Form/Form.d.ts +61 -0
- package/dist/Grid/Grid.d.ts +23 -0
- package/dist/ImageCropper/ImageCropper.d.ts +111 -0
- package/dist/Input/Input.d.ts +12 -0
- package/dist/Modal/Modal.d.ts +26 -0
- package/dist/Nav/Nav.d.ts +63 -0
- package/dist/Notification/Notification.d.ts +186 -0
- package/dist/Pagination/Pagination.d.ts +10 -0
- package/dist/Radio/Radio.d.ts +20 -0
- package/dist/RichTextArea/RichTextArea.d.ts +70 -0
- package/dist/Select/Select.d.ts +44 -0
- package/dist/Skeleton/Skeleton.d.ts +23 -0
- package/dist/Stack/Stack.d.ts +16 -0
- package/dist/Table/Table.d.ts +77 -0
- package/dist/Tabs/Tabs.d.ts +28 -0
- package/dist/Theme/ThemeProvider.d.ts +96 -0
- package/dist/Theme/ThemeToggle.d.ts +22 -0
- package/dist/Toggle/Toggle.d.ts +11 -0
- package/dist/Tooltip/Tooltip.d.ts +10 -0
- package/dist/TopNav/TopNav.d.ts +76 -0
- package/dist/TreeSelect/TreeSelect.d.ts +50 -0
- package/dist/declarations.d.ts +6 -0
- package/dist/evo-ui.css +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.es.js +5688 -0
- package/package.json +52 -0
- package/src/Alert/Alert.tsx +49 -0
- package/src/AutoComplete/AutoComplete.tsx +810 -0
- package/src/Badge/Badge.tsx +53 -0
- package/src/Breadcrumb/Breadcrumb.tsx +53 -0
- package/src/Button/Button.tsx +125 -0
- package/src/Card/Card.tsx +257 -0
- package/src/Checkbox/Checkbox.tsx +59 -0
- package/src/CommandPalette/CommandPalette.tsx +185 -0
- package/src/Container/Container.tsx +31 -0
- package/src/Divider/Divider.tsx +31 -0
- package/src/Form/Form.tsx +185 -0
- package/src/Grid/Grid.tsx +66 -0
- package/src/ImageCropper/ImageCropper.tsx +911 -0
- package/src/Input/Input.tsx +74 -0
- package/src/Modal/Modal.tsx +77 -0
- package/src/Nav/Nav.tsx +626 -0
- package/src/Notification/Notification.tsx +1503 -0
- package/src/Pagination/Pagination.tsx +76 -0
- package/src/Radio/Radio.tsx +69 -0
- package/src/RichTextArea/RichTextArea.tsx +869 -0
- package/src/Select/Select.tsx +515 -0
- package/src/Skeleton/Skeleton.tsx +70 -0
- package/src/Stack/Stack.tsx +52 -0
- package/src/Table/Table.tsx +335 -0
- package/src/Tabs/Tabs.tsx +90 -0
- package/src/Theme/ThemeProvider.tsx +253 -0
- package/src/Theme/ThemeToggle.tsx +79 -0
- package/src/Toggle/Toggle.tsx +48 -0
- package/src/Tooltip/Tooltip.tsx +38 -0
- package/src/TopNav/TopNav.tsx +994 -0
- package/src/TreeSelect/TreeSelect.tsx +825 -0
- package/src/css/alert.module.scss +93 -0
- package/src/css/autocomplete.module.scss +416 -0
- package/src/css/badge.module.scss +82 -0
- package/src/css/base/_color.scss +159 -0
- package/src/css/base/_theme.scss +237 -0
- package/src/css/base/_variables.scss +161 -0
- package/src/css/breadcrumb.module.scss +50 -0
- package/src/css/button.module.scss +385 -0
- package/src/css/card.module.scss +217 -0
- package/src/css/checkbox.module.scss +120 -0
- package/src/css/commandpalette.module.scss +211 -0
- package/src/css/container.module.scss +18 -0
- package/src/css/divider.module.scss +41 -0
- package/src/css/form.module.scss +245 -0
- package/src/css/imagecropper.module.scss +397 -0
- package/src/css/input.module.scss +89 -0
- package/src/css/modal.module.scss +105 -0
- package/src/css/nav.module.scss +339 -0
- package/src/css/notification.module.scss +691 -0
- package/src/css/pagination.module.scss +63 -0
- package/src/css/radio.module.scss +89 -0
- package/src/css/richtextarea.module.scss +307 -0
- package/src/css/select.module.scss +525 -0
- package/src/css/skeleton.module.scss +30 -0
- package/src/css/table.module.scss +386 -0
- package/src/css/tabs.module.scss +63 -0
- package/src/css/theme-toggle.module.scss +83 -0
- package/src/css/toggle.module.scss +54 -0
- package/src/css/tooltip.module.scss +97 -0
- package/src/css/topnav.module.scss +396 -0
- package/src/css/treeselect.module.scss +558 -0
- package/src/css/utilities/_borders.scss +111 -0
- package/src/css/utilities/_colors.scss +66 -0
- package/src/css/utilities/_effects.scss +216 -0
- package/src/css/utilities/_layout.scss +181 -0
- package/src/css/utilities/_position.scss +75 -0
- package/src/css/utilities/_sizing.scss +138 -0
- package/src/css/utilities/_spacing.scss +99 -0
- package/src/css/utilities/_typography.scss +121 -0
- package/src/css/utilities/index.scss +24 -0
- package/src/declarations.d.ts +6 -0
- package/src/index.ts +60 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
.overlay {
|
|
5
|
+
position: fixed;
|
|
6
|
+
inset: 0;
|
|
7
|
+
background: $color-backdrop;
|
|
8
|
+
backdrop-filter: blur(4px);
|
|
9
|
+
-webkit-backdrop-filter: blur(4px);
|
|
10
|
+
z-index: 9999;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
padding-top: 14vh;
|
|
15
|
+
animation: overlayIn $transition-fast forwards;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes overlayIn {
|
|
19
|
+
from { opacity: 0; }
|
|
20
|
+
to { opacity: 1; }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.palette {
|
|
24
|
+
background: $color-surface-elevated;
|
|
25
|
+
border: 1px solid $color-border;
|
|
26
|
+
border-radius: $radius-lg;
|
|
27
|
+
width: min(580px, calc(100vw - 2rem));
|
|
28
|
+
max-height: 68vh;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
box-shadow: 0 32px 64px rgb(0 0 0 / 0.30);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
animation: paletteIn $transition-fast forwards;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@keyframes paletteIn {
|
|
37
|
+
from { opacity: 0; transform: translateY(-8px) scale(0.98); }
|
|
38
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// --- Search row ---
|
|
42
|
+
|
|
43
|
+
.searchRow {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 0.625rem;
|
|
47
|
+
padding: 0.875rem 1rem;
|
|
48
|
+
border-bottom: 1px solid $color-border;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.searchIconWrap {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
color: $color-text-muted;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.searchInput {
|
|
59
|
+
flex: 1;
|
|
60
|
+
background: none;
|
|
61
|
+
border: none;
|
|
62
|
+
outline: none;
|
|
63
|
+
font-family: $font-sans;
|
|
64
|
+
font-size: $text-base;
|
|
65
|
+
color: $color-text-primary;
|
|
66
|
+
caret-color: $evo-primary-color;
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: $color-text-muted;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.escBadge {
|
|
74
|
+
font-size: $text-xs;
|
|
75
|
+
padding: 0.125rem 0.4rem;
|
|
76
|
+
background: $color-surface-sunken;
|
|
77
|
+
border: 1px solid $color-border;
|
|
78
|
+
border-radius: $radius-sm;
|
|
79
|
+
color: $color-text-muted;
|
|
80
|
+
font-family: $font-sans;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// --- Results area ---
|
|
85
|
+
|
|
86
|
+
.results {
|
|
87
|
+
flex: 1;
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
padding: 0.375rem 0.5rem;
|
|
90
|
+
|
|
91
|
+
&::-webkit-scrollbar {
|
|
92
|
+
width: 4px;
|
|
93
|
+
}
|
|
94
|
+
&::-webkit-scrollbar-track {
|
|
95
|
+
background: transparent;
|
|
96
|
+
}
|
|
97
|
+
&::-webkit-scrollbar-thumb {
|
|
98
|
+
background: $color-border;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.empty {
|
|
104
|
+
padding: 2.5rem 1rem;
|
|
105
|
+
text-align: center;
|
|
106
|
+
font-size: $text-sm;
|
|
107
|
+
color: $color-text-muted;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.group {
|
|
111
|
+
margin-bottom: 0.25rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.groupLabel {
|
|
115
|
+
font-size: $text-xs;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
text-transform: uppercase;
|
|
118
|
+
letter-spacing: 0.06em;
|
|
119
|
+
color: $color-text-muted;
|
|
120
|
+
padding: 0.375rem 0.625rem 0.25rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.resultItem {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 0.625rem;
|
|
127
|
+
width: 100%;
|
|
128
|
+
padding: 0.5625rem 0.75rem;
|
|
129
|
+
border: none;
|
|
130
|
+
border-radius: $radius-sm;
|
|
131
|
+
background: transparent;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
font-family: $font-sans;
|
|
134
|
+
transition: background-color $transition-fast;
|
|
135
|
+
|
|
136
|
+
&.resultActive {
|
|
137
|
+
background: $color-surface-hover;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.resultIcon {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
color: $color-text-secondary;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
width: 1.25rem;
|
|
147
|
+
height: 1.25rem;
|
|
148
|
+
font-size: 1.1rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.resultLabel {
|
|
152
|
+
font-size: $text-sm;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
color: $color-text-primary;
|
|
155
|
+
flex: 1;
|
|
156
|
+
text-align: left;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.resultDesc {
|
|
160
|
+
font-size: $text-xs;
|
|
161
|
+
color: $color-text-muted;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.resultShortcut {
|
|
166
|
+
display: flex;
|
|
167
|
+
gap: 0.2rem;
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
|
|
170
|
+
kbd {
|
|
171
|
+
font-size: $text-xs;
|
|
172
|
+
padding: 0.125rem 0.375rem;
|
|
173
|
+
background: $color-surface-sunken;
|
|
174
|
+
border: 1px solid $color-border;
|
|
175
|
+
border-radius: $radius-sm;
|
|
176
|
+
color: $color-text-muted;
|
|
177
|
+
font-family: $font-sans;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// --- Footer ---
|
|
182
|
+
|
|
183
|
+
.footer {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: 1.25rem;
|
|
187
|
+
padding: 0.5rem 1rem;
|
|
188
|
+
border-top: 1px solid $color-border;
|
|
189
|
+
font-size: $text-xs;
|
|
190
|
+
color: $color-text-muted;
|
|
191
|
+
|
|
192
|
+
span {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: 0.25rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
kbd {
|
|
199
|
+
padding: 0.1rem 0.35rem;
|
|
200
|
+
background: $color-surface-sunken;
|
|
201
|
+
border: 1px solid $color-border;
|
|
202
|
+
border-radius: $radius-sm;
|
|
203
|
+
font-family: $font-sans;
|
|
204
|
+
font-size: $text-xs;
|
|
205
|
+
color: $color-text-muted;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.footerRight {
|
|
210
|
+
margin-left: auto;
|
|
211
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
width: 100%;
|
|
5
|
+
padding-left: 1rem;
|
|
6
|
+
padding-right: 1rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.centered {
|
|
10
|
+
margin-left: auto;
|
|
11
|
+
margin-right: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sm { max-width: 640px; }
|
|
15
|
+
.md { max-width: 768px; }
|
|
16
|
+
.lg { max-width: 1024px; }
|
|
17
|
+
.xl { max-width: 1280px; }
|
|
18
|
+
.full { max-width: 100%; }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
.divider {
|
|
5
|
+
border: none;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.horizontal {
|
|
10
|
+
height: 1px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
background-color: $color-border;
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vertical {
|
|
17
|
+
width: 1px;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
background-color: $color-border;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.labeled {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.75rem;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.line {
|
|
31
|
+
flex: 1;
|
|
32
|
+
height: 1px;
|
|
33
|
+
background-color: $color-border;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.labelText {
|
|
37
|
+
font-size: $text-sm;
|
|
38
|
+
color: $color-text-muted;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
font-family: $font-sans;
|
|
41
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
@use 'base/variables' as *;
|
|
2
|
+
@use 'base/color' as *;
|
|
3
|
+
|
|
4
|
+
// ============================================================
|
|
5
|
+
// EvoForm — composable, lightweight form primitives.
|
|
6
|
+
// Inspired by patterns from shadcn/ui, Radix, Mantine, Tailwind UI,
|
|
7
|
+
// Polaris and Ant Design — kept dependency-free and CSS-module only.
|
|
8
|
+
// ============================================================
|
|
9
|
+
|
|
10
|
+
// ----- Root -----
|
|
11
|
+
.form {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 1.25rem;
|
|
15
|
+
font-family: $font-sans;
|
|
16
|
+
color: $color-text-primary;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.form_sm { gap: 0.875rem; font-size: $text-xs; }
|
|
21
|
+
.form_md { gap: 1.25rem; font-size: $text-sm; }
|
|
22
|
+
.form_lg { gap: 1.5rem; font-size: $text-base; }
|
|
23
|
+
|
|
24
|
+
.form_vertical {} // default
|
|
25
|
+
.form_horizontal {
|
|
26
|
+
// Reserved for future horizontal label/control layouts.
|
|
27
|
+
// Currently a no-op so the prop is non-breaking.
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// ----- Header -----
|
|
31
|
+
.header {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.375rem;
|
|
35
|
+
padding-bottom: 1rem;
|
|
36
|
+
border-bottom: 1px solid $color-border;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.headerBadge {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-self: flex-start;
|
|
42
|
+
align-items: center;
|
|
43
|
+
padding: 0.125rem 0.5rem;
|
|
44
|
+
font-size: $text-xs;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
color: $evo-primary-color;
|
|
47
|
+
background: color-mix(in srgb, $evo-primary-color 10%, transparent);
|
|
48
|
+
border: 1px solid color-mix(in srgb, $evo-primary-color 25%, transparent);
|
|
49
|
+
border-radius: $radius-full;
|
|
50
|
+
letter-spacing: 0.02em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.headerTitle {
|
|
54
|
+
margin: 0;
|
|
55
|
+
font-size: $text-xl;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
line-height: 1.3;
|
|
58
|
+
color: $color-text-primary;
|
|
59
|
+
letter-spacing: -0.01em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.headerDesc {
|
|
63
|
+
margin: 0;
|
|
64
|
+
font-size: $text-sm;
|
|
65
|
+
line-height: 1.55;
|
|
66
|
+
color: $color-text-secondary;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// ----- Section -----
|
|
70
|
+
.section {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 0.875rem;
|
|
74
|
+
|
|
75
|
+
& + & {
|
|
76
|
+
margin-top: 0.5rem;
|
|
77
|
+
padding-top: 1.25rem;
|
|
78
|
+
border-top: 1px dashed $color-border;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sectionHead {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: 0.25rem;
|
|
86
|
+
position: relative;
|
|
87
|
+
padding-left: 0.625rem;
|
|
88
|
+
|
|
89
|
+
&::before {
|
|
90
|
+
content: '';
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 0.25rem;
|
|
93
|
+
bottom: 0.25rem;
|
|
94
|
+
left: 0;
|
|
95
|
+
width: 2px;
|
|
96
|
+
border-radius: $radius-full;
|
|
97
|
+
background: linear-gradient(180deg, $evo-primary-color, $evo-primary-active);
|
|
98
|
+
opacity: 0.85;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sectionTitle {
|
|
103
|
+
margin: 0;
|
|
104
|
+
font-size: $text-base;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
line-height: 1.3;
|
|
107
|
+
color: $color-text-primary;
|
|
108
|
+
letter-spacing: -0.005em;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.sectionDesc {
|
|
112
|
+
margin: 0;
|
|
113
|
+
font-size: $text-xs;
|
|
114
|
+
line-height: 1.5;
|
|
115
|
+
color: $color-text-secondary;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sectionBody {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 0.875rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Split layout: title/description on the left, fields on the right.
|
|
125
|
+
// Stacks on small screens for a clean responsive collapse.
|
|
126
|
+
.section_split {
|
|
127
|
+
@media (min-width: 720px) {
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
|
|
130
|
+
gap: 2.5rem;
|
|
131
|
+
align-items: start;
|
|
132
|
+
|
|
133
|
+
.sectionHead {
|
|
134
|
+
padding-left: 0;
|
|
135
|
+
|
|
136
|
+
&::before { display: none; }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.section_stacked {} // default
|
|
142
|
+
|
|
143
|
+
// ----- Row (side-by-side fields) -----
|
|
144
|
+
.row {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
|
|
148
|
+
> * {
|
|
149
|
+
flex: 1 1 200px;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.row_sm { gap: 0.5rem; }
|
|
155
|
+
.row_md { gap: 0.875rem; }
|
|
156
|
+
.row_lg { gap: 1.25rem; }
|
|
157
|
+
|
|
158
|
+
.row_align_start { align-items: flex-start; }
|
|
159
|
+
.row_align_center { align-items: center; }
|
|
160
|
+
.row_align_end { align-items: flex-end; }
|
|
161
|
+
|
|
162
|
+
// ----- Field -----
|
|
163
|
+
.field {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
gap: 0.375rem;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.fieldLabel {
|
|
171
|
+
display: inline-flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
gap: 0.25rem;
|
|
174
|
+
font-size: $text-sm;
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
line-height: 1.3;
|
|
177
|
+
color: $color-text-primary;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.fieldRequired {
|
|
181
|
+
color: $evo-danger-color;
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
line-height: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.fieldControl {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fieldDesc {
|
|
192
|
+
margin: 0;
|
|
193
|
+
font-size: $text-xs;
|
|
194
|
+
line-height: 1.45;
|
|
195
|
+
color: $color-text-muted;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.fieldError {
|
|
199
|
+
margin: 0;
|
|
200
|
+
font-size: $text-xs;
|
|
201
|
+
line-height: 1.45;
|
|
202
|
+
color: $evo-danger-color;
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
gap: 0.3rem;
|
|
206
|
+
|
|
207
|
+
&::before {
|
|
208
|
+
content: '';
|
|
209
|
+
display: inline-block;
|
|
210
|
+
width: 0.35rem;
|
|
211
|
+
height: 0.35rem;
|
|
212
|
+
border-radius: $radius-full;
|
|
213
|
+
background: $evo-danger-color;
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.field_error {
|
|
219
|
+
.fieldLabel { color: $color-text-primary; }
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// ----- Actions (footer) -----
|
|
223
|
+
.actions {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-wrap: wrap;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 0.625rem;
|
|
228
|
+
padding-top: 0.5rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.actions_divider {
|
|
232
|
+
margin-top: 0.5rem;
|
|
233
|
+
padding-top: 1.125rem;
|
|
234
|
+
border-top: 1px solid $color-border;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.actions_left { justify-content: flex-start; }
|
|
238
|
+
.actions_right { justify-content: flex-end; }
|
|
239
|
+
.actions_center { justify-content: center; }
|
|
240
|
+
.actions_between { justify-content: space-between; }
|
|
241
|
+
|
|
242
|
+
// ----- Disabled state (root only — children read context themselves) -----
|
|
243
|
+
.form:has(:disabled) {
|
|
244
|
+
// visual hint without blocking interaction; child controls handle real disabling
|
|
245
|
+
}
|