@univerjs/preset-sheets-core 1.0.0-alpha.2 → 1.0.0-alpha.4

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 +181 -12
  2. package/package.json +18 -18
package/lib/index.css CHANGED
@@ -353,6 +353,11 @@
353
353
  height: 1.75rem;
354
354
  }
355
355
 
356
+ .univer-size-8 {
357
+ width: 2rem;
358
+ height: 2rem;
359
+ }
360
+
356
361
  .univer-size-9 {
357
362
  width: 2.25rem;
358
363
  height: 2.25rem;
@@ -415,6 +420,10 @@
415
420
  height: 150px;
416
421
  }
417
422
 
423
+ .univer-h-\[78px\] {
424
+ height: 78px;
425
+ }
426
+
418
427
  .univer-h-\[calc\(100\%-2px\)\] {
419
428
  height: calc(100% - 2px);
420
429
  }
@@ -1057,6 +1066,12 @@
1057
1066
  background-color: var(--univer-primary-600) !important;
1058
1067
  }
1059
1068
 
1069
+ .univer-bg-\[\#e8eefc\] {
1070
+ --univer-tw-bg-opacity: 1;
1071
+ background-color: #e8eefc;
1072
+ background-color: rgba(232, 238, 252, var(--univer-tw-bg-opacity, 1));
1073
+ }
1074
+
1060
1075
  .univer-bg-\[rgba\(0\,0\,0\,0\.8\)\] {
1061
1076
  background-color: #000c;
1062
1077
  }
@@ -1149,6 +1164,10 @@
1149
1164
  object-fit: contain;
1150
1165
  }
1151
1166
 
1167
+ .\!univer-p-0 {
1168
+ padding: 0 !important;
1169
+ }
1170
+
1152
1171
  .\!univer-p-2\.5 {
1153
1172
  padding: .625rem !important;
1154
1173
  }
@@ -1231,6 +1250,11 @@
1231
1250
  padding-right: 1.75rem;
1232
1251
  }
1233
1252
 
1253
+ .univer-px-8 {
1254
+ padding-left: 2rem;
1255
+ padding-right: 2rem;
1256
+ }
1257
+
1234
1258
  .univer-py-0\.5 {
1235
1259
  padding-top: .125rem;
1236
1260
  padding-bottom: .125rem;
@@ -2197,6 +2221,18 @@
2197
2221
  right: auto;
2198
2222
  }
2199
2223
 
2224
+ .rtl\:\!univer-rotate-0:where([dir="rtl"], [dir="rtl"] *) {
2225
+ --univer-tw-rotate: 0deg !important;
2226
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(0deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y)) !important;
2227
+ 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)) !important;
2228
+ }
2229
+
2230
+ .rtl\:univer-rotate-180:where([dir="rtl"], [dir="rtl"] *) {
2231
+ --univer-tw-rotate: 180deg;
2232
+ transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(180deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
2233
+ 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));
2234
+ }
2235
+
2200
2236
  .rtl\:univer-rounded-l-md:where([dir="rtl"], [dir="rtl"] *) {
2201
2237
  border-top-left-radius: .375rem;
2202
2238
  border-bottom-left-radius: .375rem;
@@ -2229,6 +2265,14 @@
2229
2265
  }
2230
2266
  }
2231
2267
 
2268
+ .dark\:\!univer-h-6:where(.univer-dark, .univer-dark *) {
2269
+ height: 1.5rem !important;
2270
+ }
2271
+
2272
+ .dark\:\!univer-h-\[78px\]:where(.univer-dark, .univer-dark *) {
2273
+ height: 78px !important;
2274
+ }
2275
+
2232
2276
  .dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
2233
2277
  border-color: var(--univer-gray-600) !important;
2234
2278
  }
@@ -2814,6 +2858,10 @@
2814
2858
  margin-bottom: .5rem;
2815
2859
  }
2816
2860
 
2861
+ .univer-mb-4 {
2862
+ margin-bottom: 1rem;
2863
+ }
2864
+
2817
2865
  .univer-mr-1 {
2818
2866
  margin-right: .25rem;
2819
2867
  }
@@ -3420,6 +3468,10 @@
3420
3468
  color: var(--univer-gray-200) !important;
3421
3469
  }
3422
3470
 
3471
+ .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
3472
+ color: var(--univer-gray-300) !important;
3473
+ }
3474
+
3423
3475
  .dark\:\!univer-text-gray-400:where(.univer-dark, .univer-dark *) {
3424
3476
  color: var(--univer-gray-400) !important;
3425
3477
  }
@@ -3483,6 +3535,11 @@
3483
3535
  margin-bottom: .5rem;
3484
3536
  }
3485
3537
 
3538
+ .univer-my-3 {
3539
+ margin-top: .75rem;
3540
+ margin-bottom: .75rem;
3541
+ }
3542
+
3486
3543
  .univer-mb-0 {
3487
3544
  margin-bottom: 0;
3488
3545
  }
@@ -3515,6 +3572,10 @@
3515
3572
  margin-top: .25rem;
3516
3573
  }
3517
3574
 
3575
+ .univer-mt-1\.5 {
3576
+ margin-top: .375rem;
3577
+ }
3578
+
3518
3579
  .univer-mt-2 {
3519
3580
  margin-top: .5rem;
3520
3581
  }
@@ -3523,6 +3584,10 @@
3523
3584
  margin-top: .75rem;
3524
3585
  }
3525
3586
 
3587
+ .univer-mt-4 {
3588
+ margin-top: 1rem;
3589
+ }
3590
+
3526
3591
  .univer-box-border {
3527
3592
  box-sizing: border-box;
3528
3593
  }
@@ -3635,6 +3700,10 @@
3635
3700
  gap: .5rem;
3636
3701
  }
3637
3702
 
3703
+ .univer-gap-3 {
3704
+ gap: .75rem;
3705
+ }
3706
+
3638
3707
  .univer-gap-4 {
3639
3708
  gap: 1rem;
3640
3709
  }
@@ -3673,10 +3742,18 @@
3673
3742
  border-radius: .25rem;
3674
3743
  }
3675
3744
 
3745
+ .univer-rounded-full {
3746
+ border-radius: 9999px;
3747
+ }
3748
+
3676
3749
  .univer-rounded-lg {
3677
3750
  border-radius: .5rem;
3678
3751
  }
3679
3752
 
3753
+ .univer-rounded-md {
3754
+ border-radius: .375rem;
3755
+ }
3756
+
3680
3757
  .univer-rounded-none {
3681
3758
  border-radius: 0;
3682
3759
  }
@@ -3706,10 +3783,22 @@
3706
3783
  background-color: var(--univer-gray-600) !important;
3707
3784
  }
3708
3785
 
3786
+ .univer-bg-gray-100 {
3787
+ background-color: var(--univer-gray-100);
3788
+ }
3789
+
3709
3790
  .univer-bg-gray-200 {
3710
3791
  background-color: var(--univer-gray-200);
3711
3792
  }
3712
3793
 
3794
+ .univer-bg-gray-50 {
3795
+ background-color: var(--univer-gray-50);
3796
+ }
3797
+
3798
+ .univer-bg-primary-50 {
3799
+ background-color: var(--univer-primary-50);
3800
+ }
3801
+
3713
3802
  .univer-bg-primary-600 {
3714
3803
  background-color: var(--univer-primary-600);
3715
3804
  }
@@ -3743,6 +3832,11 @@
3743
3832
  padding-right: .5rem;
3744
3833
  }
3745
3834
 
3835
+ .univer-px-3 {
3836
+ padding-left: .75rem;
3837
+ padding-right: .75rem;
3838
+ }
3839
+
3746
3840
  .univer-px-4 {
3747
3841
  padding-left: 1rem;
3748
3842
  padding-right: 1rem;
@@ -3758,6 +3852,11 @@
3758
3852
  padding-right: 1.75rem;
3759
3853
  }
3760
3854
 
3855
+ .univer-py-0\.5 {
3856
+ padding-top: .125rem;
3857
+ padding-bottom: .125rem;
3858
+ }
3859
+
3761
3860
  .univer-py-1 {
3762
3861
  padding-top: .25rem;
3763
3862
  padding-bottom: .25rem;
@@ -3781,6 +3880,10 @@
3781
3880
  padding-top: 0;
3782
3881
  }
3783
3882
 
3883
+ .univer-font-mono {
3884
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
3885
+ }
3886
+
3784
3887
  .univer-text-base {
3785
3888
  font-size: 1rem;
3786
3889
  line-height: 1.5rem;
@@ -3804,6 +3907,14 @@
3804
3907
  font-weight: 500;
3805
3908
  }
3806
3909
 
3910
+ .univer-font-semibold {
3911
+ font-weight: 600;
3912
+ }
3913
+
3914
+ .univer-leading-4 {
3915
+ line-height: 1rem;
3916
+ }
3917
+
3807
3918
  .univer-leading-5 {
3808
3919
  line-height: 1.25rem;
3809
3920
  }
@@ -3893,10 +4004,22 @@
3893
4004
  background-color: var(--univer-gray-600) !important;
3894
4005
  }
3895
4006
 
4007
+ .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
4008
+ background-color: var(--univer-gray-700) !important;
4009
+ }
4010
+
4011
+ .dark\:\!univer-bg-gray-800:where(.univer-dark, .univer-dark *) {
4012
+ background-color: var(--univer-gray-800) !important;
4013
+ }
4014
+
3896
4015
  .dark\:\!univer-bg-gray-900:where(.univer-dark, .univer-dark *) {
3897
4016
  background-color: var(--univer-gray-900) !important;
3898
4017
  }
3899
4018
 
4019
+ .dark\:\!univer-bg-primary-900:where(.univer-dark, .univer-dark *) {
4020
+ background-color: var(--univer-primary-900) !important;
4021
+ }
4022
+
3900
4023
  .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
3901
4024
  color: var(--univer-gray-200) !important;
3902
4025
  }
@@ -3905,6 +4028,10 @@
3905
4028
  color: var(--univer-gray-300) !important;
3906
4029
  }
3907
4030
 
4031
+ .dark\:\!univer-text-primary-200:where(.univer-dark, .univer-dark *) {
4032
+ color: var(--univer-primary-200) !important;
4033
+ }
4034
+
3908
4035
  .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
3909
4036
  color: var(--univer-white) !important;
3910
4037
  }
@@ -4130,6 +4257,10 @@
4130
4257
  top: -.125rem;
4131
4258
  }
4132
4259
 
4260
+ .univer-bottom-0 {
4261
+ bottom: 0;
4262
+ }
4263
+
4133
4264
  .univer-left-0 {
4134
4265
  left: 0;
4135
4266
  }
@@ -4138,6 +4269,10 @@
4138
4269
  left: .25rem;
4139
4270
  }
4140
4271
 
4272
+ .univer-left-1\/2 {
4273
+ left: 50%;
4274
+ }
4275
+
4141
4276
  .univer-left-3 {
4142
4277
  left: .75rem;
4143
4278
  }
@@ -4166,6 +4301,10 @@
4166
4301
  z-index: 10;
4167
4302
  }
4168
4303
 
4304
+ .univer-z-40 {
4305
+ z-index: 40;
4306
+ }
4307
+
4169
4308
  .univer-z-\[1001\] {
4170
4309
  z-index: 1001;
4171
4310
  }
@@ -4515,6 +4654,12 @@
4515
4654
  flex-basis: 0;
4516
4655
  }
4517
4656
 
4657
+ .-univer-translate-x-1\/2 {
4658
+ --univer-tw-translate-x: -50%;
4659
+ transform: translate(-50%, 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));
4660
+ 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));
4661
+ }
4662
+
4518
4663
  .-univer-translate-y-1\/2 {
4519
4664
  --univer-tw-translate-y: -50%;
4520
4665
  transform: translate(var(--univer-tw-translate-x), -50%) 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));
@@ -4527,6 +4672,16 @@
4527
4672
  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));
4528
4673
  }
4529
4674
 
4675
+ @keyframes univer-pulse {
4676
+ 50% {
4677
+ opacity: .5;
4678
+ }
4679
+ }
4680
+
4681
+ .univer-animate-pulse {
4682
+ animation: 2s cubic-bezier(.4, 0, .6, 1) infinite univer-pulse;
4683
+ }
4684
+
4530
4685
  @keyframes univer-spin {
4531
4686
  to {
4532
4687
  transform: rotate(360deg);
@@ -4727,6 +4882,10 @@
4727
4882
  border-bottom-width: 1px;
4728
4883
  }
4729
4884
 
4885
+ .univer-border-r {
4886
+ border-right-width: 1px;
4887
+ }
4888
+
4730
4889
  .univer-border-solid {
4731
4890
  border-style: solid;
4732
4891
  }
@@ -4771,6 +4930,10 @@
4771
4930
  background-color: var(--univer-gray-900) !important;
4772
4931
  }
4773
4932
 
4933
+ .\!univer-bg-transparent {
4934
+ background-color: #0000 !important;
4935
+ }
4936
+
4774
4937
  .univer-bg-blue-500 {
4775
4938
  background-color: var(--univer-blue-500);
4776
4939
  }
@@ -4787,6 +4950,10 @@
4787
4950
  background-color: var(--univer-gray-200);
4788
4951
  }
4789
4952
 
4953
+ .univer-bg-gray-50 {
4954
+ background-color: var(--univer-gray-50);
4955
+ }
4956
+
4790
4957
  .univer-bg-transparent {
4791
4958
  background-color: #0000;
4792
4959
  }
@@ -5044,6 +5211,11 @@
5044
5211
  color: rgba(225, 29, 72, var(--univer-tw-text-opacity, 1));
5045
5212
  }
5046
5213
 
5214
+ .univer-text-violet-500 {
5215
+ --univer-tw-text-opacity: 1;
5216
+ color: rgba(139, 92, 246, var(--univer-tw-text-opacity, 1));
5217
+ }
5218
+
5047
5219
  .univer-text-white {
5048
5220
  color: var(--univer-white);
5049
5221
  }
@@ -5283,6 +5455,10 @@
5283
5455
  background-color: var(--univer-gray-900) !important;
5284
5456
  }
5285
5457
 
5458
+ .dark\:\!univer-bg-transparent:where(.univer-dark, .univer-dark *) {
5459
+ background-color: #0000 !important;
5460
+ }
5461
+
5286
5462
  .dark\:\!univer-from-gray-800:where(.univer-dark, .univer-dark *) {
5287
5463
  --univer-tw-gradient-from: var(--univer-gray-800) var(--univer-tw-gradient-from-position) !important;
5288
5464
  --univer-tw-gradient-to: #fff0 var(--univer-tw-gradient-to-position) !important;
@@ -6097,6 +6273,11 @@
6097
6273
  border-bottom-right-radius: .25rem;
6098
6274
  }
6099
6275
 
6276
+ .univer-rounded-t {
6277
+ border-top-left-radius: .25rem;
6278
+ border-top-right-radius: .25rem;
6279
+ }
6280
+
6100
6281
  .univer-rounded-t-\[28px\] {
6101
6282
  border-top-left-radius: 28px;
6102
6283
  border-top-right-radius: 28px;
@@ -6130,10 +6311,6 @@
6130
6311
  border-color: var(--univer-gray-300);
6131
6312
  }
6132
6313
 
6133
- .univer-border-primary-500 {
6134
- border-color: var(--univer-primary-500);
6135
- }
6136
-
6137
6314
  .univer-border-primary-600 {
6138
6315
  border-color: var(--univer-primary-600);
6139
6316
  }
@@ -6765,10 +6942,6 @@
6765
6942
  right: auto;
6766
6943
  }
6767
6944
 
6768
- .rtl\:univer-divide-x-reverse:where([dir="rtl"], [dir="rtl"] *) > :not([hidden]) ~ :not([hidden]) {
6769
- --univer-tw-divide-x-reverse: 1;
6770
- }
6771
-
6772
6945
  .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
6773
6946
  border-top-left-radius: .25rem;
6774
6947
  border-bottom-left-radius: .25rem;
@@ -6813,10 +6986,6 @@
6813
6986
  border-color: var(--univer-gray-700) !important;
6814
6987
  }
6815
6988
 
6816
- .dark\:\!univer-border-primary-600:where(.univer-dark, .univer-dark *) {
6817
- border-color: var(--univer-primary-600) !important;
6818
- }
6819
-
6820
6989
  .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
6821
6990
  background-color: var(--univer-gray-200) !important;
6822
6991
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.4",
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/docs": "1.0.0-alpha.2",
65
- "@univerjs/docs-ui": "1.0.0-alpha.2",
66
- "@univerjs/engine-render": "1.0.0-alpha.2",
67
- "@univerjs/network": "1.0.0-alpha.2",
68
- "@univerjs/engine-formula": "1.0.0-alpha.2",
69
- "@univerjs/design": "1.0.0-alpha.2",
70
- "@univerjs/sheets": "1.0.0-alpha.2",
71
- "@univerjs/rpc": "1.0.0-alpha.2",
72
- "@univerjs/sheets-formula": "1.0.0-alpha.2",
73
- "@univerjs/sheets-formula-ui": "1.0.0-alpha.2",
74
- "@univerjs/sheets-numfmt": "1.0.0-alpha.2",
75
- "@univerjs/sheets-ui": "1.0.0-alpha.2",
76
- "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.2",
77
- "@univerjs/ui": "1.0.0-alpha.2"
64
+ "@univerjs/design": "1.0.0-alpha.4",
65
+ "@univerjs/docs": "1.0.0-alpha.4",
66
+ "@univerjs/docs-ui": "1.0.0-alpha.4",
67
+ "@univerjs/engine-formula": "1.0.0-alpha.4",
68
+ "@univerjs/network": "1.0.0-alpha.4",
69
+ "@univerjs/rpc": "1.0.0-alpha.4",
70
+ "@univerjs/sheets-formula": "1.0.0-alpha.4",
71
+ "@univerjs/sheets": "1.0.0-alpha.4",
72
+ "@univerjs/engine-render": "1.0.0-alpha.4",
73
+ "@univerjs/sheets-formula-ui": "1.0.0-alpha.4",
74
+ "@univerjs/sheets-numfmt": "1.0.0-alpha.4",
75
+ "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.4",
76
+ "@univerjs/sheets-ui": "1.0.0-alpha.4",
77
+ "@univerjs/ui": "1.0.0-alpha.4"
78
78
  },
79
79
  "devDependencies": {
80
80
  "react": "18.3.1",
81
81
  "react-dom": "18.3.1",
82
82
  "rxjs": "^7.8.2",
83
83
  "typescript": "^6.0.3",
84
- "@univerjs/presets": "1.0.0-alpha.2",
85
- "@univerjs-infra/shared": "1.0.0-alpha.2",
86
- "@univerjs/core": "1.0.0-alpha.2"
84
+ "@univerjs-infra/shared": "1.0.0-alpha.4",
85
+ "@univerjs/core": "1.0.0-alpha.4",
86
+ "@univerjs/presets": "1.0.0-alpha.4"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",