@cherrystudio/file-preview 0.2.3 → 0.2.5
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 +6 -6
- package/dist/{Combination-i8Z9CJHc.js → Combination-CBuGcY5S.js} +2 -2
- package/dist/{FilePreviewTooLarge-DC7vPyMI.js → FilePreviewTooLarge-CZHFMl0w.js} +1 -1
- package/dist/{FilePreviewToolbarButton-ptqwCTnz.js → FilePreviewToolbarButton-BUzQxFLX.js} +27 -6
- package/dist/{ImageFilePreview-C_P1iIEi.js → ImageFilePreview-JR2KQf2x.js} +6 -6
- package/dist/{PdfFilePreview-CbrMcPzo.js → PdfFilePreview-B34-QmrL.js} +26 -11
- package/dist/{PowerPointFilePreview-9E6kUy_A.js → PowerPointFilePreview-NukTW9aw.js} +6 -6
- package/dist/{RtfFilePreview-Bgl6lmWy.js → RtfFilePreview-Bdy8iPf9.js} +3 -3
- package/dist/{SpreadsheetFilePreview-PWFG3UY3.js → SpreadsheetFilePreview-jB17TCNJ.js} +5 -5
- package/dist/{WordFilePreview-Do062CDe.js → WordFilePreview-YznLhQcq.js} +13 -8
- package/dist/{circle-alert-sByhBDN4.js → circle-alert-DOgmM2Zn.js} +1 -1
- package/dist/{imageFilePreviewPlugin-D6hV1Hm1.js → imageFilePreviewPlugin-C02W1uyU.js} +1 -1
- package/dist/react.js +8 -8
- package/dist/{rotate-ccw-Bx-jjhVm.js → rotate-ccw-q9GRRcYM.js} +1 -1
- package/dist/styles.css +167 -64
- package/dist/useTranslation-ezxuF2DX.js +5332 -0
- package/dist/{zoom-out-B2XJ64Kx.js → zoom-out-DYpR5v9K.js} +1 -1
- package/package.json +1 -1
- package/dist/useTranslation-BJY4EKsz.js +0 -3631
package/dist/styles.css
CHANGED
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
--fp-tw-ring-offset-color: #fff;
|
|
39
39
|
--fp-tw-ring-offset-shadow: 0 0 #0000;
|
|
40
40
|
--fp-tw-outline-style: solid;
|
|
41
|
+
--fp-tw-duration: initial;
|
|
41
42
|
--fp-tw-content: "";
|
|
42
43
|
--fp-tw-ease: initial;
|
|
43
|
-
--fp-tw-duration: initial;
|
|
44
44
|
--fp-tw-animation-delay: 0s;
|
|
45
45
|
--fp-tw-animation-direction: normal;
|
|
46
46
|
--fp-tw-animation-duration: initial;
|
|
@@ -392,6 +392,10 @@
|
|
|
392
392
|
display: none;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
:where(.file-preview-root):is(.hidden\!), :where(.file-preview-root) .hidden\! {
|
|
396
|
+
display: none !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
395
399
|
:where(.file-preview-root):is(.inline), :where(.file-preview-root) .inline {
|
|
396
400
|
display: inline;
|
|
397
401
|
}
|
|
@@ -457,6 +461,10 @@
|
|
|
457
461
|
height: var(--file-preview-toolbar-button-size, 1.75rem);
|
|
458
462
|
}
|
|
459
463
|
|
|
464
|
+
:where(.file-preview-root):is(.h-3), :where(.file-preview-root) .h-3 {
|
|
465
|
+
height: calc(var(--spacing) * 3);
|
|
466
|
+
}
|
|
467
|
+
|
|
460
468
|
:where(.file-preview-root):is(.h-4), :where(.file-preview-root) .h-4 {
|
|
461
469
|
height: calc(var(--spacing) * 4);
|
|
462
470
|
}
|
|
@@ -541,6 +549,10 @@
|
|
|
541
549
|
min-height: 100%;
|
|
542
550
|
}
|
|
543
551
|
|
|
552
|
+
:where(.file-preview-root):is(.w-3), :where(.file-preview-root) .w-3 {
|
|
553
|
+
width: calc(var(--spacing) * 3);
|
|
554
|
+
}
|
|
555
|
+
|
|
544
556
|
:where(.file-preview-root):is(.w-10), :where(.file-preview-root) .w-10 {
|
|
545
557
|
width: calc(var(--spacing) * 10);
|
|
546
558
|
}
|
|
@@ -734,16 +746,16 @@
|
|
|
734
746
|
resize: both;
|
|
735
747
|
}
|
|
736
748
|
|
|
737
|
-
:where(.file-preview-root):is(.\[scrollbar-
|
|
738
|
-
scrollbar-
|
|
749
|
+
:where(.file-preview-root):is(.\[scrollbar-gutter\:auto\]\!), :where(.file-preview-root) .\[scrollbar-gutter\:auto\]\! {
|
|
750
|
+
scrollbar-gutter: auto !important;
|
|
739
751
|
}
|
|
740
752
|
|
|
741
|
-
:where(.file-preview-root):is(
|
|
742
|
-
|
|
753
|
+
:where(.file-preview-root):is(.grid-cols-\[minmax\(0\,1fr\)\]), :where(.file-preview-root) .grid-cols-\[minmax\(0\,1fr\)\] {
|
|
754
|
+
grid-template-columns: minmax(0, 1fr);
|
|
743
755
|
}
|
|
744
756
|
|
|
745
|
-
:where(.file-preview-root):is(
|
|
746
|
-
|
|
757
|
+
:where(.file-preview-root):is(.grid-rows-\[minmax\(0\,1fr\)\]), :where(.file-preview-root) .grid-rows-\[minmax\(0\,1fr\)\] {
|
|
758
|
+
grid-template-rows: minmax(0, 1fr);
|
|
747
759
|
}
|
|
748
760
|
|
|
749
761
|
:where(.file-preview-root):is(.flex-col), :where(.file-preview-root) .flex-col {
|
|
@@ -872,6 +884,11 @@
|
|
|
872
884
|
border-width: 0;
|
|
873
885
|
}
|
|
874
886
|
|
|
887
|
+
:where(.file-preview-root):is(.border-\[1\.5px\]), :where(.file-preview-root) .border-\[1\.5px\] {
|
|
888
|
+
border-style: var(--fp-tw-border-style);
|
|
889
|
+
border-width: 1.5px;
|
|
890
|
+
}
|
|
891
|
+
|
|
875
892
|
:where(.file-preview-root):is(.border-t), :where(.file-preview-root) .border-t {
|
|
876
893
|
border-top-style: var(--fp-tw-border-style);
|
|
877
894
|
border-top-width: 1px;
|
|
@@ -907,6 +924,11 @@
|
|
|
907
924
|
border-style: dashed;
|
|
908
925
|
}
|
|
909
926
|
|
|
927
|
+
:where(.file-preview-root):is(.border-solid), :where(.file-preview-root) .border-solid {
|
|
928
|
+
--fp-tw-border-style: solid;
|
|
929
|
+
border-style: solid;
|
|
930
|
+
}
|
|
931
|
+
|
|
910
932
|
:where(.file-preview-root):is(.border-border), :where(.file-preview-root) .border-border {
|
|
911
933
|
border-color: var(--border);
|
|
912
934
|
}
|
|
@@ -923,6 +945,16 @@
|
|
|
923
945
|
border-color: #0000;
|
|
924
946
|
}
|
|
925
947
|
|
|
948
|
+
:where(.file-preview-root):is(.bg-\[var\(--scrollbar-thumb\,color-mix\(in_srgb\,var\(--foreground\)_15\%\,transparent\)\)\]), :where(.file-preview-root) .bg-\[var\(--scrollbar-thumb\,color-mix\(in_srgb\,var\(--foreground\)_15\%\,transparent\)\)\] {
|
|
949
|
+
background-color: var(--scrollbar-thumb, var(--foreground));
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
953
|
+
:where(.file-preview-root):is(.bg-\[var\(--scrollbar-thumb\,color-mix\(in_srgb\,var\(--foreground\)_15\%\,transparent\)\)\]), :where(.file-preview-root) .bg-\[var\(--scrollbar-thumb\,color-mix\(in_srgb\,var\(--foreground\)_15\%\,transparent\)\)\] {
|
|
954
|
+
background-color: var(--scrollbar-thumb, color-mix(in srgb,var(--foreground) 15%,transparent));
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
926
958
|
:where(.file-preview-root):is(.bg-background), :where(.file-preview-root) .bg-background {
|
|
927
959
|
background-color: var(--background);
|
|
928
960
|
}
|
|
@@ -971,6 +1003,10 @@
|
|
|
971
1003
|
background-color: var(--muted);
|
|
972
1004
|
}
|
|
973
1005
|
|
|
1006
|
+
:where(.file-preview-root):is(.bg-neutral-100), :where(.file-preview-root) .bg-neutral-100 {
|
|
1007
|
+
background-color: var(--cs-neutral-100);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
974
1010
|
:where(.file-preview-root):is(.bg-neutral-900), :where(.file-preview-root) .bg-neutral-900 {
|
|
975
1011
|
background-color: var(--cs-neutral-900);
|
|
976
1012
|
}
|
|
@@ -1015,16 +1051,20 @@
|
|
|
1015
1051
|
background-color: var(--cs-white);
|
|
1016
1052
|
}
|
|
1017
1053
|
|
|
1054
|
+
:where(.file-preview-root):is(.bg-clip-padding), :where(.file-preview-root) .bg-clip-padding {
|
|
1055
|
+
background-clip: padding-box;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1018
1058
|
:where(.file-preview-root):is(.fill-current), :where(.file-preview-root) .fill-current {
|
|
1019
1059
|
fill: currentColor;
|
|
1020
1060
|
}
|
|
1021
1061
|
|
|
1022
|
-
:where(.file-preview-root):is(.fill-neutral-
|
|
1023
|
-
fill: var(--cs-neutral-
|
|
1062
|
+
:where(.file-preview-root):is(.fill-neutral-100), :where(.file-preview-root) .fill-neutral-100 {
|
|
1063
|
+
fill: var(--cs-neutral-100);
|
|
1024
1064
|
}
|
|
1025
1065
|
|
|
1026
|
-
:where(.file-preview-root):is(.stroke-neutral-
|
|
1027
|
-
stroke: var(--cs-neutral-
|
|
1066
|
+
:where(.file-preview-root):is(.stroke-neutral-100), :where(.file-preview-root) .stroke-neutral-100 {
|
|
1067
|
+
stroke: var(--cs-neutral-100);
|
|
1028
1068
|
}
|
|
1029
1069
|
|
|
1030
1070
|
:where(.file-preview-root):is(.stroke-2), :where(.file-preview-root) .stroke-2 {
|
|
@@ -1055,6 +1095,10 @@
|
|
|
1055
1095
|
padding: 3px;
|
|
1056
1096
|
}
|
|
1057
1097
|
|
|
1098
|
+
:where(.file-preview-root):is(.px-0\.5), :where(.file-preview-root) .px-0\.5 {
|
|
1099
|
+
padding-inline: calc(var(--spacing) * .5);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1058
1102
|
:where(.file-preview-root):is(.px-1), :where(.file-preview-root) .px-1 {
|
|
1059
1103
|
padding-inline: var(--spacing);
|
|
1060
1104
|
}
|
|
@@ -1079,6 +1123,10 @@
|
|
|
1079
1123
|
padding-inline: calc(var(--spacing) * 6);
|
|
1080
1124
|
}
|
|
1081
1125
|
|
|
1126
|
+
:where(.file-preview-root):is(.py-0\.5), :where(.file-preview-root) .py-0\.5 {
|
|
1127
|
+
padding-block: calc(var(--spacing) * .5);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1082
1130
|
:where(.file-preview-root):is(.py-1), :where(.file-preview-root) .py-1 {
|
|
1083
1131
|
padding-block: var(--spacing);
|
|
1084
1132
|
}
|
|
@@ -1103,6 +1151,10 @@
|
|
|
1103
1151
|
padding-top: calc(var(--spacing) * 14);
|
|
1104
1152
|
}
|
|
1105
1153
|
|
|
1154
|
+
:where(.file-preview-root):is(.pr-0\.5), :where(.file-preview-root) .pr-0\.5 {
|
|
1155
|
+
padding-right: calc(var(--spacing) * .5);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1106
1158
|
:where(.file-preview-root):is(.pr-2), :where(.file-preview-root) .pr-2 {
|
|
1107
1159
|
padding-right: calc(var(--spacing) * 2);
|
|
1108
1160
|
}
|
|
@@ -1111,6 +1163,10 @@
|
|
|
1111
1163
|
padding-bottom: 0;
|
|
1112
1164
|
}
|
|
1113
1165
|
|
|
1166
|
+
:where(.file-preview-root):is(.pb-0\.5), :where(.file-preview-root) .pb-0\.5 {
|
|
1167
|
+
padding-bottom: calc(var(--spacing) * .5);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1114
1170
|
:where(.file-preview-root):is(.pb-20), :where(.file-preview-root) .pb-20 {
|
|
1115
1171
|
padding-bottom: calc(var(--spacing) * 20);
|
|
1116
1172
|
}
|
|
@@ -1229,10 +1285,6 @@
|
|
|
1229
1285
|
color: var(--muted-foreground);
|
|
1230
1286
|
}
|
|
1231
1287
|
|
|
1232
|
-
:where(.file-preview-root):is(.text-neutral-50), :where(.file-preview-root) .text-neutral-50 {
|
|
1233
|
-
color: var(--cs-neutral-50);
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
1288
|
:where(.file-preview-root):is(.text-neutral-900), :where(.file-preview-root) .text-neutral-900 {
|
|
1237
1289
|
color: var(--cs-neutral-900);
|
|
1238
1290
|
}
|
|
@@ -1349,6 +1401,12 @@
|
|
|
1349
1401
|
}
|
|
1350
1402
|
}
|
|
1351
1403
|
|
|
1404
|
+
:where(.file-preview-root):is(.transition-\[border-width\,background-color\]), :where(.file-preview-root) .transition-\[border-width\,background-color\] {
|
|
1405
|
+
transition-property: border-width, background-color;
|
|
1406
|
+
transition-timing-function: var(--fp-tw-ease, var(--default-transition-timing-function));
|
|
1407
|
+
transition-duration: var(--fp-tw-duration, var(--default-transition-duration));
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1352
1410
|
:where(.file-preview-root):is(.transition-\[color\,box-shadow\]), :where(.file-preview-root) .transition-\[color\,box-shadow\] {
|
|
1353
1411
|
transition-property: color, box-shadow;
|
|
1354
1412
|
transition-timing-function: var(--fp-tw-ease, var(--default-transition-timing-function));
|
|
@@ -1371,6 +1429,16 @@
|
|
|
1371
1429
|
transition-property: none;
|
|
1372
1430
|
}
|
|
1373
1431
|
|
|
1432
|
+
:where(.file-preview-root):is(.duration-150), :where(.file-preview-root) .duration-150 {
|
|
1433
|
+
--fp-tw-duration: .15s;
|
|
1434
|
+
transition-duration: .15s;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
:where(.file-preview-root):is(.duration-200), :where(.file-preview-root) .duration-200 {
|
|
1438
|
+
--fp-tw-duration: .2s;
|
|
1439
|
+
transition-duration: .2s;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1374
1442
|
:where(.file-preview-root):is(.fill-mode-both), :where(.file-preview-root) .fill-mode-both {
|
|
1375
1443
|
--fp-tw-animation-fill-mode: both;
|
|
1376
1444
|
animation-fill-mode: both;
|
|
@@ -1403,6 +1471,23 @@
|
|
|
1403
1471
|
animation-play-state: running;
|
|
1404
1472
|
}
|
|
1405
1473
|
|
|
1474
|
+
@media (hover: hover) {
|
|
1475
|
+
:where(.file-preview-root):is(.group-hover\/scrollbar\:border-0:is(:where(.group\/scrollbar):hover *)), :where(.file-preview-root) .group-hover\/scrollbar\:border-0:is(:where(.group\/scrollbar):hover *) {
|
|
1476
|
+
border-style: var(--fp-tw-border-style);
|
|
1477
|
+
border-width: 0;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
:where(.file-preview-root):is(.group-hover\/scrollbar\:bg-\[var\(--scrollbar-thumb-hover\,color-mix\(in_srgb\,var\(--foreground\)_20\%\,transparent\)\)\]:is(:where(.group\/scrollbar):hover *)), :where(.file-preview-root) .group-hover\/scrollbar\:bg-\[var\(--scrollbar-thumb-hover\,color-mix\(in_srgb\,var\(--foreground\)_20\%\,transparent\)\)\]:is(:where(.group\/scrollbar):hover *) {
|
|
1481
|
+
background-color: var(--scrollbar-thumb-hover, var(--foreground));
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1485
|
+
:where(.file-preview-root):is(.group-hover\/scrollbar\:bg-\[var\(--scrollbar-thumb-hover\,color-mix\(in_srgb\,var\(--foreground\)_20\%\,transparent\)\)\]:is(:where(.group\/scrollbar):hover *)), :where(.file-preview-root) .group-hover\/scrollbar\:bg-\[var\(--scrollbar-thumb-hover\,color-mix\(in_srgb\,var\(--foreground\)_20\%\,transparent\)\)\]:is(:where(.group\/scrollbar):hover *) {
|
|
1486
|
+
background-color: var(--scrollbar-thumb-hover, color-mix(in srgb,var(--foreground) 20%,transparent));
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1406
1491
|
:where(.file-preview-root):is(.selection\:bg-primary ::selection), :where(.file-preview-root) .selection\:bg-primary ::selection {
|
|
1407
1492
|
background-color: var(--primary);
|
|
1408
1493
|
}
|
|
@@ -1536,10 +1621,6 @@
|
|
|
1536
1621
|
}
|
|
1537
1622
|
|
|
1538
1623
|
@media (hover: hover) {
|
|
1539
|
-
:where(.file-preview-root):is(.hover\:\[scrollbar-color\:var\(--scrollbar-thumb-hover\)_transparent\]:hover), :where(.file-preview-root) .hover\:\[scrollbar-color\:var\(--scrollbar-thumb-hover\)_transparent\]:hover {
|
|
1540
|
-
scrollbar-color: var(--scrollbar-thumb-hover) transparent;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
1624
|
:where(.file-preview-root):is(.hover\:bg-accent:hover), :where(.file-preview-root) .hover\:bg-accent:hover {
|
|
1544
1625
|
background-color: var(--accent);
|
|
1545
1626
|
}
|
|
@@ -1756,10 +1837,6 @@
|
|
|
1756
1837
|
opacity: .4;
|
|
1757
1838
|
}
|
|
1758
1839
|
|
|
1759
|
-
:where(.file-preview-root):is(.data-\[scrolling\=true\]\:\[scrollbar-color\:var\(--scrollbar-thumb\)_transparent\][data-scrolling="true"]), :where(.file-preview-root) .data-\[scrolling\=true\]\:\[scrollbar-color\:var\(--scrollbar-thumb\)_transparent\][data-scrolling="true"] {
|
|
1760
|
-
scrollbar-color: var(--scrollbar-thumb) transparent;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
1840
|
:where(.file-preview-root):is(.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"]), :where(.file-preview-root) .data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
|
|
1764
1841
|
--fp-tw-enter-translate-y: calc(2*var(--spacing)*-1);
|
|
1765
1842
|
}
|
|
@@ -1862,8 +1939,12 @@
|
|
|
1862
1939
|
--fp-tw-exit-translate-y: calc(4*var(--spacing));
|
|
1863
1940
|
}
|
|
1864
1941
|
|
|
1865
|
-
:where(.file-preview-root):is(.data-\[state\=
|
|
1866
|
-
--fp-tw-
|
|
1942
|
+
:where(.file-preview-root):is(.data-\[state\=hidden\]\:animate-out[data-state="hidden"]), :where(.file-preview-root) .data-\[state\=hidden\]\:animate-out[data-state="hidden"] {
|
|
1943
|
+
animation: fp-exit var(--fp-tw-animation-duration, var(--fp-tw-duration, .15s))var(--fp-tw-ease, ease)var(--fp-tw-animation-delay, 0s)var(--fp-tw-animation-iteration-count, 1)var(--fp-tw-animation-direction, normal)var(--fp-tw-animation-fill-mode, none);
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
:where(.file-preview-root):is(.data-\[state\=hidden\]\:fade-out-0[data-state="hidden"]), :where(.file-preview-root) .data-\[state\=hidden\]\:fade-out-0[data-state="hidden"] {
|
|
1947
|
+
--fp-tw-exit-opacity: 0;
|
|
1867
1948
|
}
|
|
1868
1949
|
|
|
1869
1950
|
:where(.file-preview-root):is(.data-\[state\=open\]\:animate-in[data-state="open"]), :where(.file-preview-root) .data-\[state\=open\]\:animate-in[data-state="open"] {
|
|
@@ -1913,14 +1994,14 @@
|
|
|
1913
1994
|
--fp-tw-enter-translate-y: calc(4*var(--spacing));
|
|
1914
1995
|
}
|
|
1915
1996
|
|
|
1916
|
-
:where(.file-preview-root):is(.data-\[state\=open\]\:zoom-in-99[data-state="open"]), :where(.file-preview-root) .data-\[state\=open\]\:zoom-in-99[data-state="open"] {
|
|
1917
|
-
--fp-tw-enter-scale: calc(99*1%);
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
1997
|
@media (prefers-reduced-motion: reduce) {
|
|
1921
1998
|
:where(.file-preview-root):is(.motion-reduce\:animate-none), :where(.file-preview-root) .motion-reduce\:animate-none {
|
|
1922
1999
|
animation: none;
|
|
1923
2000
|
}
|
|
2001
|
+
|
|
2002
|
+
:where(.file-preview-root):is(.motion-reduce\:transition-none), :where(.file-preview-root) .motion-reduce\:transition-none {
|
|
2003
|
+
transition-property: none;
|
|
2004
|
+
}
|
|
1924
2005
|
}
|
|
1925
2006
|
|
|
1926
2007
|
@media (min-width: 40rem) {
|
|
@@ -1998,18 +2079,26 @@
|
|
|
1998
2079
|
background-color: var(--cs-neutral-100);
|
|
1999
2080
|
}
|
|
2000
2081
|
|
|
2001
|
-
:where(.file-preview-root):is(.dark\:
|
|
2002
|
-
|
|
2082
|
+
:where(.file-preview-root):is(.dark\:bg-neutral-900:is(.dark *)), :where(.file-preview-root) .dark\:bg-neutral-900:is(.dark *) {
|
|
2083
|
+
background-color: var(--cs-neutral-900);
|
|
2003
2084
|
}
|
|
2004
2085
|
|
|
2005
|
-
:where(.file-preview-root):is(.dark\:
|
|
2006
|
-
|
|
2086
|
+
:where(.file-preview-root):is(.dark\:fill-neutral-900:is(.dark *)), :where(.file-preview-root) .dark\:fill-neutral-900:is(.dark *) {
|
|
2087
|
+
fill: var(--cs-neutral-900);
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
:where(.file-preview-root):is(.dark\:stroke-neutral-900:is(.dark *)), :where(.file-preview-root) .dark\:stroke-neutral-900:is(.dark *) {
|
|
2091
|
+
stroke: var(--cs-neutral-900);
|
|
2007
2092
|
}
|
|
2008
2093
|
|
|
2009
2094
|
:where(.file-preview-root):is(.dark\:text-muted-foreground:is(.dark *)), :where(.file-preview-root) .dark\:text-muted-foreground:is(.dark *) {
|
|
2010
2095
|
color: var(--muted-foreground);
|
|
2011
2096
|
}
|
|
2012
2097
|
|
|
2098
|
+
:where(.file-preview-root):is(.dark\:text-neutral-50:is(.dark *)), :where(.file-preview-root) .dark\:text-neutral-50:is(.dark *) {
|
|
2099
|
+
color: var(--cs-neutral-50);
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2013
2102
|
:where(.file-preview-root):is(.dark\:text-neutral-100:is(.dark *)), :where(.file-preview-root) .dark\:text-neutral-100:is(.dark *) {
|
|
2014
2103
|
color: var(--cs-neutral-100);
|
|
2015
2104
|
}
|
|
@@ -2194,29 +2283,6 @@
|
|
|
2194
2283
|
color: var(--destructive) !important;
|
|
2195
2284
|
}
|
|
2196
2285
|
|
|
2197
|
-
.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-\[var\(--scrollbar-thumb\)\]::-webkit-scrollbar-thumb {
|
|
2198
|
-
background-color: var(--scrollbar-thumb);
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-transparent::-webkit-scrollbar-thumb {
|
|
2202
|
-
background-color: #0000;
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
.\[\&\:\:-webkit-scrollbar-thumb\]\:transition-\[background\]::-webkit-scrollbar-thumb {
|
|
2206
|
-
transition-property: background;
|
|
2207
|
-
transition-timing-function: var(--fp-tw-ease, var(--default-transition-timing-function));
|
|
2208
|
-
transition-duration: var(--fp-tw-duration, var(--default-transition-duration));
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
.\[\&\:\:-webkit-scrollbar-thumb\]\:duration-\[2000ms\]::-webkit-scrollbar-thumb {
|
|
2212
|
-
--fp-tw-duration: 2s;
|
|
2213
|
-
transition-duration: 2s;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
.\[\&\:\:-webkit-scrollbar-thumb\:hover\]\:bg-\[var\(--scrollbar-thumb-hover\)\]::-webkit-scrollbar-thumb:hover {
|
|
2217
|
-
background-color: var(--scrollbar-thumb-hover);
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
2286
|
.\[\&\:not\(\:first-child\)\]\:before\:mr-3:not(:first-child):before {
|
|
2221
2287
|
content: var(--fp-tw-content);
|
|
2222
2288
|
margin-right: calc(var(--spacing) * 3);
|
|
@@ -2860,6 +2926,28 @@
|
|
|
2860
2926
|
--code-block: #e3e3e3;
|
|
2861
2927
|
--inline-code: #0000000f;
|
|
2862
2928
|
--inline-code-foreground: #da615c;
|
|
2929
|
+
--cherry-code-background: transparent;
|
|
2930
|
+
--cherry-code-foreground: var(--foreground);
|
|
2931
|
+
--cherry-code-muted: var(--muted-foreground);
|
|
2932
|
+
--cherry-code-selection: var(--link);
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2936
|
+
:where(.file-preview-root) {
|
|
2937
|
+
--cherry-code-selection: color-mix(in oklab, var(--link) 20%, transparent);
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
:where(.file-preview-root) {
|
|
2942
|
+
--cherry-code-keyword: var(--cs-violet-700);
|
|
2943
|
+
--cherry-code-string: var(--cs-emerald-700);
|
|
2944
|
+
--cherry-code-constant: var(--cs-amber-700);
|
|
2945
|
+
--cherry-code-type: var(--cs-cyan-700);
|
|
2946
|
+
--cherry-code-function: var(--cs-blue-600);
|
|
2947
|
+
--cherry-code-tag: var(--cs-rose-700);
|
|
2948
|
+
--cherry-code-link: var(--link);
|
|
2949
|
+
--cherry-code-inserted: var(--cs-green-700);
|
|
2950
|
+
--cherry-code-deleted: var(--cs-red-600);
|
|
2863
2951
|
--reference: #cfe1ff;
|
|
2864
2952
|
--reference-foreground: #000;
|
|
2865
2953
|
--reference-subtle: #f1f7ff;
|
|
@@ -2867,11 +2955,14 @@
|
|
|
2867
2955
|
--highlight: var(--cs-amber-200);
|
|
2868
2956
|
--highlight-accent: var(--cs-orange-400);
|
|
2869
2957
|
--markdown-important: var(--cs-violet-600);
|
|
2958
|
+
--chat-message-well: var(--cs-background);
|
|
2959
|
+
--chat-message-well-solid: var(--cs-background);
|
|
2960
|
+
--composer-surface: var(--cs-card);
|
|
2870
2961
|
--chat-user: #0000000b;
|
|
2871
|
-
--resource-list-row-hover: var(--
|
|
2962
|
+
--resource-list-row-hover: var(--resource-list-row-selected);
|
|
2872
2963
|
--resource-list-row-active: var(--accent);
|
|
2873
2964
|
--resource-list-row-active-foreground: var(--accent-foreground);
|
|
2874
|
-
--resource-list-row-selected:
|
|
2965
|
+
--resource-list-row-selected: oklch(0% 0 0 / .08);
|
|
2875
2966
|
--resource-list-row-selected-foreground: var(--accent-foreground);
|
|
2876
2967
|
}
|
|
2877
2968
|
|
|
@@ -2879,6 +2970,14 @@
|
|
|
2879
2970
|
--link: var(--cs-blue-400);
|
|
2880
2971
|
--code-block: #323232;
|
|
2881
2972
|
--inline-code: #323232;
|
|
2973
|
+
--cherry-code-keyword: var(--cs-violet-300);
|
|
2974
|
+
--cherry-code-string: var(--cs-emerald-300);
|
|
2975
|
+
--cherry-code-constant: var(--cs-orange-300);
|
|
2976
|
+
--cherry-code-type: var(--cs-cyan-300);
|
|
2977
|
+
--cherry-code-function: var(--cs-blue-300);
|
|
2978
|
+
--cherry-code-tag: var(--cs-rose-300);
|
|
2979
|
+
--cherry-code-inserted: var(--cs-green-400);
|
|
2980
|
+
--cherry-code-deleted: var(--cs-red-400);
|
|
2882
2981
|
--reference: #404040;
|
|
2883
2982
|
--reference-foreground: #fff;
|
|
2884
2983
|
--reference-subtle: #0b0e12;
|
|
@@ -2886,7 +2985,11 @@
|
|
|
2886
2985
|
--highlight: var(--cs-amber-900);
|
|
2887
2986
|
--highlight-accent: var(--cs-orange-800);
|
|
2888
2987
|
--markdown-important: var(--cs-violet-400);
|
|
2889
|
-
--chat-
|
|
2988
|
+
--chat-message-well: oklch(17.27% 0 0 / .55);
|
|
2989
|
+
--chat-message-well-solid: oklch(19.1% 0 0);
|
|
2990
|
+
--composer-surface: #2f2f2f;
|
|
2991
|
+
--chat-user: oklch(23.93% 0 0);
|
|
2992
|
+
--resource-list-row-selected: oklch(100% 0 0 / .14);
|
|
2890
2993
|
}
|
|
2891
2994
|
|
|
2892
2995
|
@property --fp-tw-animation-delay {
|
|
@@ -3185,6 +3288,11 @@
|
|
|
3185
3288
|
initial-value: solid;
|
|
3186
3289
|
}
|
|
3187
3290
|
|
|
3291
|
+
@property --fp-tw-duration {
|
|
3292
|
+
syntax: "*";
|
|
3293
|
+
inherits: false
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3188
3296
|
@property --fp-tw-content {
|
|
3189
3297
|
syntax: "*";
|
|
3190
3298
|
inherits: false;
|
|
@@ -3196,11 +3304,6 @@
|
|
|
3196
3304
|
inherits: false
|
|
3197
3305
|
}
|
|
3198
3306
|
|
|
3199
|
-
@property --fp-tw-duration {
|
|
3200
|
-
syntax: "*";
|
|
3201
|
-
inherits: false
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
3307
|
@keyframes fp-spin {
|
|
3205
3308
|
to {
|
|
3206
3309
|
transform: rotate(360deg);
|