@univerjs/preset-sheets-core 1.5.1 → 1.6.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.
Files changed (2) hide show
  1. package/lib/index.css +359 -108
  2. package/package.json +19 -19
package/lib/index.css CHANGED
@@ -99,6 +99,11 @@
99
99
  right: 0;
100
100
  }
101
101
 
102
+ .univer-inset-y-0 {
103
+ top: 0;
104
+ bottom: 0;
105
+ }
106
+
102
107
  .\!univer-left-0 {
103
108
  left: 0 !important;
104
109
  }
@@ -207,6 +212,10 @@
207
212
  z-index: 10;
208
213
  }
209
214
 
215
+ .univer-z-20 {
216
+ z-index: 20;
217
+ }
218
+
210
219
  .univer-z-\[1070\] {
211
220
  z-index: 1070;
212
221
  }
@@ -544,10 +553,18 @@
544
553
  min-height: 520px;
545
554
  }
546
555
 
556
+ .\!univer-w-9 {
557
+ width: 2.25rem !important;
558
+ }
559
+
547
560
  .\!univer-w-full {
548
561
  width: 100% !important;
549
562
  }
550
563
 
564
+ .univer-w-1 {
565
+ width: .25rem;
566
+ }
567
+
551
568
  .univer-w-1\/2 {
552
569
  width: 50%;
553
570
  }
@@ -620,10 +637,18 @@
620
637
  width: 100%;
621
638
  }
622
639
 
640
+ .univer-w-px {
641
+ width: 1px;
642
+ }
643
+
623
644
  .univer-w-screen {
624
645
  width: 100vw;
625
646
  }
626
647
 
648
+ .\!univer-min-w-0 {
649
+ min-width: 0 !important;
650
+ }
651
+
627
652
  .univer-min-w-0 {
628
653
  min-width: 0;
629
654
  }
@@ -684,6 +709,10 @@
684
709
  flex: 1;
685
710
  }
686
711
 
712
+ .univer-flex-none {
713
+ flex: none;
714
+ }
715
+
687
716
  .univer-flex-shrink-0 {
688
717
  flex-shrink: 0;
689
718
  }
@@ -796,6 +825,10 @@
796
825
  animation: 1s linear infinite univer-spin;
797
826
  }
798
827
 
828
+ .univer-cursor-col-resize {
829
+ cursor: col-resize;
830
+ }
831
+
799
832
  .univer-cursor-crosshair {
800
833
  cursor: crosshair;
801
834
  }
@@ -816,6 +849,10 @@
816
849
  cursor: pointer;
817
850
  }
818
851
 
852
+ .univer-touch-none {
853
+ touch-action: none;
854
+ }
855
+
819
856
  .univer-select-none {
820
857
  user-select: none;
821
858
  }
@@ -1448,6 +1485,10 @@
1448
1485
  padding: .5rem;
1449
1486
  }
1450
1487
 
1488
+ .univer-p-3 {
1489
+ padding: .75rem;
1490
+ }
1491
+
1451
1492
  .univer-p-4 {
1452
1493
  padding: 1rem;
1453
1494
  }
@@ -1460,6 +1501,16 @@
1460
1501
  padding: 2rem;
1461
1502
  }
1462
1503
 
1504
+ .\!univer-px-1 {
1505
+ padding-left: .25rem !important;
1506
+ padding-right: .25rem !important;
1507
+ }
1508
+
1509
+ .\!univer-py-0 {
1510
+ padding-top: 0 !important;
1511
+ padding-bottom: 0 !important;
1512
+ }
1513
+
1463
1514
  .univer-px-1 {
1464
1515
  padding-left: .25rem;
1465
1516
  padding-right: .25rem;
@@ -2303,6 +2354,10 @@
2303
2354
  }
2304
2355
 
2305
2356
  @media (hover: hover) and (pointer: fine) {
2357
+ .univer-group:hover .group-hover\:univer-bg-primary-500 {
2358
+ background-color: var(--univer-primary-500);
2359
+ }
2360
+
2306
2361
  .univer-group\/menu:hover .group-hover\/menu\:univer-p-2 {
2307
2362
  padding: .5rem;
2308
2363
  }
@@ -2312,34 +2367,38 @@
2312
2367
  }
2313
2368
  }
2314
2369
 
2315
- .univer-peer:focus ~ .peer-focus\:univer-outline {
2370
+ .univer-group:focus .group-focus\:univer-bg-primary-500 {
2371
+ background-color: var(--univer-primary-500);
2372
+ }
2373
+
2374
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-outline {
2316
2375
  outline-style: solid;
2317
2376
  }
2318
2377
 
2319
- .univer-peer:focus ~ .peer-focus\:univer-outline-2 {
2378
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-outline-2 {
2320
2379
  outline-width: 2px;
2321
2380
  }
2322
2381
 
2323
- .univer-peer:focus ~ .peer-focus\:univer-outline-offset-2 {
2382
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-outline-offset-2 {
2324
2383
  outline-offset: 2px;
2325
2384
  }
2326
2385
 
2327
- .univer-peer:focus ~ .peer-focus\:univer-outline-primary-600 {
2386
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-outline-primary-600 {
2328
2387
  outline-color: var(--univer-primary-600);
2329
2388
  }
2330
2389
 
2331
- .univer-peer:focus ~ .peer-focus\:univer-ring-2 {
2390
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-ring-2 {
2332
2391
  --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);
2333
2392
  --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);
2334
2393
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
2335
2394
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
2336
2395
  }
2337
2396
 
2338
- .univer-peer:focus ~ .peer-focus\:univer-ring-primary-600 {
2397
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-ring-primary-600 {
2339
2398
  --univer-tw-ring-color: var(--univer-primary-600);
2340
2399
  }
2341
2400
 
2342
- .univer-peer:focus ~ .peer-focus\:univer-ring-offset-2 {
2401
+ .univer-peer:focus-visible ~ .peer-focus-visible\:univer-ring-offset-2 {
2343
2402
  --univer-tw-ring-offset-width: 2px;
2344
2403
  }
2345
2404
 
@@ -2574,22 +2633,6 @@
2574
2633
  outline: 2px solid #0000;
2575
2634
  }
2576
2635
 
2577
- .focus\:univer-outline:focus {
2578
- outline-style: solid;
2579
- }
2580
-
2581
- .focus\:univer-outline-2:focus {
2582
- outline-width: 2px;
2583
- }
2584
-
2585
- .focus\:univer-outline-offset-2:focus {
2586
- outline-offset: 2px;
2587
- }
2588
-
2589
- .focus\:univer-outline-primary-600:focus {
2590
- outline-color: var(--univer-primary-600);
2591
- }
2592
-
2593
2636
  .focus\:univer-ring-2:focus {
2594
2637
  --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);
2595
2638
  --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);
@@ -2601,10 +2644,6 @@
2601
2644
  --univer-tw-ring-color: var(--univer-primary-50);
2602
2645
  }
2603
2646
 
2604
- .focus\:univer-ring-primary-600:focus {
2605
- --univer-tw-ring-color: var(--univer-primary-600);
2606
- }
2607
-
2608
2647
  .aria-\[invalid\=true\]\:focus\:\!univer-border-red-600:focus[aria-invalid="true"] {
2609
2648
  border-color: var(--univer-red-600) !important;
2610
2649
  }
@@ -2627,6 +2666,10 @@
2627
2666
  }
2628
2667
  }
2629
2668
 
2669
+ .focus-visible\:\!univer-border-primary-600:focus-visible {
2670
+ border-color: var(--univer-primary-600) !important;
2671
+ }
2672
+
2630
2673
  .focus-visible\:\!univer-text-gray-900:focus-visible {
2631
2674
  color: var(--univer-gray-900) !important;
2632
2675
  }
@@ -2645,6 +2688,10 @@
2645
2688
  outline-style: solid;
2646
2689
  }
2647
2690
 
2691
+ .focus-visible\:univer-outline-0:focus-visible {
2692
+ outline-width: 0;
2693
+ }
2694
+
2648
2695
  .focus-visible\:univer-outline-2:focus-visible {
2649
2696
  outline-width: 2px;
2650
2697
  }
@@ -2653,6 +2700,10 @@
2653
2700
  outline-offset: 1px;
2654
2701
  }
2655
2702
 
2703
+ .focus-visible\:univer-outline-offset-2:focus-visible {
2704
+ outline-offset: 2px;
2705
+ }
2706
+
2656
2707
  .focus-visible\:univer-outline-primary-500:focus-visible {
2657
2708
  outline-color: var(--univer-primary-500);
2658
2709
  }
@@ -2679,10 +2730,26 @@
2679
2730
  --univer-tw-ring-color: var(--univer-gray-0) !important;
2680
2731
  }
2681
2732
 
2733
+ .focus-visible\:univer-ring-primary-50:focus-visible {
2734
+ --univer-tw-ring-color: var(--univer-primary-50);
2735
+ }
2736
+
2682
2737
  .focus-visible\:univer-ring-primary-500:focus-visible {
2683
2738
  --univer-tw-ring-color: var(--univer-primary-500);
2684
2739
  }
2685
2740
 
2741
+ .focus-visible\:univer-ring-primary-600:focus-visible {
2742
+ --univer-tw-ring-color: var(--univer-primary-600);
2743
+ }
2744
+
2745
+ .aria-\[invalid\=true\]\:focus-visible\:\!univer-border-red-600:focus-visible[aria-invalid="true"] {
2746
+ border-color: var(--univer-red-600) !important;
2747
+ }
2748
+
2749
+ .aria-\[invalid\=true\]\:focus-visible\:univer-ring-red-50:focus-visible[aria-invalid="true"] {
2750
+ --univer-tw-ring-color: var(--univer-red-50);
2751
+ }
2752
+
2686
2753
  .active\:univer-border-red-800:active {
2687
2754
  border-color: var(--univer-red-800);
2688
2755
  }
@@ -3004,7 +3071,7 @@
3004
3071
  background-color: var(--univer-gray-600) !important;
3005
3072
  }
3006
3073
 
3007
- .univer-peer:focus ~ .dark\:peer-focus\:\!univer-outline-primary-300:where(.univer-dark, .univer-dark *) {
3074
+ .univer-peer:focus-visible ~ .dark\:peer-focus-visible\:\!univer-outline-primary-300:where(.univer-dark, .univer-dark *) {
3008
3075
  outline-color: var(--univer-primary-300) !important;
3009
3076
  }
3010
3077
 
@@ -3070,10 +3137,6 @@
3070
3137
  background-color: var(--univer-gray-600) !important;
3071
3138
  }
3072
3139
 
3073
- .dark\:focus\:\!univer-outline-primary-300:focus:where(.univer-dark, .univer-dark *) {
3074
- outline-color: var(--univer-primary-300) !important;
3075
- }
3076
-
3077
3140
  .dark\:focus\:\!univer-ring-primary-900:focus:where(.univer-dark, .univer-dark *) {
3078
3141
  --univer-tw-ring-color: var(--univer-primary-900) !important;
3079
3142
  }
@@ -3094,10 +3157,30 @@
3094
3157
  border-color: var(--univer-gray-600) !important;
3095
3158
  }
3096
3159
 
3160
+ .dark\:focus-visible\:\!univer-border-primary-300:focus-visible:where(.univer-dark, .univer-dark *) {
3161
+ border-color: var(--univer-primary-300) !important;
3162
+ }
3163
+
3097
3164
  .dark\:focus-visible\:\!univer-text-gray-100:focus-visible:where(.univer-dark, .univer-dark *) {
3098
3165
  color: var(--univer-gray-100) !important;
3099
3166
  }
3100
3167
 
3168
+ .dark\:focus-visible\:\!univer-outline-primary-300:focus-visible:where(.univer-dark, .univer-dark *) {
3169
+ outline-color: var(--univer-primary-300) !important;
3170
+ }
3171
+
3172
+ .dark\:focus-visible\:\!univer-ring-primary-900:focus-visible:where(.univer-dark, .univer-dark *) {
3173
+ --univer-tw-ring-color: var(--univer-primary-900) !important;
3174
+ }
3175
+
3176
+ .dark\:aria-\[invalid\=true\]\:focus-visible\:\!univer-border-red-400:focus-visible[aria-invalid="true"]:where(.univer-dark, .univer-dark *) {
3177
+ border-color: var(--univer-red-400) !important;
3178
+ }
3179
+
3180
+ .dark\:aria-\[invalid\=true\]\:focus-visible\:\!univer-ring-red-900:focus-visible[aria-invalid="true"]:where(.univer-dark, .univer-dark *) {
3181
+ --univer-tw-ring-color: var(--univer-red-900) !important;
3182
+ }
3183
+
3101
3184
  .dark\:active\:\!univer-bg-gray-600:active:where(.univer-dark, .univer-dark *) {
3102
3185
  background-color: var(--univer-gray-600) !important;
3103
3186
  }
@@ -3555,6 +3638,11 @@
3555
3638
  height: .5rem !important;
3556
3639
  }
3557
3640
 
3641
+ .\!univer-size-3 {
3642
+ width: .75rem !important;
3643
+ height: .75rem !important;
3644
+ }
3645
+
3558
3646
  .\!univer-size-5 {
3559
3647
  width: 1.25rem !important;
3560
3648
  height: 1.25rem !important;
@@ -4610,6 +4698,10 @@
4610
4698
  font-size: .75rem;
4611
4699
  line-height: 1rem;
4612
4700
  }
4701
+
4702
+ [data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-flex-none {
4703
+ flex: none;
4704
+ }
4613
4705
  .univer-pointer-events-none {
4614
4706
  pointer-events: none;
4615
4707
  }
@@ -7306,10 +7398,6 @@
7306
7398
  right: .125rem !important;
7307
7399
  }
7308
7400
 
7309
- .\!univer-top-auto {
7310
- top: auto !important;
7311
- }
7312
-
7313
7401
  .-univer-bottom-1 {
7314
7402
  bottom: -.25rem;
7315
7403
  }
@@ -7330,10 +7418,6 @@
7330
7418
  bottom: 0;
7331
7419
  }
7332
7420
 
7333
- .univer-bottom-1\.5 {
7334
- bottom: .375rem;
7335
- }
7336
-
7337
7421
  .univer-left-0 {
7338
7422
  left: 0;
7339
7423
  }
@@ -7374,10 +7458,6 @@
7374
7458
  top: 50%;
7375
7459
  }
7376
7460
 
7377
- .univer-top-3\.5 {
7378
- top: .875rem;
7379
- }
7380
-
7381
7461
  .univer-top-\[-9999px\] {
7382
7462
  top: -9999px;
7383
7463
  }
@@ -7430,6 +7510,10 @@
7430
7510
  z-index: 1;
7431
7511
  }
7432
7512
 
7513
+ .univer-col-span-2 {
7514
+ grid-column: span 2 / span 2;
7515
+ }
7516
+
7433
7517
  .\!univer-m-0 {
7434
7518
  margin: 0 !important;
7435
7519
  }
@@ -7448,6 +7532,11 @@
7448
7532
  margin-right: auto;
7449
7533
  }
7450
7534
 
7535
+ .univer-my-2 {
7536
+ margin-top: .5rem;
7537
+ margin-bottom: .5rem;
7538
+ }
7539
+
7451
7540
  .univer-mb-0 {
7452
7541
  margin-bottom: 0;
7453
7542
  }
@@ -7456,6 +7545,14 @@
7456
7545
  margin-bottom: .25rem;
7457
7546
  }
7458
7547
 
7548
+ .univer-mb-2 {
7549
+ margin-bottom: .5rem;
7550
+ }
7551
+
7552
+ .univer-mb-3 {
7553
+ margin-bottom: .75rem;
7554
+ }
7555
+
7459
7556
  .univer-ml-2 {
7460
7557
  margin-left: .5rem;
7461
7558
  }
@@ -7468,18 +7565,22 @@
7468
7565
  margin-right: .5rem;
7469
7566
  }
7470
7567
 
7471
- .univer-mr-auto {
7472
- margin-right: auto;
7473
- }
7474
-
7475
7568
  .univer-mt-2 {
7476
7569
  margin-top: .5rem;
7477
7570
  }
7478
7571
 
7572
+ .univer-mt-3 {
7573
+ margin-top: .75rem;
7574
+ }
7575
+
7479
7576
  .univer-mt-4 {
7480
7577
  margin-top: 1rem;
7481
7578
  }
7482
7579
 
7580
+ .univer-mt-5 {
7581
+ margin-top: 1.25rem;
7582
+ }
7583
+
7483
7584
  .univer-mt-6 {
7484
7585
  margin-top: 1.5rem;
7485
7586
  }
@@ -7503,6 +7604,10 @@
7503
7604
  display: block;
7504
7605
  }
7505
7606
 
7607
+ .\!univer-flex {
7608
+ display: flex !important;
7609
+ }
7610
+
7506
7611
  .univer-flex {
7507
7612
  display: flex;
7508
7613
  }
@@ -7598,14 +7703,14 @@
7598
7703
  height: 100%;
7599
7704
  }
7600
7705
 
7601
- .\!univer-h-14 {
7602
- height: 3.5rem !important;
7603
- }
7604
-
7605
7706
  .\!univer-h-auto {
7606
7707
  height: auto !important;
7607
7708
  }
7608
7709
 
7710
+ .\!univer-h-full {
7711
+ height: 100% !important;
7712
+ }
7713
+
7609
7714
  .univer-h-0 {
7610
7715
  height: 0;
7611
7716
  }
@@ -7678,14 +7783,18 @@
7678
7783
  height: 340px;
7679
7784
  }
7680
7785
 
7681
- .univer-h-\[73px\] {
7682
- height: 73px;
7786
+ .univer-h-\[calc\(4\.25rem\+1px\)\] {
7787
+ height: calc(4.25rem + 1px);
7683
7788
  }
7684
7789
 
7685
7790
  .univer-h-full {
7686
7791
  height: 100%;
7687
7792
  }
7688
7793
 
7794
+ .univer-max-h-32 {
7795
+ max-height: 8rem;
7796
+ }
7797
+
7689
7798
  .univer-max-h-60 {
7690
7799
  max-height: 15rem;
7691
7800
  }
@@ -7738,6 +7847,10 @@
7738
7847
  width: 100% !important;
7739
7848
  }
7740
7849
 
7850
+ .\!univer-w-max {
7851
+ width: max-content !important;
7852
+ }
7853
+
7741
7854
  .univer-w-0 {
7742
7855
  width: 0;
7743
7856
  }
@@ -7810,6 +7923,22 @@
7810
7923
  width: 24rem;
7811
7924
  }
7812
7925
 
7926
+ .univer-w-\[300px\] {
7927
+ width: 300px;
7928
+ }
7929
+
7930
+ .univer-w-\[328px\] {
7931
+ width: 328px;
7932
+ }
7933
+
7934
+ .univer-w-\[360px\] {
7935
+ width: 360px;
7936
+ }
7937
+
7938
+ .univer-w-\[4\.5rem\] {
7939
+ width: 4.5rem;
7940
+ }
7941
+
7813
7942
  .univer-w-\[420px\] {
7814
7943
  width: 420px;
7815
7944
  }
@@ -7818,6 +7947,10 @@
7818
7947
  width: 68px;
7819
7948
  }
7820
7949
 
7950
+ .univer-w-auto {
7951
+ width: auto;
7952
+ }
7953
+
7821
7954
  .univer-w-fit {
7822
7955
  width: fit-content;
7823
7956
  }
@@ -7842,10 +7975,18 @@
7842
7975
  min-width: 3.5rem;
7843
7976
  }
7844
7977
 
7978
+ .univer-min-w-4 {
7979
+ min-width: 1rem;
7980
+ }
7981
+
7845
7982
  .univer-min-w-44 {
7846
7983
  min-width: 11rem;
7847
7984
  }
7848
7985
 
7986
+ .univer-min-w-5 {
7987
+ min-width: 1.25rem;
7988
+ }
7989
+
7849
7990
  .univer-min-w-52 {
7850
7991
  min-width: 13rem;
7851
7992
  }
@@ -7862,10 +8003,22 @@
7862
8003
  min-width: 1.75rem;
7863
8004
  }
7864
8005
 
8006
+ .univer-min-w-9 {
8007
+ min-width: 2.25rem;
8008
+ }
8009
+
8010
+ .univer-min-w-\[240px\] {
8011
+ min-width: 240px;
8012
+ }
8013
+
7865
8014
  .univer-min-w-\[60px\] {
7866
8015
  min-width: 60px;
7867
8016
  }
7868
8017
 
8018
+ .univer-min-w-full {
8019
+ min-width: 100%;
8020
+ }
8021
+
7869
8022
  .univer-min-w-min {
7870
8023
  min-width: min-content;
7871
8024
  }
@@ -7878,6 +8031,10 @@
7878
8031
  max-width: 64rem;
7879
8032
  }
7880
8033
 
8034
+ .univer-max-w-80 {
8035
+ max-width: 20rem;
8036
+ }
8037
+
7881
8038
  .univer-max-w-96 {
7882
8039
  max-width: 24rem;
7883
8040
  }
@@ -7906,6 +8063,10 @@
7906
8063
  max-width: calc(100vw - 24px);
7907
8064
  }
7908
8065
 
8066
+ .univer-max-w-\[min\(760px\,calc\(100vw-32px\)\)\] {
8067
+ max-width: min(760px, 100vw - 32px);
8068
+ }
8069
+
7909
8070
  .univer-max-w-full {
7910
8071
  max-width: 100%;
7911
8072
  }
@@ -7918,6 +8079,10 @@
7918
8079
  flex: 0 auto;
7919
8080
  }
7920
8081
 
8082
+ .univer-flex-none {
8083
+ flex: none;
8084
+ }
8085
+
7921
8086
  .univer-flex-shrink-0, .univer-shrink-0 {
7922
8087
  flex-shrink: 0;
7923
8088
  }
@@ -7979,10 +8144,6 @@
7979
8144
  animation: 2s cubic-bezier(.4, 0, .6, 1) infinite univer-pulse;
7980
8145
  }
7981
8146
 
7982
- .univer-cursor-col-resize {
7983
- cursor: col-resize;
7984
- }
7985
-
7986
8147
  .univer-cursor-default {
7987
8148
  cursor: default;
7988
8149
  }
@@ -8035,6 +8196,10 @@
8035
8196
  grid-template-columns: repeat(10, minmax(0, 1fr));
8036
8197
  }
8037
8198
 
8199
+ .univer-grid-cols-2 {
8200
+ grid-template-columns: repeat(2, minmax(0, 1fr));
8201
+ }
8202
+
8038
8203
  .univer-grid-cols-3 {
8039
8204
  grid-template-columns: repeat(3, minmax(0, 1fr));
8040
8205
  }
@@ -8071,6 +8236,10 @@
8071
8236
  grid-template-columns: auto 1fr auto;
8072
8237
  }
8073
8238
 
8239
+ .univer-grid-cols-\[minmax\(0\,1fr\)_auto\] {
8240
+ grid-template-columns: minmax(0, 1fr) auto;
8241
+ }
8242
+
8074
8243
  .univer-grid-rows-\[100\%\] {
8075
8244
  grid-template-rows: 100%;
8076
8245
  }
@@ -8083,8 +8252,8 @@
8083
8252
  grid-template-rows: auto 1fr auto;
8084
8253
  }
8085
8254
 
8086
- .univer-grid-rows-\[repeat\(2\,1\.75rem\)\] {
8087
- grid-template-rows: repeat(2, 1.75rem);
8255
+ .univer-grid-rows-\[repeat\(2\,1\.5rem\)\] {
8256
+ grid-template-rows: repeat(2, 1.5rem);
8088
8257
  }
8089
8258
 
8090
8259
  .univer-flex-row {
@@ -8115,6 +8284,10 @@
8115
8284
  align-items: stretch;
8116
8285
  }
8117
8286
 
8287
+ .\!univer-justify-start {
8288
+ justify-content: flex-start !important;
8289
+ }
8290
+
8118
8291
  .univer-justify-start {
8119
8292
  justify-content: flex-start;
8120
8293
  }
@@ -8179,8 +8352,8 @@
8179
8352
  gap: 1.5rem;
8180
8353
  }
8181
8354
 
8182
- .univer-gap-y-0 {
8183
- row-gap: 0;
8355
+ .univer-gap-8 {
8356
+ gap: 2rem;
8184
8357
  }
8185
8358
 
8186
8359
  .univer-overflow-auto {
@@ -8229,10 +8402,18 @@
8229
8402
  white-space: nowrap;
8230
8403
  }
8231
8404
 
8405
+ .univer-whitespace-pre-wrap {
8406
+ white-space: pre-wrap;
8407
+ }
8408
+
8232
8409
  .univer-break-words {
8233
8410
  word-wrap: break-word;
8234
8411
  }
8235
8412
 
8413
+ .\!univer-rounded {
8414
+ border-radius: .25rem !important;
8415
+ }
8416
+
8236
8417
  .\!univer-rounded-full {
8237
8418
  border-radius: 9999px !important;
8238
8419
  }
@@ -8371,6 +8552,10 @@
8371
8552
  border-color: var(--univer-gray-200);
8372
8553
  }
8373
8554
 
8555
+ .univer-border-primary-500 {
8556
+ border-color: var(--univer-primary-500);
8557
+ }
8558
+
8374
8559
  .univer-border-primary-600 {
8375
8560
  border-color: var(--univer-primary-600);
8376
8561
  }
@@ -8435,6 +8620,10 @@
8435
8620
  background-color: var(--univer-gray-900);
8436
8621
  }
8437
8622
 
8623
+ .univer-bg-primary-100 {
8624
+ background-color: var(--univer-primary-100);
8625
+ }
8626
+
8438
8627
  .univer-bg-primary-50 {
8439
8628
  background-color: var(--univer-primary-50);
8440
8629
  }
@@ -8447,6 +8636,12 @@
8447
8636
  background-color: var(--univer-primary-600);
8448
8637
  }
8449
8638
 
8639
+ .univer-bg-red-950 {
8640
+ --univer-tw-bg-opacity: 1;
8641
+ background-color: #450a0a;
8642
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
8643
+ }
8644
+
8450
8645
  .univer-bg-transparent {
8451
8646
  background-color: #0000;
8452
8647
  }
@@ -8514,11 +8709,6 @@
8514
8709
  padding: 1px;
8515
8710
  }
8516
8711
 
8517
- .\!univer-px-0 {
8518
- padding-left: 0 !important;
8519
- padding-right: 0 !important;
8520
- }
8521
-
8522
8712
  .univer-px-0 {
8523
8713
  padding-left: 0;
8524
8714
  padding-right: 0;
@@ -8594,15 +8784,16 @@
8594
8784
  padding-bottom: .75rem;
8595
8785
  }
8596
8786
 
8787
+ .univer-py-5 {
8788
+ padding-top: 1.25rem;
8789
+ padding-bottom: 1.25rem;
8790
+ }
8791
+
8597
8792
  .univer-py-7 {
8598
8793
  padding-top: 1.75rem;
8599
8794
  padding-bottom: 1.75rem;
8600
8795
  }
8601
8796
 
8602
- .\!univer-pr-0 {
8603
- padding-right: 0 !important;
8604
- }
8605
-
8606
8797
  .univer-pb-1 {
8607
8798
  padding-bottom: .25rem;
8608
8799
  }
@@ -8631,6 +8822,10 @@
8631
8822
  padding-left: 1rem;
8632
8823
  }
8633
8824
 
8825
+ .univer-pr-0\.5 {
8826
+ padding-right: .125rem;
8827
+ }
8828
+
8634
8829
  .univer-pr-1\.5 {
8635
8830
  padding-right: .375rem;
8636
8831
  }
@@ -8639,10 +8834,6 @@
8639
8834
  padding-right: .5rem;
8640
8835
  }
8641
8836
 
8642
- .univer-pr-6 {
8643
- padding-right: 1.5rem;
8644
- }
8645
-
8646
8837
  .univer-pt-1 {
8647
8838
  padding-top: .25rem;
8648
8839
  }
@@ -8679,6 +8870,11 @@
8679
8870
  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;
8680
8871
  }
8681
8872
 
8873
+ .\!univer-text-base {
8874
+ font-size: 1rem !important;
8875
+ line-height: 1.5rem !important;
8876
+ }
8877
+
8682
8878
  .univer-text-2xl {
8683
8879
  font-size: 1.5rem;
8684
8880
  line-height: 2rem;
@@ -8709,6 +8905,10 @@
8709
8905
  line-height: 1rem;
8710
8906
  }
8711
8907
 
8908
+ .\!univer-font-normal {
8909
+ font-weight: 400 !important;
8910
+ }
8911
+
8712
8912
  .univer-font-bold {
8713
8913
  font-weight: 700;
8714
8914
  }
@@ -8717,6 +8917,10 @@
8717
8917
  font-weight: 500;
8718
8918
  }
8719
8919
 
8920
+ .univer-font-normal {
8921
+ font-weight: 400;
8922
+ }
8923
+
8720
8924
  .univer-font-semibold {
8721
8925
  font-weight: 600;
8722
8926
  }
@@ -8733,6 +8937,10 @@
8733
8937
  line-height: 1.5rem;
8734
8938
  }
8735
8939
 
8940
+ .univer-leading-none {
8941
+ line-height: 1;
8942
+ }
8943
+
8736
8944
  .univer-tracking-\[0\.08em\] {
8737
8945
  letter-spacing: .08em;
8738
8946
  }
@@ -8741,6 +8949,10 @@
8741
8949
  letter-spacing: -.025em;
8742
8950
  }
8743
8951
 
8952
+ .\!univer-text-primary-300 {
8953
+ color: var(--univer-primary-300) !important;
8954
+ }
8955
+
8744
8956
  .univer-text-gray-0 {
8745
8957
  color: var(--univer-gray-0);
8746
8958
  }
@@ -8793,6 +9005,10 @@
8793
9005
  color: var(--univer-primary-700);
8794
9006
  }
8795
9007
 
9008
+ .univer-text-red-500 {
9009
+ color: var(--univer-red-500);
9010
+ }
9011
+
8796
9012
  .univer-underline {
8797
9013
  text-decoration-line: underline;
8798
9014
  }
@@ -8817,6 +9033,13 @@
8817
9033
  opacity: .6;
8818
9034
  }
8819
9035
 
9036
+ .univer-shadow {
9037
+ --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
9038
+ --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
9039
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
9040
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
9041
+ }
9042
+
8820
9043
  .univer-shadow-2xl {
8821
9044
  --univer-tw-shadow: 0px 24px 50px -12px #1e284d3d;
8822
9045
  --univer-tw-shadow-colored: 0px 24px 50px -12px var(--univer-tw-shadow-color);
@@ -8966,7 +9189,7 @@
8966
9189
  animation-delay: .1s;
8967
9190
  }
8968
9191
 
8969
- .univer-fill-mode-backwards {
9192
+ .univer-fill-mode-backwards, .\[animation-fill-mode\:backwards\] {
8970
9193
  animation-fill-mode: backwards;
8971
9194
  }
8972
9195
 
@@ -9016,6 +9239,10 @@
9016
9239
  }
9017
9240
 
9018
9241
  @media (hover: hover) and (pointer: fine) {
9242
+ .hover\:univer-border-primary-300:hover {
9243
+ border-color: var(--univer-primary-300);
9244
+ }
9245
+
9019
9246
  .hover\:univer-border-primary-600:hover {
9020
9247
  border-color: var(--univer-primary-600);
9021
9248
  }
@@ -9036,8 +9263,16 @@
9036
9263
  background-color: var(--univer-gray-50);
9037
9264
  }
9038
9265
 
9039
- .hover\:univer-bg-primary-500:hover {
9040
- background-color: var(--univer-primary-500);
9266
+ .hover\:univer-bg-primary-200:hover {
9267
+ background-color: var(--univer-primary-200);
9268
+ }
9269
+
9270
+ .hover\:univer-bg-primary-50:hover {
9271
+ background-color: var(--univer-primary-50);
9272
+ }
9273
+
9274
+ .hover\:univer-bg-red-50:hover {
9275
+ background-color: var(--univer-red-50);
9041
9276
  }
9042
9277
 
9043
9278
  .hover\:univer-bg-transparent:hover {
@@ -9072,23 +9307,7 @@
9072
9307
  background-color: #0000;
9073
9308
  }
9074
9309
 
9075
- .focus\:univer-outline-none:focus {
9076
- outline-offset: 2px;
9077
- outline: 2px solid #0000;
9078
- }
9079
-
9080
- .focus\:univer-ring-2:focus {
9081
- --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);
9082
- --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);
9083
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
9084
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
9085
- }
9086
-
9087
- .focus\:univer-ring-primary-500:focus {
9088
- --univer-tw-ring-color: var(--univer-primary-500);
9089
- }
9090
-
9091
- .focus-visible\:univer-outline-none:focus-visible {
9310
+ .focus\:univer-outline-none:focus, .focus-visible\:univer-outline-none:focus-visible {
9092
9311
  outline-offset: 2px;
9093
9312
  outline: 2px solid #0000;
9094
9313
  }
@@ -9135,10 +9354,6 @@
9135
9354
  background-color: var(--univer-gray-200);
9136
9355
  }
9137
9356
 
9138
- .active\:univer-bg-primary-500:active {
9139
- background-color: var(--univer-primary-500);
9140
- }
9141
-
9142
9357
  .enabled\:active\:univer-scale-\[0\.98\]:active:enabled {
9143
9358
  --univer-tw-scale-x: .98;
9144
9359
  --univer-tw-scale-y: .98;
@@ -9150,6 +9365,10 @@
9150
9365
  background-color: var(--univer-gray-100);
9151
9366
  }
9152
9367
 
9368
+ .disabled\:\!univer-pointer-events-auto:disabled {
9369
+ pointer-events: auto !important;
9370
+ }
9371
+
9153
9372
  .disabled\:univer-cursor-not-allowed:disabled {
9154
9373
  cursor: not-allowed;
9155
9374
  }
@@ -9198,10 +9417,6 @@
9198
9417
  }
9199
9418
  }
9200
9419
 
9201
- .rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
9202
- left: 0;
9203
- }
9204
-
9205
9420
  .rtl\:univer-left-2:where([dir="rtl"], [dir="rtl"] *) {
9206
9421
  left: .5rem;
9207
9422
  }
@@ -9246,18 +9461,22 @@
9246
9461
  padding-left: 0;
9247
9462
  }
9248
9463
 
9249
- .rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
9250
- padding-left: .375rem;
9464
+ .rtl\:univer-pl-0\.5:where([dir="rtl"], [dir="rtl"] *) {
9465
+ padding-left: .125rem;
9251
9466
  }
9252
9467
 
9253
- .rtl\:univer-pl-6:where([dir="rtl"], [dir="rtl"] *) {
9254
- padding-left: 1.5rem;
9468
+ .rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
9469
+ padding-left: .375rem;
9255
9470
  }
9256
9471
 
9257
9472
  .rtl\:univer-pr-0:where([dir="rtl"], [dir="rtl"] *) {
9258
9473
  padding-right: 0;
9259
9474
  }
9260
9475
 
9476
+ .rtl\:univer-pr-1:where([dir="rtl"], [dir="rtl"] *) {
9477
+ padding-right: .25rem;
9478
+ }
9479
+
9261
9480
  .rtl\:univer-pr-2:where([dir="rtl"], [dir="rtl"] *) {
9262
9481
  padding-right: .5rem;
9263
9482
  }
@@ -9266,6 +9485,10 @@
9266
9485
  text-align: right !important;
9267
9486
  }
9268
9487
 
9488
+ .rtl\:univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
9489
+ text-align: right;
9490
+ }
9491
+
9269
9492
  .dark\:\!univer-border-gray-600:where(.univer-dark, .univer-dark *) {
9270
9493
  border-color: var(--univer-gray-600) !important;
9271
9494
  }
@@ -9362,6 +9585,10 @@
9362
9585
  color: var(--univer-primary-400) !important;
9363
9586
  }
9364
9587
 
9588
+ .dark\:\!univer-text-red-400:where(.univer-dark, .univer-dark *) {
9589
+ color: var(--univer-red-400) !important;
9590
+ }
9591
+
9365
9592
  .dark\:\!univer-shadow-sm:where(.univer-dark, .univer-dark *) {
9366
9593
  --univer-tw-shadow: 0px 1px 2px 0px #1e284d14 !important;
9367
9594
  --univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color) !important;
@@ -9398,6 +9625,12 @@
9398
9625
  background-color: #0000 !important;
9399
9626
  }
9400
9627
 
9628
+ .dark\:hover\:univer-bg-red-950:hover:where(.univer-dark, .univer-dark *) {
9629
+ --univer-tw-bg-opacity: 1;
9630
+ background-color: #450a0a;
9631
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
9632
+ }
9633
+
9401
9634
  .dark\:hover\:\!univer-text-gray-0:hover:where(.univer-dark, .univer-dark *) {
9402
9635
  color: var(--univer-gray-0) !important;
9403
9636
  }
@@ -9415,7 +9648,7 @@
9415
9648
  background-color: #0000 !important;
9416
9649
  }
9417
9650
 
9418
- .dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
9651
+ .dark\:focus-visible\:\!univer-ring-primary-300:focus-visible:where(.univer-dark, .univer-dark *) {
9419
9652
  --univer-tw-ring-color: var(--univer-primary-300) !important;
9420
9653
  }
9421
9654
 
@@ -9655,6 +9888,11 @@
9655
9888
  line-height: 1;
9656
9889
  }
9657
9890
 
9891
+ .\[\&_\.univer-text-sm\:not\(svg\)\]\:univer-text-xs .univer-text-sm:not(svg) {
9892
+ font-size: .75rem;
9893
+ line-height: 1rem;
9894
+ }
9895
+
9658
9896
  .\[\&_\.univer-toolbar-button-selector-main\]\:\!univer-h-8 .univer-toolbar-button-selector-main {
9659
9897
  height: 2rem !important;
9660
9898
  }
@@ -9755,6 +9993,10 @@
9755
9993
  width: 100%;
9756
9994
  }
9757
9995
 
9996
+ .\[\&_\[data-u-command\]\]\:univer-animate-none [data-u-command] {
9997
+ animation: none;
9998
+ }
9999
+
9758
10000
  .\[\&_\[data-u-command\]\]\:\!univer-rounded-md [data-u-command] {
9759
10001
  border-radius: .375rem !important;
9760
10002
  }
@@ -9764,6 +10006,10 @@
9764
10006
  padding-right: .375rem !important;
9765
10007
  }
9766
10008
 
10009
+ .\[\&_\[data-u-comp\=\'button\'\]\]\:univer-gap-1 [data-u-comp="button"] {
10010
+ gap: .25rem;
10011
+ }
10012
+
9767
10013
  .\[\&_button\:active\]\:\!univer-opacity-70 button:active {
9768
10014
  opacity: .7 !important;
9769
10015
  }
@@ -9916,6 +10162,11 @@
9916
10162
  text-align: center;
9917
10163
  }
9918
10164
 
10165
+ .\[\&_input\]\:\!univer-text-xs input {
10166
+ font-size: .75rem !important;
10167
+ line-height: 1rem !important;
10168
+ }
10169
+
9919
10170
  .\[\&_input\]\:univer-text-sm input {
9920
10171
  font-size: .875rem;
9921
10172
  line-height: 1.25rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "private": false,
5
5
  "description": "Preset for core Univer Sheets spreadsheet features.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,29 +61,29 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs/design": "1.5.1",
65
- "@univerjs/docs": "1.5.1",
66
- "@univerjs/docs-ui": "1.5.1",
67
- "@univerjs/engine-formula": "1.5.1",
68
- "@univerjs/engine-render": "1.5.1",
69
- "@univerjs/network": "1.5.1",
70
- "@univerjs/rpc": "1.5.1",
71
- "@univerjs/sheets": "1.5.1",
72
- "@univerjs/sheets-formula": "1.5.1",
73
- "@univerjs/sheets-formula-ui": "1.5.1",
74
- "@univerjs/sheets-numfmt": "1.5.1",
75
- "@univerjs/sheets-numfmt-ui": "1.5.1",
76
- "@univerjs/sheets-ui": "1.5.1",
77
- "@univerjs/ui": "1.5.1"
64
+ "@univerjs/design": "1.6.0",
65
+ "@univerjs/docs": "1.6.0",
66
+ "@univerjs/docs-ui": "1.6.0",
67
+ "@univerjs/engine-formula": "1.6.0",
68
+ "@univerjs/engine-render": "1.6.0",
69
+ "@univerjs/network": "1.6.0",
70
+ "@univerjs/rpc": "1.6.0",
71
+ "@univerjs/sheets": "1.6.0",
72
+ "@univerjs/sheets-formula": "1.6.0",
73
+ "@univerjs/sheets-formula-ui": "1.6.0",
74
+ "@univerjs/sheets-numfmt": "1.6.0",
75
+ "@univerjs/sheets-numfmt-ui": "1.6.0",
76
+ "@univerjs/sheets-ui": "1.6.0",
77
+ "@univerjs/ui": "1.6.0"
78
78
  },
79
79
  "devDependencies": {
80
- "@univerjs-infra/shared": "1.5.1",
81
- "@univerjs/core": "1.5.1",
82
- "@univerjs/presets": "1.5.1",
80
+ "@univerjs-infra/shared": "1.6.0",
81
+ "@univerjs/core": "1.6.0",
82
+ "@univerjs/presets": "1.6.0",
83
83
  "react": "18.3.1",
84
84
  "react-dom": "18.3.1",
85
85
  "rxjs": "7.8.2",
86
- "tsrs": "0.23.0-ts7.1.0-beta"
86
+ "tsrs": "7.1.0-beta.tsrs2"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",