@avento-space/ts-ui 1.2.1 → 1.2.2
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 +123 -213
- package/dist/{form.wc-CwjVsdUu.d.ts → card.wc-pFLgjfwm.d.ts} +78 -1
- package/dist/{chunk-PRZASPFU.js → chunk-ICB6OBEZ.js} +469 -112
- package/dist/chunk-ICB6OBEZ.js.map +1 -0
- package/dist/{chunk-DO3PEBDS.js → chunk-QTANS5ZS.js} +6 -4
- package/dist/chunk-QTANS5ZS.js.map +1 -0
- package/dist/{chunk-42QSY3LJ.js → chunk-RATTHYIP.js} +3 -3
- package/dist/{chunk-42QSY3LJ.js.map → chunk-RATTHYIP.js.map} +1 -1
- package/dist/{chunk-NJAZMTMT.js → chunk-RQZ7KDYP.js} +354 -58
- package/dist/chunk-RQZ7KDYP.js.map +1 -0
- package/dist/chunk-T7QLIHHU.js +3 -0
- package/dist/{chunk-MFONNOJU.js.map → chunk-T7QLIHHU.js.map} +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -3
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/react/index.d.ts +4 -3
- package/dist/react/index.js +19 -4
- package/dist/react/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-DO3PEBDS.js.map +0 -1
- package/dist/chunk-MFONNOJU.js +0 -3
- package/dist/chunk-NJAZMTMT.js.map +0 -1
- package/dist/chunk-PRZASPFU.js.map +0 -1
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
import { effect } from './chunk-Q5RCPPCF.js';
|
|
2
2
|
|
|
3
|
+
// src/core/tokens.ts
|
|
4
|
+
var sheet = new CSSStyleSheet();
|
|
5
|
+
sheet.replaceSync(`
|
|
6
|
+
:host {
|
|
7
|
+
--u-color-primary: #3b82f6;
|
|
8
|
+
--u-color-primary-hover: #2563eb;
|
|
9
|
+
--u-color-primary-text: #2563eb;
|
|
10
|
+
--u-color-danger: #ef4444;
|
|
11
|
+
--u-color-danger-hover: #dc2626;
|
|
12
|
+
--u-color-success: #16a34a;
|
|
13
|
+
--u-color-warning: #d97706;
|
|
14
|
+
--u-color-info: #0284c7;
|
|
15
|
+
--u-color-text: #111827;
|
|
16
|
+
--u-color-text-secondary: #374151;
|
|
17
|
+
--u-color-text-muted: #4b5563;
|
|
18
|
+
--u-color-text-disabled: #6b7280;
|
|
19
|
+
--u-color-border: #9ca3af;
|
|
20
|
+
--u-color-border-light: #d1d5db;
|
|
21
|
+
--u-color-border-lighter: #e5e7eb;
|
|
22
|
+
--u-color-bg: #fff;
|
|
23
|
+
--u-color-bg-muted: #f9fafb;
|
|
24
|
+
--u-color-bg-hover: #f3f4f6;
|
|
25
|
+
--u-color-bg-selected: #eff6ff;
|
|
26
|
+
--u-color-focus: #3b82f6;
|
|
27
|
+
--u-color-overlay: rgba(0,0,0,0.5);
|
|
28
|
+
--u-radius-sm: 4px;
|
|
29
|
+
--u-radius-md: 6px;
|
|
30
|
+
--u-radius-lg: 8px;
|
|
31
|
+
--u-radius-xl: 10px;
|
|
32
|
+
--u-radius-2xl: 12px;
|
|
33
|
+
--u-font-xs: 0.75rem;
|
|
34
|
+
--u-font-sm: 0.875rem;
|
|
35
|
+
--u-font-md: 1rem;
|
|
36
|
+
--u-font-lg: 1.125rem;
|
|
37
|
+
--u-shadow-sm: 0 1px 3px rgba(0,0,0,.05);
|
|
38
|
+
--u-shadow-md: 0 4px 16px rgba(0,0,0,.08);
|
|
39
|
+
--u-shadow-lg: 0 8px 24px rgba(0,0,0,.12);
|
|
40
|
+
--u-shadow-xl: 0 20px 60px rgba(0,0,0,.15);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
*, *::before, *::after {
|
|
45
|
+
animation-duration: 0.01ms !important;
|
|
46
|
+
animation-iteration-count: 1 !important;
|
|
47
|
+
transition-duration: 0.01ms !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
var globalStyles = sheet;
|
|
52
|
+
|
|
3
53
|
// src/core/element.ts
|
|
4
54
|
var nextId = 0;
|
|
5
55
|
var UElement = class extends HTMLElement {
|
|
@@ -8,6 +58,13 @@ var UElement = class extends HTMLElement {
|
|
|
8
58
|
this._cleanups = [];
|
|
9
59
|
this._id = ++nextId;
|
|
10
60
|
this._root = this.attachShadow({ mode: "open" });
|
|
61
|
+
try {
|
|
62
|
+
this._root.adoptedStyleSheets = [globalStyles];
|
|
63
|
+
} catch {
|
|
64
|
+
const style = document.createElement("style");
|
|
65
|
+
style.textContent = ":host {}";
|
|
66
|
+
this._root.appendChild(style);
|
|
67
|
+
}
|
|
11
68
|
}
|
|
12
69
|
connectedCallback() {
|
|
13
70
|
this._mount();
|
|
@@ -45,11 +102,11 @@ button {
|
|
|
45
102
|
align-items: center;
|
|
46
103
|
justify-content: center;
|
|
47
104
|
gap: 6px;
|
|
48
|
-
transition: background-color .15s, opacity .15s;
|
|
105
|
+
transition: background-color .15s, opacity .15s, box-shadow .15s;
|
|
49
106
|
outline: none;
|
|
50
107
|
}
|
|
51
108
|
button:focus-visible {
|
|
52
|
-
box-shadow: 0 0 0 2px
|
|
109
|
+
box-shadow: 0 0 0 2px #3b82f6;
|
|
53
110
|
}
|
|
54
111
|
button:disabled {
|
|
55
112
|
opacity: .5;
|
|
@@ -58,7 +115,7 @@ button:disabled {
|
|
|
58
115
|
.btn-primary {
|
|
59
116
|
background: #3b82f6;
|
|
60
117
|
color: #fff;
|
|
61
|
-
border-color: #
|
|
118
|
+
border-color: #2563eb;
|
|
62
119
|
}
|
|
63
120
|
.btn-primary:hover:not(:disabled) {
|
|
64
121
|
background: #2563eb;
|
|
@@ -66,7 +123,7 @@ button:disabled {
|
|
|
66
123
|
.btn-secondary {
|
|
67
124
|
background: #f3f4f6;
|
|
68
125
|
color: #374151;
|
|
69
|
-
border-color: #
|
|
126
|
+
border-color: #9ca3af;
|
|
70
127
|
}
|
|
71
128
|
.btn-secondary:hover:not(:disabled) {
|
|
72
129
|
background: #e5e7eb;
|
|
@@ -92,7 +149,7 @@ button:disabled {
|
|
|
92
149
|
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
|
|
93
150
|
.btn-link {
|
|
94
151
|
background: transparent;
|
|
95
|
-
color: #
|
|
152
|
+
color: #2563eb;
|
|
96
153
|
border-color: transparent;
|
|
97
154
|
padding: 0;
|
|
98
155
|
height: auto;
|
|
@@ -136,14 +193,14 @@ input {
|
|
|
136
193
|
color: #111827;
|
|
137
194
|
transition: border-color .15s;
|
|
138
195
|
}
|
|
139
|
-
input::placeholder { color: #
|
|
196
|
+
input::placeholder { color: #4b5563; }
|
|
140
197
|
input:focus {
|
|
141
|
-
border-color: #
|
|
198
|
+
border-color: #2563eb;
|
|
142
199
|
box-shadow: 0 0 0 2px rgba(59,130,246,.25);
|
|
143
200
|
}
|
|
144
201
|
input:disabled {
|
|
145
202
|
background: #f9fafb;
|
|
146
|
-
color: #
|
|
203
|
+
color: #4b5563;
|
|
147
204
|
cursor: not-allowed;
|
|
148
205
|
}
|
|
149
206
|
`;
|
|
@@ -168,7 +225,7 @@ ul, ol {
|
|
|
168
225
|
.list-empty {
|
|
169
226
|
padding: 24px;
|
|
170
227
|
text-align: center;
|
|
171
|
-
color: #
|
|
228
|
+
color: #4b5563;
|
|
172
229
|
}
|
|
173
230
|
`;
|
|
174
231
|
|
|
@@ -209,10 +266,10 @@ var textStyles = `
|
|
|
209
266
|
.text-semibold { font-weight: 600; }
|
|
210
267
|
.text-bold { font-weight: 700; }
|
|
211
268
|
.text-default { color: inherit; }
|
|
212
|
-
.text-muted { color: #
|
|
213
|
-
.text-accent { color: #
|
|
269
|
+
.text-muted { color: #4b5563; }
|
|
270
|
+
.text-accent { color: #2563eb; }
|
|
214
271
|
.text-danger { color: #ef4444; }
|
|
215
|
-
.text-success { color: #
|
|
272
|
+
.text-success { color: #16a34a; }
|
|
216
273
|
.text-left { text-align: left; }
|
|
217
274
|
.text-center { text-align: center; }
|
|
218
275
|
.text-right { text-align: right; }
|
|
@@ -298,7 +355,7 @@ var fieldStyles = `
|
|
|
298
355
|
}
|
|
299
356
|
.field-hint {
|
|
300
357
|
font-size: 0.75rem;
|
|
301
|
-
color: #
|
|
358
|
+
color: #4b5563;
|
|
302
359
|
}
|
|
303
360
|
.field-error {
|
|
304
361
|
font-size: 0.75rem;
|
|
@@ -321,6 +378,7 @@ var checkboxStyles = `
|
|
|
321
378
|
gap: 8px;
|
|
322
379
|
cursor: pointer;
|
|
323
380
|
}
|
|
381
|
+
:host(:focus-visible) .checkbox-indicator { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
324
382
|
input {
|
|
325
383
|
position: absolute;
|
|
326
384
|
opacity: 0;
|
|
@@ -334,7 +392,7 @@ input {
|
|
|
334
392
|
justify-content: center;
|
|
335
393
|
width: 18px;
|
|
336
394
|
height: 18px;
|
|
337
|
-
border: 2px solid #
|
|
395
|
+
border: 2px solid #9ca3af;
|
|
338
396
|
border-radius: 4px;
|
|
339
397
|
transition: all .15s;
|
|
340
398
|
flex-shrink: 0;
|
|
@@ -342,7 +400,7 @@ input {
|
|
|
342
400
|
}
|
|
343
401
|
.checkbox-indicator.checked {
|
|
344
402
|
background: #3b82f6;
|
|
345
|
-
border-color: #
|
|
403
|
+
border-color: #2563eb;
|
|
346
404
|
color: #fff;
|
|
347
405
|
}
|
|
348
406
|
.checkbox-indicator svg {
|
|
@@ -391,19 +449,19 @@ var selectStyles = `
|
|
|
391
449
|
cursor: pointer;
|
|
392
450
|
}
|
|
393
451
|
.select:focus {
|
|
394
|
-
border-color: #
|
|
452
|
+
border-color: #2563eb;
|
|
395
453
|
box-shadow: 0 0 0 2px rgba(59,130,246,.25);
|
|
396
454
|
}
|
|
397
455
|
.select:disabled {
|
|
398
456
|
background: #f9fafb;
|
|
399
|
-
color: #
|
|
457
|
+
color: #4b5563;
|
|
400
458
|
cursor: not-allowed;
|
|
401
459
|
}
|
|
402
460
|
.select-arrow {
|
|
403
461
|
position: absolute;
|
|
404
462
|
right: 8px;
|
|
405
463
|
pointer-events: none;
|
|
406
|
-
color: #
|
|
464
|
+
color: #4b5563;
|
|
407
465
|
display: flex;
|
|
408
466
|
align-items: center;
|
|
409
467
|
}
|
|
@@ -427,18 +485,18 @@ var linkStyles = `
|
|
|
427
485
|
outline: 2px solid #3b82f6;
|
|
428
486
|
outline-offset: 2px;
|
|
429
487
|
}
|
|
430
|
-
.link-default { color: #
|
|
488
|
+
.link-default { color: #2563eb; }
|
|
431
489
|
.link-default:hover { color: #2563eb; text-decoration: underline; }
|
|
432
490
|
.link-accent { color: #374151; font-weight: 500; }
|
|
433
491
|
.link-accent:hover { color: #111827; text-decoration: underline; }
|
|
434
|
-
.link-muted { color: #
|
|
492
|
+
.link-muted { color: #4b5563; }
|
|
435
493
|
.link-muted:hover { color: #374151; text-decoration: underline; }
|
|
436
494
|
.link-danger { color: #ef4444; }
|
|
437
495
|
.link-danger:hover { color: #dc2626; text-decoration: underline; }
|
|
438
496
|
.link-underline-always { text-decoration: underline; }
|
|
439
497
|
.link-underline-none:hover { text-decoration: none; }
|
|
440
498
|
.link-disabled {
|
|
441
|
-
color: #
|
|
499
|
+
color: #4b5563 !important;
|
|
442
500
|
cursor: not-allowed;
|
|
443
501
|
pointer-events: none;
|
|
444
502
|
text-decoration: none !important;
|
|
@@ -530,14 +588,14 @@ textarea {
|
|
|
530
588
|
resize: vertical;
|
|
531
589
|
min-height: 60px;
|
|
532
590
|
}
|
|
533
|
-
textarea::placeholder { color: #
|
|
591
|
+
textarea::placeholder { color: #4b5563; }
|
|
534
592
|
textarea:focus {
|
|
535
|
-
border-color: #
|
|
593
|
+
border-color: #2563eb;
|
|
536
594
|
box-shadow: 0 0 0 2px rgba(59,130,246,.25);
|
|
537
595
|
}
|
|
538
596
|
textarea:disabled {
|
|
539
597
|
background: #f9fafb;
|
|
540
|
-
color: #
|
|
598
|
+
color: #4b5563;
|
|
541
599
|
cursor: not-allowed;
|
|
542
600
|
}
|
|
543
601
|
`;
|
|
@@ -558,6 +616,7 @@ var radioStyles = `
|
|
|
558
616
|
font-size: 0.875rem;
|
|
559
617
|
color: #374151;
|
|
560
618
|
}
|
|
619
|
+
:host(:focus-visible) .radio-circle { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
561
620
|
input[type="radio"] {
|
|
562
621
|
position: absolute;
|
|
563
622
|
opacity: 0;
|
|
@@ -571,14 +630,14 @@ input[type="radio"] {
|
|
|
571
630
|
justify-content: center;
|
|
572
631
|
width: 18px;
|
|
573
632
|
height: 18px;
|
|
574
|
-
border: 2px solid #
|
|
633
|
+
border: 2px solid #9ca3af;
|
|
575
634
|
border-radius: 50%;
|
|
576
635
|
transition: all .15s;
|
|
577
636
|
flex-shrink: 0;
|
|
578
637
|
box-sizing: border-box;
|
|
579
638
|
}
|
|
580
639
|
.radio-circle.checked {
|
|
581
|
-
border-color: #
|
|
640
|
+
border-color: #2563eb;
|
|
582
641
|
background: #3b82f6;
|
|
583
642
|
box-shadow: inset 0 0 0 3px #fff;
|
|
584
643
|
}
|
|
@@ -597,6 +656,7 @@ var switchStyles = `
|
|
|
597
656
|
display: inline-flex;
|
|
598
657
|
cursor: pointer;
|
|
599
658
|
}
|
|
659
|
+
:host(:focus-visible) .switch-track { outline: 2px solid #3b82f6; outline-offset: 3px; }
|
|
600
660
|
input {
|
|
601
661
|
position: absolute;
|
|
602
662
|
opacity: 0;
|
|
@@ -607,7 +667,7 @@ input {
|
|
|
607
667
|
.switch-track {
|
|
608
668
|
width: 40px;
|
|
609
669
|
height: 22px;
|
|
610
|
-
background: #
|
|
670
|
+
background: #9ca3af;
|
|
611
671
|
border-radius: 11px;
|
|
612
672
|
position: relative;
|
|
613
673
|
transition: background .2s;
|
|
@@ -674,6 +734,7 @@ var treeStyles = `
|
|
|
674
734
|
cursor: pointer;
|
|
675
735
|
border-radius: 4px;
|
|
676
736
|
}
|
|
737
|
+
.tree-row:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
|
|
677
738
|
.tree-row:hover {
|
|
678
739
|
background: #f3f4f6;
|
|
679
740
|
}
|
|
@@ -681,8 +742,8 @@ var treeStyles = `
|
|
|
681
742
|
width: 16px;
|
|
682
743
|
flex-shrink: 0;
|
|
683
744
|
text-align: center;
|
|
684
|
-
font-size:
|
|
685
|
-
color: #
|
|
745
|
+
font-size: 12px;
|
|
746
|
+
color: #4b5563;
|
|
686
747
|
}
|
|
687
748
|
.tree-toggle-spacer {
|
|
688
749
|
width: 16px;
|
|
@@ -725,13 +786,14 @@ var tableStyles = `
|
|
|
725
786
|
cursor: pointer;
|
|
726
787
|
user-select: none;
|
|
727
788
|
}
|
|
789
|
+
.table th.sortable:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
|
|
728
790
|
.table th.sortable:hover {
|
|
729
791
|
background: #f3f4f6;
|
|
730
792
|
}
|
|
731
793
|
.table td {
|
|
732
794
|
padding: 10px 12px;
|
|
733
|
-
border-bottom: 1px solid #
|
|
734
|
-
color: #
|
|
795
|
+
border-bottom: 1px solid #e5e7eb;
|
|
796
|
+
color: #4b5563;
|
|
735
797
|
}
|
|
736
798
|
.table tr:hover td {
|
|
737
799
|
background: #f9fafb;
|
|
@@ -758,12 +820,13 @@ var breadcrumbStyles = `
|
|
|
758
820
|
display: flex;
|
|
759
821
|
align-items: center;
|
|
760
822
|
gap: 4px;
|
|
761
|
-
color: #
|
|
823
|
+
color: #4b5563;
|
|
762
824
|
}
|
|
763
825
|
.breadcrumb-item a {
|
|
764
|
-
color: #
|
|
826
|
+
color: #2563eb;
|
|
765
827
|
text-decoration: none;
|
|
766
828
|
}
|
|
829
|
+
.breadcrumb-item a:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 2px; }
|
|
767
830
|
.breadcrumb-item a:hover {
|
|
768
831
|
text-decoration: underline;
|
|
769
832
|
}
|
|
@@ -789,37 +852,113 @@ var tabsStyles = `
|
|
|
789
852
|
[part="tablist"] {
|
|
790
853
|
display: flex;
|
|
791
854
|
gap: 0;
|
|
792
|
-
|
|
855
|
+
position: relative;
|
|
856
|
+
outline: none;
|
|
857
|
+
}
|
|
858
|
+
.tablist-underline {
|
|
859
|
+
border-bottom: 1px solid #d1d5db;
|
|
860
|
+
}
|
|
861
|
+
.tablist-underline .tab-indicator {
|
|
862
|
+
position: absolute;
|
|
863
|
+
bottom: 0;
|
|
864
|
+
height: 2px;
|
|
865
|
+
background: #3b82f6;
|
|
866
|
+
transition: left .2s ease, width .2s ease;
|
|
867
|
+
border-radius: 1px;
|
|
868
|
+
}
|
|
869
|
+
.tablist-pills {
|
|
870
|
+
gap: 4px;
|
|
871
|
+
flex-wrap: wrap;
|
|
872
|
+
}
|
|
873
|
+
.tablist-buttons {
|
|
874
|
+
gap: 4px;
|
|
875
|
+
flex-wrap: wrap;
|
|
876
|
+
}
|
|
877
|
+
.tablist-full {
|
|
878
|
+
width: 100%;
|
|
879
|
+
}
|
|
880
|
+
.tablist-full .tab-trigger {
|
|
881
|
+
flex: 1;
|
|
882
|
+
text-align: center;
|
|
793
883
|
}
|
|
794
884
|
.tab-trigger {
|
|
795
885
|
font-family: inherit;
|
|
796
886
|
font-size: 0.875rem;
|
|
797
887
|
padding: 10px 16px;
|
|
798
888
|
border: none;
|
|
799
|
-
border-bottom: 2px solid transparent;
|
|
800
889
|
background: none;
|
|
801
890
|
cursor: pointer;
|
|
802
|
-
color: #
|
|
891
|
+
color: #4b5563;
|
|
803
892
|
transition: all .15s;
|
|
804
893
|
outline: none;
|
|
894
|
+
display: inline-flex;
|
|
895
|
+
align-items: center;
|
|
896
|
+
justify-content: center;
|
|
897
|
+
gap: 8px;
|
|
898
|
+
white-space: nowrap;
|
|
899
|
+
user-select: none;
|
|
900
|
+
position: relative;
|
|
901
|
+
border-radius: 0;
|
|
805
902
|
}
|
|
806
|
-
.tab-trigger:hover {
|
|
903
|
+
.tab-trigger:hover:not(:disabled):not(.active) {
|
|
807
904
|
color: #374151;
|
|
808
905
|
}
|
|
809
906
|
.tab-trigger.active {
|
|
810
|
-
color: #
|
|
811
|
-
border-bottom-color: #3b82f6;
|
|
907
|
+
color: #2563eb;
|
|
812
908
|
font-weight: 500;
|
|
813
909
|
}
|
|
814
910
|
.tab-trigger:focus-visible {
|
|
815
|
-
|
|
816
|
-
|
|
911
|
+
box-shadow: inset 0 0 0 2px #3b82f6;
|
|
912
|
+
}
|
|
913
|
+
.tab-trigger:disabled {
|
|
914
|
+
opacity: .4;
|
|
915
|
+
cursor: not-allowed;
|
|
916
|
+
}
|
|
917
|
+
.tab-trigger-icon {
|
|
918
|
+
display: inline-flex;
|
|
919
|
+
align-items: center;
|
|
920
|
+
justify-content: center;
|
|
921
|
+
width: 16px;
|
|
922
|
+
height: 16px;
|
|
923
|
+
flex-shrink: 0;
|
|
924
|
+
}
|
|
925
|
+
.tab-trigger-icon svg {
|
|
926
|
+
width: 16px;
|
|
927
|
+
height: 16px;
|
|
928
|
+
}
|
|
929
|
+
.tablist-pills .tab-trigger {
|
|
930
|
+
border-radius: 999px;
|
|
931
|
+
padding: 6px 14px;
|
|
932
|
+
}
|
|
933
|
+
.tablist-pills .tab-trigger:hover:not(:disabled) {
|
|
934
|
+
background: #f3f4f6;
|
|
935
|
+
}
|
|
936
|
+
.tablist-pills .tab-trigger.active {
|
|
937
|
+
background: #eff6ff;
|
|
938
|
+
color: #2563eb;
|
|
939
|
+
}
|
|
940
|
+
.tablist-buttons .tab-trigger {
|
|
941
|
+
border-radius: 6px;
|
|
942
|
+
padding: 6px 14px;
|
|
943
|
+
}
|
|
944
|
+
.tablist-buttons .tab-trigger:hover:not(:disabled) {
|
|
945
|
+
background: #f3f4f6;
|
|
946
|
+
}
|
|
947
|
+
.tablist-buttons .tab-trigger.active {
|
|
948
|
+
background: #3b82f6;
|
|
949
|
+
color: #fff;
|
|
817
950
|
}
|
|
818
951
|
[part="tabpanels"] {
|
|
819
952
|
padding: 16px 0;
|
|
953
|
+
outline: none;
|
|
820
954
|
}
|
|
821
955
|
.tab-panel {
|
|
822
956
|
outline: none;
|
|
957
|
+
animation: u-tab-panel-in .15s ease;
|
|
958
|
+
}
|
|
959
|
+
@keyframes u-tab-panel-in {
|
|
960
|
+
from { opacity: 0; }
|
|
961
|
+
to { opacity: 1; }
|
|
823
962
|
}
|
|
824
963
|
`;
|
|
825
964
|
|
|
@@ -917,11 +1056,20 @@ var modalStyles = `
|
|
|
917
1056
|
:host {
|
|
918
1057
|
display: contents;
|
|
919
1058
|
}
|
|
1059
|
+
@keyframes u-modal-fade-in {
|
|
1060
|
+
from { opacity: 0; }
|
|
1061
|
+
to { opacity: 1; }
|
|
1062
|
+
}
|
|
1063
|
+
@keyframes u-modal-scale-in {
|
|
1064
|
+
from { opacity: 0; transform: scale(0.95) translateY(8px); }
|
|
1065
|
+
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
1066
|
+
}
|
|
920
1067
|
.modal-backdrop {
|
|
921
1068
|
position: fixed;
|
|
922
1069
|
inset: 0;
|
|
923
1070
|
background: rgba(0,0,0,0.5);
|
|
924
1071
|
z-index: 9998;
|
|
1072
|
+
animation: u-modal-fade-in .15s ease;
|
|
925
1073
|
}
|
|
926
1074
|
.modal {
|
|
927
1075
|
position: fixed;
|
|
@@ -940,7 +1088,7 @@ var modalStyles = `
|
|
|
940
1088
|
flex-direction: column;
|
|
941
1089
|
max-height: 85vh;
|
|
942
1090
|
width: 100%;
|
|
943
|
-
animation: u-scale-in .2s ease;
|
|
1091
|
+
animation: u-modal-scale-in .2s ease;
|
|
944
1092
|
}
|
|
945
1093
|
.modal-sm { max-width: 400px; }
|
|
946
1094
|
.modal-md { max-width: 500px; }
|
|
@@ -952,26 +1100,46 @@ var modalStyles = `
|
|
|
952
1100
|
align-items: center;
|
|
953
1101
|
justify-content: space-between;
|
|
954
1102
|
padding: 16px 20px;
|
|
955
|
-
border-bottom: 1px solid #
|
|
1103
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1104
|
+
gap: 12px;
|
|
1105
|
+
}
|
|
1106
|
+
.modal-title {
|
|
956
1107
|
font-weight: 600;
|
|
957
1108
|
font-size: 1.125rem;
|
|
1109
|
+
color: #111827;
|
|
1110
|
+
flex: 1;
|
|
1111
|
+
min-width: 0;
|
|
1112
|
+
overflow: hidden;
|
|
1113
|
+
text-overflow: ellipsis;
|
|
1114
|
+
white-space: nowrap;
|
|
958
1115
|
}
|
|
959
1116
|
.modal-close {
|
|
960
1117
|
background: none;
|
|
961
1118
|
border: none;
|
|
962
|
-
font-size: 1.5rem;
|
|
963
1119
|
cursor: pointer;
|
|
964
|
-
color: #
|
|
965
|
-
padding:
|
|
1120
|
+
color: #4b5563;
|
|
1121
|
+
padding: 4px;
|
|
966
1122
|
line-height: 1;
|
|
1123
|
+
border-radius: 6px;
|
|
1124
|
+
display: inline-flex;
|
|
1125
|
+
align-items: center;
|
|
1126
|
+
justify-content: center;
|
|
1127
|
+
flex-shrink: 0;
|
|
1128
|
+
transition: color .15s, background .15s;
|
|
1129
|
+
}
|
|
1130
|
+
.modal-close:hover { color: #374151; background: #f3f4f6; }
|
|
1131
|
+
.modal-close:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
1132
|
+
.modal-close svg {
|
|
1133
|
+
width: 18px;
|
|
1134
|
+
height: 18px;
|
|
967
1135
|
}
|
|
968
|
-
.modal-close:hover { color: #374151; }
|
|
969
1136
|
.modal-content {
|
|
970
1137
|
padding: 20px;
|
|
971
1138
|
overflow-y: auto;
|
|
972
1139
|
flex: 1;
|
|
973
|
-
color: #
|
|
1140
|
+
color: #374151;
|
|
974
1141
|
font-size: 0.875rem;
|
|
1142
|
+
line-height: 1.6;
|
|
975
1143
|
}
|
|
976
1144
|
.modal-footer {
|
|
977
1145
|
display: flex;
|
|
@@ -979,7 +1147,11 @@ var modalStyles = `
|
|
|
979
1147
|
justify-content: flex-end;
|
|
980
1148
|
gap: 8px;
|
|
981
1149
|
padding: 12px 20px;
|
|
982
|
-
border-top: 1px solid #
|
|
1150
|
+
border-top: 1px solid #e5e7eb;
|
|
1151
|
+
}
|
|
1152
|
+
.modal-mobile.modal-wrapper {
|
|
1153
|
+
max-height: calc(100vh - 32px) !important;
|
|
1154
|
+
border-radius: 10px;
|
|
983
1155
|
}
|
|
984
1156
|
`;
|
|
985
1157
|
|
|
@@ -1018,7 +1190,7 @@ var drawerStyles = `
|
|
|
1018
1190
|
align-items: center;
|
|
1019
1191
|
justify-content: space-between;
|
|
1020
1192
|
padding: 16px 20px;
|
|
1021
|
-
border-bottom: 1px solid #
|
|
1193
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1022
1194
|
font-weight: 600;
|
|
1023
1195
|
font-size: 1.125rem;
|
|
1024
1196
|
}
|
|
@@ -1027,13 +1199,14 @@ var drawerStyles = `
|
|
|
1027
1199
|
border: none;
|
|
1028
1200
|
font-size: 1.5rem;
|
|
1029
1201
|
cursor: pointer;
|
|
1030
|
-
color: #
|
|
1202
|
+
color: #4b5563;
|
|
1031
1203
|
padding: 0;
|
|
1032
1204
|
line-height: 1;
|
|
1033
1205
|
}
|
|
1206
|
+
.drawer-close:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
1034
1207
|
.drawer-close:hover { color: #374151; }
|
|
1035
|
-
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; color: #
|
|
1036
|
-
.drawer-footer { padding: 12px 20px; border-top: 1px solid #
|
|
1208
|
+
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; color: #4b5563; font-size: 0.875rem; }
|
|
1209
|
+
.drawer-footer { padding: 12px 20px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; justify-content: flex-end; }
|
|
1037
1210
|
`;
|
|
1038
1211
|
|
|
1039
1212
|
// src/components/styles/popover.ts
|
|
@@ -1052,7 +1225,7 @@ var popoverStyles = `
|
|
|
1052
1225
|
}
|
|
1053
1226
|
.popover-content {
|
|
1054
1227
|
background: #fff;
|
|
1055
|
-
border: 1px solid #
|
|
1228
|
+
border: 1px solid #d1d5db;
|
|
1056
1229
|
border-radius: 10px;
|
|
1057
1230
|
padding: 8px;
|
|
1058
1231
|
font-size: 0.875rem;
|
|
@@ -1069,7 +1242,7 @@ var popoverStyles = `
|
|
|
1069
1242
|
width: 10px;
|
|
1070
1243
|
height: 10px;
|
|
1071
1244
|
background: #fff;
|
|
1072
|
-
border: 1px solid #
|
|
1245
|
+
border: 1px solid #d1d5db;
|
|
1073
1246
|
transform: rotate(45deg);
|
|
1074
1247
|
z-index: -1;
|
|
1075
1248
|
}
|
|
@@ -1092,7 +1265,7 @@ var dropdownStyles = `
|
|
|
1092
1265
|
position: fixed;
|
|
1093
1266
|
z-index: 99999;
|
|
1094
1267
|
background: #fff;
|
|
1095
|
-
border: 1px solid #
|
|
1268
|
+
border: 1px solid #d1d5db;
|
|
1096
1269
|
border-radius: 10px;
|
|
1097
1270
|
box-shadow: 0 8px 24px rgba(0,0,0,.14);
|
|
1098
1271
|
padding: 4px;
|
|
@@ -1126,10 +1299,10 @@ var dropdownStyles = `
|
|
|
1126
1299
|
box-sizing: border-box;
|
|
1127
1300
|
}
|
|
1128
1301
|
.dropdown-item:hover { background: #f3f4f6; }
|
|
1129
|
-
.dropdown-item:focus-visible {
|
|
1130
|
-
.dropdown-item.selected { color: #
|
|
1302
|
+
.dropdown-item:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1303
|
+
.dropdown-item.selected { color: #2563eb; font-weight: 500; background: #eff6ff; }
|
|
1131
1304
|
.dropdown-item:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
1132
|
-
.dropdown-item-active { background: #eff6ff; color: #
|
|
1305
|
+
.dropdown-item-active { background: #eff6ff; color: #2563eb; }
|
|
1133
1306
|
.dropdown-item-icon {
|
|
1134
1307
|
width: 16px;
|
|
1135
1308
|
height: 16px;
|
|
@@ -1137,7 +1310,7 @@ var dropdownStyles = `
|
|
|
1137
1310
|
display: inline-flex;
|
|
1138
1311
|
align-items: center;
|
|
1139
1312
|
justify-content: center;
|
|
1140
|
-
color: #
|
|
1313
|
+
color: #4b5563;
|
|
1141
1314
|
}
|
|
1142
1315
|
.dropdown-item-icon svg {
|
|
1143
1316
|
width: 16px;
|
|
@@ -1154,13 +1327,13 @@ var dropdownStyles = `
|
|
|
1154
1327
|
.dropdown-item-desc {
|
|
1155
1328
|
display: block;
|
|
1156
1329
|
font-size: 0.75rem;
|
|
1157
|
-
color: #
|
|
1330
|
+
color: #4b5563;
|
|
1158
1331
|
line-height: 1.3;
|
|
1159
1332
|
margin-top: 1px;
|
|
1160
1333
|
}
|
|
1161
1334
|
.dropdown-item-shortcut {
|
|
1162
|
-
font-size: 0.
|
|
1163
|
-
color: #
|
|
1335
|
+
font-size: 0.75rem;
|
|
1336
|
+
color: #4b5563;
|
|
1164
1337
|
padding: 2px 6px;
|
|
1165
1338
|
background: #f3f4f6;
|
|
1166
1339
|
border-radius: 4px;
|
|
@@ -1168,9 +1341,9 @@ var dropdownStyles = `
|
|
|
1168
1341
|
flex-shrink: 0;
|
|
1169
1342
|
}
|
|
1170
1343
|
.dropdown-group-label {
|
|
1171
|
-
font-size: 0.
|
|
1344
|
+
font-size: 0.75rem;
|
|
1172
1345
|
font-weight: 600;
|
|
1173
|
-
color: #
|
|
1346
|
+
color: #4b5563;
|
|
1174
1347
|
text-transform: uppercase;
|
|
1175
1348
|
letter-spacing: 0.05em;
|
|
1176
1349
|
padding: 8px 12px 4px;
|
|
@@ -1184,12 +1357,12 @@ var accordionStyles = `
|
|
|
1184
1357
|
display: block;
|
|
1185
1358
|
}
|
|
1186
1359
|
[part="accordion"] {
|
|
1187
|
-
border: 1px solid #
|
|
1360
|
+
border: 1px solid #9ca3af;
|
|
1188
1361
|
border-radius: 8px;
|
|
1189
1362
|
overflow: hidden;
|
|
1190
1363
|
}
|
|
1191
1364
|
.accordion-item {
|
|
1192
|
-
border-bottom: 1px solid #
|
|
1365
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1193
1366
|
}
|
|
1194
1367
|
.accordion-item:last-child { border-bottom: none; }
|
|
1195
1368
|
.accordion-header {
|
|
@@ -1204,11 +1377,12 @@ var accordionStyles = `
|
|
|
1204
1377
|
transition: background .15s;
|
|
1205
1378
|
user-select: none;
|
|
1206
1379
|
}
|
|
1380
|
+
.accordion-header:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1207
1381
|
.accordion-header:hover { background: #f9fafb; }
|
|
1208
1382
|
.accordion-icon {
|
|
1209
1383
|
transition: transform .2s;
|
|
1210
1384
|
font-size: 12px;
|
|
1211
|
-
color: #
|
|
1385
|
+
color: #4b5563;
|
|
1212
1386
|
}
|
|
1213
1387
|
.accordion-item[open] .accordion-icon { transform: rotate(180deg); }
|
|
1214
1388
|
.accordion-content {
|
|
@@ -1218,7 +1392,7 @@ var accordionStyles = `
|
|
|
1218
1392
|
.accordion-body {
|
|
1219
1393
|
padding: 0 16px 12px;
|
|
1220
1394
|
font-size: 0.875rem;
|
|
1221
|
-
color: #
|
|
1395
|
+
color: #4b5563;
|
|
1222
1396
|
}
|
|
1223
1397
|
`;
|
|
1224
1398
|
|
|
@@ -1247,7 +1421,7 @@ var calendarStyles = `
|
|
|
1247
1421
|
}
|
|
1248
1422
|
.cal-nav-btn {
|
|
1249
1423
|
background: none;
|
|
1250
|
-
border: 1px solid #
|
|
1424
|
+
border: 1px solid #9ca3af;
|
|
1251
1425
|
border-radius: 6px;
|
|
1252
1426
|
width: 32px;
|
|
1253
1427
|
height: 32px;
|
|
@@ -1256,9 +1430,10 @@ var calendarStyles = `
|
|
|
1256
1430
|
display: flex;
|
|
1257
1431
|
align-items: center;
|
|
1258
1432
|
justify-content: center;
|
|
1259
|
-
color: #
|
|
1433
|
+
color: #4b5563;
|
|
1260
1434
|
transition: all .15s;
|
|
1261
1435
|
}
|
|
1436
|
+
.cal-nav-btn:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1262
1437
|
.cal-nav-btn:hover {
|
|
1263
1438
|
background: #f3f4f6;
|
|
1264
1439
|
color: #374151;
|
|
@@ -1268,7 +1443,7 @@ var calendarStyles = `
|
|
|
1268
1443
|
grid-template-columns: repeat(7, 1fr);
|
|
1269
1444
|
text-align: center;
|
|
1270
1445
|
font-size: 0.75rem;
|
|
1271
|
-
color: #
|
|
1446
|
+
color: #4b5563;
|
|
1272
1447
|
font-weight: 500;
|
|
1273
1448
|
margin-bottom: 8px;
|
|
1274
1449
|
}
|
|
@@ -1292,9 +1467,10 @@ var calendarStyles = `
|
|
|
1292
1467
|
transition: all .1s;
|
|
1293
1468
|
font-family: inherit;
|
|
1294
1469
|
}
|
|
1470
|
+
.cal-day:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
|
|
1295
1471
|
.cal-day:hover { background: #f3f4f6; }
|
|
1296
1472
|
.cal-day-empty { pointer-events: none; }
|
|
1297
|
-
.cal-today { font-weight: 600; color: #
|
|
1473
|
+
.cal-today { font-weight: 600; color: #2563eb; }
|
|
1298
1474
|
.cal-selected { background: #3b82f6; color: #fff; font-weight: 600; }
|
|
1299
1475
|
.cal-selected:hover { background: #2563eb; }
|
|
1300
1476
|
.cal-disabled { opacity: 0.3; pointer-events: none; }
|
|
@@ -1307,7 +1483,7 @@ var dataTableStyles = `
|
|
|
1307
1483
|
}
|
|
1308
1484
|
.data-table {
|
|
1309
1485
|
font-size: 0.875rem;
|
|
1310
|
-
border: 1px solid #
|
|
1486
|
+
border: 1px solid #9ca3af;
|
|
1311
1487
|
border-radius: 8px;
|
|
1312
1488
|
overflow: hidden;
|
|
1313
1489
|
}
|
|
@@ -1316,23 +1492,23 @@ var dataTableStyles = `
|
|
|
1316
1492
|
align-items: center;
|
|
1317
1493
|
justify-content: space-between;
|
|
1318
1494
|
padding: 12px 16px;
|
|
1319
|
-
border-bottom: 1px solid #
|
|
1495
|
+
border-bottom: 1px solid #9ca3af;
|
|
1320
1496
|
background: #f9fafb;
|
|
1321
1497
|
}
|
|
1322
1498
|
.dt-search-input {
|
|
1323
1499
|
font-family: inherit;
|
|
1324
1500
|
font-size: 0.875rem;
|
|
1325
1501
|
padding: 6px 12px;
|
|
1326
|
-
border: 1px solid #
|
|
1502
|
+
border: 1px solid #9ca3af;
|
|
1327
1503
|
border-radius: 6px;
|
|
1328
1504
|
outline: none;
|
|
1329
1505
|
width: 200px;
|
|
1330
1506
|
}
|
|
1331
1507
|
.dt-search-input:focus {
|
|
1332
|
-
border-color: #
|
|
1508
|
+
border-color: #2563eb;
|
|
1333
1509
|
box-shadow: 0 0 0 2px rgba(59,130,246,.25);
|
|
1334
1510
|
}
|
|
1335
|
-
.dt-page-info { color: #
|
|
1511
|
+
.dt-page-info { color: #4b5563; font-size: 0.8rem; }
|
|
1336
1512
|
.dt-table-wrapper { overflow-x: auto; }
|
|
1337
1513
|
.dt-table { width: 100%; border-collapse: collapse; }
|
|
1338
1514
|
.dt-table th {
|
|
@@ -1345,30 +1521,32 @@ var dataTableStyles = `
|
|
|
1345
1521
|
background: #f9fafb;
|
|
1346
1522
|
}
|
|
1347
1523
|
.dt-table th.dt-sortable { cursor: pointer; user-select: none; }
|
|
1524
|
+
.dt-table th.dt-sortable:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
|
|
1348
1525
|
.dt-table th.dt-sortable:hover { background: #f3f4f6; }
|
|
1349
|
-
.dt-table td { padding: 10px 12px; border-bottom: 1px solid #
|
|
1526
|
+
.dt-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; color: #4b5563; }
|
|
1350
1527
|
.dt-table tr:hover td { background: #f9fafb; }
|
|
1351
1528
|
.dt-row-selected td { background: #eff6ff; }
|
|
1352
1529
|
.dt-col-check { width: 40px; }
|
|
1353
|
-
.dt-empty { text-align: center; color: #
|
|
1530
|
+
.dt-empty { text-align: center; color: #4b5563; padding: 32px; }
|
|
1354
1531
|
.dt-pagination {
|
|
1355
1532
|
display: flex;
|
|
1356
1533
|
align-items: center;
|
|
1357
1534
|
justify-content: space-between;
|
|
1358
1535
|
padding: 8px 16px;
|
|
1359
|
-
border-top: 1px solid #
|
|
1536
|
+
border-top: 1px solid #9ca3af;
|
|
1360
1537
|
background: #f9fafb;
|
|
1361
1538
|
}
|
|
1362
1539
|
.dt-page-btn {
|
|
1363
1540
|
font-family: inherit;
|
|
1364
1541
|
font-size: 0.8rem;
|
|
1365
1542
|
padding: 6px 12px;
|
|
1366
|
-
border: 1px solid #
|
|
1543
|
+
border: 1px solid #9ca3af;
|
|
1367
1544
|
border-radius: 6px;
|
|
1368
1545
|
background: #fff;
|
|
1369
1546
|
cursor: pointer;
|
|
1370
1547
|
color: #374151;
|
|
1371
1548
|
}
|
|
1549
|
+
.dt-page-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
1372
1550
|
.dt-page-btn:hover { background: #f3f4f6; }
|
|
1373
1551
|
.dt-page-numbers { display: flex; gap: 4px; }
|
|
1374
1552
|
.dt-page-num {
|
|
@@ -1380,8 +1558,9 @@ var dataTableStyles = `
|
|
|
1380
1558
|
border-radius: 6px;
|
|
1381
1559
|
background: none;
|
|
1382
1560
|
cursor: pointer;
|
|
1383
|
-
color: #
|
|
1561
|
+
color: #4b5563;
|
|
1384
1562
|
}
|
|
1563
|
+
.dt-page-num:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
1385
1564
|
.dt-page-num:hover { background: #f3f4f6; }
|
|
1386
1565
|
.dt-page-num.active { background: #3b82f6; color: #fff; font-weight: 600; }
|
|
1387
1566
|
`;
|
|
@@ -1416,10 +1595,10 @@ var commandPaletteStyles = `
|
|
|
1416
1595
|
display: flex;
|
|
1417
1596
|
align-items: center;
|
|
1418
1597
|
padding: 12px 16px;
|
|
1419
|
-
border-bottom: 1px solid #
|
|
1598
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1420
1599
|
gap: 8px;
|
|
1421
1600
|
}
|
|
1422
|
-
.cp-search-icon { font-size: 1rem; color: #
|
|
1601
|
+
.cp-search-icon { font-size: 1rem; color: #4b5563; }
|
|
1423
1602
|
.cp-search-input {
|
|
1424
1603
|
flex: 1;
|
|
1425
1604
|
border: none;
|
|
@@ -1430,11 +1609,11 @@ var commandPaletteStyles = `
|
|
|
1430
1609
|
background: none;
|
|
1431
1610
|
}
|
|
1432
1611
|
.cp-shortcut-hint {
|
|
1433
|
-
font-size: 0.
|
|
1612
|
+
font-size: 0.75rem;
|
|
1434
1613
|
padding: 2px 6px;
|
|
1435
1614
|
background: #f3f4f6;
|
|
1436
1615
|
border-radius: 4px;
|
|
1437
|
-
color: #
|
|
1616
|
+
color: #4b5563;
|
|
1438
1617
|
font-family: inherit;
|
|
1439
1618
|
}
|
|
1440
1619
|
.cp-results {
|
|
@@ -1444,9 +1623,9 @@ var commandPaletteStyles = `
|
|
|
1444
1623
|
}
|
|
1445
1624
|
.cp-group-label {
|
|
1446
1625
|
padding: 8px 12px 4px;
|
|
1447
|
-
font-size: 0.
|
|
1626
|
+
font-size: 0.75rem;
|
|
1448
1627
|
font-weight: 600;
|
|
1449
|
-
color: #
|
|
1628
|
+
color: #4b5563;
|
|
1450
1629
|
text-transform: uppercase;
|
|
1451
1630
|
letter-spacing: 0.05em;
|
|
1452
1631
|
}
|
|
@@ -1465,25 +1644,26 @@ var commandPaletteStyles = `
|
|
|
1465
1644
|
box-sizing: border-box;
|
|
1466
1645
|
}
|
|
1467
1646
|
.cp-item:hover { background: #f3f4f6; }
|
|
1647
|
+
.cp-item:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1468
1648
|
.cp-item-active { background: #eff6ff; }
|
|
1469
1649
|
.cp-item-label { font-size: 0.875rem; color: #111827; flex: 1; }
|
|
1470
|
-
.cp-item-desc { font-size: 0.75rem; color: #
|
|
1650
|
+
.cp-item-desc { font-size: 0.75rem; color: #4b5563; flex: 1; }
|
|
1471
1651
|
.cp-item-shortcut {
|
|
1472
|
-
font-size: 0.
|
|
1652
|
+
font-size: 0.75rem;
|
|
1473
1653
|
padding: 2px 6px;
|
|
1474
1654
|
background: #f3f4f6;
|
|
1475
1655
|
border-radius: 4px;
|
|
1476
|
-
color: #
|
|
1656
|
+
color: #4b5563;
|
|
1477
1657
|
font-family: inherit;
|
|
1478
1658
|
}
|
|
1479
|
-
.cp-empty { padding: 24px; text-align: center; color: #
|
|
1659
|
+
.cp-empty { padding: 24px; text-align: center; color: #4b5563; font-size: 0.875rem; }
|
|
1480
1660
|
.cp-footer {
|
|
1481
1661
|
display: flex;
|
|
1482
1662
|
gap: 16px;
|
|
1483
1663
|
padding: 8px 16px;
|
|
1484
|
-
border-top: 1px solid #
|
|
1485
|
-
font-size: 0.
|
|
1486
|
-
color: #
|
|
1664
|
+
border-top: 1px solid #e5e7eb;
|
|
1665
|
+
font-size: 0.75rem;
|
|
1666
|
+
color: #4b5563;
|
|
1487
1667
|
}
|
|
1488
1668
|
`;
|
|
1489
1669
|
|
|
@@ -1505,7 +1685,7 @@ var comboboxStyles = `
|
|
|
1505
1685
|
background: #fff;
|
|
1506
1686
|
}
|
|
1507
1687
|
.combobox-input-wrapper:focus-within {
|
|
1508
|
-
border-color: #
|
|
1688
|
+
border-color: #2563eb;
|
|
1509
1689
|
box-shadow: 0 0 0 2px rgba(59,130,246,.25);
|
|
1510
1690
|
}
|
|
1511
1691
|
.combobox-input {
|
|
@@ -1524,7 +1704,7 @@ var comboboxStyles = `
|
|
|
1524
1704
|
border: none;
|
|
1525
1705
|
padding: 0 8px;
|
|
1526
1706
|
cursor: pointer;
|
|
1527
|
-
color: #
|
|
1707
|
+
color: #4b5563;
|
|
1528
1708
|
font-size: 12px;
|
|
1529
1709
|
display: flex;
|
|
1530
1710
|
align-items: center;
|
|
@@ -1554,9 +1734,9 @@ var comboboxStyles = `
|
|
|
1554
1734
|
box-sizing: border-box;
|
|
1555
1735
|
}
|
|
1556
1736
|
.combobox-option:hover { background: #f3f4f6; }
|
|
1557
|
-
.combobox-option.active { color: #
|
|
1558
|
-
.combobox-option:focus-visible {
|
|
1559
|
-
.combobox-empty { padding: 12px; text-align: center; color: #
|
|
1737
|
+
.combobox-option.active { color: #2563eb; font-weight: 500; }
|
|
1738
|
+
.combobox-option:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1739
|
+
.combobox-empty { padding: 12px; text-align: center; color: #4b5563; font-size: 0.875rem; }
|
|
1560
1740
|
`;
|
|
1561
1741
|
|
|
1562
1742
|
// src/components/styles/toast.ts
|
|
@@ -1595,22 +1775,22 @@ var toastStyles = `
|
|
|
1595
1775
|
max-width: 400px;
|
|
1596
1776
|
animation: u-slide-in-right .2s ease;
|
|
1597
1777
|
background: #fff;
|
|
1598
|
-
border: 1px solid #
|
|
1778
|
+
border: 1px solid #9ca3af;
|
|
1599
1779
|
}
|
|
1600
1780
|
.toast-exit {
|
|
1601
1781
|
animation: u-slide-out-right .2s ease forwards;
|
|
1602
1782
|
}
|
|
1603
1783
|
.toast-info { border-left: 4px solid #3b82f6; }
|
|
1604
|
-
.toast-success { border-left: 4px solid #
|
|
1605
|
-
.toast-warning { border-left: 4px solid #
|
|
1784
|
+
.toast-success { border-left: 4px solid #16a34a; }
|
|
1785
|
+
.toast-warning { border-left: 4px solid #d97706; }
|
|
1606
1786
|
.toast-error { border-left: 4px solid #ef4444; }
|
|
1607
1787
|
.toast-body { flex: 1; }
|
|
1608
1788
|
.toast-title { font-weight: 600; color: #111827; }
|
|
1609
|
-
.toast-desc { color: #
|
|
1789
|
+
.toast-desc { color: #4b5563; margin-top: 4px; font-size: 0.8rem; }
|
|
1610
1790
|
.toast-action {
|
|
1611
1791
|
background: none;
|
|
1612
1792
|
border: none;
|
|
1613
|
-
color: #
|
|
1793
|
+
color: #2563eb;
|
|
1614
1794
|
cursor: pointer;
|
|
1615
1795
|
font-weight: 500;
|
|
1616
1796
|
font-family: inherit;
|
|
@@ -1619,17 +1799,19 @@ var toastStyles = `
|
|
|
1619
1799
|
padding: 0;
|
|
1620
1800
|
margin-top: 4px;
|
|
1621
1801
|
}
|
|
1802
|
+
.toast-action:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 2px; }
|
|
1622
1803
|
.toast-action:hover { color: #2563eb; }
|
|
1623
1804
|
.toast-close {
|
|
1624
1805
|
background: none;
|
|
1625
1806
|
border: none;
|
|
1626
1807
|
cursor: pointer;
|
|
1627
|
-
color: #
|
|
1808
|
+
color: #4b5563;
|
|
1628
1809
|
font-size: 1.2rem;
|
|
1629
1810
|
padding: 0;
|
|
1630
1811
|
line-height: 1;
|
|
1631
1812
|
flex-shrink: 0;
|
|
1632
1813
|
}
|
|
1814
|
+
.toast-close:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 2px; }
|
|
1633
1815
|
.toast-close:hover { color: #374151; }
|
|
1634
1816
|
`;
|
|
1635
1817
|
|
|
@@ -1646,7 +1828,7 @@ var contextMenuStyles = `
|
|
|
1646
1828
|
position: fixed;
|
|
1647
1829
|
z-index: 99999;
|
|
1648
1830
|
background: #fff;
|
|
1649
|
-
border: 1px solid #
|
|
1831
|
+
border: 1px solid #d1d5db;
|
|
1650
1832
|
border-radius: 10px;
|
|
1651
1833
|
box-shadow: 0 8px 24px rgba(0,0,0,.14);
|
|
1652
1834
|
padding: 4px;
|
|
@@ -1681,7 +1863,7 @@ var contextMenuStyles = `
|
|
|
1681
1863
|
box-sizing: border-box;
|
|
1682
1864
|
}
|
|
1683
1865
|
.cm-item:hover { background: #f3f4f6; }
|
|
1684
|
-
.cm-item:focus-visible {
|
|
1866
|
+
.cm-item:focus-visible { box-shadow: 0 0 0 2px #3b82f6; }
|
|
1685
1867
|
.cm-item:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
1686
1868
|
.cm-item-icon { width: 16px; text-align: center; font-size: 1rem; flex-shrink: 0; }
|
|
1687
1869
|
.cm-item-label { flex: 1; }
|
|
@@ -1704,6 +1886,7 @@ var sortableStyles = `
|
|
|
1704
1886
|
border-radius: 6px;
|
|
1705
1887
|
cursor: grabbing;
|
|
1706
1888
|
}
|
|
1889
|
+
.sortable-item:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
|
|
1707
1890
|
.sortable-placeholder {
|
|
1708
1891
|
border: 2px dashed #d1d5db;
|
|
1709
1892
|
border-radius: 6px;
|
|
@@ -1725,6 +1908,180 @@ var formStyles = `
|
|
|
1725
1908
|
}
|
|
1726
1909
|
`;
|
|
1727
1910
|
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1911
|
+
// src/components/styles/badge.ts
|
|
1912
|
+
var badgeStyles = `
|
|
1913
|
+
:host {
|
|
1914
|
+
display: inline-flex;
|
|
1915
|
+
vertical-align: middle;
|
|
1916
|
+
}
|
|
1917
|
+
[part="badge"] {
|
|
1918
|
+
font-family: inherit;
|
|
1919
|
+
display: inline-flex;
|
|
1920
|
+
align-items: center;
|
|
1921
|
+
justify-content: center;
|
|
1922
|
+
font-weight: 500;
|
|
1923
|
+
line-height: 1;
|
|
1924
|
+
white-space: nowrap;
|
|
1925
|
+
user-select: none;
|
|
1926
|
+
transition: background .15s, color .15s;
|
|
1927
|
+
}
|
|
1928
|
+
.badge-pill {
|
|
1929
|
+
border-radius: 999px;
|
|
1930
|
+
}
|
|
1931
|
+
.badge-square {
|
|
1932
|
+
border-radius: 4px;
|
|
1933
|
+
}
|
|
1934
|
+
.badge-sm {
|
|
1935
|
+
font-size: 0.6875rem;
|
|
1936
|
+
padding: 2px 6px;
|
|
1937
|
+
min-height: 16px;
|
|
1938
|
+
min-width: 16px;
|
|
1939
|
+
}
|
|
1940
|
+
.badge-md {
|
|
1941
|
+
font-size: 0.75rem;
|
|
1942
|
+
padding: 3px 8px;
|
|
1943
|
+
min-height: 20px;
|
|
1944
|
+
min-width: 20px;
|
|
1945
|
+
}
|
|
1946
|
+
.badge-lg {
|
|
1947
|
+
font-size: 0.8125rem;
|
|
1948
|
+
padding: 4px 10px;
|
|
1949
|
+
min-height: 24px;
|
|
1950
|
+
min-width: 24px;
|
|
1951
|
+
}
|
|
1952
|
+
.badge-default {
|
|
1953
|
+
background: #f3f4f6;
|
|
1954
|
+
color: #374151;
|
|
1955
|
+
}
|
|
1956
|
+
.badge-primary {
|
|
1957
|
+
background: #eff6ff;
|
|
1958
|
+
color: #2563eb;
|
|
1959
|
+
}
|
|
1960
|
+
.badge-success {
|
|
1961
|
+
background: #dcfce7;
|
|
1962
|
+
color: #15803d;
|
|
1963
|
+
}
|
|
1964
|
+
.badge-warning {
|
|
1965
|
+
background: #fef3c7;
|
|
1966
|
+
color: #b45309;
|
|
1967
|
+
}
|
|
1968
|
+
.badge-danger {
|
|
1969
|
+
background: #fef2f2;
|
|
1970
|
+
color: #dc2626;
|
|
1971
|
+
}
|
|
1972
|
+
.badge-info {
|
|
1973
|
+
background: #e0f2fe;
|
|
1974
|
+
color: #0369a1;
|
|
1975
|
+
}
|
|
1976
|
+
.badge-dot {
|
|
1977
|
+
width: 8px;
|
|
1978
|
+
height: 8px;
|
|
1979
|
+
padding: 0;
|
|
1980
|
+
border-radius: 50%;
|
|
1981
|
+
min-width: 8px;
|
|
1982
|
+
min-height: 8px;
|
|
1983
|
+
}
|
|
1984
|
+
.badge-dot.badge-sm {
|
|
1985
|
+
width: 6px;
|
|
1986
|
+
height: 6px;
|
|
1987
|
+
min-width: 6px;
|
|
1988
|
+
min-height: 6px;
|
|
1989
|
+
}
|
|
1990
|
+
.badge-dot.badge-lg {
|
|
1991
|
+
width: 10px;
|
|
1992
|
+
height: 10px;
|
|
1993
|
+
min-width: 10px;
|
|
1994
|
+
min-height: 10px;
|
|
1995
|
+
}
|
|
1996
|
+
`;
|
|
1997
|
+
|
|
1998
|
+
// src/components/styles/card.ts
|
|
1999
|
+
var cardStyles = `
|
|
2000
|
+
:host {
|
|
2001
|
+
display: block;
|
|
2002
|
+
}
|
|
2003
|
+
[part="card"] {
|
|
2004
|
+
display: flex;
|
|
2005
|
+
flex-direction: column;
|
|
2006
|
+
font-family: inherit;
|
|
2007
|
+
transition: box-shadow .2s, border-color .2s, transform .2s;
|
|
2008
|
+
position: relative;
|
|
2009
|
+
overflow: hidden;
|
|
2010
|
+
}
|
|
2011
|
+
.card-default {
|
|
2012
|
+
background: #fff;
|
|
2013
|
+
border: 1px solid #d1d5db;
|
|
2014
|
+
border-radius: 12px;
|
|
2015
|
+
box-shadow: 0 1px 3px rgba(0,0,0,.05);
|
|
2016
|
+
}
|
|
2017
|
+
.card-outlined {
|
|
2018
|
+
background: transparent;
|
|
2019
|
+
border: 1px solid #d1d5db;
|
|
2020
|
+
border-radius: 12px;
|
|
2021
|
+
}
|
|
2022
|
+
.card-elevated {
|
|
2023
|
+
background: #fff;
|
|
2024
|
+
border: 1px solid transparent;
|
|
2025
|
+
border-radius: 12px;
|
|
2026
|
+
box-shadow: 0 4px 16px rgba(0,0,0,.08);
|
|
2027
|
+
}
|
|
2028
|
+
.card-hoverable:hover {
|
|
2029
|
+
box-shadow: 0 8px 24px rgba(0,0,0,.12);
|
|
2030
|
+
border-color: #9ca3af;
|
|
2031
|
+
transform: translateY(-2px);
|
|
2032
|
+
}
|
|
2033
|
+
.card-image {
|
|
2034
|
+
width: 100%;
|
|
2035
|
+
overflow: hidden;
|
|
2036
|
+
line-height: 0;
|
|
2037
|
+
}
|
|
2038
|
+
.card-image img,
|
|
2039
|
+
.card-image ::slotted(img) {
|
|
2040
|
+
width: 100%;
|
|
2041
|
+
height: auto;
|
|
2042
|
+
display: block;
|
|
2043
|
+
object-fit: cover;
|
|
2044
|
+
}
|
|
2045
|
+
.card-image-full {
|
|
2046
|
+
border-radius: 0;
|
|
2047
|
+
}
|
|
2048
|
+
.card-image-top {
|
|
2049
|
+
border-radius: 12px 12px 0 0;
|
|
2050
|
+
}
|
|
2051
|
+
.card-image-bottom {
|
|
2052
|
+
border-radius: 0 0 12px 12px;
|
|
2053
|
+
}
|
|
2054
|
+
[part="header"] {
|
|
2055
|
+
padding: 16px 20px 0;
|
|
2056
|
+
font-weight: 600;
|
|
2057
|
+
font-size: 1rem;
|
|
2058
|
+
color: #111827;
|
|
2059
|
+
}
|
|
2060
|
+
[part="content"] {
|
|
2061
|
+
padding: 16px 20px;
|
|
2062
|
+
flex: 1;
|
|
2063
|
+
min-width: 0;
|
|
2064
|
+
color: #374151;
|
|
2065
|
+
font-size: 0.875rem;
|
|
2066
|
+
line-height: 1.6;
|
|
2067
|
+
}
|
|
2068
|
+
[part="footer"] {
|
|
2069
|
+
padding: 0 20px 16px;
|
|
2070
|
+
display: flex;
|
|
2071
|
+
align-items: center;
|
|
2072
|
+
gap: 8px;
|
|
2073
|
+
}
|
|
2074
|
+
.card-padding-none [part="header"] { padding: 0; }
|
|
2075
|
+
.card-padding-none [part="content"] { padding: 0; }
|
|
2076
|
+
.card-padding-none [part="footer"] { padding: 0; }
|
|
2077
|
+
.card-padding-sm [part="header"] { padding: 12px 14px 0; }
|
|
2078
|
+
.card-padding-sm [part="content"] { padding: 12px 14px; }
|
|
2079
|
+
.card-padding-sm [part="footer"] { padding: 0 14px 12px; }
|
|
2080
|
+
.card-padding-lg [part="header"] { padding: 20px 24px 0; }
|
|
2081
|
+
.card-padding-lg [part="content"] { padding: 20px 24px; }
|
|
2082
|
+
.card-padding-lg [part="footer"] { padding: 0 24px 20px; }
|
|
2083
|
+
`;
|
|
2084
|
+
|
|
2085
|
+
export { UElement, accordionStyles, animateKeyframes, badgeStyles, boxStyles, breadcrumbStyles, buttonStyles, calendarStyles, cardStyles, checkboxStyles, comboboxStyles, commandPaletteStyles, containerStyles, contextMenuStyles, dataTableStyles, dialogStyles, drawerStyles, dropdownStyles, fieldStyles, formStyles, gridStyles, iconStyles, inputStyles, labelStyles, linkStyles, listStyles, modalStyles, overlayStyles, popoverStyles, presenceStyles, radioStyles, selectStyles, sortableStyles, stackStyles, switchStyles, tableStyles, tabsStyles, textStyles, textareaStyles, toastStyles, tooltipStyles, treeStyles, visuallyHiddenStyles };
|
|
2086
|
+
//# sourceMappingURL=chunk-ICB6OBEZ.js.map
|
|
2087
|
+
//# sourceMappingURL=chunk-ICB6OBEZ.js.map
|