@tomny-dev/uzi 0.1.0
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/README.md +37 -0
- package/dist/index.cjs +715 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +813 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +228 -0
- package/dist/index.d.ts +228 -0
- package/dist/index.js +692 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,813 @@
|
|
|
1
|
+
/* src/components/button/button.module.css */
|
|
2
|
+
.button {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
border: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
transition:
|
|
14
|
+
opacity 0.15s,
|
|
15
|
+
border-color 0.15s,
|
|
16
|
+
color 0.15s,
|
|
17
|
+
background 0.15s;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
.button:disabled {
|
|
21
|
+
opacity: 0.45;
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
|
+
.size-sm {
|
|
25
|
+
font-size: 0.82rem;
|
|
26
|
+
padding: 6px 14px;
|
|
27
|
+
}
|
|
28
|
+
.size-md {
|
|
29
|
+
font-size: 0.95rem;
|
|
30
|
+
padding: 10px 22px;
|
|
31
|
+
}
|
|
32
|
+
.size-lg {
|
|
33
|
+
font-size: 1rem;
|
|
34
|
+
padding: 12px 28px;
|
|
35
|
+
}
|
|
36
|
+
.variant-primary {
|
|
37
|
+
background: var(--ts-btn-primary-bg, var(--accent, #22d3ee));
|
|
38
|
+
color: var(--ts-btn-primary-text, #0f172a);
|
|
39
|
+
border: 1px solid transparent;
|
|
40
|
+
}
|
|
41
|
+
.variant-primary:hover:not(:disabled) {
|
|
42
|
+
opacity: 0.88;
|
|
43
|
+
}
|
|
44
|
+
.variant-secondary {
|
|
45
|
+
background: var(--ts-btn-secondary-bg, rgba(255, 255, 255, 0.06));
|
|
46
|
+
color: var(--ts-btn-secondary-text, var(--text, #e2e8f0));
|
|
47
|
+
border: 1px solid var(--ts-btn-secondary-border, var(--border, #1f2937));
|
|
48
|
+
}
|
|
49
|
+
.variant-secondary:hover:not(:disabled) {
|
|
50
|
+
background: var(--ts-btn-secondary-hover-bg, rgba(255, 255, 255, 0.1));
|
|
51
|
+
}
|
|
52
|
+
.variant-outline {
|
|
53
|
+
background: transparent;
|
|
54
|
+
color: var(--ts-btn-outline-text, var(--text, #e2e8f0));
|
|
55
|
+
border: 1px solid var(--ts-btn-outline-border, var(--border, #1f2937));
|
|
56
|
+
}
|
|
57
|
+
.variant-outline:hover:not(:disabled) {
|
|
58
|
+
border-color: var(--ts-btn-outline-hover-border, var(--accent, #22d3ee));
|
|
59
|
+
color: var(--ts-btn-outline-hover-text, var(--accent, #22d3ee));
|
|
60
|
+
}
|
|
61
|
+
.variant-ghost {
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: var(--ts-btn-ghost-text, var(--muted, #94a3b8));
|
|
64
|
+
border: 1px solid transparent;
|
|
65
|
+
padding-left: 8px;
|
|
66
|
+
padding-right: 8px;
|
|
67
|
+
}
|
|
68
|
+
.variant-ghost:hover:not(:disabled) {
|
|
69
|
+
background: rgba(255, 255, 255, 0.05);
|
|
70
|
+
color: var(--text, #e2e8f0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* src/components/card/card.module.css */
|
|
74
|
+
.card {
|
|
75
|
+
position: relative;
|
|
76
|
+
overflow: visible;
|
|
77
|
+
border-radius: var(--ts-card-radius, 12px);
|
|
78
|
+
border: 1px solid var(--ts-card-border, var(--border, #1f2937));
|
|
79
|
+
background: var(--ts-card-bg, var(--panel, #111827));
|
|
80
|
+
color: var(--ts-card-fg, var(--text, #e2e8f0));
|
|
81
|
+
box-shadow: var(--ts-card-shadow, 0 16px 36px rgba(0, 0, 0, 0.28));
|
|
82
|
+
padding: var(--ts-card-padding, 16px);
|
|
83
|
+
transition:
|
|
84
|
+
transform 140ms ease,
|
|
85
|
+
box-shadow 140ms ease,
|
|
86
|
+
border-color 140ms ease,
|
|
87
|
+
background-color 140ms ease;
|
|
88
|
+
}
|
|
89
|
+
.tone-default {
|
|
90
|
+
--ts-card-bg: var(--panel, #111827);
|
|
91
|
+
--ts-card-border: var(--border, #1f2937);
|
|
92
|
+
--ts-card-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
|
|
93
|
+
}
|
|
94
|
+
.tone-muted {
|
|
95
|
+
--ts-card-bg: var(--ts-card-muted-bg, rgba(255, 255, 255, 0.02));
|
|
96
|
+
--ts-card-border: var(--ts-card-muted-border, rgba(255, 255, 255, 0.06));
|
|
97
|
+
--ts-card-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
|
|
98
|
+
}
|
|
99
|
+
.tone-contrast {
|
|
100
|
+
--ts-card-bg: var(--ts-card-contrast-bg, #0b1224);
|
|
101
|
+
--ts-card-border: var(--ts-card-contrast-border, rgba(255, 255, 255, 0.1));
|
|
102
|
+
--ts-card-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
|
|
103
|
+
}
|
|
104
|
+
.interactive {
|
|
105
|
+
cursor: default;
|
|
106
|
+
}
|
|
107
|
+
.interactive:hover {
|
|
108
|
+
transform: translateY(-1px);
|
|
109
|
+
box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
|
|
110
|
+
border-color: var(--ts-card-hover-border, rgba(34, 211, 238, 0.4));
|
|
111
|
+
}
|
|
112
|
+
.interactive:focus-within {
|
|
113
|
+
outline: 2px solid var(--ts-card-hover-border, rgba(34, 211, 238, 0.45));
|
|
114
|
+
outline-offset: 2px;
|
|
115
|
+
}
|
|
116
|
+
.padding-none {
|
|
117
|
+
--ts-card-padding: 0;
|
|
118
|
+
}
|
|
119
|
+
.padding-sm {
|
|
120
|
+
--ts-card-padding: 10px;
|
|
121
|
+
}
|
|
122
|
+
.padding-md {
|
|
123
|
+
--ts-card-padding: 16px;
|
|
124
|
+
}
|
|
125
|
+
.padding-lg {
|
|
126
|
+
--ts-card-padding: 20px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* src/components/pill/pill.module.css */
|
|
130
|
+
.pill {
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 6px;
|
|
134
|
+
padding: 4px 10px;
|
|
135
|
+
border-radius: 999px;
|
|
136
|
+
border: 1px solid var(--ts-pill-border, var(--border, #1f2937));
|
|
137
|
+
background: var(--ts-pill-bg, rgba(255, 255, 255, 0.04));
|
|
138
|
+
color: var(--ts-pill-fg, var(--muted, #94a3b8));
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
font-weight: 700;
|
|
141
|
+
letter-spacing: 0.05em;
|
|
142
|
+
text-transform: uppercase;
|
|
143
|
+
line-height: 1.2;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
}
|
|
146
|
+
.size-sm {
|
|
147
|
+
padding: 3px 8px;
|
|
148
|
+
font-size: 11px;
|
|
149
|
+
}
|
|
150
|
+
.size-md {
|
|
151
|
+
padding: 4px 10px;
|
|
152
|
+
}
|
|
153
|
+
.tone-neutral {
|
|
154
|
+
background: var(--ts-pill-bg, rgba(255, 255, 255, 0.04));
|
|
155
|
+
border-color: var(--ts-pill-border, var(--border, #1f2937));
|
|
156
|
+
color: var(--ts-pill-fg, var(--muted, #94a3b8));
|
|
157
|
+
}
|
|
158
|
+
.tone-success {
|
|
159
|
+
color: #22c55e;
|
|
160
|
+
border-color: rgba(34, 197, 94, 0.45);
|
|
161
|
+
background: rgba(34, 197, 94, 0.12);
|
|
162
|
+
}
|
|
163
|
+
.tone-warning {
|
|
164
|
+
color: #f59e0b;
|
|
165
|
+
border-color: rgba(245, 158, 11, 0.45);
|
|
166
|
+
background: rgba(245, 158, 11, 0.12);
|
|
167
|
+
}
|
|
168
|
+
.tone-info {
|
|
169
|
+
color: #22d3ee;
|
|
170
|
+
border-color: rgba(34, 211, 238, 0.5);
|
|
171
|
+
background: rgba(34, 211, 238, 0.12);
|
|
172
|
+
}
|
|
173
|
+
.tone-danger {
|
|
174
|
+
color: #f87171;
|
|
175
|
+
border-color: rgba(248, 113, 113, 0.45);
|
|
176
|
+
background: rgba(248, 113, 113, 0.12);
|
|
177
|
+
}
|
|
178
|
+
.icon {
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
width: 12px;
|
|
183
|
+
height: 12px;
|
|
184
|
+
}
|
|
185
|
+
.content {
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: 4px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* src/components/modal/modal.module.css */
|
|
192
|
+
.backdrop {
|
|
193
|
+
position: fixed;
|
|
194
|
+
inset: 0;
|
|
195
|
+
background: rgba(0, 0, 0, 0.55);
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
padding: 16px;
|
|
200
|
+
z-index: 100;
|
|
201
|
+
}
|
|
202
|
+
.modal {
|
|
203
|
+
background: #0f172a;
|
|
204
|
+
border: 1px solid var(--border, #1f2937);
|
|
205
|
+
border-radius: 14px;
|
|
206
|
+
padding: 24px;
|
|
207
|
+
width: min(500px, 100%);
|
|
208
|
+
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-direction: column;
|
|
211
|
+
gap: 0;
|
|
212
|
+
}
|
|
213
|
+
.size-sm {
|
|
214
|
+
width: min(380px, 100%);
|
|
215
|
+
}
|
|
216
|
+
.size-md {
|
|
217
|
+
width: min(500px, 100%);
|
|
218
|
+
}
|
|
219
|
+
.size-lg {
|
|
220
|
+
width: min(640px, 100%);
|
|
221
|
+
}
|
|
222
|
+
.header {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: flex-start;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
gap: 12px;
|
|
227
|
+
margin-bottom: 16px;
|
|
228
|
+
}
|
|
229
|
+
.titles {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
gap: 3px;
|
|
233
|
+
}
|
|
234
|
+
.title {
|
|
235
|
+
font-weight: 700;
|
|
236
|
+
font-size: 16px;
|
|
237
|
+
color: var(--text, #e2e8f0);
|
|
238
|
+
line-height: 1.3;
|
|
239
|
+
}
|
|
240
|
+
.subtitle {
|
|
241
|
+
font-size: 13px;
|
|
242
|
+
color: var(--muted, #94a3b8);
|
|
243
|
+
line-height: 1.4;
|
|
244
|
+
}
|
|
245
|
+
.closeButton {
|
|
246
|
+
display: inline-flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
justify-content: center;
|
|
249
|
+
width: 28px;
|
|
250
|
+
height: 28px;
|
|
251
|
+
flex-shrink: 0;
|
|
252
|
+
background: transparent;
|
|
253
|
+
border: 1px solid transparent;
|
|
254
|
+
border-radius: 6px;
|
|
255
|
+
color: var(--muted, #94a3b8);
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
transition: background 0.12s, color 0.12s;
|
|
258
|
+
padding: 0;
|
|
259
|
+
}
|
|
260
|
+
.closeButton:hover {
|
|
261
|
+
background: rgba(255, 255, 255, 0.07);
|
|
262
|
+
color: var(--text, #e2e8f0);
|
|
263
|
+
}
|
|
264
|
+
.body {
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
gap: 12px;
|
|
268
|
+
}
|
|
269
|
+
.footer {
|
|
270
|
+
display: flex;
|
|
271
|
+
gap: 8px;
|
|
272
|
+
margin-top: 20px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* src/components/toast/toast.module.css */
|
|
276
|
+
.stack {
|
|
277
|
+
position: fixed;
|
|
278
|
+
z-index: 2147483000;
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
gap: 10px;
|
|
282
|
+
pointer-events: none;
|
|
283
|
+
}
|
|
284
|
+
.topRight {
|
|
285
|
+
top: 16px;
|
|
286
|
+
right: 16px;
|
|
287
|
+
align-items: flex-end;
|
|
288
|
+
}
|
|
289
|
+
.topLeft {
|
|
290
|
+
top: 16px;
|
|
291
|
+
left: 16px;
|
|
292
|
+
align-items: flex-start;
|
|
293
|
+
}
|
|
294
|
+
.topCenter {
|
|
295
|
+
top: 16px;
|
|
296
|
+
left: 50%;
|
|
297
|
+
transform: translateX(-50%);
|
|
298
|
+
align-items: center;
|
|
299
|
+
}
|
|
300
|
+
.bottomRight {
|
|
301
|
+
bottom: 16px;
|
|
302
|
+
right: 16px;
|
|
303
|
+
align-items: flex-end;
|
|
304
|
+
}
|
|
305
|
+
.bottomLeft {
|
|
306
|
+
bottom: 16px;
|
|
307
|
+
left: 16px;
|
|
308
|
+
align-items: flex-start;
|
|
309
|
+
}
|
|
310
|
+
.bottomCenter {
|
|
311
|
+
bottom: 16px;
|
|
312
|
+
left: 50%;
|
|
313
|
+
transform: translateX(-50%);
|
|
314
|
+
align-items: center;
|
|
315
|
+
}
|
|
316
|
+
.toast {
|
|
317
|
+
pointer-events: auto;
|
|
318
|
+
display: flex;
|
|
319
|
+
align-items: flex-start;
|
|
320
|
+
gap: 10px;
|
|
321
|
+
min-width: 280px;
|
|
322
|
+
max-width: min(420px, calc(100vw - 32px));
|
|
323
|
+
padding: 12px 14px;
|
|
324
|
+
border-radius: 10px;
|
|
325
|
+
border: 1px solid var(--toast-border, #1f2937);
|
|
326
|
+
background: var(--toast-bg, #111827);
|
|
327
|
+
color: var(--toast-text, #e2e8f0);
|
|
328
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
|
|
329
|
+
animation: toastSlideIn 180ms ease-out;
|
|
330
|
+
}
|
|
331
|
+
.toast.exit {
|
|
332
|
+
animation: toastSlideOut 160ms ease-in forwards;
|
|
333
|
+
}
|
|
334
|
+
.icon {
|
|
335
|
+
width: 18px;
|
|
336
|
+
height: 18px;
|
|
337
|
+
flex-shrink: 0;
|
|
338
|
+
}
|
|
339
|
+
.body {
|
|
340
|
+
flex: 1;
|
|
341
|
+
min-width: 0;
|
|
342
|
+
display: grid;
|
|
343
|
+
gap: 6px;
|
|
344
|
+
}
|
|
345
|
+
.message {
|
|
346
|
+
word-break: break-word;
|
|
347
|
+
font-size: 14px;
|
|
348
|
+
line-height: 1.4;
|
|
349
|
+
}
|
|
350
|
+
.actions {
|
|
351
|
+
display: flex;
|
|
352
|
+
gap: 6px;
|
|
353
|
+
flex-wrap: wrap;
|
|
354
|
+
}
|
|
355
|
+
.actionButton {
|
|
356
|
+
padding: 5px 10px;
|
|
357
|
+
font-size: 12px;
|
|
358
|
+
font-weight: 600;
|
|
359
|
+
border-radius: 6px;
|
|
360
|
+
border: 1px solid var(--toast-action-border, rgba(0, 0, 0, 0.2));
|
|
361
|
+
background: var(--toast-action-bg, rgba(0, 0, 0, 0.1));
|
|
362
|
+
color: var(--toast-text, #e2e8f0);
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
transition: background 120ms ease;
|
|
365
|
+
}
|
|
366
|
+
.actionButton:hover {
|
|
367
|
+
background: var(--toast-button-bg, rgba(0, 0, 0, 0.15));
|
|
368
|
+
}
|
|
369
|
+
.closeButton {
|
|
370
|
+
flex-shrink: 0;
|
|
371
|
+
display: flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
justify-content: center;
|
|
374
|
+
width: 20px;
|
|
375
|
+
height: 20px;
|
|
376
|
+
padding: 0;
|
|
377
|
+
margin: -2px -4px -2px 0;
|
|
378
|
+
border: none;
|
|
379
|
+
border-radius: 4px;
|
|
380
|
+
background: transparent;
|
|
381
|
+
color: var(--toast-text, #e2e8f0);
|
|
382
|
+
opacity: 0.6;
|
|
383
|
+
cursor: pointer;
|
|
384
|
+
transition: opacity 120ms ease, background 120ms ease;
|
|
385
|
+
}
|
|
386
|
+
.closeButton:hover {
|
|
387
|
+
opacity: 1;
|
|
388
|
+
background: var(--toast-button-bg, rgba(0, 0, 0, 0.1));
|
|
389
|
+
}
|
|
390
|
+
@keyframes toastSlideIn {
|
|
391
|
+
from {
|
|
392
|
+
opacity: 0;
|
|
393
|
+
transform: translateY(-8px);
|
|
394
|
+
}
|
|
395
|
+
to {
|
|
396
|
+
opacity: 1;
|
|
397
|
+
transform: translateY(0);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
@keyframes toastSlideOut {
|
|
401
|
+
from {
|
|
402
|
+
opacity: 1;
|
|
403
|
+
transform: translateY(0);
|
|
404
|
+
}
|
|
405
|
+
to {
|
|
406
|
+
opacity: 0;
|
|
407
|
+
transform: translateY(-6px);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* src/components/dropdown/dropdown.module.css */
|
|
412
|
+
.wrapper {
|
|
413
|
+
position: relative;
|
|
414
|
+
display: inline-block;
|
|
415
|
+
}
|
|
416
|
+
.trigger {
|
|
417
|
+
display: flex;
|
|
418
|
+
align-items: center;
|
|
419
|
+
justify-content: space-between;
|
|
420
|
+
gap: 8px;
|
|
421
|
+
padding: 6px 10px 6px 14px;
|
|
422
|
+
background: var(--ts-dropdown-bg, var(--panel, #111827));
|
|
423
|
+
border: 1px solid var(--ts-dropdown-border, var(--border, #1f2937));
|
|
424
|
+
border-radius: 8px;
|
|
425
|
+
color: var(--ts-dropdown-text, var(--text, #e2e8f0));
|
|
426
|
+
font-size: 0.85rem;
|
|
427
|
+
font-weight: 500;
|
|
428
|
+
cursor: pointer;
|
|
429
|
+
white-space: nowrap;
|
|
430
|
+
transition: border-color 0.15s;
|
|
431
|
+
user-select: none;
|
|
432
|
+
}
|
|
433
|
+
.trigger:hover {
|
|
434
|
+
border-color: var(--ts-dropdown-accent, var(--accent, #22d3ee));
|
|
435
|
+
}
|
|
436
|
+
.trigger-active {
|
|
437
|
+
border-color: var(--ts-dropdown-accent, var(--accent, #22d3ee));
|
|
438
|
+
color: var(--ts-dropdown-accent, var(--accent, #22d3ee));
|
|
439
|
+
}
|
|
440
|
+
.chevron {
|
|
441
|
+
width: 10px;
|
|
442
|
+
height: 10px;
|
|
443
|
+
display: flex;
|
|
444
|
+
align-items: center;
|
|
445
|
+
justify-content: center;
|
|
446
|
+
transition: transform 0.15s;
|
|
447
|
+
color: var(--muted, #94a3b8);
|
|
448
|
+
flex-shrink: 0;
|
|
449
|
+
}
|
|
450
|
+
.chevron-open {
|
|
451
|
+
transform: rotate(180deg);
|
|
452
|
+
}
|
|
453
|
+
.menu {
|
|
454
|
+
position: absolute;
|
|
455
|
+
top: calc(100% + 6px);
|
|
456
|
+
left: 0;
|
|
457
|
+
min-width: 100%;
|
|
458
|
+
background: var(--ts-dropdown-bg, var(--panel, #111827));
|
|
459
|
+
border: 1px solid var(--ts-dropdown-border, var(--border, #1f2937));
|
|
460
|
+
border-radius: 10px;
|
|
461
|
+
padding: 4px;
|
|
462
|
+
z-index: 50;
|
|
463
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
464
|
+
animation: dropdownFadeIn 0.1s ease;
|
|
465
|
+
}
|
|
466
|
+
@keyframes dropdownFadeIn {
|
|
467
|
+
from {
|
|
468
|
+
opacity: 0;
|
|
469
|
+
transform: translateY(-4px);
|
|
470
|
+
}
|
|
471
|
+
to {
|
|
472
|
+
opacity: 1;
|
|
473
|
+
transform: translateY(0);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
.option {
|
|
477
|
+
display: block;
|
|
478
|
+
width: 100%;
|
|
479
|
+
padding: 8px 12px;
|
|
480
|
+
border-radius: 6px;
|
|
481
|
+
font-size: 0.85rem;
|
|
482
|
+
font-weight: 500;
|
|
483
|
+
color: var(--muted, #94a3b8);
|
|
484
|
+
background: none;
|
|
485
|
+
border: none;
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
text-align: left;
|
|
488
|
+
white-space: nowrap;
|
|
489
|
+
transition: background 0.1s, color 0.1s;
|
|
490
|
+
}
|
|
491
|
+
.option:hover {
|
|
492
|
+
background: rgba(255, 255, 255, 0.05);
|
|
493
|
+
color: var(--ts-dropdown-text, var(--text, #e2e8f0));
|
|
494
|
+
}
|
|
495
|
+
.option-selected {
|
|
496
|
+
color: var(--ts-dropdown-accent, var(--accent, #22d3ee));
|
|
497
|
+
background: rgba(34, 211, 238, 0.08);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/* src/components/app-shell/app-shell.module.css */
|
|
501
|
+
.shell {
|
|
502
|
+
display: grid;
|
|
503
|
+
grid-template-rows: calc(var(--app-shell-topbar-height, 64px) + env(safe-area-inset-top)) 1fr;
|
|
504
|
+
grid-template-columns: var(--app-shell-sidebar-width, 240px) 1fr;
|
|
505
|
+
min-height: 100vh;
|
|
506
|
+
min-height: 100dvh;
|
|
507
|
+
transition: grid-template-columns 200ms ease;
|
|
508
|
+
}
|
|
509
|
+
.shell.sidebarOpen {
|
|
510
|
+
grid-template-columns: var(--app-shell-sidebar-width, 240px) 1fr;
|
|
511
|
+
}
|
|
512
|
+
.shell.sidebarCollapsed {
|
|
513
|
+
grid-template-columns: 0 1fr;
|
|
514
|
+
}
|
|
515
|
+
.topbar {
|
|
516
|
+
grid-column: 1 / -1;
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
justify-content: space-between;
|
|
520
|
+
height: calc(var(--app-shell-topbar-height, 64px) + env(safe-area-inset-top));
|
|
521
|
+
padding: env(safe-area-inset-top) 16px 0 16px;
|
|
522
|
+
border-bottom: 1px solid var(--border);
|
|
523
|
+
background: rgba(17, 24, 39, 0.8);
|
|
524
|
+
backdrop-filter: blur(8px);
|
|
525
|
+
position: sticky;
|
|
526
|
+
top: 0;
|
|
527
|
+
z-index: 20;
|
|
528
|
+
gap: 12px;
|
|
529
|
+
}
|
|
530
|
+
.topbarLeft {
|
|
531
|
+
display: flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
gap: 12px;
|
|
534
|
+
flex: 1;
|
|
535
|
+
min-width: 0;
|
|
536
|
+
}
|
|
537
|
+
.topbarStart {
|
|
538
|
+
flex: 1;
|
|
539
|
+
min-width: 0;
|
|
540
|
+
display: flex;
|
|
541
|
+
align-items: center;
|
|
542
|
+
}
|
|
543
|
+
.topbarRight {
|
|
544
|
+
display: flex;
|
|
545
|
+
align-items: center;
|
|
546
|
+
gap: 8px;
|
|
547
|
+
min-width: 0;
|
|
548
|
+
flex-shrink: 0;
|
|
549
|
+
}
|
|
550
|
+
.topbarRight > * {
|
|
551
|
+
min-width: 0;
|
|
552
|
+
}
|
|
553
|
+
.brand {
|
|
554
|
+
font-size: 26px;
|
|
555
|
+
color: var(--text);
|
|
556
|
+
text-decoration: none;
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
min-width: 0;
|
|
560
|
+
overflow: hidden;
|
|
561
|
+
text-overflow: ellipsis;
|
|
562
|
+
white-space: nowrap;
|
|
563
|
+
}
|
|
564
|
+
.hamburger {
|
|
565
|
+
background: transparent;
|
|
566
|
+
border: none;
|
|
567
|
+
padding: 0;
|
|
568
|
+
width: 40px;
|
|
569
|
+
height: 40px;
|
|
570
|
+
border-radius: 8px;
|
|
571
|
+
display: inline-flex;
|
|
572
|
+
align-items: center;
|
|
573
|
+
justify-content: center;
|
|
574
|
+
color: var(--text);
|
|
575
|
+
cursor: pointer;
|
|
576
|
+
transition: background 120ms ease;
|
|
577
|
+
}
|
|
578
|
+
.hamburger:hover {
|
|
579
|
+
background: rgba(255, 255, 255, 0.06);
|
|
580
|
+
}
|
|
581
|
+
.hamburger:focus,
|
|
582
|
+
.hamburger:focus-visible {
|
|
583
|
+
outline: none;
|
|
584
|
+
box-shadow: none;
|
|
585
|
+
}
|
|
586
|
+
.hamburger svg {
|
|
587
|
+
width: 28px;
|
|
588
|
+
height: 28px;
|
|
589
|
+
}
|
|
590
|
+
.sidebar {
|
|
591
|
+
border-right: 1px solid var(--border);
|
|
592
|
+
background: #152036;
|
|
593
|
+
padding: 24px;
|
|
594
|
+
transition: transform 200ms ease, opacity 200ms ease;
|
|
595
|
+
}
|
|
596
|
+
.shell.sidebarCollapsed .sidebar {
|
|
597
|
+
transform: translateX(-110%);
|
|
598
|
+
opacity: 0;
|
|
599
|
+
pointer-events: none;
|
|
600
|
+
}
|
|
601
|
+
.main {
|
|
602
|
+
overflow-y: auto;
|
|
603
|
+
padding: 24px;
|
|
604
|
+
padding-bottom: 96px;
|
|
605
|
+
min-height: 0;
|
|
606
|
+
display: flex;
|
|
607
|
+
flex-direction: column;
|
|
608
|
+
gap: 16px;
|
|
609
|
+
align-items: center;
|
|
610
|
+
}
|
|
611
|
+
.main > * {
|
|
612
|
+
width: 100%;
|
|
613
|
+
max-width: 1200px;
|
|
614
|
+
min-width: 0;
|
|
615
|
+
}
|
|
616
|
+
.backdrop {
|
|
617
|
+
display: none;
|
|
618
|
+
}
|
|
619
|
+
@media (max-width: 960px) {
|
|
620
|
+
.backdrop {
|
|
621
|
+
display: block;
|
|
622
|
+
position: fixed;
|
|
623
|
+
inset: 0;
|
|
624
|
+
top: calc(var(--app-shell-topbar-height, 56px) + env(safe-area-inset-top));
|
|
625
|
+
background: rgba(0, 0, 0, 0.5);
|
|
626
|
+
z-index: 14;
|
|
627
|
+
}
|
|
628
|
+
.shell {
|
|
629
|
+
--app-shell-topbar-height: 56px;
|
|
630
|
+
grid-template-columns: 1fr;
|
|
631
|
+
grid-template-rows: calc(var(--app-shell-topbar-height, 56px) + env(safe-area-inset-top)) 1fr;
|
|
632
|
+
}
|
|
633
|
+
.shell.sidebarOpen,
|
|
634
|
+
.shell.sidebarCollapsed {
|
|
635
|
+
grid-template-columns: 1fr;
|
|
636
|
+
}
|
|
637
|
+
.sidebar {
|
|
638
|
+
display: block;
|
|
639
|
+
position: fixed;
|
|
640
|
+
top: calc(var(--app-shell-topbar-height, 56px) + env(safe-area-inset-top));
|
|
641
|
+
left: 0;
|
|
642
|
+
bottom: 0;
|
|
643
|
+
width: var(--app-shell-sidebar-width, 240px);
|
|
644
|
+
max-width: 80vw;
|
|
645
|
+
background: #152036;
|
|
646
|
+
padding: 16px 12px;
|
|
647
|
+
transform: translateX(-105%);
|
|
648
|
+
z-index: 15;
|
|
649
|
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
|
|
650
|
+
}
|
|
651
|
+
.sidebar.open {
|
|
652
|
+
transform: translateX(0);
|
|
653
|
+
}
|
|
654
|
+
.topbar {
|
|
655
|
+
padding-left: max(12px, env(safe-area-inset-left));
|
|
656
|
+
padding-right: max(12px, env(safe-area-inset-right));
|
|
657
|
+
gap: 10px;
|
|
658
|
+
}
|
|
659
|
+
.topbarLeft {
|
|
660
|
+
gap: 10px;
|
|
661
|
+
flex: 1;
|
|
662
|
+
}
|
|
663
|
+
.topbarStart {
|
|
664
|
+
min-width: 0;
|
|
665
|
+
}
|
|
666
|
+
.topbarRight {
|
|
667
|
+
gap: 6px;
|
|
668
|
+
}
|
|
669
|
+
.brand {
|
|
670
|
+
font-size: 24px;
|
|
671
|
+
max-width: 50vw;
|
|
672
|
+
}
|
|
673
|
+
.hamburger {
|
|
674
|
+
width: 40px;
|
|
675
|
+
height: 40px;
|
|
676
|
+
border-radius: 8px;
|
|
677
|
+
}
|
|
678
|
+
.hamburger svg {
|
|
679
|
+
width: 24px;
|
|
680
|
+
height: 24px;
|
|
681
|
+
}
|
|
682
|
+
.main {
|
|
683
|
+
padding: 16px;
|
|
684
|
+
padding-bottom: 96px;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
@media (max-width: 640px) {
|
|
688
|
+
.topbar {
|
|
689
|
+
gap: 8px;
|
|
690
|
+
}
|
|
691
|
+
.brand {
|
|
692
|
+
font-size: 22px;
|
|
693
|
+
max-width: 34vw;
|
|
694
|
+
}
|
|
695
|
+
.topbarRight {
|
|
696
|
+
max-width: 44vw;
|
|
697
|
+
}
|
|
698
|
+
.main {
|
|
699
|
+
padding: 12px 10px;
|
|
700
|
+
padding-bottom: 88px;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
@media (max-width: 480px) {
|
|
704
|
+
.brand {
|
|
705
|
+
font-size: 20px;
|
|
706
|
+
max-width: 30vw;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/* src/components/sidebar-nav/sidebar-nav.module.css */
|
|
711
|
+
.nav {
|
|
712
|
+
display: flex;
|
|
713
|
+
flex-direction: column;
|
|
714
|
+
gap: 8px;
|
|
715
|
+
align-items: stretch;
|
|
716
|
+
}
|
|
717
|
+
.item {
|
|
718
|
+
color: var(--text, #e2e8f0);
|
|
719
|
+
background: transparent;
|
|
720
|
+
border: none;
|
|
721
|
+
box-shadow: none;
|
|
722
|
+
padding: 10px 12px 10px 10px;
|
|
723
|
+
border-radius: 10px;
|
|
724
|
+
text-decoration: none;
|
|
725
|
+
font-size: 14px;
|
|
726
|
+
display: flex;
|
|
727
|
+
align-items: center;
|
|
728
|
+
gap: 6px;
|
|
729
|
+
width: 100%;
|
|
730
|
+
justify-content: flex-start;
|
|
731
|
+
text-align: left;
|
|
732
|
+
box-sizing: border-box;
|
|
733
|
+
white-space: nowrap;
|
|
734
|
+
line-height: 1.2;
|
|
735
|
+
transition: background 120ms ease, color 120ms ease;
|
|
736
|
+
}
|
|
737
|
+
.item:focus,
|
|
738
|
+
.item:focus-visible {
|
|
739
|
+
outline: none;
|
|
740
|
+
box-shadow: none;
|
|
741
|
+
}
|
|
742
|
+
.item:hover {
|
|
743
|
+
background: rgba(29, 43, 70, 0.55);
|
|
744
|
+
}
|
|
745
|
+
.item.active {
|
|
746
|
+
background: rgba(29, 43, 70, 0.85);
|
|
747
|
+
color: var(--text, #e2e8f0);
|
|
748
|
+
font-weight: 700;
|
|
749
|
+
}
|
|
750
|
+
.icon {
|
|
751
|
+
width: 18px;
|
|
752
|
+
height: 18px;
|
|
753
|
+
color: var(--muted, #94a3b8);
|
|
754
|
+
display: inline-flex;
|
|
755
|
+
align-items: center;
|
|
756
|
+
justify-content: center;
|
|
757
|
+
flex: 0 0 18px;
|
|
758
|
+
vertical-align: middle;
|
|
759
|
+
}
|
|
760
|
+
.icon svg {
|
|
761
|
+
width: 18px;
|
|
762
|
+
height: 18px;
|
|
763
|
+
display: block;
|
|
764
|
+
stroke: currentColor;
|
|
765
|
+
}
|
|
766
|
+
.item.active .icon {
|
|
767
|
+
color: var(--accent, #22d3ee);
|
|
768
|
+
}
|
|
769
|
+
.label {
|
|
770
|
+
flex: 1;
|
|
771
|
+
min-width: 0;
|
|
772
|
+
}
|
|
773
|
+
.badge {
|
|
774
|
+
display: inline-flex;
|
|
775
|
+
align-items: center;
|
|
776
|
+
justify-content: center;
|
|
777
|
+
gap: 6px;
|
|
778
|
+
padding: 4px 8px;
|
|
779
|
+
border-radius: 999px;
|
|
780
|
+
border: 1px solid var(--border, #1f2937);
|
|
781
|
+
background: rgba(255, 255, 255, 0.04);
|
|
782
|
+
color: var(--muted, #94a3b8);
|
|
783
|
+
font-size: 11px;
|
|
784
|
+
letter-spacing: 0.04em;
|
|
785
|
+
text-transform: uppercase;
|
|
786
|
+
}
|
|
787
|
+
@media (max-width: 960px) {
|
|
788
|
+
.nav {
|
|
789
|
+
gap: 6px;
|
|
790
|
+
}
|
|
791
|
+
.item {
|
|
792
|
+
padding: 9px 10px 9px 8px;
|
|
793
|
+
border-radius: 9px;
|
|
794
|
+
font-size: 14px;
|
|
795
|
+
gap: 6px;
|
|
796
|
+
}
|
|
797
|
+
.icon {
|
|
798
|
+
width: 16px;
|
|
799
|
+
height: 16px;
|
|
800
|
+
flex: 0 0 16px;
|
|
801
|
+
}
|
|
802
|
+
.icon svg {
|
|
803
|
+
width: 16px;
|
|
804
|
+
height: 16px;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
@media (max-width: 480px) {
|
|
808
|
+
.item {
|
|
809
|
+
padding: 8px 9px 8px 7px;
|
|
810
|
+
font-size: 13px;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
/*# sourceMappingURL=index.css.map */
|