@justin_evo/evo-ui 1.2.0 → 1.2.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.
Files changed (77) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +70 -70
  3. package/dist/declarations.d.ts +6 -6
  4. package/package.json +52 -52
  5. package/src/Alert/Alert.tsx +49 -49
  6. package/src/AutoComplete/AutoComplete.tsx +810 -810
  7. package/src/Badge/Badge.tsx +53 -53
  8. package/src/Breadcrumb/Breadcrumb.tsx +53 -53
  9. package/src/Button/Button.tsx +125 -125
  10. package/src/Card/Card.tsx +257 -257
  11. package/src/Checkbox/Checkbox.tsx +59 -59
  12. package/src/CommandPalette/CommandPalette.tsx +185 -185
  13. package/src/Container/Container.tsx +31 -31
  14. package/src/Divider/Divider.tsx +31 -31
  15. package/src/Form/Form.tsx +185 -185
  16. package/src/Grid/Grid.tsx +66 -66
  17. package/src/ImageCropper/ImageCropper.tsx +911 -911
  18. package/src/Input/Input.tsx +74 -74
  19. package/src/Modal/Modal.tsx +77 -77
  20. package/src/Nav/Nav.tsx +708 -708
  21. package/src/Notification/Notification.tsx +1503 -1503
  22. package/src/Pagination/Pagination.tsx +76 -76
  23. package/src/Radio/Radio.tsx +69 -69
  24. package/src/RichTextArea/RichTextArea.tsx +886 -886
  25. package/src/Select/Select.tsx +515 -515
  26. package/src/Skeleton/Skeleton.tsx +70 -70
  27. package/src/Stack/Stack.tsx +52 -52
  28. package/src/Table/Table.tsx +335 -335
  29. package/src/Tabs/Tabs.tsx +90 -90
  30. package/src/Theme/ThemeProvider.tsx +253 -253
  31. package/src/Theme/ThemeToggle.tsx +79 -79
  32. package/src/Toggle/Toggle.tsx +48 -48
  33. package/src/Tooltip/Tooltip.tsx +38 -38
  34. package/src/TopNav/TopNav.tsx +1163 -1163
  35. package/src/TreeSelect/TreeSelect.tsx +825 -825
  36. package/src/css/alert.module.scss +93 -93
  37. package/src/css/autocomplete.module.scss +416 -416
  38. package/src/css/badge.module.scss +82 -82
  39. package/src/css/base/_color.scss +159 -159
  40. package/src/css/base/_theme.scss +237 -237
  41. package/src/css/base/_variables.scss +161 -161
  42. package/src/css/breadcrumb.module.scss +50 -50
  43. package/src/css/button.module.scss +385 -385
  44. package/src/css/card.module.scss +217 -217
  45. package/src/css/checkbox.module.scss +123 -123
  46. package/src/css/commandpalette.module.scss +211 -211
  47. package/src/css/container.module.scss +18 -18
  48. package/src/css/divider.module.scss +41 -41
  49. package/src/css/form.module.scss +245 -245
  50. package/src/css/imagecropper.module.scss +397 -397
  51. package/src/css/input.module.scss +89 -89
  52. package/src/css/modal.module.scss +105 -105
  53. package/src/css/nav.module.scss +494 -494
  54. package/src/css/notification.module.scss +691 -691
  55. package/src/css/pagination.module.scss +63 -63
  56. package/src/css/radio.module.scss +89 -89
  57. package/src/css/richtextarea.module.scss +307 -307
  58. package/src/css/select.module.scss +525 -525
  59. package/src/css/skeleton.module.scss +30 -30
  60. package/src/css/table.module.scss +386 -386
  61. package/src/css/tabs.module.scss +63 -63
  62. package/src/css/theme-toggle.module.scss +83 -83
  63. package/src/css/toggle.module.scss +54 -54
  64. package/src/css/tooltip.module.scss +97 -97
  65. package/src/css/topnav.module.scss +568 -568
  66. package/src/css/treeselect.module.scss +558 -558
  67. package/src/css/utilities/_borders.scss +111 -111
  68. package/src/css/utilities/_colors.scss +66 -66
  69. package/src/css/utilities/_effects.scss +216 -216
  70. package/src/css/utilities/_layout.scss +181 -181
  71. package/src/css/utilities/_position.scss +75 -75
  72. package/src/css/utilities/_sizing.scss +138 -138
  73. package/src/css/utilities/_spacing.scss +99 -99
  74. package/src/css/utilities/_typography.scss +121 -121
  75. package/src/css/utilities/index.scss +24 -24
  76. package/src/declarations.d.ts +6 -6
  77. package/src/index.ts +60 -60
@@ -1,416 +1,416 @@
1
- @use 'base/variables' as *;
2
- @use 'base/color' as *;
3
-
4
- /* =====================================================================
5
- * EvoAutoComplete — editable combobox with list autocomplete.
6
- * Token-driven (var(--evo-*)) so it themes for free in light + dark.
7
- * Shares the visual language of EvoSelect / EvoInput.
8
- * ===================================================================== */
9
-
10
- .field {
11
- display: inline-flex;
12
- flex-direction: column;
13
- gap: 0.4rem;
14
- font-family: $font-sans;
15
- min-width: 240px;
16
- }
17
-
18
- .fullWidth {
19
- width: 100%;
20
- }
21
-
22
- .disabled .inputWrapper {
23
- opacity: 0.5;
24
- cursor: not-allowed;
25
- pointer-events: none;
26
- }
27
-
28
- .label {
29
- font-size: $text-sm;
30
- font-weight: 500;
31
- color: $color-text-primary;
32
- letter-spacing: -0.005em;
33
- }
34
-
35
- /* ---------------- Positioning context for the menu ---------------- */
36
- .acWrapper {
37
- position: relative;
38
- width: 100%;
39
- }
40
-
41
- /* ---------------- Input shell ---------------- */
42
- .inputWrapper {
43
- display: flex;
44
- align-items: center;
45
- gap: 0.5rem;
46
- width: 100%;
47
-
48
- background: $color-surface;
49
- border: 1px solid $color-border;
50
- border-radius: $radius-sm;
51
- color: $color-text-primary;
52
-
53
- transition:
54
- background-color $transition-fast,
55
- border-color $transition-fast,
56
- box-shadow $transition-fast;
57
-
58
- &:hover {
59
- border-color: $color-border-strong;
60
- }
61
-
62
- &:focus-within {
63
- border-color: $evo-primary-color;
64
- box-shadow:
65
- 0 0 0 3px color-mix(in srgb, $evo-primary-color 18%, transparent),
66
- 0 1px 2px rgb(0 0 0 / 0.15);
67
- }
68
-
69
- &.open {
70
- border-color: $evo-primary-color;
71
- box-shadow:
72
- 0 0 0 3px color-mix(in srgb, $evo-primary-color 18%, transparent),
73
- 0 1px 2px rgb(0 0 0 / 0.15);
74
- }
75
-
76
- &.hasError {
77
- border-color: $evo-danger-color;
78
-
79
- &.open,
80
- &:focus-within {
81
- box-shadow:
82
- 0 0 0 3px color-mix(in srgb, $evo-danger-color 18%, transparent),
83
- 0 1px 2px rgb(0 0 0 / 0.15);
84
- }
85
- }
86
- }
87
-
88
- /* ---------------- Sizes (≥44px touch target on lg, generous on md) -- */
89
- .sm {
90
- padding: 0.25rem 0.5rem;
91
- min-height: 32px;
92
- }
93
- .md {
94
- padding: 0.375rem 0.625rem;
95
- min-height: 40px;
96
- }
97
- .lg {
98
- padding: 0.5rem 0.75rem;
99
- min-height: 46px;
100
- }
101
-
102
- /* ---------------- Search icon ---------------- */
103
- .searchIconWrap {
104
- display: inline-flex;
105
- align-items: center;
106
- flex-shrink: 0;
107
- color: $color-text-muted;
108
- }
109
-
110
- /* ---------------- The text input itself ---------------- */
111
- .input {
112
- flex: 1;
113
- min-width: 0;
114
- background: none;
115
- border: none;
116
- outline: none;
117
- padding: 0;
118
- margin: 0;
119
-
120
- font-family: $font-sans;
121
- color: $color-text-primary;
122
- caret-color: $evo-primary-color;
123
-
124
- .sm & {
125
- font-size: $text-xs;
126
- }
127
- .md & {
128
- font-size: $text-sm;
129
- }
130
- .lg & {
131
- font-size: $text-base;
132
- }
133
-
134
- &::placeholder {
135
- color: $color-text-muted;
136
- }
137
- }
138
-
139
- /* ---------------- Trailing actions ---------------- */
140
- .actions {
141
- display: inline-flex;
142
- align-items: center;
143
- gap: 0.25rem;
144
- flex-shrink: 0;
145
- }
146
-
147
- .statusIcon {
148
- display: inline-flex;
149
- align-items: center;
150
- color: $color-text-muted;
151
- }
152
-
153
- .clearBtn {
154
- display: inline-flex;
155
- align-items: center;
156
- justify-content: center;
157
- width: 20px;
158
- height: 20px;
159
- padding: 0;
160
- border: none;
161
- border-radius: 50%;
162
- background: none;
163
- color: $color-text-muted;
164
- cursor: pointer;
165
- transition: color $transition-fast, background-color $transition-fast;
166
-
167
- &:hover {
168
- color: $color-text-primary;
169
- background: $color-surface-hover;
170
- }
171
- }
172
-
173
- /* ---------------- Spinner ---------------- */
174
- .spinner {
175
- animation: evoAcSpin 0.7s linear infinite;
176
- }
177
-
178
- @keyframes evoAcSpin {
179
- to {
180
- transform: rotate(360deg);
181
- }
182
- }
183
-
184
- @media (prefers-reduced-motion: reduce) {
185
- .spinner {
186
- animation-duration: 2s;
187
- }
188
- }
189
-
190
- /* =====================================================================
191
- * Dropdown menu
192
- * =================================================================== */
193
- .menu {
194
- position: absolute;
195
- top: calc(100% + 6px);
196
- left: 0;
197
- right: 0;
198
- z-index: 100;
199
-
200
- background: $color-surface-elevated;
201
- border: 1px solid $color-border;
202
- border-radius: $radius-md;
203
- overflow: hidden;
204
-
205
- box-shadow:
206
- 0 16px 32px -12px rgb(0 0 0 / 0.35),
207
- 0 6px 12px -4px rgb(0 0 0 / 0.18);
208
-
209
- transform-origin: top center;
210
- animation: evoAcMenuOpen 160ms cubic-bezier(0.16, 1, 0.3, 1);
211
- }
212
-
213
- @keyframes evoAcMenuOpen {
214
- from {
215
- opacity: 0;
216
- transform: translateY(-6px) scale(0.97);
217
- }
218
- to {
219
- opacity: 1;
220
- transform: translateY(0) scale(1);
221
- }
222
- }
223
-
224
- @media (prefers-reduced-motion: reduce) {
225
- .menu {
226
- animation: none;
227
- }
228
- }
229
-
230
- /* ---------------- Section header (Recents / Smart Recovery) -------- */
231
- .sectionHeader {
232
- display: flex;
233
- align-items: center;
234
- gap: 0.4rem;
235
- padding: 0.5rem 0.75rem 0.35rem;
236
-
237
- font-size: $text-xs;
238
- font-weight: 600;
239
- letter-spacing: 0.02em;
240
- text-transform: uppercase;
241
- color: $color-text-muted;
242
-
243
- svg {
244
- flex-shrink: 0;
245
- }
246
- }
247
-
248
- /* ---------------- Smart Recovery banner ---------------- */
249
- .recoveryBox {
250
- .sectionHeader {
251
- color: $evo-primary-color;
252
- text-transform: none;
253
- letter-spacing: -0.005em;
254
- font-size: $text-sm;
255
- font-weight: 500;
256
- background: color-mix(in srgb, $evo-primary-color 8%, transparent);
257
- border-bottom: 1px solid $color-border-subtle;
258
- }
259
- }
260
-
261
- /* ---------------- Options list ---------------- */
262
- .list {
263
- max-height: 280px;
264
- overflow-y: auto;
265
- padding: 0.3rem;
266
-
267
- scrollbar-width: thin;
268
- scrollbar-color: $color-border-strong transparent;
269
-
270
- &::-webkit-scrollbar {
271
- width: 8px;
272
- }
273
- &::-webkit-scrollbar-track {
274
- background: transparent;
275
- }
276
- &::-webkit-scrollbar-thumb {
277
- background: $color-border-strong;
278
- border-radius: 4px;
279
- background-clip: padding-box;
280
- border: 2px solid transparent;
281
- }
282
- &::-webkit-scrollbar-thumb:hover {
283
- background: $color-text-muted;
284
- background-clip: padding-box;
285
- border: 2px solid transparent;
286
- }
287
- }
288
-
289
- .empty,
290
- .statusRow {
291
- padding: 1.25rem 0.75rem;
292
- text-align: center;
293
- color: $color-text-muted;
294
- font-size: $text-sm;
295
- }
296
-
297
- .statusRow {
298
- display: flex;
299
- align-items: center;
300
- justify-content: center;
301
- gap: 0.5rem;
302
- }
303
-
304
- /* ---------------- Option row ---------------- */
305
- .option {
306
- position: relative;
307
- display: flex;
308
- align-items: center;
309
- gap: 0.625rem;
310
- width: 100%;
311
- padding: 0.5rem 0.625rem;
312
- min-height: 38px;
313
-
314
- background: transparent;
315
- border: none;
316
- border-radius: 6px;
317
- color: $color-text-primary;
318
- font-family: $font-sans;
319
- font-size: $text-sm;
320
- text-align: left;
321
- cursor: pointer;
322
- transition: background-color 120ms ease, color 120ms ease;
323
-
324
- & + & {
325
- margin-top: 1px;
326
- }
327
- }
328
-
329
- .optionActive:not(.optionDisabled) {
330
- background: color-mix(in srgb, $evo-primary-color 12%, transparent);
331
- }
332
-
333
- .optionSelected {
334
- color: $evo-primary-color;
335
-
336
- .optionTitle {
337
- font-weight: 600;
338
- }
339
- }
340
-
341
- .optionDisabled {
342
- opacity: 0.4;
343
- cursor: not-allowed;
344
- }
345
-
346
- .optionRecovery {
347
- margin: 0.15rem 0;
348
- }
349
-
350
- .optionIcon {
351
- display: inline-flex;
352
- align-items: center;
353
- justify-content: center;
354
- flex-shrink: 0;
355
- width: 1.1rem;
356
- height: 1.1rem;
357
- color: $color-text-secondary;
358
- font-size: 1em;
359
- }
360
-
361
- .optionLabel {
362
- display: flex;
363
- flex-direction: column;
364
- flex: 1;
365
- min-width: 0;
366
- gap: 1px;
367
- }
368
-
369
- .optionTitle {
370
- overflow: hidden;
371
- text-overflow: ellipsis;
372
- white-space: nowrap;
373
- font-weight: 500;
374
- }
375
-
376
- .optionDesc {
377
- font-size: $text-xs;
378
- color: $color-text-muted;
379
- font-weight: 400;
380
- overflow: hidden;
381
- text-overflow: ellipsis;
382
- white-space: nowrap;
383
- }
384
-
385
- /* ---------------- Matched-substring highlight ---------------- */
386
- .mark {
387
- background: transparent;
388
- color: $evo-primary-color;
389
- font-weight: 700;
390
- padding: 0;
391
- }
392
-
393
- .check {
394
- display: inline-flex;
395
- align-items: center;
396
- justify-content: center;
397
- width: 16px;
398
- height: 16px;
399
- flex-shrink: 0;
400
- color: $evo-primary-color;
401
- }
402
-
403
- /* ---------------- Footer texts ---------------- */
404
- .errorText {
405
- font-size: $text-xs;
406
- color: $evo-danger-color;
407
- margin: 0;
408
- line-height: 1.4;
409
- }
410
-
411
- .helperText {
412
- font-size: $text-xs;
413
- color: $color-text-muted;
414
- margin: 0;
415
- line-height: 1.4;
416
- }
1
+ @use 'base/variables' as *;
2
+ @use 'base/color' as *;
3
+
4
+ /* =====================================================================
5
+ * EvoAutoComplete — editable combobox with list autocomplete.
6
+ * Token-driven (var(--evo-*)) so it themes for free in light + dark.
7
+ * Shares the visual language of EvoSelect / EvoInput.
8
+ * ===================================================================== */
9
+
10
+ .field {
11
+ display: inline-flex;
12
+ flex-direction: column;
13
+ gap: 0.4rem;
14
+ font-family: $font-sans;
15
+ min-width: 240px;
16
+ }
17
+
18
+ .fullWidth {
19
+ width: 100%;
20
+ }
21
+
22
+ .disabled .inputWrapper {
23
+ opacity: 0.5;
24
+ cursor: not-allowed;
25
+ pointer-events: none;
26
+ }
27
+
28
+ .label {
29
+ font-size: $text-sm;
30
+ font-weight: 500;
31
+ color: $color-text-primary;
32
+ letter-spacing: -0.005em;
33
+ }
34
+
35
+ /* ---------------- Positioning context for the menu ---------------- */
36
+ .acWrapper {
37
+ position: relative;
38
+ width: 100%;
39
+ }
40
+
41
+ /* ---------------- Input shell ---------------- */
42
+ .inputWrapper {
43
+ display: flex;
44
+ align-items: center;
45
+ gap: 0.5rem;
46
+ width: 100%;
47
+
48
+ background: $color-surface;
49
+ border: 1px solid $color-border;
50
+ border-radius: $radius-sm;
51
+ color: $color-text-primary;
52
+
53
+ transition:
54
+ background-color $transition-fast,
55
+ border-color $transition-fast,
56
+ box-shadow $transition-fast;
57
+
58
+ &:hover {
59
+ border-color: $color-border-strong;
60
+ }
61
+
62
+ &:focus-within {
63
+ border-color: $evo-primary-color;
64
+ box-shadow:
65
+ 0 0 0 3px color-mix(in srgb, $evo-primary-color 18%, transparent),
66
+ 0 1px 2px rgb(0 0 0 / 0.15);
67
+ }
68
+
69
+ &.open {
70
+ border-color: $evo-primary-color;
71
+ box-shadow:
72
+ 0 0 0 3px color-mix(in srgb, $evo-primary-color 18%, transparent),
73
+ 0 1px 2px rgb(0 0 0 / 0.15);
74
+ }
75
+
76
+ &.hasError {
77
+ border-color: $evo-danger-color;
78
+
79
+ &.open,
80
+ &:focus-within {
81
+ box-shadow:
82
+ 0 0 0 3px color-mix(in srgb, $evo-danger-color 18%, transparent),
83
+ 0 1px 2px rgb(0 0 0 / 0.15);
84
+ }
85
+ }
86
+ }
87
+
88
+ /* ---------------- Sizes (≥44px touch target on lg, generous on md) -- */
89
+ .sm {
90
+ padding: 0.25rem 0.5rem;
91
+ min-height: 32px;
92
+ }
93
+ .md {
94
+ padding: 0.375rem 0.625rem;
95
+ min-height: 40px;
96
+ }
97
+ .lg {
98
+ padding: 0.5rem 0.75rem;
99
+ min-height: 46px;
100
+ }
101
+
102
+ /* ---------------- Search icon ---------------- */
103
+ .searchIconWrap {
104
+ display: inline-flex;
105
+ align-items: center;
106
+ flex-shrink: 0;
107
+ color: $color-text-muted;
108
+ }
109
+
110
+ /* ---------------- The text input itself ---------------- */
111
+ .input {
112
+ flex: 1;
113
+ min-width: 0;
114
+ background: none;
115
+ border: none;
116
+ outline: none;
117
+ padding: 0;
118
+ margin: 0;
119
+
120
+ font-family: $font-sans;
121
+ color: $color-text-primary;
122
+ caret-color: $evo-primary-color;
123
+
124
+ .sm & {
125
+ font-size: $text-xs;
126
+ }
127
+ .md & {
128
+ font-size: $text-sm;
129
+ }
130
+ .lg & {
131
+ font-size: $text-base;
132
+ }
133
+
134
+ &::placeholder {
135
+ color: $color-text-muted;
136
+ }
137
+ }
138
+
139
+ /* ---------------- Trailing actions ---------------- */
140
+ .actions {
141
+ display: inline-flex;
142
+ align-items: center;
143
+ gap: 0.25rem;
144
+ flex-shrink: 0;
145
+ }
146
+
147
+ .statusIcon {
148
+ display: inline-flex;
149
+ align-items: center;
150
+ color: $color-text-muted;
151
+ }
152
+
153
+ .clearBtn {
154
+ display: inline-flex;
155
+ align-items: center;
156
+ justify-content: center;
157
+ width: 20px;
158
+ height: 20px;
159
+ padding: 0;
160
+ border: none;
161
+ border-radius: 50%;
162
+ background: none;
163
+ color: $color-text-muted;
164
+ cursor: pointer;
165
+ transition: color $transition-fast, background-color $transition-fast;
166
+
167
+ &:hover {
168
+ color: $color-text-primary;
169
+ background: $color-surface-hover;
170
+ }
171
+ }
172
+
173
+ /* ---------------- Spinner ---------------- */
174
+ .spinner {
175
+ animation: evoAcSpin 0.7s linear infinite;
176
+ }
177
+
178
+ @keyframes evoAcSpin {
179
+ to {
180
+ transform: rotate(360deg);
181
+ }
182
+ }
183
+
184
+ @media (prefers-reduced-motion: reduce) {
185
+ .spinner {
186
+ animation-duration: 2s;
187
+ }
188
+ }
189
+
190
+ /* =====================================================================
191
+ * Dropdown menu
192
+ * =================================================================== */
193
+ .menu {
194
+ position: absolute;
195
+ top: calc(100% + 6px);
196
+ left: 0;
197
+ right: 0;
198
+ z-index: 100;
199
+
200
+ background: $color-surface-elevated;
201
+ border: 1px solid $color-border;
202
+ border-radius: $radius-md;
203
+ overflow: hidden;
204
+
205
+ box-shadow:
206
+ 0 16px 32px -12px rgb(0 0 0 / 0.35),
207
+ 0 6px 12px -4px rgb(0 0 0 / 0.18);
208
+
209
+ transform-origin: top center;
210
+ animation: evoAcMenuOpen 160ms cubic-bezier(0.16, 1, 0.3, 1);
211
+ }
212
+
213
+ @keyframes evoAcMenuOpen {
214
+ from {
215
+ opacity: 0;
216
+ transform: translateY(-6px) scale(0.97);
217
+ }
218
+ to {
219
+ opacity: 1;
220
+ transform: translateY(0) scale(1);
221
+ }
222
+ }
223
+
224
+ @media (prefers-reduced-motion: reduce) {
225
+ .menu {
226
+ animation: none;
227
+ }
228
+ }
229
+
230
+ /* ---------------- Section header (Recents / Smart Recovery) -------- */
231
+ .sectionHeader {
232
+ display: flex;
233
+ align-items: center;
234
+ gap: 0.4rem;
235
+ padding: 0.5rem 0.75rem 0.35rem;
236
+
237
+ font-size: $text-xs;
238
+ font-weight: 600;
239
+ letter-spacing: 0.02em;
240
+ text-transform: uppercase;
241
+ color: $color-text-muted;
242
+
243
+ svg {
244
+ flex-shrink: 0;
245
+ }
246
+ }
247
+
248
+ /* ---------------- Smart Recovery banner ---------------- */
249
+ .recoveryBox {
250
+ .sectionHeader {
251
+ color: $evo-primary-color;
252
+ text-transform: none;
253
+ letter-spacing: -0.005em;
254
+ font-size: $text-sm;
255
+ font-weight: 500;
256
+ background: color-mix(in srgb, $evo-primary-color 8%, transparent);
257
+ border-bottom: 1px solid $color-border-subtle;
258
+ }
259
+ }
260
+
261
+ /* ---------------- Options list ---------------- */
262
+ .list {
263
+ max-height: 280px;
264
+ overflow-y: auto;
265
+ padding: 0.3rem;
266
+
267
+ scrollbar-width: thin;
268
+ scrollbar-color: $color-border-strong transparent;
269
+
270
+ &::-webkit-scrollbar {
271
+ width: 8px;
272
+ }
273
+ &::-webkit-scrollbar-track {
274
+ background: transparent;
275
+ }
276
+ &::-webkit-scrollbar-thumb {
277
+ background: $color-border-strong;
278
+ border-radius: 4px;
279
+ background-clip: padding-box;
280
+ border: 2px solid transparent;
281
+ }
282
+ &::-webkit-scrollbar-thumb:hover {
283
+ background: $color-text-muted;
284
+ background-clip: padding-box;
285
+ border: 2px solid transparent;
286
+ }
287
+ }
288
+
289
+ .empty,
290
+ .statusRow {
291
+ padding: 1.25rem 0.75rem;
292
+ text-align: center;
293
+ color: $color-text-muted;
294
+ font-size: $text-sm;
295
+ }
296
+
297
+ .statusRow {
298
+ display: flex;
299
+ align-items: center;
300
+ justify-content: center;
301
+ gap: 0.5rem;
302
+ }
303
+
304
+ /* ---------------- Option row ---------------- */
305
+ .option {
306
+ position: relative;
307
+ display: flex;
308
+ align-items: center;
309
+ gap: 0.625rem;
310
+ width: 100%;
311
+ padding: 0.5rem 0.625rem;
312
+ min-height: 38px;
313
+
314
+ background: transparent;
315
+ border: none;
316
+ border-radius: 6px;
317
+ color: $color-text-primary;
318
+ font-family: $font-sans;
319
+ font-size: $text-sm;
320
+ text-align: left;
321
+ cursor: pointer;
322
+ transition: background-color 120ms ease, color 120ms ease;
323
+
324
+ & + & {
325
+ margin-top: 1px;
326
+ }
327
+ }
328
+
329
+ .optionActive:not(.optionDisabled) {
330
+ background: color-mix(in srgb, $evo-primary-color 12%, transparent);
331
+ }
332
+
333
+ .optionSelected {
334
+ color: $evo-primary-color;
335
+
336
+ .optionTitle {
337
+ font-weight: 600;
338
+ }
339
+ }
340
+
341
+ .optionDisabled {
342
+ opacity: 0.4;
343
+ cursor: not-allowed;
344
+ }
345
+
346
+ .optionRecovery {
347
+ margin: 0.15rem 0;
348
+ }
349
+
350
+ .optionIcon {
351
+ display: inline-flex;
352
+ align-items: center;
353
+ justify-content: center;
354
+ flex-shrink: 0;
355
+ width: 1.1rem;
356
+ height: 1.1rem;
357
+ color: $color-text-secondary;
358
+ font-size: 1em;
359
+ }
360
+
361
+ .optionLabel {
362
+ display: flex;
363
+ flex-direction: column;
364
+ flex: 1;
365
+ min-width: 0;
366
+ gap: 1px;
367
+ }
368
+
369
+ .optionTitle {
370
+ overflow: hidden;
371
+ text-overflow: ellipsis;
372
+ white-space: nowrap;
373
+ font-weight: 500;
374
+ }
375
+
376
+ .optionDesc {
377
+ font-size: $text-xs;
378
+ color: $color-text-muted;
379
+ font-weight: 400;
380
+ overflow: hidden;
381
+ text-overflow: ellipsis;
382
+ white-space: nowrap;
383
+ }
384
+
385
+ /* ---------------- Matched-substring highlight ---------------- */
386
+ .mark {
387
+ background: transparent;
388
+ color: $evo-primary-color;
389
+ font-weight: 700;
390
+ padding: 0;
391
+ }
392
+
393
+ .check {
394
+ display: inline-flex;
395
+ align-items: center;
396
+ justify-content: center;
397
+ width: 16px;
398
+ height: 16px;
399
+ flex-shrink: 0;
400
+ color: $evo-primary-color;
401
+ }
402
+
403
+ /* ---------------- Footer texts ---------------- */
404
+ .errorText {
405
+ font-size: $text-xs;
406
+ color: $evo-danger-color;
407
+ margin: 0;
408
+ line-height: 1.4;
409
+ }
410
+
411
+ .helperText {
412
+ font-size: $text-xs;
413
+ color: $color-text-muted;
414
+ margin: 0;
415
+ line-height: 1.4;
416
+ }