@univerjs/preset-sheets-core 1.0.0-alpha.0 → 1.0.0-alpha.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 +222 -8
  2. package/package.json +18 -18
package/lib/index.css CHANGED
@@ -179,6 +179,10 @@
179
179
  top: 1px;
180
180
  }
181
181
 
182
+ .\!univer-z-\[1090\] {
183
+ z-index: 1090 !important;
184
+ }
185
+
182
186
  .univer-z-0 {
183
187
  z-index: 0;
184
188
  }
@@ -945,6 +949,10 @@
945
949
  border-left-width: 0 !important;
946
950
  }
947
951
 
952
+ .\!univer-border-r-0 {
953
+ border-right-width: 0 !important;
954
+ }
955
+
948
956
  .\!univer-border-t-0 {
949
957
  border-top-width: 0 !important;
950
958
  }
@@ -2169,10 +2177,22 @@
2169
2177
  }
2170
2178
  }
2171
2179
 
2180
+ .rtl\:univer-left-4:where([dir="rtl"], [dir="rtl"] *) {
2181
+ left: 1rem;
2182
+ }
2183
+
2184
+ .rtl\:univer-left-auto:where([dir="rtl"], [dir="rtl"] *) {
2185
+ left: auto;
2186
+ }
2187
+
2172
2188
  .rtl\:univer-left-px:where([dir="rtl"], [dir="rtl"] *) {
2173
2189
  left: 1px;
2174
2190
  }
2175
2191
 
2192
+ .rtl\:univer-right-1\.5:where([dir="rtl"], [dir="rtl"] *) {
2193
+ right: .375rem;
2194
+ }
2195
+
2176
2196
  .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
2177
2197
  right: auto;
2178
2198
  }
@@ -2195,6 +2215,20 @@
2195
2215
  border-right-width: 1px;
2196
2216
  }
2197
2217
 
2218
+ .rtl\:\!univer-pl-2:where([dir="rtl"], [dir="rtl"] *) {
2219
+ padding-left: .5rem !important;
2220
+ }
2221
+
2222
+ .rtl\:\!univer-pr-4:where([dir="rtl"], [dir="rtl"] *) {
2223
+ padding-right: 1rem !important;
2224
+ }
2225
+
2226
+ @media (min-width: 640px) {
2227
+ .sm\:rtl\:\!univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
2228
+ text-align: right !important;
2229
+ }
2230
+ }
2231
+
2198
2232
  .dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
2199
2233
  border-color: var(--univer-gray-600) !important;
2200
2234
  }
@@ -3851,6 +3885,10 @@
3851
3885
  background-color: var(--univer-gray-300);
3852
3886
  }
3853
3887
 
3888
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
3889
+ flex-direction: row-reverse;
3890
+ }
3891
+
3854
3892
  .dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
3855
3893
  background-color: var(--univer-gray-600) !important;
3856
3894
  }
@@ -3878,10 +3916,6 @@
3878
3916
  margin-bottom: 1.25rem;
3879
3917
  }
3880
3918
 
3881
- .univer-mr-3 {
3882
- margin-right: .75rem;
3883
- }
3884
-
3885
3919
  .univer-mt-2 {
3886
3920
  margin-top: .5rem;
3887
3921
  }
@@ -3970,6 +4004,10 @@
3970
4004
  gap: .375rem;
3971
4005
  }
3972
4006
 
4007
+ .univer-gap-2 {
4008
+ gap: .5rem;
4009
+ }
4010
+
3973
4011
  .univer-gap-6 {
3974
4012
  gap: 1.5rem;
3975
4013
  }
@@ -4042,6 +4080,10 @@
4042
4080
  background-color: var(--univer-gray-100);
4043
4081
  }
4044
4082
 
4083
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
4084
+ flex-direction: row-reverse;
4085
+ }
4086
+
4045
4087
  .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
4046
4088
  color: var(--univer-gray-200) !important;
4047
4089
  }
@@ -4405,10 +4447,6 @@
4405
4447
  width: 300px;
4406
4448
  }
4407
4449
 
4408
- .univer-w-\[50\%\] {
4409
- width: 50%;
4410
- }
4411
-
4412
4450
  .univer-w-fit {
4413
4451
  width: fit-content;
4414
4452
  }
@@ -4473,6 +4511,10 @@
4473
4511
  flex-grow: 0;
4474
4512
  }
4475
4513
 
4514
+ .univer-basis-0 {
4515
+ flex-basis: 0;
4516
+ }
4517
+
4476
4518
  .-univer-translate-y-1\/2 {
4477
4519
  --univer-tw-translate-y: -50%;
4478
4520
  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));
@@ -5171,6 +5213,40 @@
5171
5213
  background-color: var(--univer-gray-100);
5172
5214
  }
5173
5215
 
5216
+ .rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
5217
+ left: 0;
5218
+ }
5219
+
5220
+ .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
5221
+ right: auto;
5222
+ }
5223
+
5224
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
5225
+ flex-direction: row-reverse;
5226
+ }
5227
+
5228
+ .rtl\:univer-pl-5:where([dir="rtl"], [dir="rtl"] *) {
5229
+ padding-left: 1.25rem;
5230
+ }
5231
+
5232
+ .rtl\:univer-pr-1\.5:where([dir="rtl"], [dir="rtl"] *) {
5233
+ padding-right: .375rem;
5234
+ }
5235
+
5236
+ .rtl\:univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
5237
+ text-align: right;
5238
+ }
5239
+
5240
+ .rtl\:after\:univer-left-0:where([dir="rtl"], [dir="rtl"] *):after {
5241
+ content: var(--univer-tw-content);
5242
+ left: 0;
5243
+ }
5244
+
5245
+ .rtl\:after\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *):after {
5246
+ content: var(--univer-tw-content);
5247
+ right: auto;
5248
+ }
5249
+
5174
5250
  .dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
5175
5251
  border-color: var(--univer-gray-600) !important;
5176
5252
  }
@@ -5551,10 +5627,22 @@
5551
5627
  height: 2.25rem;
5552
5628
  }
5553
5629
 
5630
+ .univer-h-\[30px\] {
5631
+ height: 30px;
5632
+ }
5633
+
5634
+ .univer-h-\[340px\] {
5635
+ height: 340px;
5636
+ }
5637
+
5554
5638
  .univer-h-full {
5555
5639
  height: 100%;
5556
5640
  }
5557
5641
 
5642
+ .univer-max-h-72 {
5643
+ max-height: 18rem;
5644
+ }
5645
+
5558
5646
  .univer-max-h-\[80vh\] {
5559
5647
  max-height: 80vh;
5560
5648
  }
@@ -5631,6 +5719,10 @@
5631
5719
  width: 24rem;
5632
5720
  }
5633
5721
 
5722
+ .univer-w-\[420px\] {
5723
+ width: 420px;
5724
+ }
5725
+
5634
5726
  .univer-w-\[52px\] {
5635
5727
  width: 52px;
5636
5728
  }
@@ -5655,6 +5747,10 @@
5655
5747
  min-width: 0;
5656
5748
  }
5657
5749
 
5750
+ .univer-min-w-44 {
5751
+ min-width: 11rem;
5752
+ }
5753
+
5658
5754
  .univer-min-w-52 {
5659
5755
  min-width: 13rem;
5660
5756
  }
@@ -5785,6 +5881,10 @@
5785
5881
  grid-auto-flow: column;
5786
5882
  }
5787
5883
 
5884
+ .univer-grid-cols-10 {
5885
+ grid-template-columns: repeat(10, minmax(0, 1fr));
5886
+ }
5887
+
5788
5888
  .univer-grid-cols-3 {
5789
5889
  grid-template-columns: repeat(3, minmax(0, 1fr));
5790
5890
  }
@@ -5829,6 +5929,10 @@
5829
5929
  grid-template-rows: auto 1fr auto;
5830
5930
  }
5831
5931
 
5932
+ .univer-flex-row {
5933
+ flex-direction: row;
5934
+ }
5935
+
5832
5936
  .univer-flex-col {
5833
5937
  flex-direction: column;
5834
5938
  }
@@ -5955,6 +6059,10 @@
5955
6059
  border-radius: 1.5rem;
5956
6060
  }
5957
6061
 
6062
+ .univer-rounded-\[10px\] {
6063
+ border-radius: 10px;
6064
+ }
6065
+
5958
6066
  .univer-rounded-full {
5959
6067
  border-radius: 9999px;
5960
6068
  }
@@ -6018,6 +6126,14 @@
6018
6126
  border-color: var(--univer-gray-200);
6019
6127
  }
6020
6128
 
6129
+ .univer-border-gray-300 {
6130
+ border-color: var(--univer-gray-300);
6131
+ }
6132
+
6133
+ .univer-border-primary-500 {
6134
+ border-color: var(--univer-primary-500);
6135
+ }
6136
+
6021
6137
  .univer-border-primary-600 {
6022
6138
  border-color: var(--univer-primary-600);
6023
6139
  }
@@ -6146,6 +6262,11 @@
6146
6262
  padding-right: .5rem;
6147
6263
  }
6148
6264
 
6265
+ .univer-px-2\.5 {
6266
+ padding-left: .625rem;
6267
+ padding-right: .625rem;
6268
+ }
6269
+
6149
6270
  .univer-px-3 {
6150
6271
  padding-left: .75rem;
6151
6272
  padding-right: .75rem;
@@ -6181,6 +6302,11 @@
6181
6302
  padding-bottom: .75rem;
6182
6303
  }
6183
6304
 
6305
+ .univer-py-7 {
6306
+ padding-top: 1.75rem;
6307
+ padding-bottom: 1.75rem;
6308
+ }
6309
+
6184
6310
  .univer-pb-1 {
6185
6311
  padding-bottom: .25rem;
6186
6312
  }
@@ -6255,6 +6381,11 @@
6255
6381
  line-height: 1.5rem;
6256
6382
  }
6257
6383
 
6384
+ .univer-text-lg {
6385
+ font-size: 1.125rem;
6386
+ line-height: 1.75rem;
6387
+ }
6388
+
6258
6389
  .univer-text-sm {
6259
6390
  font-size: .875rem;
6260
6391
  line-height: 1.25rem;
@@ -6337,6 +6468,10 @@
6337
6468
  color: var(--univer-gray-900);
6338
6469
  }
6339
6470
 
6471
+ .univer-text-primary-500 {
6472
+ color: var(--univer-primary-500);
6473
+ }
6474
+
6340
6475
  .univer-text-primary-600 {
6341
6476
  color: var(--univer-primary-600);
6342
6477
  }
@@ -6381,6 +6516,13 @@
6381
6516
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
6382
6517
  }
6383
6518
 
6519
+ .univer-shadow-lg {
6520
+ --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
6521
+ --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
6522
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px #1e284d0d, 0 10px 15px -3px #1e284d1a;
6523
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
6524
+ }
6525
+
6384
6526
  .univer-shadow-md {
6385
6527
  --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;
6386
6528
  --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);
@@ -6494,6 +6636,10 @@
6494
6636
  display: none;
6495
6637
  }
6496
6638
 
6639
+ .hover\:univer-border-gray-400:hover {
6640
+ border-color: var(--univer-gray-400);
6641
+ }
6642
+
6497
6643
  .hover\:univer-border-primary-600:hover {
6498
6644
  border-color: var(--univer-primary-600);
6499
6645
  }
@@ -6514,6 +6660,10 @@
6514
6660
  background-color: #0000;
6515
6661
  }
6516
6662
 
6663
+ .hover\:univer-text-gray-700:hover {
6664
+ color: var(--univer-gray-700);
6665
+ }
6666
+
6517
6667
  .hover\:univer-opacity-50:hover {
6518
6668
  opacity: .5;
6519
6669
  }
@@ -6603,10 +6753,50 @@
6603
6753
  }
6604
6754
  }
6605
6755
 
6756
+ .rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
6757
+ left: 0;
6758
+ }
6759
+
6760
+ .rtl\:univer-left-2:where([dir="rtl"], [dir="rtl"] *) {
6761
+ left: .5rem;
6762
+ }
6763
+
6764
+ .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
6765
+ right: auto;
6766
+ }
6767
+
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
+ .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
6773
+ border-top-left-radius: .25rem;
6774
+ border-bottom-left-radius: .25rem;
6775
+ }
6776
+
6777
+ .rtl\:univer-rounded-l-none:where([dir="rtl"], [dir="rtl"] *) {
6778
+ border-top-left-radius: 0;
6779
+ border-bottom-left-radius: 0;
6780
+ }
6781
+
6782
+ .rtl\:univer-rounded-r:where([dir="rtl"], [dir="rtl"] *) {
6783
+ border-top-right-radius: .25rem;
6784
+ border-bottom-right-radius: .25rem;
6785
+ }
6786
+
6787
+ .rtl\:univer-rounded-r-none:where([dir="rtl"], [dir="rtl"] *) {
6788
+ border-top-right-radius: 0;
6789
+ border-bottom-right-radius: 0;
6790
+ }
6791
+
6606
6792
  .rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
6607
6793
  padding-left: .375rem;
6608
6794
  }
6609
6795
 
6796
+ .rtl\:univer-pl-5:where([dir="rtl"], [dir="rtl"] *) {
6797
+ padding-left: 1.25rem;
6798
+ }
6799
+
6610
6800
  .rtl\:univer-pr-0:where([dir="rtl"], [dir="rtl"] *) {
6611
6801
  padding-right: 0;
6612
6802
  }
@@ -6623,6 +6813,10 @@
6623
6813
  border-color: var(--univer-gray-700) !important;
6624
6814
  }
6625
6815
 
6816
+ .dark\:\!univer-border-primary-600:where(.univer-dark, .univer-dark *) {
6817
+ border-color: var(--univer-primary-600) !important;
6818
+ }
6819
+
6626
6820
  .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
6627
6821
  background-color: var(--univer-gray-200) !important;
6628
6822
  }
@@ -6703,6 +6897,13 @@
6703
6897
  color: var(--univer-white) !important;
6704
6898
  }
6705
6899
 
6900
+ .dark\:\!univer-shadow-sm:where(.univer-dark, .univer-dark *) {
6901
+ --univer-tw-shadow: 0px 1px 2px 0px #1e284d14 !important;
6902
+ --univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color) !important;
6903
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px #1e284d14 !important;
6904
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
6905
+ }
6906
+
6706
6907
  .dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark, .univer-dark *) {
6707
6908
  background-color: var(--univer-gray-600) !important;
6708
6909
  }
@@ -6711,6 +6912,10 @@
6711
6912
  background-color: var(--univer-gray-700) !important;
6712
6913
  }
6713
6914
 
6915
+ .dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
6916
+ background-color: var(--univer-gray-800) !important;
6917
+ }
6918
+
6714
6919
  .dark\:hover\:\!univer-bg-gray-900:hover:where(.univer-dark, .univer-dark *) {
6715
6920
  background-color: var(--univer-gray-900) !important;
6716
6921
  }
@@ -6719,6 +6924,10 @@
6719
6924
  background-color: #0000 !important;
6720
6925
  }
6721
6926
 
6927
+ .dark\:hover\:\!univer-text-gray-300:hover:where(.univer-dark, .univer-dark *) {
6928
+ color: var(--univer-gray-300) !important;
6929
+ }
6930
+
6722
6931
  .dark\:focus\:\!univer-bg-gray-600:focus:where(.univer-dark, .univer-dark *) {
6723
6932
  background-color: var(--univer-gray-600) !important;
6724
6933
  }
@@ -7089,3 +7298,8 @@
7089
7298
  outline-offset: 2px !important;
7090
7299
  outline: 2px solid #0000 !important;
7091
7300
  }
7301
+
7302
+ .\[\&_svg\]\:univer-size-5 svg {
7303
+ width: 1.25rem;
7304
+ height: 1.25rem;
7305
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.2",
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.0.0-alpha.0",
65
- "@univerjs/docs": "1.0.0-alpha.0",
66
- "@univerjs/docs-ui": "1.0.0-alpha.0",
67
- "@univerjs/engine-render": "1.0.0-alpha.0",
68
- "@univerjs/network": "1.0.0-alpha.0",
69
- "@univerjs/rpc": "1.0.0-alpha.0",
70
- "@univerjs/sheets": "1.0.0-alpha.0",
71
- "@univerjs/sheets-formula-ui": "1.0.0-alpha.0",
72
- "@univerjs/sheets-formula": "1.0.0-alpha.0",
73
- "@univerjs/sheets-numfmt": "1.0.0-alpha.0",
74
- "@univerjs/engine-formula": "1.0.0-alpha.0",
75
- "@univerjs/sheets-ui": "1.0.0-alpha.0",
76
- "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.0",
77
- "@univerjs/ui": "1.0.0-alpha.0"
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"
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-infra/shared": "1.0.0-alpha.0",
85
- "@univerjs/core": "1.0.0-alpha.0",
86
- "@univerjs/presets": "1.0.0-alpha.0"
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"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",