@univerjs/preset-sheets-core 1.0.0-alpha.1 → 1.0.0-alpha.3

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 +193 -16
  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
  }
@@ -349,6 +353,11 @@
349
353
  height: 1.75rem;
350
354
  }
351
355
 
356
+ .univer-size-8 {
357
+ width: 2rem;
358
+ height: 2rem;
359
+ }
360
+
352
361
  .univer-size-9 {
353
362
  width: 2.25rem;
354
363
  height: 2.25rem;
@@ -411,6 +420,10 @@
411
420
  height: 150px;
412
421
  }
413
422
 
423
+ .univer-h-\[78px\] {
424
+ height: 78px;
425
+ }
426
+
414
427
  .univer-h-\[calc\(100\%-2px\)\] {
415
428
  height: calc(100% - 2px);
416
429
  }
@@ -945,6 +958,10 @@
945
958
  border-left-width: 0 !important;
946
959
  }
947
960
 
961
+ .\!univer-border-r-0 {
962
+ border-right-width: 0 !important;
963
+ }
964
+
948
965
  .\!univer-border-t-0 {
949
966
  border-top-width: 0 !important;
950
967
  }
@@ -1049,6 +1066,12 @@
1049
1066
  background-color: var(--univer-primary-600) !important;
1050
1067
  }
1051
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
+
1052
1075
  .univer-bg-\[rgba\(0\,0\,0\,0\.8\)\] {
1053
1076
  background-color: #000c;
1054
1077
  }
@@ -1141,6 +1164,10 @@
1141
1164
  object-fit: contain;
1142
1165
  }
1143
1166
 
1167
+ .\!univer-p-0 {
1168
+ padding: 0 !important;
1169
+ }
1170
+
1144
1171
  .\!univer-p-2\.5 {
1145
1172
  padding: .625rem !important;
1146
1173
  }
@@ -1223,6 +1250,11 @@
1223
1250
  padding-right: 1.75rem;
1224
1251
  }
1225
1252
 
1253
+ .univer-px-8 {
1254
+ padding-left: 2rem;
1255
+ padding-right: 2rem;
1256
+ }
1257
+
1226
1258
  .univer-py-0\.5 {
1227
1259
  padding-top: .125rem;
1228
1260
  padding-bottom: .125rem;
@@ -2169,14 +2201,38 @@
2169
2201
  }
2170
2202
  }
2171
2203
 
2204
+ .rtl\:univer-left-4:where([dir="rtl"], [dir="rtl"] *) {
2205
+ left: 1rem;
2206
+ }
2207
+
2208
+ .rtl\:univer-left-auto:where([dir="rtl"], [dir="rtl"] *) {
2209
+ left: auto;
2210
+ }
2211
+
2172
2212
  .rtl\:univer-left-px:where([dir="rtl"], [dir="rtl"] *) {
2173
2213
  left: 1px;
2174
2214
  }
2175
2215
 
2216
+ .rtl\:univer-right-1\.5:where([dir="rtl"], [dir="rtl"] *) {
2217
+ right: .375rem;
2218
+ }
2219
+
2176
2220
  .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
2177
2221
  right: auto;
2178
2222
  }
2179
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
+
2180
2236
  .rtl\:univer-rounded-l-md:where([dir="rtl"], [dir="rtl"] *) {
2181
2237
  border-top-left-radius: .375rem;
2182
2238
  border-bottom-left-radius: .375rem;
@@ -2195,6 +2251,28 @@
2195
2251
  border-right-width: 1px;
2196
2252
  }
2197
2253
 
2254
+ .rtl\:\!univer-pl-2:where([dir="rtl"], [dir="rtl"] *) {
2255
+ padding-left: .5rem !important;
2256
+ }
2257
+
2258
+ .rtl\:\!univer-pr-4:where([dir="rtl"], [dir="rtl"] *) {
2259
+ padding-right: 1rem !important;
2260
+ }
2261
+
2262
+ @media (min-width: 640px) {
2263
+ .sm\:rtl\:\!univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
2264
+ text-align: right !important;
2265
+ }
2266
+ }
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
+
2198
2276
  .dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
2199
2277
  border-color: var(--univer-gray-600) !important;
2200
2278
  }
@@ -2780,6 +2858,10 @@
2780
2858
  margin-bottom: .5rem;
2781
2859
  }
2782
2860
 
2861
+ .univer-mb-4 {
2862
+ margin-bottom: 1rem;
2863
+ }
2864
+
2783
2865
  .univer-mr-1 {
2784
2866
  margin-right: .25rem;
2785
2867
  }
@@ -3386,6 +3468,10 @@
3386
3468
  color: var(--univer-gray-200) !important;
3387
3469
  }
3388
3470
 
3471
+ .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
3472
+ color: var(--univer-gray-300) !important;
3473
+ }
3474
+
3389
3475
  .dark\:\!univer-text-gray-400:where(.univer-dark, .univer-dark *) {
3390
3476
  color: var(--univer-gray-400) !important;
3391
3477
  }
@@ -3851,6 +3937,10 @@
3851
3937
  background-color: var(--univer-gray-300);
3852
3938
  }
3853
3939
 
3940
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
3941
+ flex-direction: row-reverse;
3942
+ }
3943
+
3854
3944
  .dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
3855
3945
  background-color: var(--univer-gray-600) !important;
3856
3946
  }
@@ -3878,10 +3968,6 @@
3878
3968
  margin-bottom: 1.25rem;
3879
3969
  }
3880
3970
 
3881
- .univer-mr-3 {
3882
- margin-right: .75rem;
3883
- }
3884
-
3885
3971
  .univer-mt-2 {
3886
3972
  margin-top: .5rem;
3887
3973
  }
@@ -3970,6 +4056,10 @@
3970
4056
  gap: .375rem;
3971
4057
  }
3972
4058
 
4059
+ .univer-gap-2 {
4060
+ gap: .5rem;
4061
+ }
4062
+
3973
4063
  .univer-gap-6 {
3974
4064
  gap: 1.5rem;
3975
4065
  }
@@ -4042,6 +4132,10 @@
4042
4132
  background-color: var(--univer-gray-100);
4043
4133
  }
4044
4134
 
4135
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
4136
+ flex-direction: row-reverse;
4137
+ }
4138
+
4045
4139
  .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
4046
4140
  color: var(--univer-gray-200) !important;
4047
4141
  }
@@ -4124,6 +4218,10 @@
4124
4218
  z-index: 10;
4125
4219
  }
4126
4220
 
4221
+ .univer-z-40 {
4222
+ z-index: 40;
4223
+ }
4224
+
4127
4225
  .univer-z-\[1001\] {
4128
4226
  z-index: 1001;
4129
4227
  }
@@ -4405,10 +4503,6 @@
4405
4503
  width: 300px;
4406
4504
  }
4407
4505
 
4408
- .univer-w-\[50\%\] {
4409
- width: 50%;
4410
- }
4411
-
4412
4506
  .univer-w-fit {
4413
4507
  width: fit-content;
4414
4508
  }
@@ -4473,6 +4567,10 @@
4473
4567
  flex-grow: 0;
4474
4568
  }
4475
4569
 
4570
+ .univer-basis-0 {
4571
+ flex-basis: 0;
4572
+ }
4573
+
4476
4574
  .-univer-translate-y-1\/2 {
4477
4575
  --univer-tw-translate-y: -50%;
4478
4576
  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 +5269,40 @@
5171
5269
  background-color: var(--univer-gray-100);
5172
5270
  }
5173
5271
 
5272
+ .rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
5273
+ left: 0;
5274
+ }
5275
+
5276
+ .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
5277
+ right: auto;
5278
+ }
5279
+
5280
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
5281
+ flex-direction: row-reverse;
5282
+ }
5283
+
5284
+ .rtl\:univer-pl-5:where([dir="rtl"], [dir="rtl"] *) {
5285
+ padding-left: 1.25rem;
5286
+ }
5287
+
5288
+ .rtl\:univer-pr-1\.5:where([dir="rtl"], [dir="rtl"] *) {
5289
+ padding-right: .375rem;
5290
+ }
5291
+
5292
+ .rtl\:univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
5293
+ text-align: right;
5294
+ }
5295
+
5296
+ .rtl\:after\:univer-left-0:where([dir="rtl"], [dir="rtl"] *):after {
5297
+ content: var(--univer-tw-content);
5298
+ left: 0;
5299
+ }
5300
+
5301
+ .rtl\:after\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *):after {
5302
+ content: var(--univer-tw-content);
5303
+ right: auto;
5304
+ }
5305
+
5174
5306
  .dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
5175
5307
  border-color: var(--univer-gray-600) !important;
5176
5308
  }
@@ -5563,6 +5695,10 @@
5563
5695
  height: 100%;
5564
5696
  }
5565
5697
 
5698
+ .univer-max-h-72 {
5699
+ max-height: 18rem;
5700
+ }
5701
+
5566
5702
  .univer-max-h-\[80vh\] {
5567
5703
  max-height: 80vh;
5568
5704
  }
@@ -5667,6 +5803,10 @@
5667
5803
  min-width: 0;
5668
5804
  }
5669
5805
 
5806
+ .univer-min-w-44 {
5807
+ min-width: 11rem;
5808
+ }
5809
+
5670
5810
  .univer-min-w-52 {
5671
5811
  min-width: 13rem;
5672
5812
  }
@@ -5845,6 +5985,10 @@
5845
5985
  grid-template-rows: auto 1fr auto;
5846
5986
  }
5847
5987
 
5988
+ .univer-flex-row {
5989
+ flex-direction: row;
5990
+ }
5991
+
5848
5992
  .univer-flex-col {
5849
5993
  flex-direction: column;
5850
5994
  }
@@ -6009,6 +6153,11 @@
6009
6153
  border-bottom-right-radius: .25rem;
6010
6154
  }
6011
6155
 
6156
+ .univer-rounded-t {
6157
+ border-top-left-radius: .25rem;
6158
+ border-top-right-radius: .25rem;
6159
+ }
6160
+
6012
6161
  .univer-rounded-t-\[28px\] {
6013
6162
  border-top-left-radius: 28px;
6014
6163
  border-top-right-radius: 28px;
@@ -6042,10 +6191,6 @@
6042
6191
  border-color: var(--univer-gray-300);
6043
6192
  }
6044
6193
 
6045
- .univer-border-primary-500 {
6046
- border-color: var(--univer-primary-500);
6047
- }
6048
-
6049
6194
  .univer-border-primary-600 {
6050
6195
  border-color: var(--univer-primary-600);
6051
6196
  }
@@ -6665,10 +6810,46 @@
6665
6810
  }
6666
6811
  }
6667
6812
 
6813
+ .rtl\:univer-left-0:where([dir="rtl"], [dir="rtl"] *) {
6814
+ left: 0;
6815
+ }
6816
+
6817
+ .rtl\:univer-left-2:where([dir="rtl"], [dir="rtl"] *) {
6818
+ left: .5rem;
6819
+ }
6820
+
6821
+ .rtl\:univer-right-auto:where([dir="rtl"], [dir="rtl"] *) {
6822
+ right: auto;
6823
+ }
6824
+
6825
+ .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
6826
+ border-top-left-radius: .25rem;
6827
+ border-bottom-left-radius: .25rem;
6828
+ }
6829
+
6830
+ .rtl\:univer-rounded-l-none:where([dir="rtl"], [dir="rtl"] *) {
6831
+ border-top-left-radius: 0;
6832
+ border-bottom-left-radius: 0;
6833
+ }
6834
+
6835
+ .rtl\:univer-rounded-r:where([dir="rtl"], [dir="rtl"] *) {
6836
+ border-top-right-radius: .25rem;
6837
+ border-bottom-right-radius: .25rem;
6838
+ }
6839
+
6840
+ .rtl\:univer-rounded-r-none:where([dir="rtl"], [dir="rtl"] *) {
6841
+ border-top-right-radius: 0;
6842
+ border-bottom-right-radius: 0;
6843
+ }
6844
+
6668
6845
  .rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
6669
6846
  padding-left: .375rem;
6670
6847
  }
6671
6848
 
6849
+ .rtl\:univer-pl-5:where([dir="rtl"], [dir="rtl"] *) {
6850
+ padding-left: 1.25rem;
6851
+ }
6852
+
6672
6853
  .rtl\:univer-pr-0:where([dir="rtl"], [dir="rtl"] *) {
6673
6854
  padding-right: 0;
6674
6855
  }
@@ -6685,10 +6866,6 @@
6685
6866
  border-color: var(--univer-gray-700) !important;
6686
6867
  }
6687
6868
 
6688
- .dark\:\!univer-border-primary-600:where(.univer-dark, .univer-dark *) {
6689
- border-color: var(--univer-primary-600) !important;
6690
- }
6691
-
6692
6869
  .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
6693
6870
  background-color: var(--univer-gray-200) !important;
6694
6871
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
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.1",
65
- "@univerjs/docs": "1.0.0-alpha.1",
66
- "@univerjs/docs-ui": "1.0.0-alpha.1",
67
- "@univerjs/engine-formula": "1.0.0-alpha.1",
68
- "@univerjs/network": "1.0.0-alpha.1",
69
- "@univerjs/rpc": "1.0.0-alpha.1",
70
- "@univerjs/engine-render": "1.0.0-alpha.1",
71
- "@univerjs/sheets-formula": "1.0.0-alpha.1",
72
- "@univerjs/sheets": "1.0.0-alpha.1",
73
- "@univerjs/sheets-formula-ui": "1.0.0-alpha.1",
74
- "@univerjs/sheets-numfmt": "1.0.0-alpha.1",
75
- "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.1",
76
- "@univerjs/sheets-ui": "1.0.0-alpha.1",
77
- "@univerjs/ui": "1.0.0-alpha.1"
64
+ "@univerjs/design": "1.0.0-alpha.3",
65
+ "@univerjs/docs": "1.0.0-alpha.3",
66
+ "@univerjs/docs-ui": "1.0.0-alpha.3",
67
+ "@univerjs/engine-render": "1.0.0-alpha.3",
68
+ "@univerjs/network": "1.0.0-alpha.3",
69
+ "@univerjs/engine-formula": "1.0.0-alpha.3",
70
+ "@univerjs/rpc": "1.0.0-alpha.3",
71
+ "@univerjs/sheets": "1.0.0-alpha.3",
72
+ "@univerjs/sheets-formula-ui": "1.0.0-alpha.3",
73
+ "@univerjs/sheets-formula": "1.0.0-alpha.3",
74
+ "@univerjs/sheets-numfmt": "1.0.0-alpha.3",
75
+ "@univerjs/sheets-numfmt-ui": "1.0.0-alpha.3",
76
+ "@univerjs/sheets-ui": "1.0.0-alpha.3",
77
+ "@univerjs/ui": "1.0.0-alpha.3"
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.1",
85
- "@univerjs/core": "1.0.0-alpha.1",
86
- "@univerjs/presets": "1.0.0-alpha.1"
84
+ "@univerjs-infra/shared": "1.0.0-alpha.3",
85
+ "@univerjs/core": "1.0.0-alpha.3",
86
+ "@univerjs/presets": "1.0.0-alpha.3"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",