@univerjs/preset-docs-core 1.2.0 → 1.3.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/lib/index.css +128 -47
- package/package.json +11 -11
package/lib/index.css
CHANGED
|
@@ -192,10 +192,6 @@
|
|
|
192
192
|
top: 1px;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.\!univer-z-\[1090\] {
|
|
196
|
-
z-index: 1090 !important;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
195
|
.\!univer-z-\[1390\] {
|
|
200
196
|
z-index: 1390 !important;
|
|
201
197
|
}
|
|
@@ -479,6 +475,10 @@
|
|
|
479
475
|
height: 1rem;
|
|
480
476
|
}
|
|
481
477
|
|
|
478
|
+
.univer-h-40 {
|
|
479
|
+
height: 10rem;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
482
|
.univer-h-44 {
|
|
483
483
|
height: 11rem;
|
|
484
484
|
}
|
|
@@ -571,10 +571,6 @@
|
|
|
571
571
|
min-height: 520px;
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
.\!univer-w-fit {
|
|
575
|
-
width: fit-content !important;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
574
|
.\!univer-w-full {
|
|
579
575
|
width: 100% !important;
|
|
580
576
|
}
|
|
@@ -979,6 +975,16 @@
|
|
|
979
975
|
margin-bottom: calc(.5rem * var(--univer-tw-space-y-reverse));
|
|
980
976
|
}
|
|
981
977
|
|
|
978
|
+
.univer-space-y-3 > :not([hidden]) ~ :not([hidden]) {
|
|
979
|
+
--univer-tw-space-y-reverse: 0;
|
|
980
|
+
margin-top: .75rem;
|
|
981
|
+
margin-top: calc(.75rem * (1 - var(--univer-tw-space-y-reverse)));
|
|
982
|
+
margin-top: .75rem;
|
|
983
|
+
margin-top: calc(.75rem * calc(1 - var(--univer-tw-space-y-reverse)));
|
|
984
|
+
margin-bottom: 0;
|
|
985
|
+
margin-bottom: calc(.75rem * var(--univer-tw-space-y-reverse));
|
|
986
|
+
}
|
|
987
|
+
|
|
982
988
|
.univer-divide-x > :not([hidden]) ~ :not([hidden]) {
|
|
983
989
|
--univer-tw-divide-x-reverse: 0;
|
|
984
990
|
border-right-width: 0;
|
|
@@ -1231,6 +1237,10 @@
|
|
|
1231
1237
|
border-color: #0000 !important;
|
|
1232
1238
|
}
|
|
1233
1239
|
|
|
1240
|
+
.univer-border-black\/10 {
|
|
1241
|
+
border-color: #0000001a;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1234
1244
|
.univer-border-gray-0 {
|
|
1235
1245
|
border-color: var(--univer-gray-0);
|
|
1236
1246
|
}
|
|
@@ -2028,8 +2038,8 @@
|
|
|
2028
2038
|
--univer-tw-ring-offset-width: 2px;
|
|
2029
2039
|
}
|
|
2030
2040
|
|
|
2031
|
-
.\!univer-ring-offset-gray-
|
|
2032
|
-
--univer-tw-ring-offset-color: var(--univer-gray-
|
|
2041
|
+
.\!univer-ring-offset-gray-700 {
|
|
2042
|
+
--univer-tw-ring-offset-color: var(--univer-gray-700) !important;
|
|
2033
2043
|
}
|
|
2034
2044
|
|
|
2035
2045
|
.\!univer-ring-offset-gray-800 {
|
|
@@ -2081,12 +2091,6 @@
|
|
|
2081
2091
|
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2082
2092
|
}
|
|
2083
2093
|
|
|
2084
|
-
.univer-transition-shadow {
|
|
2085
|
-
transition-property: box-shadow;
|
|
2086
|
-
transition-duration: .15s;
|
|
2087
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
2094
|
.univer-transition-transform {
|
|
2091
2095
|
transition-property: transform;
|
|
2092
2096
|
transition-duration: .15s;
|
|
@@ -2544,10 +2548,6 @@
|
|
|
2544
2548
|
opacity: .7;
|
|
2545
2549
|
}
|
|
2546
2550
|
|
|
2547
|
-
.hover\:univer-opacity-80:hover {
|
|
2548
|
-
opacity: .8;
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
2551
|
.hover\:\[--gutter\:1rem\]:hover {
|
|
2552
2552
|
--gutter: 1rem;
|
|
2553
2553
|
}
|
|
@@ -2633,6 +2633,10 @@
|
|
|
2633
2633
|
outline-color: var(--univer-primary-500);
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
|
+
.focus-visible\:univer-outline-primary-600:focus-visible {
|
|
2637
|
+
outline-color: var(--univer-primary-600);
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2636
2640
|
.focus-visible\:\!univer-ring-2:focus-visible {
|
|
2637
2641
|
--univer-tw-ring-offset-shadow: var(--univer-tw-ring-inset) 0 0 0 var(--univer-tw-ring-offset-width) var(--univer-tw-ring-offset-color) !important;
|
|
2638
2642
|
--univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(2px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color) !important;
|
|
@@ -2940,16 +2944,12 @@
|
|
|
2940
2944
|
--univer-tw-ring-color: var(--univer-primary-400) !important;
|
|
2941
2945
|
}
|
|
2942
2946
|
|
|
2943
|
-
.dark\:\!univer-ring-primary-600:where(.univer-dark, .univer-dark *) {
|
|
2944
|
-
--univer-tw-ring-color: var(--univer-primary-600) !important;
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
2947
|
.dark\:\!univer-ring-primary-900:where(.univer-dark, .univer-dark *) {
|
|
2948
2948
|
--univer-tw-ring-color: var(--univer-primary-900) !important;
|
|
2949
2949
|
}
|
|
2950
2950
|
|
|
2951
|
-
.dark\:\!univer-ring-offset-gray-
|
|
2952
|
-
--univer-tw-ring-offset-color: var(--univer-gray-
|
|
2951
|
+
.dark\:\!univer-ring-offset-gray-700:where(.univer-dark, .univer-dark *) {
|
|
2952
|
+
--univer-tw-ring-offset-color: var(--univer-gray-700) !important;
|
|
2953
2953
|
}
|
|
2954
2954
|
|
|
2955
2955
|
.dark\:\!univer-ring-offset-gray-800:where(.univer-dark, .univer-dark *) {
|
|
@@ -3873,6 +3873,10 @@
|
|
|
3873
3873
|
cursor: pointer;
|
|
3874
3874
|
}
|
|
3875
3875
|
|
|
3876
|
+
.univer-select-none {
|
|
3877
|
+
user-select: none;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3876
3880
|
.univer-list-none {
|
|
3877
3881
|
list-style-type: none;
|
|
3878
3882
|
}
|
|
@@ -4883,6 +4887,10 @@
|
|
|
4883
4887
|
margin-bottom: 0;
|
|
4884
4888
|
}
|
|
4885
4889
|
|
|
4890
|
+
.univer-mb-1 {
|
|
4891
|
+
margin-bottom: .25rem;
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4886
4894
|
.univer-ml-2 {
|
|
4887
4895
|
margin-left: .5rem;
|
|
4888
4896
|
}
|
|
@@ -4965,11 +4973,6 @@
|
|
|
4965
4973
|
height: 1rem !important;
|
|
4966
4974
|
}
|
|
4967
4975
|
|
|
4968
|
-
.univer-size-1\.5 {
|
|
4969
|
-
width: .375rem;
|
|
4970
|
-
height: .375rem;
|
|
4971
|
-
}
|
|
4972
|
-
|
|
4973
4976
|
.univer-size-10 {
|
|
4974
4977
|
width: 2.5rem;
|
|
4975
4978
|
height: 2.5rem;
|
|
@@ -5030,6 +5033,14 @@
|
|
|
5030
5033
|
height: 100%;
|
|
5031
5034
|
}
|
|
5032
5035
|
|
|
5036
|
+
.\!univer-h-14 {
|
|
5037
|
+
height: 3.5rem !important;
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
.\!univer-h-auto {
|
|
5041
|
+
height: auto !important;
|
|
5042
|
+
}
|
|
5043
|
+
|
|
5033
5044
|
.univer-h-0 {
|
|
5034
5045
|
height: 0;
|
|
5035
5046
|
}
|
|
@@ -5066,6 +5077,10 @@
|
|
|
5066
5077
|
height: .5rem;
|
|
5067
5078
|
}
|
|
5068
5079
|
|
|
5080
|
+
.univer-h-3 {
|
|
5081
|
+
height: .75rem;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5069
5084
|
.univer-h-4 {
|
|
5070
5085
|
height: 1rem;
|
|
5071
5086
|
}
|
|
@@ -5098,6 +5113,10 @@
|
|
|
5098
5113
|
height: 340px;
|
|
5099
5114
|
}
|
|
5100
5115
|
|
|
5116
|
+
.univer-h-\[73px\] {
|
|
5117
|
+
height: 73px;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5101
5120
|
.univer-h-full {
|
|
5102
5121
|
height: 100%;
|
|
5103
5122
|
}
|
|
@@ -5126,6 +5145,10 @@
|
|
|
5126
5145
|
min-height: 5rem;
|
|
5127
5146
|
}
|
|
5128
5147
|
|
|
5148
|
+
.univer-min-h-7 {
|
|
5149
|
+
min-height: 1.75rem;
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5129
5152
|
.univer-min-h-8 {
|
|
5130
5153
|
min-height: 2rem;
|
|
5131
5154
|
}
|
|
@@ -5138,6 +5161,10 @@
|
|
|
5138
5161
|
min-height: 100%;
|
|
5139
5162
|
}
|
|
5140
5163
|
|
|
5164
|
+
.\!univer-w-14 {
|
|
5165
|
+
width: 3.5rem !important;
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5141
5168
|
.\!univer-w-full {
|
|
5142
5169
|
width: 100% !important;
|
|
5143
5170
|
}
|
|
@@ -5198,6 +5225,10 @@
|
|
|
5198
5225
|
width: 2rem;
|
|
5199
5226
|
}
|
|
5200
5227
|
|
|
5228
|
+
.univer-w-80 {
|
|
5229
|
+
width: 20rem;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5201
5232
|
.univer-w-9 {
|
|
5202
5233
|
width: 2.25rem;
|
|
5203
5234
|
}
|
|
@@ -5605,6 +5636,10 @@
|
|
|
5605
5636
|
overflow: hidden;
|
|
5606
5637
|
}
|
|
5607
5638
|
|
|
5639
|
+
.univer-whitespace-normal {
|
|
5640
|
+
white-space: normal;
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5608
5643
|
.univer-whitespace-nowrap {
|
|
5609
5644
|
white-space: nowrap;
|
|
5610
5645
|
}
|
|
@@ -5799,14 +5834,14 @@
|
|
|
5799
5834
|
background-color: var(--univer-gray-300);
|
|
5800
5835
|
}
|
|
5801
5836
|
|
|
5802
|
-
.univer-bg-gray-400 {
|
|
5803
|
-
background-color: var(--univer-gray-400);
|
|
5804
|
-
}
|
|
5805
|
-
|
|
5806
5837
|
.univer-bg-gray-50 {
|
|
5807
5838
|
background-color: var(--univer-gray-50);
|
|
5808
5839
|
}
|
|
5809
5840
|
|
|
5841
|
+
.univer-bg-gray-600 {
|
|
5842
|
+
background-color: var(--univer-gray-600);
|
|
5843
|
+
}
|
|
5844
|
+
|
|
5810
5845
|
.univer-bg-gray-700 {
|
|
5811
5846
|
background-color: var(--univer-gray-700);
|
|
5812
5847
|
}
|
|
@@ -6047,6 +6082,10 @@
|
|
|
6047
6082
|
text-align: right;
|
|
6048
6083
|
}
|
|
6049
6084
|
|
|
6085
|
+
.univer-text-start {
|
|
6086
|
+
text-align: left;
|
|
6087
|
+
}
|
|
6088
|
+
|
|
6050
6089
|
.univer-font-sans {
|
|
6051
6090
|
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
6052
6091
|
}
|
|
@@ -6149,6 +6188,10 @@
|
|
|
6149
6188
|
color: var(--univer-gray-900);
|
|
6150
6189
|
}
|
|
6151
6190
|
|
|
6191
|
+
.univer-text-inherit {
|
|
6192
|
+
color: inherit;
|
|
6193
|
+
}
|
|
6194
|
+
|
|
6152
6195
|
.univer-text-primary-500 {
|
|
6153
6196
|
color: var(--univer-primary-500);
|
|
6154
6197
|
}
|
|
@@ -6238,6 +6281,12 @@
|
|
|
6238
6281
|
transition-property: none !important;
|
|
6239
6282
|
}
|
|
6240
6283
|
|
|
6284
|
+
.univer-transition {
|
|
6285
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
6286
|
+
transition-duration: .15s;
|
|
6287
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
6288
|
+
}
|
|
6289
|
+
|
|
6241
6290
|
.univer-transition-\[height\] {
|
|
6242
6291
|
transition-property: height;
|
|
6243
6292
|
transition-duration: .15s;
|
|
@@ -6358,6 +6407,14 @@
|
|
|
6358
6407
|
opacity: .4;
|
|
6359
6408
|
}
|
|
6360
6409
|
|
|
6410
|
+
.data-\[state\=open\]\:univer-bg-primary-50[data-state="open"] {
|
|
6411
|
+
background-color: var(--univer-primary-50);
|
|
6412
|
+
}
|
|
6413
|
+
|
|
6414
|
+
.data-\[state\=open\]\:univer-text-primary-600[data-state="open"] {
|
|
6415
|
+
color: var(--univer-primary-600);
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6361
6418
|
@media (hover: hover) and (pointer: fine) {
|
|
6362
6419
|
.hover\:univer-border-primary-600:hover {
|
|
6363
6420
|
border-color: var(--univer-primary-600);
|
|
@@ -6407,14 +6464,14 @@
|
|
|
6407
6464
|
}
|
|
6408
6465
|
}
|
|
6409
6466
|
|
|
6410
|
-
.focus\:univer-bg-gray-0:focus {
|
|
6411
|
-
background-color: var(--univer-gray-0);
|
|
6412
|
-
}
|
|
6413
|
-
|
|
6414
6467
|
.focus\:univer-bg-gray-50:focus {
|
|
6415
6468
|
background-color: var(--univer-gray-50);
|
|
6416
6469
|
}
|
|
6417
6470
|
|
|
6471
|
+
.focus\:univer-bg-transparent:focus {
|
|
6472
|
+
background-color: #0000;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6418
6475
|
.focus\:univer-outline-none:focus {
|
|
6419
6476
|
outline-offset: 2px;
|
|
6420
6477
|
outline: 2px solid #0000;
|
|
@@ -6581,6 +6638,10 @@
|
|
|
6581
6638
|
border-bottom-right-radius: 0;
|
|
6582
6639
|
}
|
|
6583
6640
|
|
|
6641
|
+
.rtl\:univer-pl-0:where([dir="rtl"], [dir="rtl"] *) {
|
|
6642
|
+
padding-left: 0;
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6584
6645
|
.rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
|
|
6585
6646
|
padding-left: .375rem;
|
|
6586
6647
|
}
|
|
@@ -6605,12 +6666,16 @@
|
|
|
6605
6666
|
border-color: var(--univer-gray-700) !important;
|
|
6606
6667
|
}
|
|
6607
6668
|
|
|
6608
|
-
.dark\:\!univer-
|
|
6609
|
-
|
|
6669
|
+
.dark\:\!univer-border-gray-800:where(.univer-dark, .univer-dark *) {
|
|
6670
|
+
border-color: var(--univer-gray-800) !important;
|
|
6610
6671
|
}
|
|
6611
6672
|
|
|
6612
|
-
.dark\:\!univer-bg-gray-
|
|
6613
|
-
background-color: var(--univer-gray-
|
|
6673
|
+
.dark\:\!univer-bg-gray-100:where(.univer-dark, .univer-dark *) {
|
|
6674
|
+
background-color: var(--univer-gray-100) !important;
|
|
6675
|
+
}
|
|
6676
|
+
|
|
6677
|
+
.dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
|
|
6678
|
+
background-color: var(--univer-gray-200) !important;
|
|
6614
6679
|
}
|
|
6615
6680
|
|
|
6616
6681
|
.dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
|
|
@@ -6696,6 +6761,14 @@
|
|
|
6696
6761
|
box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
|
|
6697
6762
|
}
|
|
6698
6763
|
|
|
6764
|
+
.dark\:data-\[state\=open\]\:\!univer-bg-gray-700[data-state="open"]:where(.univer-dark, .univer-dark *) {
|
|
6765
|
+
background-color: var(--univer-gray-700) !important;
|
|
6766
|
+
}
|
|
6767
|
+
|
|
6768
|
+
.dark\:data-\[state\=open\]\:\!univer-text-primary-300[data-state="open"]:where(.univer-dark, .univer-dark *) {
|
|
6769
|
+
color: var(--univer-primary-300) !important;
|
|
6770
|
+
}
|
|
6771
|
+
|
|
6699
6772
|
@media (hover: hover) and (pointer: fine) {
|
|
6700
6773
|
.dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark, .univer-dark *) {
|
|
6701
6774
|
background-color: var(--univer-gray-600) !important;
|
|
@@ -6730,14 +6803,14 @@
|
|
|
6730
6803
|
background-color: var(--univer-gray-600) !important;
|
|
6731
6804
|
}
|
|
6732
6805
|
|
|
6733
|
-
.dark\:focus\:\!univer-bg-gray-800:focus:where(.univer-dark, .univer-dark *) {
|
|
6734
|
-
background-color: var(--univer-gray-800) !important;
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
6806
|
.dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
|
|
6738
6807
|
background-color: var(--univer-gray-900) !important;
|
|
6739
6808
|
}
|
|
6740
6809
|
|
|
6810
|
+
.dark\:focus\:\!univer-bg-transparent:focus:where(.univer-dark, .univer-dark *) {
|
|
6811
|
+
background-color: #0000 !important;
|
|
6812
|
+
}
|
|
6813
|
+
|
|
6741
6814
|
.dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
|
|
6742
6815
|
--univer-tw-ring-color: var(--univer-primary-300) !important;
|
|
6743
6816
|
}
|
|
@@ -6910,12 +6983,20 @@
|
|
|
6910
6983
|
width: 100%;
|
|
6911
6984
|
}
|
|
6912
6985
|
|
|
6986
|
+
.\[\&\>span\]\:univer-min-w-0 > span {
|
|
6987
|
+
min-width: 0;
|
|
6988
|
+
}
|
|
6989
|
+
|
|
6913
6990
|
.\[\&\>span\]\:univer-truncate > span {
|
|
6914
6991
|
text-overflow: ellipsis;
|
|
6915
6992
|
white-space: nowrap;
|
|
6916
6993
|
overflow: hidden;
|
|
6917
6994
|
}
|
|
6918
6995
|
|
|
6996
|
+
.\[\&\>span\]\:univer-whitespace-normal > span {
|
|
6997
|
+
white-space: normal;
|
|
6998
|
+
}
|
|
6999
|
+
|
|
6919
7000
|
.\[\&\>span\]\:univer-text-base > span {
|
|
6920
7001
|
font-size: 1rem;
|
|
6921
7002
|
line-height: 1.5rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/preset-docs-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Preset for core Univer Docs editing and UI features.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
"rxjs": ">=7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@univerjs/design": "1.
|
|
60
|
-
"@univerjs/docs": "1.
|
|
61
|
-
"@univerjs/docs-ui": "1.
|
|
62
|
-
"@univerjs/engine-formula": "1.
|
|
63
|
-
"@univerjs/engine-render": "1.
|
|
64
|
-
"@univerjs/network": "1.
|
|
65
|
-
"@univerjs/ui": "1.
|
|
59
|
+
"@univerjs/design": "1.3.0",
|
|
60
|
+
"@univerjs/docs": "1.3.0",
|
|
61
|
+
"@univerjs/docs-ui": "1.3.0",
|
|
62
|
+
"@univerjs/engine-formula": "1.3.0",
|
|
63
|
+
"@univerjs/engine-render": "1.3.0",
|
|
64
|
+
"@univerjs/network": "1.3.0",
|
|
65
|
+
"@univerjs/ui": "1.3.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@univerjs-infra/shared": "1.
|
|
69
|
-
"@univerjs/core": "1.
|
|
70
|
-
"@univerjs/presets": "1.
|
|
68
|
+
"@univerjs-infra/shared": "1.3.0",
|
|
69
|
+
"@univerjs/core": "1.3.0",
|
|
70
|
+
"@univerjs/presets": "1.3.0",
|
|
71
71
|
"react": "18.3.1",
|
|
72
72
|
"react-dom": "18.3.1",
|
|
73
73
|
"rxjs": "7.8.2",
|