@univerjs/preset-docs-core 1.0.0-beta.0 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/lib/index.css +402 -82
  2. package/package.json +11 -11
package/lib/index.css CHANGED
@@ -314,6 +314,11 @@
314
314
  height: 0;
315
315
  }
316
316
 
317
+ .univer-size-10 {
318
+ width: 2.5rem;
319
+ height: 2.5rem;
320
+ }
321
+
317
322
  .univer-size-2 {
318
323
  width: .5rem;
319
324
  height: .5rem;
@@ -655,6 +660,12 @@
655
660
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
656
661
  }
657
662
 
663
+ .univer-rotate-90 {
664
+ --univer-tw-rotate: 90deg;
665
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(90deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
666
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
667
+ }
668
+
658
669
  .univer-rotate-\[-90deg\] {
659
670
  --univer-tw-rotate: -90deg;
660
671
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(-90deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
@@ -1038,6 +1049,18 @@
1038
1049
  border-color: var(--univer-gray-200) !important;
1039
1050
  }
1040
1051
 
1052
+ .\!univer-border-gray-500 {
1053
+ border-color: var(--univer-gray-500) !important;
1054
+ }
1055
+
1056
+ .\!univer-border-transparent {
1057
+ border-color: #0000 !important;
1058
+ }
1059
+
1060
+ .univer-border-gray-0 {
1061
+ border-color: var(--univer-gray-0);
1062
+ }
1063
+
1041
1064
  .univer-border-gray-100 {
1042
1065
  border-color: var(--univer-gray-100);
1043
1066
  }
@@ -1074,10 +1097,6 @@
1074
1097
  border-color: #0000;
1075
1098
  }
1076
1099
 
1077
- .univer-border-white {
1078
- border-color: var(--univer-white);
1079
- }
1080
-
1081
1100
  .\!univer-bg-gray-500 {
1082
1101
  background-color: var(--univer-gray-500) !important;
1083
1102
  }
@@ -1086,10 +1105,18 @@
1086
1105
  background-color: var(--univer-gray-600) !important;
1087
1106
  }
1088
1107
 
1108
+ .\!univer-bg-gray-800 {
1109
+ background-color: var(--univer-gray-800) !important;
1110
+ }
1111
+
1089
1112
  .\!univer-bg-primary-600 {
1090
1113
  background-color: var(--univer-primary-600) !important;
1091
1114
  }
1092
1115
 
1116
+ .\!univer-bg-transparent {
1117
+ background-color: #0000 !important;
1118
+ }
1119
+
1093
1120
  .univer-bg-\[\#e8eefc\] {
1094
1121
  --univer-tw-bg-opacity: 1;
1095
1122
  background-color: #e8eefc;
@@ -1100,6 +1127,10 @@
1100
1127
  background-color: #000c;
1101
1128
  }
1102
1129
 
1130
+ .univer-bg-gray-0 {
1131
+ background-color: var(--univer-gray-0);
1132
+ }
1133
+
1103
1134
  .univer-bg-gray-100 {
1104
1135
  background-color: var(--univer-gray-100);
1105
1136
  }
@@ -1156,10 +1187,6 @@
1156
1187
  background-color: #0000;
1157
1188
  }
1158
1189
 
1159
- .univer-bg-white {
1160
- background-color: var(--univer-white);
1161
- }
1162
-
1163
1190
  .univer-bg-gradient-to-br {
1164
1191
  background-image: linear-gradient(to bottom right, var(--univer-tw-gradient-stops));
1165
1192
  }
@@ -1472,6 +1499,14 @@
1472
1499
  letter-spacing: .1em;
1473
1500
  }
1474
1501
 
1502
+ .\!univer-text-gray-0 {
1503
+ color: var(--univer-gray-0) !important;
1504
+ }
1505
+
1506
+ .\!univer-text-gray-300 {
1507
+ color: var(--univer-gray-300) !important;
1508
+ }
1509
+
1475
1510
  .\!univer-text-gray-400 {
1476
1511
  color: var(--univer-gray-400) !important;
1477
1512
  }
@@ -1480,10 +1515,6 @@
1480
1515
  color: var(--univer-primary-500) !important;
1481
1516
  }
1482
1517
 
1483
- .\!univer-text-white {
1484
- color: var(--univer-white) !important;
1485
- }
1486
-
1487
1518
  .univer-text-amber-500 {
1488
1519
  --univer-tw-text-opacity: 1;
1489
1520
  color: rgba(245, 158, 11, var(--univer-tw-text-opacity, 1));
@@ -1498,6 +1529,10 @@
1498
1529
  color: rgba(14, 116, 144, var(--univer-tw-text-opacity, 1));
1499
1530
  }
1500
1531
 
1532
+ .univer-text-gray-0 {
1533
+ color: var(--univer-gray-0);
1534
+ }
1535
+
1501
1536
  .univer-text-gray-400 {
1502
1537
  color: var(--univer-gray-400);
1503
1538
  }
@@ -1578,10 +1613,6 @@
1578
1613
  color: rgba(139, 92, 246, var(--univer-tw-text-opacity, 1));
1579
1614
  }
1580
1615
 
1581
- .univer-text-white {
1582
- color: var(--univer-white);
1583
- }
1584
-
1585
1616
  .univer-underline-offset-4 {
1586
1617
  text-underline-offset: 4px;
1587
1618
  }
@@ -1668,6 +1699,10 @@
1668
1699
  --univer-tw-ring-color: var(--univer-primary-900) !important;
1669
1700
  }
1670
1701
 
1702
+ .univer-ring-gray-0 {
1703
+ --univer-tw-ring-color: var(--univer-gray-0);
1704
+ }
1705
+
1671
1706
  .univer-ring-primary-50 {
1672
1707
  --univer-tw-ring-color: var(--univer-primary-50);
1673
1708
  }
@@ -1676,10 +1711,6 @@
1676
1711
  --univer-tw-ring-color: var(--univer-primary-500);
1677
1712
  }
1678
1713
 
1679
- .univer-ring-white {
1680
- --univer-tw-ring-color: var(--univer-white);
1681
- }
1682
-
1683
1714
  .univer-ring-offset-2 {
1684
1715
  --univer-tw-ring-offset-width: 2px;
1685
1716
  }
@@ -1688,8 +1719,8 @@
1688
1719
  --univer-tw-ring-offset-color: var(--univer-gray-600) !important;
1689
1720
  }
1690
1721
 
1691
- .univer-ring-offset-white {
1692
- --univer-tw-ring-offset-color: var(--univer-white);
1722
+ .univer-ring-offset-gray-0 {
1723
+ --univer-tw-ring-offset-color: var(--univer-gray-0);
1693
1724
  }
1694
1725
 
1695
1726
  .univer-drop-shadow-sm {
@@ -2090,6 +2121,14 @@
2090
2121
  border-color: #0000;
2091
2122
  }
2092
2123
 
2124
+ .hover\:\!univer-bg-gray-600:hover {
2125
+ background-color: var(--univer-gray-600) !important;
2126
+ }
2127
+
2128
+ .hover\:\!univer-bg-gray-700:hover {
2129
+ background-color: var(--univer-gray-700) !important;
2130
+ }
2131
+
2093
2132
  .hover\:univer-bg-gray-100:hover {
2094
2133
  background-color: var(--univer-gray-100);
2095
2134
  }
@@ -2110,6 +2149,10 @@
2110
2149
  background-color: var(--univer-red-400);
2111
2150
  }
2112
2151
 
2152
+ .hover\:\!univer-text-gray-0:hover {
2153
+ color: var(--univer-gray-0) !important;
2154
+ }
2155
+
2113
2156
  .hover\:univer-text-gray-500:hover {
2114
2157
  color: var(--univer-gray-500);
2115
2158
  }
@@ -2122,10 +2165,6 @@
2122
2165
  color: var(--univer-primary-500);
2123
2166
  }
2124
2167
 
2125
- .hover\:univer-text-white:hover {
2126
- color: var(--univer-white);
2127
- }
2128
-
2129
2168
  .hover\:univer-underline:hover {
2130
2169
  text-decoration-line: underline;
2131
2170
  }
@@ -2174,6 +2213,38 @@
2174
2213
  background-color: var(--univer-red-50);
2175
2214
  }
2176
2215
 
2216
+ .focus-visible\:\!univer-outline-none:focus-visible {
2217
+ outline-offset: 2px !important;
2218
+ outline: 2px solid #0000 !important;
2219
+ }
2220
+
2221
+ .focus-visible\:univer-outline-none:focus-visible {
2222
+ outline-offset: 2px;
2223
+ outline: 2px solid #0000;
2224
+ }
2225
+
2226
+ .focus-visible\:\!univer-ring-2:focus-visible {
2227
+ --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;
2228
+ --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;
2229
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000 !important;
2230
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
2231
+ }
2232
+
2233
+ .focus-visible\:univer-ring-2:focus-visible {
2234
+ --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);
2235
+ --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);
2236
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
2237
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
2238
+ }
2239
+
2240
+ .focus-visible\:\!univer-ring-gray-0:focus-visible {
2241
+ --univer-tw-ring-color: var(--univer-gray-0) !important;
2242
+ }
2243
+
2244
+ .focus-visible\:univer-ring-primary-500:focus-visible {
2245
+ --univer-tw-ring-color: var(--univer-primary-500);
2246
+ }
2247
+
2177
2248
  .active\:univer-border-red-600:active {
2178
2249
  border-color: var(--univer-red-600);
2179
2250
  }
@@ -2198,10 +2269,18 @@
2198
2269
  pointer-events: none;
2199
2270
  }
2200
2271
 
2272
+ .disabled\:univer-cursor-default:disabled {
2273
+ cursor: default;
2274
+ }
2275
+
2201
2276
  .disabled\:univer-cursor-not-allowed:disabled {
2202
2277
  cursor: not-allowed;
2203
2278
  }
2204
2279
 
2280
+ .disabled\:univer-opacity-40:disabled {
2281
+ opacity: .4;
2282
+ }
2283
+
2205
2284
  .disabled\:univer-opacity-50:disabled {
2206
2285
  opacity: .5;
2207
2286
  }
@@ -2280,6 +2359,12 @@
2280
2359
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
2281
2360
  }
2282
2361
 
2362
+ .rtl\:univer-rotate-90:where([dir="rtl"], [dir="rtl"] *) {
2363
+ --univer-tw-rotate: 90deg;
2364
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(90deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
2365
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
2366
+ }
2367
+
2283
2368
  .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
2284
2369
  flex-direction: row-reverse;
2285
2370
  }
@@ -2380,6 +2465,10 @@
2380
2465
  background-color: #0000 !important;
2381
2466
  }
2382
2467
 
2468
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
2469
+ color: var(--univer-gray-0) !important;
2470
+ }
2471
+
2383
2472
  .dark\:\!univer-text-gray-100:where(.univer-dark, .univer-dark *) {
2384
2473
  color: var(--univer-gray-100) !important;
2385
2474
  }
@@ -2417,10 +2506,6 @@
2417
2506
  color: rgba(56, 189, 248, var(--univer-tw-text-opacity, 1)) !important;
2418
2507
  }
2419
2508
 
2420
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
2421
- color: var(--univer-white) !important;
2422
- }
2423
-
2424
2509
  .dark\:\!univer-ring-primary-600:where(.univer-dark, .univer-dark *) {
2425
2510
  --univer-tw-ring-color: var(--univer-primary-600) !important;
2426
2511
  }
@@ -2462,8 +2547,8 @@
2462
2547
  background-color: var(--univer-gray-700) !important;
2463
2548
  }
2464
2549
 
2465
- .dark\:hover\:\!univer-text-white:hover:where(.univer-dark, .univer-dark *) {
2466
- color: var(--univer-white) !important;
2550
+ .dark\:hover\:\!univer-text-gray-0:hover:where(.univer-dark, .univer-dark *) {
2551
+ color: var(--univer-gray-0) !important;
2467
2552
  }
2468
2553
 
2469
2554
  .dark\:focus\:\!univer-border-primary-500:focus:where(.univer-dark, .univer-dark *) {
@@ -2518,8 +2603,8 @@
2518
2603
  border-color: var(--univer-gray-600) !important;
2519
2604
  }
2520
2605
 
2521
- .dark\:\[\&\>input\]\:\!univer-text-white > input:where(.univer-dark, .univer-dark *) {
2522
- color: var(--univer-white) !important;
2606
+ .dark\:\[\&\>input\]\:\!univer-text-gray-0 > input:where(.univer-dark, .univer-dark *) {
2607
+ color: var(--univer-gray-0) !important;
2523
2608
  }
2524
2609
 
2525
2610
  .\[\&\>svg\]\:univer-block > svg {
@@ -2764,12 +2849,12 @@
2764
2849
  line-height: 1.25rem;
2765
2850
  }
2766
2851
 
2767
- .\[\&_input\]\:univer-text-gray-700 input {
2768
- color: var(--univer-gray-700);
2852
+ .\[\&_input\]\:univer-text-gray-0 input {
2853
+ color: var(--univer-gray-0);
2769
2854
  }
2770
2855
 
2771
- .\[\&_input\]\:univer-text-white input {
2772
- color: var(--univer-white);
2856
+ .\[\&_input\]\:univer-text-gray-700 input {
2857
+ color: var(--univer-gray-700);
2773
2858
  }
2774
2859
 
2775
2860
  .\[\&_input\]\:univer-outline-none input {
@@ -2845,6 +2930,10 @@
2845
2930
  z-index: 1019;
2846
2931
  }
2847
2932
 
2933
+ .univer-m-0 {
2934
+ margin: 0;
2935
+ }
2936
+
2848
2937
  .univer-my-1 {
2849
2938
  margin-top: .25rem;
2850
2939
  margin-bottom: .25rem;
@@ -2912,6 +3001,11 @@
2912
3001
  height: .75rem;
2913
3002
  }
2914
3003
 
3004
+ .univer-size-3\.5 {
3005
+ width: .875rem;
3006
+ height: .875rem;
3007
+ }
3008
+
2915
3009
  .univer-size-4 {
2916
3010
  width: 1rem;
2917
3011
  height: 1rem;
@@ -2932,10 +3026,18 @@
2932
3026
  height: 100%;
2933
3027
  }
2934
3028
 
3029
+ .\!univer-h-7 {
3030
+ height: 1.75rem !important;
3031
+ }
3032
+
2935
3033
  .univer-h-0\.5 {
2936
3034
  height: .125rem;
2937
3035
  }
2938
3036
 
3037
+ .univer-h-1 {
3038
+ height: .25rem;
3039
+ }
3040
+
2939
3041
  .univer-h-16 {
2940
3042
  height: 4rem;
2941
3043
  }
@@ -2980,10 +3082,18 @@
2980
3082
  width: 7rem;
2981
3083
  }
2982
3084
 
3085
+ .univer-w-3 {
3086
+ width: .75rem;
3087
+ }
3088
+
2983
3089
  .univer-w-4\/5 {
2984
3090
  width: 80%;
2985
3091
  }
2986
3092
 
3093
+ .univer-w-80 {
3094
+ width: 20rem;
3095
+ }
3096
+
2987
3097
  .univer-w-\[0px\] {
2988
3098
  width: 0;
2989
3099
  }
@@ -3008,6 +3118,10 @@
3008
3118
  min-width: 0;
3009
3119
  }
3010
3120
 
3121
+ .univer-min-w-12 {
3122
+ min-width: 3rem;
3123
+ }
3124
+
3011
3125
  .univer-min-w-\[180px\] {
3012
3126
  min-width: 180px;
3013
3127
  }
@@ -3020,6 +3134,16 @@
3020
3134
  flex-shrink: 0;
3021
3135
  }
3022
3136
 
3137
+ @keyframes univer-spin {
3138
+ to {
3139
+ transform: rotate(360deg);
3140
+ }
3141
+ }
3142
+
3143
+ .univer-animate-spin {
3144
+ animation: 1s linear infinite univer-spin;
3145
+ }
3146
+
3023
3147
  .univer-cursor-grab {
3024
3148
  cursor: grab;
3025
3149
  }
@@ -3040,6 +3164,10 @@
3040
3164
  grid-template-columns: repeat(4, minmax(0, 1fr));
3041
3165
  }
3042
3166
 
3167
+ .univer-grid-rows-4 {
3168
+ grid-template-rows: repeat(4, minmax(0, 1fr));
3169
+ }
3170
+
3043
3171
  .univer-flex-col {
3044
3172
  flex-direction: column;
3045
3173
  }
@@ -3076,6 +3204,10 @@
3076
3204
  gap: .25rem;
3077
3205
  }
3078
3206
 
3207
+ .univer-gap-1\.5 {
3208
+ gap: .375rem;
3209
+ }
3210
+
3079
3211
  .univer-gap-2 {
3080
3212
  gap: .5rem;
3081
3213
  }
@@ -3184,6 +3316,10 @@
3184
3316
  background-color: var(--univer-primary-900) !important;
3185
3317
  }
3186
3318
 
3319
+ .univer-bg-gray-0 {
3320
+ background-color: var(--univer-gray-0);
3321
+ }
3322
+
3187
3323
  .univer-bg-gray-100 {
3188
3324
  background-color: var(--univer-gray-100);
3189
3325
  }
@@ -3196,6 +3332,10 @@
3196
3332
  background-color: var(--univer-gray-400);
3197
3333
  }
3198
3334
 
3335
+ .univer-bg-gray-50 {
3336
+ background-color: var(--univer-gray-50);
3337
+ }
3338
+
3199
3339
  .univer-bg-primary-600 {
3200
3340
  background-color: var(--univer-primary-600);
3201
3341
  }
@@ -3204,10 +3344,6 @@
3204
3344
  background-color: #0000;
3205
3345
  }
3206
3346
 
3207
- .univer-bg-white {
3208
- background-color: var(--univer-white);
3209
- }
3210
-
3211
3347
  .univer-p-0 {
3212
3348
  padding: 0;
3213
3349
  }
@@ -3220,6 +3356,10 @@
3220
3356
  padding: .375rem;
3221
3357
  }
3222
3358
 
3359
+ .univer-p-2 {
3360
+ padding: .5rem;
3361
+ }
3362
+
3223
3363
  .univer-px-2 {
3224
3364
  padding-left: .5rem;
3225
3365
  padding-right: .5rem;
@@ -3240,11 +3380,21 @@
3240
3380
  padding-bottom: 0;
3241
3381
  }
3242
3382
 
3383
+ .univer-py-1 {
3384
+ padding-top: .25rem;
3385
+ padding-bottom: .25rem;
3386
+ }
3387
+
3243
3388
  .univer-py-1\.5 {
3244
3389
  padding-top: .375rem;
3245
3390
  padding-bottom: .375rem;
3246
3391
  }
3247
3392
 
3393
+ .univer-py-3 {
3394
+ padding-top: .75rem;
3395
+ padding-bottom: .75rem;
3396
+ }
3397
+
3248
3398
  .univer-pb-0\.5 {
3249
3399
  padding-bottom: .125rem;
3250
3400
  }
@@ -3257,6 +3407,14 @@
3257
3407
  padding-left: .375rem;
3258
3408
  }
3259
3409
 
3410
+ .univer-pl-2 {
3411
+ padding-left: .5rem;
3412
+ }
3413
+
3414
+ .univer-pl-4 {
3415
+ padding-left: 1rem;
3416
+ }
3417
+
3260
3418
  .univer-pr-1 {
3261
3419
  padding-right: .25rem;
3262
3420
  }
@@ -3277,6 +3435,18 @@
3277
3435
  padding-top: .5rem;
3278
3436
  }
3279
3437
 
3438
+ .univer-text-center {
3439
+ text-align: center;
3440
+ }
3441
+
3442
+ .univer-text-right {
3443
+ text-align: right;
3444
+ }
3445
+
3446
+ .univer-text-\[10px\] {
3447
+ font-size: 10px;
3448
+ }
3449
+
3280
3450
  .univer-text-base {
3281
3451
  font-size: 1rem;
3282
3452
  line-height: 1.5rem;
@@ -3309,6 +3479,18 @@
3309
3479
  font-weight: 600;
3310
3480
  }
3311
3481
 
3482
+ .univer-tabular-nums {
3483
+ --univer-tw-numeric-spacing: tabular-nums;
3484
+ font-feature-settings: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) tabular-nums var(--univer-tw-numeric-fraction);
3485
+ font-feature-settings: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) var(--univer-tw-numeric-spacing) var(--univer-tw-numeric-fraction);
3486
+ font-variant-numeric: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) tabular-nums var(--univer-tw-numeric-fraction);
3487
+ font-variant-numeric: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) var(--univer-tw-numeric-spacing) var(--univer-tw-numeric-fraction);
3488
+ }
3489
+
3490
+ .univer-leading-4 {
3491
+ line-height: 1rem;
3492
+ }
3493
+
3312
3494
  .univer-leading-5 {
3313
3495
  line-height: 1.25rem;
3314
3496
  }
@@ -3317,6 +3499,14 @@
3317
3499
  line-height: 24px;
3318
3500
  }
3319
3501
 
3502
+ .univer-leading-none {
3503
+ line-height: 1;
3504
+ }
3505
+
3506
+ .\!univer-text-gray-0 {
3507
+ color: var(--univer-gray-0) !important;
3508
+ }
3509
+
3320
3510
  .\!univer-text-gray-200 {
3321
3511
  color: var(--univer-gray-200) !important;
3322
3512
  }
@@ -3325,12 +3515,12 @@
3325
3515
  color: var(--univer-gray-400) !important;
3326
3516
  }
3327
3517
 
3328
- .\!univer-text-primary-600 {
3329
- color: var(--univer-primary-600) !important;
3518
+ .\!univer-text-gray-600 {
3519
+ color: var(--univer-gray-600) !important;
3330
3520
  }
3331
3521
 
3332
- .\!univer-text-white {
3333
- color: var(--univer-white) !important;
3522
+ .\!univer-text-primary-600 {
3523
+ color: var(--univer-primary-600) !important;
3334
3524
  }
3335
3525
 
3336
3526
  .univer-text-gray-400 {
@@ -3357,6 +3547,10 @@
3357
3547
  color: var(--univer-gray-900);
3358
3548
  }
3359
3549
 
3550
+ .univer-text-primary-600 {
3551
+ color: var(--univer-primary-600);
3552
+ }
3553
+
3360
3554
  .univer-shadow {
3361
3555
  --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
3362
3556
  --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
@@ -3378,6 +3572,13 @@
3378
3572
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3379
3573
  }
3380
3574
 
3575
+ .univer-shadow-xl {
3576
+ --univer-tw-shadow: 0px 10px 10px 0px #1e284d0a, 0px 20px 24px -5px #1e284d1a;
3577
+ --univer-tw-shadow-colored: 0px 10px 10px 0px var(--univer-tw-shadow-color), 0px 20px 24px -5px var(--univer-tw-shadow-color);
3578
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 10px #1e284d0a, 0 20px 24px -5px #1e284d1a;
3579
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3580
+ }
3581
+
3381
3582
  .univer-backdrop-blur-\[10px\] {
3382
3583
  --univer-tw-backdrop-blur: blur(10px);
3383
3584
  backdrop-filter: var(--univer-tw-backdrop-blur) var(--univer-tw-backdrop-brightness) var(--univer-tw-backdrop-contrast) var(--univer-tw-backdrop-grayscale) var(--univer-tw-backdrop-hue-rotate) var(--univer-tw-backdrop-invert) var(--univer-tw-backdrop-opacity) var(--univer-tw-backdrop-saturate) var(--univer-tw-backdrop-sepia);
@@ -3407,12 +3608,12 @@
3407
3608
  border-color: var(--univer-primary-500);
3408
3609
  }
3409
3610
 
3410
- .hover\:univer-bg-gray-50:hover {
3411
- background-color: var(--univer-gray-50);
3611
+ .hover\:univer-bg-gray-0:hover {
3612
+ background-color: var(--univer-gray-0);
3412
3613
  }
3413
3614
 
3414
- .hover\:univer-bg-white:hover {
3415
- background-color: var(--univer-white);
3615
+ .hover\:univer-bg-gray-50:hover {
3616
+ background-color: var(--univer-gray-50);
3416
3617
  }
3417
3618
 
3418
3619
  .hover\:univer-text-gray-900:hover {
@@ -3430,10 +3631,29 @@
3430
3631
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3431
3632
  }
3432
3633
 
3634
+ .focus-visible\:univer-ring-2:focus-visible {
3635
+ --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);
3636
+ --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);
3637
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
3638
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
3639
+ }
3640
+
3641
+ .focus-visible\:univer-ring-primary-500:focus-visible {
3642
+ --univer-tw-ring-color: var(--univer-primary-500);
3643
+ }
3644
+
3433
3645
  .active\:univer-cursor-grabbing:active {
3434
3646
  cursor: grabbing;
3435
3647
  }
3436
3648
 
3649
+ .rtl\:univer-text-left:where([dir="rtl"], [dir="rtl"] *) {
3650
+ text-align: left;
3651
+ }
3652
+
3653
+ .rtl\:univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
3654
+ text-align: right;
3655
+ }
3656
+
3437
3657
  .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
3438
3658
  border-color: var(--univer-gray-700) !important;
3439
3659
  }
@@ -3466,6 +3686,10 @@
3466
3686
  background-color: var(--univer-gray-700);
3467
3687
  }
3468
3688
 
3689
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
3690
+ color: var(--univer-gray-0) !important;
3691
+ }
3692
+
3469
3693
  .dark\:\!univer-text-gray-100:where(.univer-dark, .univer-dark *) {
3470
3694
  color: var(--univer-gray-100) !important;
3471
3695
  }
@@ -3482,10 +3706,6 @@
3482
3706
  color: var(--univer-gray-400) !important;
3483
3707
  }
3484
3708
 
3485
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
3486
- color: var(--univer-white) !important;
3487
- }
3488
-
3489
3709
  .univer-group:hover .dark\:group-hover\:\!univer-bg-gray-300:where(.univer-dark, .univer-dark *) {
3490
3710
  background-color: var(--univer-gray-300) !important;
3491
3711
  }
@@ -3513,6 +3733,10 @@
3513
3733
  position: fixed;
3514
3734
  }
3515
3735
 
3736
+ .\!univer-absolute {
3737
+ position: absolute !important;
3738
+ }
3739
+
3516
3740
  .univer-absolute {
3517
3741
  position: absolute;
3518
3742
  }
@@ -3525,10 +3749,22 @@
3525
3749
  position: sticky;
3526
3750
  }
3527
3751
 
3752
+ .-univer-inset-full {
3753
+ inset: -100%;
3754
+ }
3755
+
3528
3756
  .univer-inset-0 {
3529
3757
  inset: 0;
3530
3758
  }
3531
3759
 
3760
+ .\!univer-bottom-0\.5 {
3761
+ bottom: .125rem !important;
3762
+ }
3763
+
3764
+ .\!univer-right-0\.5 {
3765
+ right: .125rem !important;
3766
+ }
3767
+
3532
3768
  .\!univer-top-auto {
3533
3769
  top: auto !important;
3534
3770
  }
@@ -3686,6 +3922,11 @@
3686
3922
  display: none;
3687
3923
  }
3688
3924
 
3925
+ .\!univer-size-2\.5 {
3926
+ width: .625rem !important;
3927
+ height: .625rem !important;
3928
+ }
3929
+
3689
3930
  .\!univer-size-3\.5 {
3690
3931
  width: .875rem !important;
3691
3932
  height: .875rem !important;
@@ -4310,6 +4551,10 @@
4310
4551
  border-radius: 10px;
4311
4552
  }
4312
4553
 
4554
+ .univer-rounded-\[inherit\] {
4555
+ border-radius: inherit;
4556
+ }
4557
+
4313
4558
  .univer-rounded-full {
4314
4559
  border-radius: 9999px;
4315
4560
  }
@@ -4396,12 +4641,12 @@
4396
4641
  border-color: var(--univer-gray-300) !important;
4397
4642
  }
4398
4643
 
4399
- .univer-border-gray-200 {
4400
- border-color: var(--univer-gray-200);
4644
+ .univer-border-gray-0 {
4645
+ border-color: var(--univer-gray-0);
4401
4646
  }
4402
4647
 
4403
- .univer-border-gray-300 {
4404
- border-color: var(--univer-gray-300);
4648
+ .univer-border-gray-200 {
4649
+ border-color: var(--univer-gray-200);
4405
4650
  }
4406
4651
 
4407
4652
  .univer-border-primary-600 {
@@ -4412,22 +4657,30 @@
4412
4657
  border-color: #0000;
4413
4658
  }
4414
4659
 
4415
- .univer-border-white {
4416
- border-color: var(--univer-white);
4417
- }
4418
-
4419
4660
  .\!univer-bg-gray-200 {
4420
4661
  background-color: var(--univer-gray-200) !important;
4421
4662
  }
4422
4663
 
4664
+ .\!univer-bg-gray-700 {
4665
+ background-color: var(--univer-gray-700) !important;
4666
+ }
4667
+
4423
4668
  .\!univer-bg-gray-800 {
4424
4669
  background-color: var(--univer-gray-800) !important;
4425
4670
  }
4426
4671
 
4672
+ .\!univer-bg-transparent {
4673
+ background-color: #0000 !important;
4674
+ }
4675
+
4427
4676
  .univer-bg-\[rgba\(15\,23\,42\,0\.32\)\] {
4428
4677
  background-color: #0f172a52;
4429
4678
  }
4430
4679
 
4680
+ .univer-bg-gray-0 {
4681
+ background-color: var(--univer-gray-0);
4682
+ }
4683
+
4431
4684
  .univer-bg-gray-100 {
4432
4685
  background-color: var(--univer-gray-100);
4433
4686
  }
@@ -4464,8 +4717,8 @@
4464
4717
  background-color: #0000;
4465
4718
  }
4466
4719
 
4467
- .univer-bg-white {
4468
- background-color: var(--univer-white);
4720
+ .univer-bg-\[conic-gradient\(from_0deg\,transparent_0deg\,transparent_282deg\,var\(--univer-primary-700\)_318deg\,var\(--univer-primary-500\)_342deg\,transparent_360deg\)\] {
4721
+ background-image: conic-gradient(from 0deg,transparent 0deg,transparent 282deg,var(--univer-primary-700) 318deg,var(--univer-primary-500) 342deg,transparent 360deg);
4469
4722
  }
4470
4723
 
4471
4724
  .univer-bg-gradient-to-tr {
@@ -4519,6 +4772,10 @@
4519
4772
  padding: 2rem;
4520
4773
  }
4521
4774
 
4775
+ .univer-p-px {
4776
+ padding: 1px;
4777
+ }
4778
+
4522
4779
  .\!univer-px-0 {
4523
4780
  padding-left: 0 !important;
4524
4781
  padding-right: 0 !important;
@@ -4731,6 +4988,10 @@
4731
4988
  color: currentColor;
4732
4989
  }
4733
4990
 
4991
+ .univer-text-gray-0 {
4992
+ color: var(--univer-gray-0);
4993
+ }
4994
+
4734
4995
  .univer-text-gray-200 {
4735
4996
  color: var(--univer-gray-200);
4736
4997
  }
@@ -4780,10 +5041,6 @@
4780
5041
  color: rgba(226, 232, 240, var(--univer-tw-text-opacity, 1));
4781
5042
  }
4782
5043
 
4783
- .univer-text-white {
4784
- color: var(--univer-white);
4785
- }
4786
-
4787
5044
  .univer-underline {
4788
5045
  text-decoration-line: underline;
4789
5046
  }
@@ -4887,6 +5144,20 @@
4887
5144
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
4888
5145
  }
4889
5146
 
5147
+ .univer-transition-opacity {
5148
+ transition-property: opacity;
5149
+ transition-duration: .15s;
5150
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
5151
+ }
5152
+
5153
+ .univer-delay-100 {
5154
+ transition-delay: .1s;
5155
+ }
5156
+
5157
+ .univer-duration-150 {
5158
+ transition-duration: .15s;
5159
+ }
5160
+
4890
5161
  @keyframes enter {
4891
5162
  from {
4892
5163
  opacity: 1;
@@ -4923,6 +5194,18 @@
4923
5194
  --univer-tw-enter-opacity: .7;
4924
5195
  }
4925
5196
 
5197
+ .univer-duration-150 {
5198
+ animation-duration: .15s;
5199
+ }
5200
+
5201
+ .univer-delay-100 {
5202
+ animation-delay: .1s;
5203
+ }
5204
+
5205
+ .univer-fill-mode-backwards {
5206
+ animation-fill-mode: backwards;
5207
+ }
5208
+
4926
5209
  .univer-context-menu-hover-suppressed button:hover:not(:focus) {
4927
5210
  background-color: #0000 !important;
4928
5211
  }
@@ -4935,14 +5218,18 @@
4935
5218
  display: none;
4936
5219
  }
4937
5220
 
4938
- .hover\:univer-border-gray-400:hover {
4939
- border-color: var(--univer-gray-400);
5221
+ .univer-group\/hover-track:hover .group-hover\/hover-track\:univer-opacity-100 {
5222
+ opacity: 1;
4940
5223
  }
4941
5224
 
4942
5225
  .hover\:univer-border-primary-600:hover {
4943
5226
  border-color: var(--univer-primary-600);
4944
5227
  }
4945
5228
 
5229
+ .hover\:\!univer-bg-transparent:hover {
5230
+ background-color: #0000 !important;
5231
+ }
5232
+
4946
5233
  .hover\:univer-bg-gray-100:hover {
4947
5234
  background-color: var(--univer-gray-100);
4948
5235
  }
@@ -4978,12 +5265,12 @@
4978
5265
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
4979
5266
  }
4980
5267
 
4981
- .focus\:univer-bg-gray-50:focus {
4982
- background-color: var(--univer-gray-50);
5268
+ .focus\:univer-bg-gray-0:focus {
5269
+ background-color: var(--univer-gray-0);
4983
5270
  }
4984
5271
 
4985
- .focus\:univer-bg-white:focus {
4986
- background-color: var(--univer-white);
5272
+ .focus\:univer-bg-gray-50:focus {
5273
+ background-color: var(--univer-gray-50);
4987
5274
  }
4988
5275
 
4989
5276
  .focus\:univer-outline-none:focus {
@@ -5003,6 +5290,13 @@
5003
5290
  outline: 2px solid #0000;
5004
5291
  }
5005
5292
 
5293
+ .focus-visible\:univer-ring-1:focus-visible {
5294
+ --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);
5295
+ --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(1px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color);
5296
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
5297
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
5298
+ }
5299
+
5006
5300
  .focus-visible\:univer-ring-2:focus-visible {
5007
5301
  --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);
5008
5302
  --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);
@@ -5058,10 +5352,26 @@
5058
5352
  background-color: #0000;
5059
5353
  }
5060
5354
 
5355
+ @media (prefers-reduced-motion: no-preference) {
5356
+ @keyframes univer-spin {
5357
+ to {
5358
+ transform: rotate(360deg);
5359
+ }
5360
+ }
5361
+
5362
+ .univer-group\/hover-track:hover .motion-safe\:group-hover\/hover-track\:univer-animate-\[spin_5s_linear_infinite\] {
5363
+ animation: 5s linear infinite univer-spin;
5364
+ }
5365
+ }
5366
+
5061
5367
  @media (prefers-reduced-motion: reduce) {
5062
5368
  .motion-reduce\:univer-animate-none {
5063
5369
  animation: none;
5064
5370
  }
5371
+
5372
+ .motion-reduce\:univer-bg-primary-700 {
5373
+ background-color: var(--univer-primary-700);
5374
+ }
5065
5375
  }
5066
5376
 
5067
5377
  @media (min-width: 640px) {
@@ -5170,6 +5480,14 @@
5170
5480
  background-color: var(--univer-primary-900) !important;
5171
5481
  }
5172
5482
 
5483
+ .dark\:univer-bg-\[conic-gradient\(from_0deg\,transparent_0deg\,transparent_282deg\,var\(--univer-primary-300\)_318deg\,var\(--univer-primary-500\)_342deg\,transparent_360deg\)\]:where(.univer-dark, .univer-dark *) {
5484
+ background-image: conic-gradient(from 0deg,transparent 0deg,transparent 282deg,var(--univer-primary-300) 318deg,var(--univer-primary-500) 342deg,transparent 360deg);
5485
+ }
5486
+
5487
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
5488
+ color: var(--univer-gray-0) !important;
5489
+ }
5490
+
5173
5491
  .dark\:\!univer-text-gray-100:where(.univer-dark, .univer-dark *) {
5174
5492
  color: var(--univer-gray-100) !important;
5175
5493
  }
@@ -5210,10 +5528,6 @@
5210
5528
  color: var(--univer-primary-400) !important;
5211
5529
  }
5212
5530
 
5213
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
5214
- color: var(--univer-white) !important;
5215
- }
5216
-
5217
5531
  .dark\:\!univer-shadow-sm:where(.univer-dark, .univer-dark *) {
5218
5532
  --univer-tw-shadow: 0px 1px 2px 0px #1e284d14 !important;
5219
5533
  --univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color) !important;
@@ -5241,12 +5555,12 @@
5241
5555
  background-color: #0000 !important;
5242
5556
  }
5243
5557
 
5244
- .dark\:hover\:\!univer-text-gray-300:hover:where(.univer-dark, .univer-dark *) {
5245
- color: var(--univer-gray-300) !important;
5558
+ .dark\:hover\:\!univer-text-gray-0:hover:where(.univer-dark, .univer-dark *) {
5559
+ color: var(--univer-gray-0) !important;
5246
5560
  }
5247
5561
 
5248
- .dark\:hover\:\!univer-text-white:hover:where(.univer-dark, .univer-dark *) {
5249
- color: var(--univer-white) !important;
5562
+ .dark\:hover\:\!univer-text-gray-300:hover:where(.univer-dark, .univer-dark *) {
5563
+ color: var(--univer-gray-300) !important;
5250
5564
  }
5251
5565
 
5252
5566
  .dark\:focus\:\!univer-bg-gray-600:focus:where(.univer-dark, .univer-dark *) {
@@ -5265,6 +5579,12 @@
5265
5579
  color: var(--univer-gray-600) !important;
5266
5580
  }
5267
5581
 
5582
+ @media (prefers-reduced-motion: reduce) {
5583
+ .dark\:motion-reduce\:univer-bg-primary-300:where(.univer-dark, .univer-dark *) {
5584
+ background-color: var(--univer-primary-300);
5585
+ }
5586
+ }
5587
+
5268
5588
  .\[\&\:\:-webkit-scrollbar\]\:univer-hidden::-webkit-scrollbar {
5269
5589
  display: none;
5270
5590
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-core",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
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,22 +56,22 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/design": "1.0.0-beta.0",
60
- "@univerjs/docs-ui": "1.0.0-beta.0",
61
- "@univerjs/engine-formula": "1.0.0-beta.0",
62
- "@univerjs/engine-render": "1.0.0-beta.0",
63
- "@univerjs/docs": "1.0.0-beta.0",
64
- "@univerjs/ui": "1.0.0-beta.0",
65
- "@univerjs/network": "1.0.0-beta.0"
59
+ "@univerjs/design": "1.0.0-beta.2",
60
+ "@univerjs/docs": "1.0.0-beta.2",
61
+ "@univerjs/engine-render": "1.0.0-beta.2",
62
+ "@univerjs/docs-ui": "1.0.0-beta.2",
63
+ "@univerjs/engine-formula": "1.0.0-beta.2",
64
+ "@univerjs/network": "1.0.0-beta.2",
65
+ "@univerjs/ui": "1.0.0-beta.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "react": "18.3.1",
69
69
  "react-dom": "18.3.1",
70
70
  "rxjs": "^7.8.2",
71
71
  "typescript": "^6.0.3",
72
- "@univerjs-infra/shared": "1.0.0-beta.0",
73
- "@univerjs/core": "1.0.0-beta.0",
74
- "@univerjs/presets": "1.0.0-beta.0"
72
+ "@univerjs-infra/shared": "1.0.0-beta.2",
73
+ "@univerjs/core": "1.0.0-beta.2",
74
+ "@univerjs/presets": "1.0.0-beta.2"
75
75
  },
76
76
  "scripts": {
77
77
  "build:bundle": "univer-cli preset build --cleanup",