@webskill/chatbot 0.3.0 → 0.5.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/dist/chatbot.css +265 -72
- package/dist/index.d.ts +287 -69
- package/dist/index.js +3372 -3482
- package/package.json +2 -2
package/dist/chatbot.css
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
5
5
|
:root, :host {
|
|
6
|
-
--font-sans: 'Inter', ui-sans-serif, system-ui,
|
|
7
|
-
|
|
6
|
+
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei',
|
|
7
|
+
'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
|
|
8
|
+
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Microsoft YaHei', 'PingFang SC',
|
|
9
|
+
'Noto Sans Mono CJK SC', monospace;
|
|
8
10
|
--spacing: 0.25rem;
|
|
9
11
|
--container-sm: 24rem;
|
|
10
12
|
--container-md: 28rem;
|
|
@@ -25,13 +27,16 @@
|
|
|
25
27
|
--font-weight-semibold: 600;
|
|
26
28
|
--tracking-normal: 0em;
|
|
27
29
|
--tracking-wide: 0.025em;
|
|
30
|
+
--radius-xl: 0.75rem;
|
|
28
31
|
--animate-spin: spin 1s linear infinite;
|
|
29
32
|
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
30
33
|
--aspect-video: 16 / 9;
|
|
31
34
|
--default-transition-duration: 150ms;
|
|
32
35
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
|
-
--default-font-family: 'Inter', ui-sans-serif, system-ui,
|
|
34
|
-
|
|
36
|
+
--default-font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei',
|
|
37
|
+
'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
|
|
38
|
+
--default-mono-font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Microsoft YaHei', 'PingFang SC',
|
|
39
|
+
'Noto Sans Mono CJK SC', monospace;
|
|
35
40
|
--color-background: var(--background);
|
|
36
41
|
--color-foreground: var(--foreground);
|
|
37
42
|
--color-card: var(--card);
|
|
@@ -39,11 +44,14 @@
|
|
|
39
44
|
--color-secondary: var(--secondary);
|
|
40
45
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
41
46
|
--color-muted: var(--muted-foreground);
|
|
47
|
+
--color-accent: var(--accent);
|
|
42
48
|
--color-border: var(--border);
|
|
43
49
|
--color-input: var(--input);
|
|
44
50
|
--color-ring: var(--ring);
|
|
45
51
|
--color-destructive: var(--destructive);
|
|
46
52
|
--color-success: var(--success);
|
|
53
|
+
--color-warning: var(--warning);
|
|
54
|
+
--color-info: var(--info);
|
|
47
55
|
--color-surface: var(--card);
|
|
48
56
|
--color-subtle: var(--accent);
|
|
49
57
|
--color-ink: var(--foreground);
|
|
@@ -280,6 +288,9 @@
|
|
|
280
288
|
.right-4 {
|
|
281
289
|
right: calc(var(--spacing) * 4);
|
|
282
290
|
}
|
|
291
|
+
.right-full {
|
|
292
|
+
right: 100%;
|
|
293
|
+
}
|
|
283
294
|
.-bottom-7 {
|
|
284
295
|
bottom: calc(var(--spacing) * -7);
|
|
285
296
|
}
|
|
@@ -298,11 +309,32 @@
|
|
|
298
309
|
.left-2\.5 {
|
|
299
310
|
left: calc(var(--spacing) * 2.5);
|
|
300
311
|
}
|
|
301
|
-
.
|
|
302
|
-
|
|
312
|
+
.left-full {
|
|
313
|
+
left: 100%;
|
|
314
|
+
}
|
|
315
|
+
.z-\[var\(--webskill-z-dialog\)\] {
|
|
316
|
+
z-index: var(--webskill-z-dialog);
|
|
317
|
+
}
|
|
318
|
+
.z-\[var\(--webskill-z-overlay\)\] {
|
|
319
|
+
z-index: var(--webskill-z-overlay);
|
|
320
|
+
}
|
|
321
|
+
.z-\[var\(--webskill-z-popper\)\] {
|
|
322
|
+
z-index: var(--webskill-z-popper);
|
|
323
|
+
}
|
|
324
|
+
.z-\[var\(--webskill-z-raised\)\] {
|
|
325
|
+
z-index: var(--webskill-z-raised);
|
|
326
|
+
}
|
|
327
|
+
.z-\[var\(--webskill-z-scrim\)\] {
|
|
328
|
+
z-index: var(--webskill-z-scrim);
|
|
329
|
+
}
|
|
330
|
+
.z-\[var\(--webskill-z-sheet\)\] {
|
|
331
|
+
z-index: var(--webskill-z-sheet);
|
|
303
332
|
}
|
|
304
|
-
.z-
|
|
305
|
-
z-index:
|
|
333
|
+
.z-\[var\(--webskill-z-toast\)\] {
|
|
334
|
+
z-index: var(--webskill-z-toast);
|
|
335
|
+
}
|
|
336
|
+
.z-\[var\(--webskill-z-tooltip\)\] {
|
|
337
|
+
z-index: var(--webskill-z-tooltip);
|
|
306
338
|
}
|
|
307
339
|
.container {
|
|
308
340
|
width: 100%;
|
|
@@ -376,6 +408,9 @@
|
|
|
376
408
|
.block {
|
|
377
409
|
display: block;
|
|
378
410
|
}
|
|
411
|
+
.contents {
|
|
412
|
+
display: contents;
|
|
413
|
+
}
|
|
379
414
|
.flex {
|
|
380
415
|
display: flex;
|
|
381
416
|
}
|
|
@@ -495,9 +530,15 @@
|
|
|
495
530
|
.min-h-0 {
|
|
496
531
|
min-height: 0px;
|
|
497
532
|
}
|
|
533
|
+
.min-h-16 {
|
|
534
|
+
min-height: calc(var(--spacing) * 16);
|
|
535
|
+
}
|
|
498
536
|
.min-h-20 {
|
|
499
537
|
min-height: calc(var(--spacing) * 20);
|
|
500
538
|
}
|
|
539
|
+
.min-h-40 {
|
|
540
|
+
min-height: calc(var(--spacing) * 40);
|
|
541
|
+
}
|
|
501
542
|
.min-h-48 {
|
|
502
543
|
min-height: calc(var(--spacing) * 48);
|
|
503
544
|
}
|
|
@@ -531,18 +572,9 @@
|
|
|
531
572
|
.w-72 {
|
|
532
573
|
width: calc(var(--spacing) * 72);
|
|
533
574
|
}
|
|
534
|
-
.w-\[44rem\] {
|
|
535
|
-
width: 44rem;
|
|
536
|
-
}
|
|
537
|
-
.w-\[min\(22rem\,calc\(100vw-2rem\)\)\] {
|
|
538
|
-
width: min(22rem, calc(100vw - 2rem));
|
|
539
|
-
}
|
|
540
575
|
.w-\[min\(36rem\,calc\(100vw-2rem\)\)\] {
|
|
541
576
|
width: min(36rem, calc(100vw - 2rem));
|
|
542
577
|
}
|
|
543
|
-
.w-\[min\(100\%-2rem\,32rem\)\] {
|
|
544
|
-
width: min(100% - 2rem, 32rem);
|
|
545
|
-
}
|
|
546
578
|
.w-auto {
|
|
547
579
|
width: auto;
|
|
548
580
|
}
|
|
@@ -555,6 +587,9 @@
|
|
|
555
587
|
.w-px {
|
|
556
588
|
width: 1px;
|
|
557
589
|
}
|
|
590
|
+
.w-screen {
|
|
591
|
+
width: 100vw;
|
|
592
|
+
}
|
|
558
593
|
.max-w-2xl {
|
|
559
594
|
max-width: var(--container-2xl);
|
|
560
595
|
}
|
|
@@ -567,9 +602,6 @@
|
|
|
567
602
|
.max-w-72 {
|
|
568
603
|
max-width: calc(var(--spacing) * 72);
|
|
569
604
|
}
|
|
570
|
-
.max-w-\[calc\(100vw-2rem\)\] {
|
|
571
|
-
max-width: calc(100vw - 2rem);
|
|
572
|
-
}
|
|
573
605
|
.max-w-full {
|
|
574
606
|
max-width: 100%;
|
|
575
607
|
}
|
|
@@ -603,6 +635,9 @@
|
|
|
603
635
|
.flex-1 {
|
|
604
636
|
flex: 1;
|
|
605
637
|
}
|
|
638
|
+
.shrink {
|
|
639
|
+
flex-shrink: 1;
|
|
640
|
+
}
|
|
606
641
|
.shrink-0 {
|
|
607
642
|
flex-shrink: 0;
|
|
608
643
|
}
|
|
@@ -647,6 +682,9 @@
|
|
|
647
682
|
.cursor-col-resize {
|
|
648
683
|
cursor: col-resize;
|
|
649
684
|
}
|
|
685
|
+
.cursor-default {
|
|
686
|
+
cursor: default;
|
|
687
|
+
}
|
|
650
688
|
.cursor-not-allowed {
|
|
651
689
|
cursor: not-allowed;
|
|
652
690
|
}
|
|
@@ -677,12 +715,6 @@
|
|
|
677
715
|
.grid-cols-1 {
|
|
678
716
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
679
717
|
}
|
|
680
|
-
.grid-cols-2 {
|
|
681
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
682
|
-
}
|
|
683
|
-
.grid-cols-\[1fr_auto\] {
|
|
684
|
-
grid-template-columns: 1fr auto;
|
|
685
|
-
}
|
|
686
718
|
.flex-col {
|
|
687
719
|
flex-direction: column;
|
|
688
720
|
}
|
|
@@ -725,6 +757,9 @@
|
|
|
725
757
|
.gap-2 {
|
|
726
758
|
gap: calc(var(--spacing) * 2);
|
|
727
759
|
}
|
|
760
|
+
.gap-2\.5 {
|
|
761
|
+
gap: calc(var(--spacing) * 2.5);
|
|
762
|
+
}
|
|
728
763
|
.gap-3 {
|
|
729
764
|
gap: calc(var(--spacing) * 3);
|
|
730
765
|
}
|
|
@@ -736,9 +771,6 @@
|
|
|
736
771
|
margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
|
|
737
772
|
margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
|
|
738
773
|
}
|
|
739
|
-
.gap-x-4 {
|
|
740
|
-
column-gap: calc(var(--spacing) * 4);
|
|
741
|
-
}
|
|
742
774
|
:where(.divide-y > :not(:last-child)) {
|
|
743
775
|
--tw-divide-y-reverse: 0;
|
|
744
776
|
border-bottom-style: var(--tw-border-style);
|
|
@@ -778,6 +810,9 @@
|
|
|
778
810
|
.overflow-y-auto {
|
|
779
811
|
overflow-y: auto;
|
|
780
812
|
}
|
|
813
|
+
.rounded {
|
|
814
|
+
border-radius: 0.25rem;
|
|
815
|
+
}
|
|
781
816
|
.rounded-\[2px\] {
|
|
782
817
|
border-radius: 2px;
|
|
783
818
|
}
|
|
@@ -799,6 +834,9 @@
|
|
|
799
834
|
.rounded-sm {
|
|
800
835
|
border-radius: calc(var(--radius) - 4px);
|
|
801
836
|
}
|
|
837
|
+
.rounded-xl {
|
|
838
|
+
border-radius: var(--radius-xl);
|
|
839
|
+
}
|
|
802
840
|
.rounded-t-lg {
|
|
803
841
|
border-top-left-radius: 1rem;
|
|
804
842
|
border-top-right-radius: 1rem;
|
|
@@ -854,6 +892,12 @@
|
|
|
854
892
|
.border-border {
|
|
855
893
|
border-color: var(--border);
|
|
856
894
|
}
|
|
895
|
+
.border-border\/80 {
|
|
896
|
+
border-color: var(--border);
|
|
897
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
898
|
+
border-color: color-mix(in oklab, var(--border) 80%, transparent);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
857
901
|
.border-danger\/30 {
|
|
858
902
|
border-color: var(--destructive);
|
|
859
903
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -905,6 +949,12 @@
|
|
|
905
949
|
.bg-canvas {
|
|
906
950
|
background-color: var(--background);
|
|
907
951
|
}
|
|
952
|
+
.bg-canvas\/50 {
|
|
953
|
+
background-color: var(--background);
|
|
954
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
955
|
+
background-color: color-mix(in oklab, var(--background) 50%, transparent);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
908
958
|
.bg-card {
|
|
909
959
|
background-color: var(--card);
|
|
910
960
|
}
|
|
@@ -986,12 +1036,6 @@
|
|
|
986
1036
|
.bg-warning-soft {
|
|
987
1037
|
background-color: var(--warning-soft);
|
|
988
1038
|
}
|
|
989
|
-
.bg-warning\/15 {
|
|
990
|
-
background-color: var(--warning);
|
|
991
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
992
|
-
background-color: color-mix(in oklab, var(--warning) 15%, transparent);
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
1039
|
.fill-current {
|
|
996
1040
|
fill: currentcolor;
|
|
997
1041
|
}
|
|
@@ -1128,10 +1172,12 @@
|
|
|
1128
1172
|
font-family: var(--font-sans);
|
|
1129
1173
|
}
|
|
1130
1174
|
.font-mono {
|
|
1131
|
-
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular,
|
|
1175
|
+
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Microsoft YaHei', 'PingFang SC',
|
|
1176
|
+
'Noto Sans Mono CJK SC', monospace;
|
|
1132
1177
|
}
|
|
1133
1178
|
.font-sans {
|
|
1134
|
-
font-family: 'Inter', ui-sans-serif, system-ui,
|
|
1179
|
+
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei',
|
|
1180
|
+
'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
|
|
1135
1181
|
}
|
|
1136
1182
|
.text-2xl {
|
|
1137
1183
|
font-size: var(--text-2xl);
|
|
@@ -1153,15 +1199,6 @@
|
|
|
1153
1199
|
font-size: var(--text-xs);
|
|
1154
1200
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
1155
1201
|
}
|
|
1156
|
-
.text-\[0\.85em\] {
|
|
1157
|
-
font-size: 0.85em;
|
|
1158
|
-
}
|
|
1159
|
-
.text-\[10px\] {
|
|
1160
|
-
font-size: 10px;
|
|
1161
|
-
}
|
|
1162
|
-
.text-\[11px\] {
|
|
1163
|
-
font-size: 11px;
|
|
1164
|
-
}
|
|
1165
1202
|
.leading-6 {
|
|
1166
1203
|
--tw-leading: calc(var(--spacing) * 6);
|
|
1167
1204
|
line-height: calc(var(--spacing) * 6);
|
|
@@ -1219,9 +1256,6 @@
|
|
|
1219
1256
|
.text-ink {
|
|
1220
1257
|
color: var(--foreground);
|
|
1221
1258
|
}
|
|
1222
|
-
.text-input {
|
|
1223
|
-
color: var(--input);
|
|
1224
|
-
}
|
|
1225
1259
|
.text-muted {
|
|
1226
1260
|
color: var(--muted-foreground);
|
|
1227
1261
|
}
|
|
@@ -1252,9 +1286,6 @@
|
|
|
1252
1286
|
.uppercase {
|
|
1253
1287
|
text-transform: uppercase;
|
|
1254
1288
|
}
|
|
1255
|
-
.italic {
|
|
1256
|
-
font-style: italic;
|
|
1257
|
-
}
|
|
1258
1289
|
.tabular-nums {
|
|
1259
1290
|
--tw-numeric-spacing: tabular-nums;
|
|
1260
1291
|
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
@@ -1482,19 +1513,6 @@
|
|
|
1482
1513
|
.empty\:hidden:empty {
|
|
1483
1514
|
display: none;
|
|
1484
1515
|
}
|
|
1485
|
-
.focus-within\:border-ring:focus-within {
|
|
1486
|
-
border-color: var(--ring);
|
|
1487
|
-
}
|
|
1488
|
-
.focus-within\:ring-2:focus-within {
|
|
1489
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1490
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1491
|
-
}
|
|
1492
|
-
.focus-within\:ring-ring\/20:focus-within {
|
|
1493
|
-
--tw-ring-color: var(--ring);
|
|
1494
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1495
|
-
--tw-ring-color: color-mix(in oklab, var(--ring) 20%, transparent);
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
1516
|
@media (hover: hover) {
|
|
1499
1517
|
.hover\:border-ring:hover {
|
|
1500
1518
|
border-color: var(--ring);
|
|
@@ -1548,6 +1566,9 @@
|
|
|
1548
1566
|
.hover\:opacity-85:hover {
|
|
1549
1567
|
opacity: 85%;
|
|
1550
1568
|
}
|
|
1569
|
+
.hover\:opacity-90:hover {
|
|
1570
|
+
opacity: 90%;
|
|
1571
|
+
}
|
|
1551
1572
|
}
|
|
1552
1573
|
.focus\:border-ring:focus {
|
|
1553
1574
|
border-color: var(--ring);
|
|
@@ -1620,15 +1641,35 @@
|
|
|
1620
1641
|
.disabled\:opacity-60:disabled {
|
|
1621
1642
|
opacity: 60%;
|
|
1622
1643
|
}
|
|
1644
|
+
@media (hover: hover) {
|
|
1645
|
+
.disabled\:hover\:bg-transparent:disabled:hover {
|
|
1646
|
+
background-color: transparent;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
.has-disabled\:cursor-not-allowed:has(:disabled) {
|
|
1650
|
+
cursor: not-allowed;
|
|
1651
|
+
}
|
|
1652
|
+
.has-disabled\:opacity-50:has(:disabled) {
|
|
1653
|
+
opacity: 50%;
|
|
1654
|
+
}
|
|
1623
1655
|
.has-\[\[aria-expanded\=true\]\]\:opacity-100:has(:is([aria-expanded=true])) {
|
|
1624
1656
|
opacity: 100%;
|
|
1625
1657
|
}
|
|
1626
1658
|
.aria-disabled\:pointer-events-none[aria-disabled="true"] {
|
|
1627
1659
|
pointer-events: none;
|
|
1628
1660
|
}
|
|
1661
|
+
.aria-disabled\:cursor-not-allowed[aria-disabled="true"] {
|
|
1662
|
+
cursor: not-allowed;
|
|
1663
|
+
}
|
|
1629
1664
|
.aria-disabled\:opacity-50[aria-disabled="true"] {
|
|
1630
1665
|
opacity: 50%;
|
|
1631
1666
|
}
|
|
1667
|
+
.data-dragging\:border-ring[data-dragging] {
|
|
1668
|
+
border-color: var(--ring);
|
|
1669
|
+
}
|
|
1670
|
+
.data-dragging\:bg-subtle[data-dragging] {
|
|
1671
|
+
background-color: var(--accent);
|
|
1672
|
+
}
|
|
1632
1673
|
.data-\[active\=true\]\:bg-sidebar-accent[data-active="true"] {
|
|
1633
1674
|
background-color: var(--sidebar-accent);
|
|
1634
1675
|
}
|
|
@@ -1657,6 +1698,15 @@
|
|
|
1657
1698
|
.data-\[highlighted\]\:bg-subtle[data-highlighted] {
|
|
1658
1699
|
background-color: var(--accent);
|
|
1659
1700
|
}
|
|
1701
|
+
.data-\[orientation\=horizontal\]\:flex-row[data-orientation="horizontal"] {
|
|
1702
|
+
flex-direction: row;
|
|
1703
|
+
}
|
|
1704
|
+
.data-\[orientation\=horizontal\]\:items-center[data-orientation="horizontal"] {
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
}
|
|
1707
|
+
.data-\[orientation\=vertical\]\:flex-col[data-orientation="vertical"] {
|
|
1708
|
+
flex-direction: column;
|
|
1709
|
+
}
|
|
1660
1710
|
.data-\[selected\=true\]\:bg-subtle[data-selected="true"] {
|
|
1661
1711
|
background-color: var(--accent);
|
|
1662
1712
|
}
|
|
@@ -1698,6 +1748,31 @@
|
|
|
1698
1748
|
color: var(--sidebar-accent-foreground);
|
|
1699
1749
|
}
|
|
1700
1750
|
}
|
|
1751
|
+
@media (width < 40rem) {
|
|
1752
|
+
.max-sm\:top-0 {
|
|
1753
|
+
top: 0px;
|
|
1754
|
+
}
|
|
1755
|
+
.max-sm\:left-0 {
|
|
1756
|
+
left: 0px;
|
|
1757
|
+
}
|
|
1758
|
+
.max-sm\:h-dvh {
|
|
1759
|
+
height: 100dvh;
|
|
1760
|
+
}
|
|
1761
|
+
.max-sm\:max-h-dvh {
|
|
1762
|
+
max-height: 100dvh;
|
|
1763
|
+
}
|
|
1764
|
+
.max-sm\:translate-x-0 {
|
|
1765
|
+
--tw-translate-x: 0px;
|
|
1766
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1767
|
+
}
|
|
1768
|
+
.max-sm\:translate-y-0 {
|
|
1769
|
+
--tw-translate-y: 0px;
|
|
1770
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1771
|
+
}
|
|
1772
|
+
.max-sm\:rounded-none {
|
|
1773
|
+
border-radius: 0;
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1701
1776
|
@media (width >= 40rem) {
|
|
1702
1777
|
.sm\:block {
|
|
1703
1778
|
display: block;
|
|
@@ -1853,7 +1928,58 @@
|
|
|
1853
1928
|
flex-shrink: 0;
|
|
1854
1929
|
}
|
|
1855
1930
|
}
|
|
1856
|
-
:
|
|
1931
|
+
:where(.dark, .light, [data-theme]) {
|
|
1932
|
+
--color-background: var(--background);
|
|
1933
|
+
--color-foreground: var(--foreground);
|
|
1934
|
+
--color-card: var(--card);
|
|
1935
|
+
--color-card-foreground: var(--card-foreground);
|
|
1936
|
+
--color-popover: var(--popover);
|
|
1937
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
1938
|
+
--color-primary: var(--primary);
|
|
1939
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
1940
|
+
--color-secondary: var(--secondary);
|
|
1941
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
1942
|
+
--color-muted: var(--muted-foreground);
|
|
1943
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
1944
|
+
--color-accent: var(--accent);
|
|
1945
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
1946
|
+
--color-border: var(--border);
|
|
1947
|
+
--color-input: var(--input);
|
|
1948
|
+
--color-ring: var(--ring);
|
|
1949
|
+
--color-destructive: var(--destructive);
|
|
1950
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
1951
|
+
--color-destructive-soft: var(--destructive-soft);
|
|
1952
|
+
--color-success: var(--success);
|
|
1953
|
+
--color-success-foreground: var(--success-foreground);
|
|
1954
|
+
--color-success-soft: var(--success-soft);
|
|
1955
|
+
--color-warning: var(--warning);
|
|
1956
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
1957
|
+
--color-warning-soft: var(--warning-soft);
|
|
1958
|
+
--color-info: var(--info);
|
|
1959
|
+
--color-info-foreground: var(--info-foreground);
|
|
1960
|
+
--color-info-soft: var(--info-soft);
|
|
1961
|
+
--color-sidebar: var(--sidebar);
|
|
1962
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
1963
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
1964
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
1965
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
1966
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
1967
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
1968
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
1969
|
+
--color-brand: var(--brand);
|
|
1970
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
1971
|
+
--color-canvas: var(--background);
|
|
1972
|
+
--color-surface: var(--card);
|
|
1973
|
+
--color-subtle: var(--accent);
|
|
1974
|
+
--color-ink: var(--foreground);
|
|
1975
|
+
--color-danger: var(--destructive);
|
|
1976
|
+
--color-danger-soft: var(--destructive-soft);
|
|
1977
|
+
--color-sidebar-canvas: var(--sidebar);
|
|
1978
|
+
--color-sidebar-surface: var(--card);
|
|
1979
|
+
--color-sidebar-ink: var(--sidebar-foreground);
|
|
1980
|
+
--color-sidebar-muted: var(--muted-foreground);
|
|
1981
|
+
}
|
|
1982
|
+
:root, :where(.light, [data-theme='light']) {
|
|
1857
1983
|
--radius: 0.625rem;
|
|
1858
1984
|
--background: oklch(1 0 0);
|
|
1859
1985
|
--foreground: oklch(0.145 0 0);
|
|
@@ -1911,6 +2037,8 @@
|
|
|
1911
2037
|
--sidebar-ring: oklch(0.708 0 0);
|
|
1912
2038
|
--brand: oklch(0.55 0.16 275);
|
|
1913
2039
|
--brand-foreground: oklch(0.985 0 0);
|
|
2040
|
+
--text-min: 0.75rem;
|
|
2041
|
+
--text-code: 0.8125rem;
|
|
1914
2042
|
}
|
|
1915
2043
|
:where(.dark, [data-theme='dark']) {
|
|
1916
2044
|
--background: oklch(0.145 0 0);
|
|
@@ -2034,6 +2162,66 @@
|
|
|
2034
2162
|
[data-webskill-theme='dark'] {
|
|
2035
2163
|
color-scheme: dark;
|
|
2036
2164
|
}
|
|
2165
|
+
:root {
|
|
2166
|
+
--webskill-z-content: 0;
|
|
2167
|
+
--webskill-z-sticky: 10;
|
|
2168
|
+
--webskill-z-raised: 20;
|
|
2169
|
+
--webskill-z-overlay: 1000;
|
|
2170
|
+
--webskill-z-scrim: 10;
|
|
2171
|
+
--webskill-z-sheet: 20;
|
|
2172
|
+
--webskill-z-dialog: 30;
|
|
2173
|
+
--webskill-z-popper: 40;
|
|
2174
|
+
--webskill-z-tooltip: 50;
|
|
2175
|
+
--webskill-z-toast: 60;
|
|
2176
|
+
}
|
|
2177
|
+
@layer components {
|
|
2178
|
+
.webskill-sheet-content {
|
|
2179
|
+
width: var(--webskill-sheet-width, min(22rem, calc(100vw - 2rem)));
|
|
2180
|
+
}
|
|
2181
|
+
.webskill-dialog-content {
|
|
2182
|
+
width: var(--webskill-dialog-width, min(100% - 2rem, 32rem));
|
|
2183
|
+
}
|
|
2184
|
+
@media (width < 40rem) {
|
|
2185
|
+
.webskill-dialog-content {
|
|
2186
|
+
width: 100%;
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
.webskill-toast-root {
|
|
2190
|
+
width: 100%;
|
|
2191
|
+
max-width: var(--webskill-toast-width, 24rem);
|
|
2192
|
+
}
|
|
2193
|
+
.webskill-input {
|
|
2194
|
+
width: 100%;
|
|
2195
|
+
height: 2.25rem;
|
|
2196
|
+
padding-inline: 0.75rem;
|
|
2197
|
+
}
|
|
2198
|
+
.webskill-resizable-panel {
|
|
2199
|
+
min-height: 0;
|
|
2200
|
+
}
|
|
2201
|
+
.webskill-dropdown-content {
|
|
2202
|
+
min-width: 10rem;
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
.webskill-record-highlight {
|
|
2206
|
+
animation: webskill-record-highlight 1.6s ease-out 1;
|
|
2207
|
+
}
|
|
2208
|
+
@keyframes webskill-record-highlight {
|
|
2209
|
+
0%, 40% {
|
|
2210
|
+
background-color: color-mix(in oklab, var(--color-accent) 18%, transparent);
|
|
2211
|
+
}
|
|
2212
|
+
100% {
|
|
2213
|
+
background-color: transparent;
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2217
|
+
.webskill-record-highlight {
|
|
2218
|
+
animation-duration: 1ms;
|
|
2219
|
+
background-color: var(--color-accent);
|
|
2220
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2221
|
+
background-color: color-mix(in oklab, var(--color-accent) 18%, transparent);
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2037
2225
|
.webskill-surface-list {
|
|
2038
2226
|
display: flex;
|
|
2039
2227
|
flex-direction: column;
|
|
@@ -2114,18 +2302,27 @@
|
|
|
2114
2302
|
border-inline: 0;
|
|
2115
2303
|
border-radius: 0;
|
|
2116
2304
|
}
|
|
2305
|
+
[data-webskill-data-table] {
|
|
2306
|
+
container-type: inline-size;
|
|
2307
|
+
container-name: webskill-table;
|
|
2308
|
+
}
|
|
2309
|
+
@container webskill-table (width < 30rem) {
|
|
2310
|
+
.webskill-surface__table-header th, .webskill-surface__table-body td {
|
|
2311
|
+
--webskill-table-min-col: 5rem;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2117
2314
|
.webskill-surface__table-scroll table {
|
|
2118
2315
|
width: max-content;
|
|
2119
2316
|
min-width: 100%;
|
|
2120
2317
|
}
|
|
2121
2318
|
.webskill-surface__table-header {
|
|
2122
2319
|
position: sticky;
|
|
2123
|
-
z-index:
|
|
2320
|
+
z-index: var(--webskill-z-sticky);
|
|
2124
2321
|
top: 0;
|
|
2125
2322
|
background: var(--color-subtle);
|
|
2126
2323
|
}
|
|
2127
2324
|
.webskill-surface__table-header th, .webskill-surface__table-body td {
|
|
2128
|
-
min-width: 8rem;
|
|
2325
|
+
min-width: var(--webskill-table-min-col, 8rem);
|
|
2129
2326
|
border-inline-end: 1px solid var(--color-border);
|
|
2130
2327
|
border-bottom: 1px solid var(--color-border);
|
|
2131
2328
|
padding: 0.625rem 0.75rem;
|
|
@@ -2244,10 +2441,6 @@
|
|
|
2244
2441
|
opacity: 1;
|
|
2245
2442
|
}
|
|
2246
2443
|
.webskill-aui-composer {
|
|
2247
|
-
border-top: 1px solid var(--color-border);
|
|
2248
|
-
background: var(--color-card);
|
|
2249
|
-
}
|
|
2250
|
-
.webskill-aui-composer[data-centered='true'] {
|
|
2251
2444
|
border-top: 0;
|
|
2252
2445
|
background: transparent;
|
|
2253
2446
|
}
|