@univerjs/preset-sheets-core 1.0.4 → 1.2.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.
package/lib/cjs/index.js CHANGED
@@ -54,6 +54,7 @@ function UniverSheetsCorePreset(config = {}) {
54
54
  onlyRegisterFormulaRelatedMutations: false,
55
55
  isRowStylePrecedeColumnStyle: sheets === null || sheets === void 0 ? void 0 : sheets.isRowStylePrecedeColumnStyle,
56
56
  autoHeightForMergedCells: sheets === null || sheets === void 0 ? void 0 : sheets.autoHeightForMergedCells,
57
+ textLineGap: sheets === null || sheets === void 0 ? void 0 : sheets.textLineGap,
57
58
  freezeSync: sheets === null || sheets === void 0 ? void 0 : sheets.freezeSync
58
59
  }],
59
60
  [_univerjs_sheets_ui.UniverSheetsUIPlugin, {
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_ar_SA = require("@univerjs/design/locale/ar-SA");
3
3
  _univerjs_design_locale_ar_SA = require_rolldown_runtime.__toESM(_univerjs_design_locale_ar_SA);
4
4
  let _univerjs_docs_ui_locale_ar_SA = require("@univerjs/docs-ui/locale/ar-SA");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_ca_ES = require("@univerjs/design/locale/ca-ES");
3
3
  _univerjs_design_locale_ca_ES = require_rolldown_runtime.__toESM(_univerjs_design_locale_ca_ES);
4
4
  let _univerjs_docs_ui_locale_ca_ES = require("@univerjs/docs-ui/locale/ca-ES");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_de_DE = require("@univerjs/design/locale/de-DE");
3
3
  _univerjs_design_locale_de_DE = require_rolldown_runtime.__toESM(_univerjs_design_locale_de_DE);
4
4
  let _univerjs_docs_ui_locale_de_DE = require("@univerjs/docs-ui/locale/de-DE");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_en_US = require("@univerjs/design/locale/en-US");
3
3
  _univerjs_design_locale_en_US = require_rolldown_runtime.__toESM(_univerjs_design_locale_en_US);
4
4
  let _univerjs_docs_ui_locale_en_US = require("@univerjs/docs-ui/locale/en-US");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_es_ES = require("@univerjs/design/locale/es-ES");
3
3
  _univerjs_design_locale_es_ES = require_rolldown_runtime.__toESM(_univerjs_design_locale_es_ES);
4
4
  let _univerjs_docs_ui_locale_es_ES = require("@univerjs/docs-ui/locale/es-ES");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_fa_IR = require("@univerjs/design/locale/fa-IR");
3
3
  _univerjs_design_locale_fa_IR = require_rolldown_runtime.__toESM(_univerjs_design_locale_fa_IR);
4
4
  let _univerjs_docs_ui_locale_fa_IR = require("@univerjs/docs-ui/locale/fa-IR");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_fr_FR = require("@univerjs/design/locale/fr-FR");
3
3
  _univerjs_design_locale_fr_FR = require_rolldown_runtime.__toESM(_univerjs_design_locale_fr_FR);
4
4
  let _univerjs_docs_ui_locale_fr_FR = require("@univerjs/docs-ui/locale/fr-FR");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_id_ID = require("@univerjs/design/locale/id-ID");
3
3
  _univerjs_design_locale_id_ID = require_rolldown_runtime.__toESM(_univerjs_design_locale_id_ID);
4
4
  let _univerjs_docs_ui_locale_id_ID = require("@univerjs/docs-ui/locale/id-ID");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_it_IT = require("@univerjs/design/locale/it-IT");
3
3
  _univerjs_design_locale_it_IT = require_rolldown_runtime.__toESM(_univerjs_design_locale_it_IT);
4
4
  let _univerjs_docs_ui_locale_it_IT = require("@univerjs/docs-ui/locale/it-IT");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_ja_JP = require("@univerjs/design/locale/ja-JP");
3
3
  _univerjs_design_locale_ja_JP = require_rolldown_runtime.__toESM(_univerjs_design_locale_ja_JP);
4
4
  let _univerjs_docs_ui_locale_ja_JP = require("@univerjs/docs-ui/locale/ja-JP");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_ko_KR = require("@univerjs/design/locale/ko-KR");
3
3
  _univerjs_design_locale_ko_KR = require_rolldown_runtime.__toESM(_univerjs_design_locale_ko_KR);
4
4
  let _univerjs_docs_ui_locale_ko_KR = require("@univerjs/docs-ui/locale/ko-KR");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_pl_PL = require("@univerjs/design/locale/pl-PL");
3
3
  _univerjs_design_locale_pl_PL = require_rolldown_runtime.__toESM(_univerjs_design_locale_pl_PL);
4
4
  let _univerjs_docs_ui_locale_pl_PL = require("@univerjs/docs-ui/locale/pl-PL");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_pt_BR = require("@univerjs/design/locale/pt-BR");
3
3
  _univerjs_design_locale_pt_BR = require_rolldown_runtime.__toESM(_univerjs_design_locale_pt_BR);
4
4
  let _univerjs_docs_ui_locale_pt_BR = require("@univerjs/docs-ui/locale/pt-BR");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_ru_RU = require("@univerjs/design/locale/ru-RU");
3
3
  _univerjs_design_locale_ru_RU = require_rolldown_runtime.__toESM(_univerjs_design_locale_ru_RU);
4
4
  let _univerjs_docs_ui_locale_ru_RU = require("@univerjs/docs-ui/locale/ru-RU");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_sk_SK = require("@univerjs/design/locale/sk-SK");
3
3
  _univerjs_design_locale_sk_SK = require_rolldown_runtime.__toESM(_univerjs_design_locale_sk_SK);
4
4
  let _univerjs_docs_ui_locale_sk_SK = require("@univerjs/docs-ui/locale/sk-SK");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_vi_VN = require("@univerjs/design/locale/vi-VN");
3
3
  _univerjs_design_locale_vi_VN = require_rolldown_runtime.__toESM(_univerjs_design_locale_vi_VN);
4
4
  let _univerjs_docs_ui_locale_vi_VN = require("@univerjs/docs-ui/locale/vi-VN");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_zh_CN = require("@univerjs/design/locale/zh-CN");
3
3
  _univerjs_design_locale_zh_CN = require_rolldown_runtime.__toESM(_univerjs_design_locale_zh_CN);
4
4
  let _univerjs_docs_ui_locale_zh_CN = require("@univerjs/docs-ui/locale/zh-CN");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_zh_HK = require("@univerjs/design/locale/zh-HK");
3
3
  _univerjs_design_locale_zh_HK = require_rolldown_runtime.__toESM(_univerjs_design_locale_zh_HK);
4
4
  let _univerjs_docs_ui_locale_zh_HK = require("@univerjs/docs-ui/locale/zh-HK");
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('../rolldown-runtime-C24Yb2bl.js');
1
+ const require_rolldown_runtime = require("../rolldown-runtime-AN5ru5iW.js");
2
2
  let _univerjs_design_locale_zh_TW = require("@univerjs/design/locale/zh-TW");
3
3
  _univerjs_design_locale_zh_TW = require_rolldown_runtime.__toESM(_univerjs_design_locale_zh_TW);
4
4
  let _univerjs_docs_ui_locale_zh_TW = require("@univerjs/docs-ui/locale/zh-TW");
@@ -25,7 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
- Object.defineProperty(exports, '__toESM', {
28
+ Object.defineProperty(exports, "__toESM", {
29
29
  enumerable: true,
30
30
  get: function () {
31
31
  return __toESM;
package/lib/es/index.js CHANGED
@@ -81,6 +81,7 @@ function UniverSheetsCorePreset(config = {}) {
81
81
  onlyRegisterFormulaRelatedMutations: false,
82
82
  isRowStylePrecedeColumnStyle: sheets === null || sheets === void 0 ? void 0 : sheets.isRowStylePrecedeColumnStyle,
83
83
  autoHeightForMergedCells: sheets === null || sheets === void 0 ? void 0 : sheets.autoHeightForMergedCells,
84
+ textLineGap: sheets === null || sheets === void 0 ? void 0 : sheets.textLineGap,
84
85
  freezeSync: sheets === null || sheets === void 0 ? void 0 : sheets.freezeSync
85
86
  }],
86
87
  [UniverSheetsUIPlugin, {
package/lib/index.css CHANGED
@@ -104,10 +104,6 @@
104
104
  right: .5rem;
105
105
  }
106
106
 
107
- .\!univer-bottom-0 {
108
- bottom: 0 !important;
109
- }
110
-
111
107
  .\!univer-left-0 {
112
108
  left: 0 !important;
113
109
  }
@@ -301,7 +297,7 @@
301
297
  margin-left: .25rem;
302
298
  }
303
299
 
304
- .univer-ml-auto {
300
+ .univer-ml-auto, .univer-ms-auto {
305
301
  margin-left: auto;
306
302
  }
307
303
 
@@ -1349,6 +1345,10 @@
1349
1345
  background-color: var(--univer-gray-900);
1350
1346
  }
1351
1347
 
1348
+ .univer-bg-primary-100 {
1349
+ background-color: var(--univer-primary-100);
1350
+ }
1351
+
1352
1352
  .univer-bg-primary-50 {
1353
1353
  background-color: var(--univer-primary-50);
1354
1354
  }
@@ -1623,6 +1623,10 @@
1623
1623
  text-align: center;
1624
1624
  }
1625
1625
 
1626
+ .univer-text-start {
1627
+ text-align: left;
1628
+ }
1629
+
1626
1630
  .univer-align-middle {
1627
1631
  vertical-align: middle;
1628
1632
  }
@@ -1902,6 +1906,10 @@
1902
1906
  --univer-tw-text-opacity: .75;
1903
1907
  }
1904
1908
 
1909
+ .univer-decoration-current {
1910
+ text-decoration-color: currentColor;
1911
+ }
1912
+
1905
1913
  .univer-underline-offset-4 {
1906
1914
  text-underline-offset: 4px;
1907
1915
  }
@@ -2037,11 +2045,6 @@
2037
2045
  filter: var(--univer-tw-blur) var(--univer-tw-brightness) var(--univer-tw-contrast) var(--univer-tw-grayscale) var(--univer-tw-hue-rotate) var(--univer-tw-invert) var(--univer-tw-saturate) var(--univer-tw-sepia) var(--univer-tw-drop-shadow);
2038
2046
  }
2039
2047
 
2040
- .univer-backdrop-blur-xl {
2041
- --univer-tw-backdrop-blur: blur(24px);
2042
- 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);
2043
- }
2044
-
2045
2048
  .univer-transition-\[color\,box-shadow\] {
2046
2049
  transition-property: color, box-shadow;
2047
2050
  transition-duration: .15s;
@@ -2275,6 +2278,14 @@
2275
2278
  scroll-padding-block: 4px;
2276
2279
  }
2277
2280
 
2281
+ .\[transition-timing-function\:cubic-bezier\(0\.08\,0\.82\,0\.17\,1\)\] {
2282
+ transition-timing-function: cubic-bezier(.08, .82, .17, 1);
2283
+ }
2284
+
2285
+ .\[transition-timing-function\:cubic-bezier\(0\.6\,0\.04\,0\.98\,0\.34\)\] {
2286
+ transition-timing-function: cubic-bezier(.6, .04, .98, .34);
2287
+ }
2288
+
2278
2289
  .placeholder\:univer-text-gray-200::placeholder {
2279
2290
  color: var(--univer-gray-200);
2280
2291
  }
@@ -2485,6 +2496,10 @@
2485
2496
  background-color: var(--univer-gray-50);
2486
2497
  }
2487
2498
 
2499
+ .hover\:univer-bg-primary-100:hover {
2500
+ background-color: var(--univer-primary-100);
2501
+ }
2502
+
2488
2503
  .hover\:univer-bg-primary-500:hover {
2489
2504
  background-color: var(--univer-primary-500);
2490
2505
  }
@@ -3146,14 +3161,14 @@
3146
3161
  line-height: 1.25rem;
3147
3162
  }
3148
3163
 
3149
- .\[\&_\[data-description\]\]\:univer-text-gray-200 [data-description] {
3150
- color: var(--univer-gray-200);
3151
- }
3152
-
3153
3164
  .\[\&_\[data-description\]\]\:univer-text-gray-600 [data-description] {
3154
3165
  color: var(--univer-gray-600);
3155
3166
  }
3156
3167
 
3168
+ .dark\:\[\&_\[data-description\]\]\:\!univer-text-gray-200 [data-description]:where(.univer-dark, .univer-dark *) {
3169
+ color: var(--univer-gray-200) !important;
3170
+ }
3171
+
3157
3172
  .\[\&_\[data-icon\]\>svg\]\:univer-relative [data-icon] > svg {
3158
3173
  position: relative;
3159
3174
  }
@@ -3229,6 +3244,10 @@
3229
3244
  border-color: var(--univer-gray-200);
3230
3245
  }
3231
3246
 
3247
+ .\[\&_\[data-sonner-toast\]\]\:univer-bg-gray-0 [data-sonner-toast] {
3248
+ background-color: var(--univer-gray-0);
3249
+ }
3250
+
3232
3251
  .\[\&_\[data-sonner-toast\]\]\:univer-shadow-\[0_16px_40px_-20px_rgba\(15\,23\,42\,0\.55\)\] [data-sonner-toast] {
3233
3252
  --univer-tw-shadow: 0 16px 40px -20px #0f172a8c;
3234
3253
  --univer-tw-shadow-colored: 0 16px 40px -20px var(--univer-tw-shadow-color);
@@ -3252,6 +3271,10 @@
3252
3271
  border-color: var(--univer-gray-600) !important;
3253
3272
  }
3254
3273
 
3274
+ .dark\:\[\&_\[data-sonner-toast\]\]\:\!univer-bg-gray-800 [data-sonner-toast]:where(.univer-dark, .univer-dark *) {
3275
+ background-color: var(--univer-gray-800) !important;
3276
+ }
3277
+
3255
3278
  .\[\&_\[data-title\]\]\:univer-text-sm [data-title] {
3256
3279
  font-size: .875rem;
3257
3280
  line-height: 1.25rem;
@@ -3356,10 +3379,6 @@
3356
3379
  border-color: var(--univer-gray-200);
3357
3380
  }
3358
3381
 
3359
- .\[\&_input\]\:univer-border-gray-600 input {
3360
- border-color: var(--univer-gray-600);
3361
- }
3362
-
3363
3382
  .\[\&_input\]\:univer-bg-transparent input {
3364
3383
  background-color: #0000;
3365
3384
  }
@@ -3379,10 +3398,6 @@
3379
3398
  line-height: 1.25rem;
3380
3399
  }
3381
3400
 
3382
- .\[\&_input\]\:univer-text-gray-0 input {
3383
- color: var(--univer-gray-0);
3384
- }
3385
-
3386
3401
  .\[\&_input\]\:univer-text-gray-700 input {
3387
3402
  color: var(--univer-gray-700);
3388
3403
  }
@@ -3392,6 +3407,14 @@
3392
3407
  outline: 2px solid #0000;
3393
3408
  }
3394
3409
 
3410
+ .dark\:\[\&_input\]\:\!univer-border-gray-600 input:where(.univer-dark, .univer-dark *) {
3411
+ border-color: var(--univer-gray-600) !important;
3412
+ }
3413
+
3414
+ .dark\:\[\&_input\]\:\!univer-text-gray-0 input:where(.univer-dark, .univer-dark *) {
3415
+ color: var(--univer-gray-0) !important;
3416
+ }
3417
+
3395
3418
  .\[\&_svg\]\:univer-pointer-events-none svg {
3396
3419
  pointer-events: none;
3397
3420
  }
@@ -3442,10 +3465,6 @@
3442
3465
  bottom: 0;
3443
3466
  }
3444
3467
 
3445
- .univer-bottom-2 {
3446
- bottom: .5rem;
3447
- }
3448
-
3449
3468
  .univer-bottom-4 {
3450
3469
  bottom: 1rem;
3451
3470
  }
@@ -3462,22 +3481,18 @@
3462
3481
  left: 5px;
3463
3482
  }
3464
3483
 
3465
- .univer-top-0 {
3466
- top: 0;
3484
+ .univer-start-0 {
3485
+ left: 0;
3467
3486
  }
3468
3487
 
3469
- .univer-top-1\.5 {
3470
- top: .375rem;
3488
+ .univer-top-0 {
3489
+ top: 0;
3471
3490
  }
3472
3491
 
3473
3492
  .univer-top-1\/2 {
3474
3493
  top: 50%;
3475
3494
  }
3476
3495
 
3477
- .univer-top-2 {
3478
- top: .5rem;
3479
- }
3480
-
3481
3496
  .univer-top-\[5px\] {
3482
3497
  top: 5px;
3483
3498
  }
@@ -3528,6 +3543,10 @@
3528
3543
  margin-bottom: .25rem;
3529
3544
  }
3530
3545
 
3546
+ .univer-mb-2 {
3547
+ margin-bottom: .5rem;
3548
+ }
3549
+
3531
3550
  .univer-mb-3 {
3532
3551
  margin-bottom: .75rem;
3533
3552
  }
@@ -3536,14 +3555,14 @@
3536
3555
  margin-bottom: 1rem;
3537
3556
  }
3538
3557
 
3539
- .univer-ml-3 {
3540
- margin-left: .75rem;
3541
- }
3542
-
3543
3558
  .univer-mr-1 {
3544
3559
  margin-right: .25rem;
3545
3560
  }
3546
3561
 
3562
+ .univer-ms-4 {
3563
+ margin-left: 1rem;
3564
+ }
3565
+
3547
3566
  .univer-mt-1\.5 {
3548
3567
  margin-top: .375rem;
3549
3568
  }
@@ -3597,6 +3616,11 @@
3597
3616
  height: 1.25rem !important;
3598
3617
  }
3599
3618
 
3619
+ .\!univer-size-6 {
3620
+ width: 1.5rem !important;
3621
+ height: 1.5rem !important;
3622
+ }
3623
+
3600
3624
  .univer-size-0\.5 {
3601
3625
  width: .125rem;
3602
3626
  height: .125rem;
@@ -3647,11 +3671,6 @@
3647
3671
  height: 1.75rem;
3648
3672
  }
3649
3673
 
3650
- .univer-size-8 {
3651
- width: 2rem;
3652
- height: 2rem;
3653
- }
3654
-
3655
3674
  .univer-size-9 {
3656
3675
  width: 2.25rem;
3657
3676
  height: 2.25rem;
@@ -3738,10 +3757,6 @@
3738
3757
  min-height: 2rem;
3739
3758
  }
3740
3759
 
3741
- .univer-w-0\.5 {
3742
- width: .125rem;
3743
- }
3744
-
3745
3760
  .univer-w-10 {
3746
3761
  width: 2.5rem;
3747
3762
  }
@@ -4110,10 +4125,6 @@
4110
4125
  background-color: var(--univer-gray-50);
4111
4126
  }
4112
4127
 
4113
- .univer-bg-gray-700 {
4114
- background-color: var(--univer-gray-700);
4115
- }
4116
-
4117
4128
  .univer-bg-primary-100 {
4118
4129
  background-color: var(--univer-primary-100);
4119
4130
  }
@@ -4166,11 +4177,6 @@
4166
4177
  padding-right: .5rem;
4167
4178
  }
4168
4179
 
4169
- .univer-px-3 {
4170
- padding-left: .75rem;
4171
- padding-right: .75rem;
4172
- }
4173
-
4174
4180
  .univer-px-4 {
4175
4181
  padding-left: 1rem;
4176
4182
  padding-right: 1rem;
@@ -4210,14 +4216,14 @@
4210
4216
  padding-bottom: .125rem;
4211
4217
  }
4212
4218
 
4213
- .univer-pb-1 {
4214
- padding-bottom: .25rem;
4215
- }
4216
-
4217
4219
  .univer-pb-2 {
4218
4220
  padding-bottom: .5rem;
4219
4221
  }
4220
4222
 
4223
+ .univer-pe-2 {
4224
+ padding-right: .5rem;
4225
+ }
4226
+
4221
4227
  .univer-pl-1\.5 {
4222
4228
  padding-left: .375rem;
4223
4229
  }
@@ -4230,10 +4236,6 @@
4230
4236
  padding-left: 1rem;
4231
4237
  }
4232
4238
 
4233
- .univer-pr-12 {
4234
- padding-right: 3rem;
4235
- }
4236
-
4237
4239
  .univer-pr-2 {
4238
4240
  padding-right: .5rem;
4239
4241
  }
@@ -4242,12 +4244,12 @@
4242
4244
  padding-top: .375rem;
4243
4245
  }
4244
4246
 
4245
- .univer-pt-2 {
4246
- padding-top: .5rem;
4247
+ .univer-pt-10 {
4248
+ padding-top: 2.5rem;
4247
4249
  }
4248
4250
 
4249
- .univer-text-left {
4250
- text-align: left;
4251
+ .univer-pt-2 {
4252
+ padding-top: .5rem;
4251
4253
  }
4252
4254
 
4253
4255
  .univer-text-center {
@@ -4328,6 +4330,10 @@
4328
4330
  line-height: 1;
4329
4331
  }
4330
4332
 
4333
+ .\!univer-text-gray-500 {
4334
+ color: var(--univer-gray-500) !important;
4335
+ }
4336
+
4331
4337
  .\!univer-text-gray-600 {
4332
4338
  color: var(--univer-gray-600) !important;
4333
4339
  }
@@ -4340,10 +4346,6 @@
4340
4346
  color: var(--univer-gray-100);
4341
4347
  }
4342
4348
 
4343
- .univer-text-gray-300 {
4344
- color: var(--univer-gray-300);
4345
- }
4346
-
4347
4349
  .univer-text-gray-400 {
4348
4350
  color: var(--univer-gray-400);
4349
4351
  }
@@ -4368,12 +4370,12 @@
4368
4370
  color: var(--univer-gray-900);
4369
4371
  }
4370
4372
 
4371
- .univer-text-primary-600 {
4372
- color: var(--univer-primary-600);
4373
+ .univer-text-primary-400 {
4374
+ color: var(--univer-primary-400);
4373
4375
  }
4374
4376
 
4375
- .univer-text-primary-700 {
4376
- color: var(--univer-primary-700);
4377
+ .univer-text-primary-600 {
4378
+ color: var(--univer-primary-600);
4377
4379
  }
4378
4380
 
4379
4381
  .univer-text-violet-500 {
@@ -4386,10 +4388,6 @@
4386
4388
  color: rgba(255, 255, 255, var(--univer-tw-text-opacity, 1));
4387
4389
  }
4388
4390
 
4389
- .univer-opacity-0 {
4390
- opacity: 0;
4391
- }
4392
-
4393
4391
  .univer-shadow-\[0_1px_0_rgba\(0\,0\,0\,0\.06\)\] {
4394
4392
  --univer-tw-shadow: 0 1px 0 #0000000f;
4395
4393
  --univer-tw-shadow-colored: 0 1px 0 var(--univer-tw-shadow-color);
@@ -4452,16 +4450,12 @@
4452
4450
  border-color: var(--univer-primary-500);
4453
4451
  }
4454
4452
 
4455
- .hover\:univer-bg-gray-100:hover {
4456
- background-color: var(--univer-gray-100);
4457
- }
4458
-
4459
4453
  .hover\:univer-bg-gray-50:hover {
4460
4454
  background-color: var(--univer-gray-50);
4461
4455
  }
4462
4456
 
4463
- .hover\:univer-bg-primary-50:hover {
4464
- background-color: var(--univer-primary-50);
4457
+ .hover\:\!univer-text-gray-900:hover {
4458
+ color: var(--univer-gray-900) !important;
4465
4459
  }
4466
4460
 
4467
4461
  .hover\:univer-text-gray-900:hover {
@@ -4550,10 +4544,6 @@
4550
4544
  border-color: var(--univer-gray-700) !important;
4551
4545
  }
4552
4546
 
4553
- .dark\:univer-border-gray-700:where(.univer-dark, .univer-dark *) {
4554
- border-color: var(--univer-gray-700);
4555
- }
4556
-
4557
4547
  .dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
4558
4548
  background-color: var(--univer-gray-500) !important;
4559
4549
  }
@@ -4590,10 +4580,6 @@
4590
4580
  background-color: var(--univer-gray-900);
4591
4581
  }
4592
4582
 
4593
- .dark\:univer-bg-primary-400:where(.univer-dark, .univer-dark *) {
4594
- background-color: var(--univer-primary-400);
4595
- }
4596
-
4597
4583
  .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
4598
4584
  color: var(--univer-gray-0) !important;
4599
4585
  }
@@ -4618,10 +4604,6 @@
4618
4604
  color: var(--univer-primary-400) !important;
4619
4605
  }
4620
4606
 
4621
- .dark\:univer-text-gray-100:where(.univer-dark, .univer-dark *) {
4622
- color: var(--univer-gray-100);
4623
- }
4624
-
4625
4607
  .dark\:univer-text-gray-200:where(.univer-dark, .univer-dark *) {
4626
4608
  color: var(--univer-gray-200);
4627
4609
  }
@@ -4634,8 +4616,8 @@
4634
4616
  color: var(--univer-gray-400);
4635
4617
  }
4636
4618
 
4637
- .dark\:univer-text-primary-200:where(.univer-dark, .univer-dark *) {
4638
- color: var(--univer-primary-200);
4619
+ .dark\:univer-text-primary-400:where(.univer-dark, .univer-dark *) {
4620
+ color: var(--univer-primary-400);
4639
4621
  }
4640
4622
 
4641
4623
  @media (hover: hover) and (pointer: fine) {
@@ -4647,12 +4629,12 @@
4647
4629
  background-color: var(--univer-gray-800) !important;
4648
4630
  }
4649
4631
 
4650
- .dark\:hover\:univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
4651
- background-color: var(--univer-gray-700);
4632
+ .dark\:hover\:\!univer-text-gray-100:hover:where(.univer-dark, .univer-dark *) {
4633
+ color: var(--univer-gray-100) !important;
4652
4634
  }
4653
4635
 
4654
- .dark\:hover\:univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
4655
- background-color: var(--univer-gray-800);
4636
+ .dark\:hover\:univer-text-gray-100:hover:where(.univer-dark, .univer-dark *) {
4637
+ color: var(--univer-gray-100);
4656
4638
  }
4657
4639
  }
4658
4640
 
@@ -4866,10 +4848,6 @@
4866
4848
  height: 2.5rem;
4867
4849
  }
4868
4850
 
4869
- .univer-h-11 {
4870
- height: 2.75rem;
4871
- }
4872
-
4873
4851
  .univer-h-12 {
4874
4852
  height: 3rem;
4875
4853
  }
@@ -5102,14 +5080,6 @@
5102
5080
  border-right-width: 0;
5103
5081
  }
5104
5082
 
5105
- .univer-border-solid {
5106
- border-style: solid;
5107
- }
5108
-
5109
- .univer-border-gray-200 {
5110
- border-color: var(--univer-gray-200);
5111
- }
5112
-
5113
5083
  .univer-border-gray-600 {
5114
5084
  border-color: var(--univer-gray-600);
5115
5085
  }
@@ -5118,6 +5088,10 @@
5118
5088
  border-color: var(--univer-primary-600);
5119
5089
  }
5120
5090
 
5091
+ .univer-border-red-500 {
5092
+ border-color: var(--univer-red-500);
5093
+ }
5094
+
5121
5095
  .\!univer-bg-gray-600 {
5122
5096
  background-color: var(--univer-gray-600) !important;
5123
5097
  }
@@ -5419,10 +5393,6 @@
5419
5393
  }
5420
5394
  }
5421
5395
 
5422
- .focus\:univer-border-primary-500:focus {
5423
- border-color: var(--univer-primary-500);
5424
- }
5425
-
5426
5396
  .active\:univer-scale-\[0\.98\]:active {
5427
5397
  --univer-tw-scale-x: .98;
5428
5398
  --univer-tw-scale-y: .98;
@@ -5446,10 +5416,6 @@
5446
5416
  opacity: .6;
5447
5417
  }
5448
5418
 
5449
- .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
5450
- border-color: var(--univer-gray-700) !important;
5451
- }
5452
-
5453
5419
  .dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
5454
5420
  background-color: var(--univer-gray-600) !important;
5455
5421
  }
@@ -6136,10 +6102,6 @@
6136
6102
  width: 90px !important;
6137
6103
  }
6138
6104
 
6139
- .\!univer-w-full {
6140
- width: 100% !important;
6141
- }
6142
-
6143
6105
  .univer-w-10 {
6144
6106
  width: 2.5rem;
6145
6107
  }
@@ -6196,10 +6158,6 @@
6196
6158
  width: 130px;
6197
6159
  }
6198
6160
 
6199
- .univer-w-\[156px\] {
6200
- width: 156px;
6201
- }
6202
-
6203
6161
  .univer-w-\[300px\] {
6204
6162
  width: 300px;
6205
6163
  }
@@ -6598,10 +6556,6 @@
6598
6556
  background-color: var(--univer-gray-900) !important;
6599
6557
  }
6600
6558
 
6601
- .\!univer-bg-transparent {
6602
- background-color: #0000 !important;
6603
- }
6604
-
6605
6559
  .univer-bg-blue-500 {
6606
6560
  background-color: var(--univer-blue-500);
6607
6561
  }
@@ -7095,10 +7049,6 @@
7095
7049
  }
7096
7050
  }
7097
7051
 
7098
- .focus\:univer-border-primary-500:focus {
7099
- border-color: var(--univer-primary-500);
7100
- }
7101
-
7102
7052
  .focus\:univer-outline-none:focus {
7103
7053
  outline-offset: 2px;
7104
7054
  outline: 2px solid #0000;
@@ -7212,10 +7162,6 @@
7212
7162
  background-color: var(--univer-primary-900) !important;
7213
7163
  }
7214
7164
 
7215
- .dark\:\!univer-bg-transparent:where(.univer-dark, .univer-dark *) {
7216
- background-color: #0000 !important;
7217
- }
7218
-
7219
7165
  .dark\:\!univer-fill-gray-0:where(.univer-dark, .univer-dark *) {
7220
7166
  fill: var(--univer-gray-0) !important;
7221
7167
  }
@@ -7391,10 +7337,6 @@
7391
7337
  right: .75rem;
7392
7338
  }
7393
7339
 
7394
- .\!univer-bottom-0 {
7395
- bottom: 0 !important;
7396
- }
7397
-
7398
7340
  .\!univer-bottom-0\.5 {
7399
7341
  bottom: .125rem !important;
7400
7342
  }
@@ -7904,10 +7846,6 @@
7904
7846
  min-width: 3.5rem;
7905
7847
  }
7906
7848
 
7907
- .univer-min-w-16 {
7908
- min-width: 4rem;
7909
- }
7910
-
7911
7849
  .univer-min-w-44 {
7912
7850
  min-width: 11rem;
7913
7851
  }
@@ -7952,6 +7890,10 @@
7952
7890
  max-width: 32%;
7953
7891
  }
7954
7892
 
7893
+ .univer-max-w-\[50\%\] {
7894
+ max-width: 50%;
7895
+ }
7896
+
7955
7897
  .univer-max-w-\[560px\] {
7956
7898
  max-width: 560px;
7957
7899
  }
@@ -8485,6 +8427,10 @@
8485
8427
  background-color: var(--univer-primary-50);
8486
8428
  }
8487
8429
 
8430
+ .univer-bg-primary-500 {
8431
+ background-color: var(--univer-primary-500);
8432
+ }
8433
+
8488
8434
  .univer-bg-primary-600 {
8489
8435
  background-color: var(--univer-primary-600);
8490
8436
  }
@@ -8823,11 +8769,6 @@
8823
8769
  color: var(--univer-primary-700);
8824
8770
  }
8825
8771
 
8826
- .univer-text-slate-200 {
8827
- --univer-tw-text-opacity: 1;
8828
- color: rgba(226, 232, 240, var(--univer-tw-text-opacity, 1));
8829
- }
8830
-
8831
8772
  .univer-underline {
8832
8773
  text-decoration-line: underline;
8833
8774
  }
@@ -8901,11 +8842,6 @@
8901
8842
  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);
8902
8843
  }
8903
8844
 
8904
- .univer-backdrop-blur-xl {
8905
- --univer-tw-backdrop-blur: blur(24px);
8906
- 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);
8907
- }
8908
-
8909
8845
  .\!univer-transition-none {
8910
8846
  transition-property: none !important;
8911
8847
  }
@@ -9051,6 +8987,10 @@
9051
8987
  background-color: var(--univer-gray-50);
9052
8988
  }
9053
8989
 
8990
+ .hover\:univer-bg-primary-500:hover {
8991
+ background-color: var(--univer-primary-500);
8992
+ }
8993
+
9054
8994
  .hover\:univer-bg-transparent:hover {
9055
8995
  background-color: #0000;
9056
8996
  }
@@ -9095,6 +9035,10 @@
9095
9035
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
9096
9036
  }
9097
9037
 
9038
+ .focus\:univer-ring-primary-500:focus {
9039
+ --univer-tw-ring-color: var(--univer-primary-500);
9040
+ }
9041
+
9098
9042
  .focus-visible\:univer-outline-none:focus-visible {
9099
9043
  outline-offset: 2px;
9100
9044
  outline: 2px solid #0000;
@@ -9142,6 +9086,10 @@
9142
9086
  background-color: var(--univer-gray-200);
9143
9087
  }
9144
9088
 
9089
+ .active\:univer-bg-primary-500:active {
9090
+ background-color: var(--univer-primary-500);
9091
+ }
9092
+
9145
9093
  .enabled\:active\:univer-scale-\[0\.98\]:active:enabled {
9146
9094
  --univer-tw-scale-x: .98;
9147
9095
  --univer-tw-scale-y: .98;
@@ -9398,6 +9346,10 @@
9398
9346
  background-color: var(--univer-gray-900) !important;
9399
9347
  }
9400
9348
 
9349
+ .dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
9350
+ --univer-tw-ring-color: var(--univer-primary-300) !important;
9351
+ }
9352
+
9401
9353
  .dark\:active\:\!univer-bg-gray-600:active:where(.univer-dark, .univer-dark *) {
9402
9354
  background-color: var(--univer-gray-600) !important;
9403
9355
  }
@@ -9831,6 +9783,10 @@
9831
9783
  outline: 2px solid #0000 !important;
9832
9784
  }
9833
9785
 
9786
+ .\[\&_button\]\:\!\[font-family\:inherit\] button {
9787
+ font-family: inherit !important;
9788
+ }
9789
+
9834
9790
  .\[\&_button_svg\]\:\!univer-size-5 button svg {
9835
9791
  width: 1.25rem !important;
9836
9792
  height: 1.25rem !important;
package/lib/index.js CHANGED
@@ -81,6 +81,7 @@ function UniverSheetsCorePreset(config = {}) {
81
81
  onlyRegisterFormulaRelatedMutations: false,
82
82
  isRowStylePrecedeColumnStyle: sheets === null || sheets === void 0 ? void 0 : sheets.isRowStylePrecedeColumnStyle,
83
83
  autoHeightForMergedCells: sheets === null || sheets === void 0 ? void 0 : sheets.autoHeightForMergedCells,
84
+ textLineGap: sheets === null || sheets === void 0 ? void 0 : sheets.textLineGap,
84
85
  freezeSync: sheets === null || sheets === void 0 ? void 0 : sheets.freezeSync
85
86
  }],
86
87
  [UniverSheetsUIPlugin, {
@@ -25,5 +25,5 @@ export interface IUniverFormulaWorkerConfig extends Pick<IUniverEngineFormulaCon
25
25
  }
26
26
  export interface IUniverDocsPresetConfig extends IUniverDocsConfig {
27
27
  }
28
- export interface IUniverSheetsPresetConfig extends Pick<IUniverSheetsConfig, 'isRowStylePrecedeColumnStyle' | 'autoHeightForMergedCells' | 'freezeSync'>, Pick<IUniverSheetsUIConfig, 'maxAutoHeightCount' | 'clipboardConfig' | 'scrollConfig' | 'protectedRangeShadow' | 'protectedRangeUserSelector' | 'disableForceStringAlert' | 'disableForceStringMark' | 'allowArrowKeyWrapOnSheetBoundary'> {
28
+ export interface IUniverSheetsPresetConfig extends Pick<IUniverSheetsConfig, 'isRowStylePrecedeColumnStyle' | 'autoHeightForMergedCells' | 'freezeSync' | 'textLineGap'>, Pick<IUniverSheetsUIConfig, 'maxAutoHeightCount' | 'clipboardConfig' | 'scrollConfig' | 'protectedRangeShadow' | 'protectedRangeUserSelector' | 'disableForceStringAlert' | 'disableForceStringMark' | 'allowArrowKeyWrapOnSheetBoundary'> {
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.0.4",
3
+ "version": "1.2.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,28 +61,28 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs/design": "1.0.4",
65
- "@univerjs/docs": "1.0.4",
66
- "@univerjs/docs-ui": "1.0.4",
67
- "@univerjs/engine-formula": "1.0.4",
68
- "@univerjs/engine-render": "1.0.4",
69
- "@univerjs/network": "1.0.4",
70
- "@univerjs/rpc": "1.0.4",
71
- "@univerjs/sheets": "1.0.4",
72
- "@univerjs/sheets-formula": "1.0.4",
73
- "@univerjs/sheets-formula-ui": "1.0.4",
74
- "@univerjs/sheets-numfmt": "1.0.4",
75
- "@univerjs/sheets-numfmt-ui": "1.0.4",
76
- "@univerjs/sheets-ui": "1.0.4",
77
- "@univerjs/ui": "1.0.4"
64
+ "@univerjs/design": "1.2.0",
65
+ "@univerjs/docs": "1.2.0",
66
+ "@univerjs/docs-ui": "1.2.0",
67
+ "@univerjs/engine-formula": "1.2.0",
68
+ "@univerjs/engine-render": "1.2.0",
69
+ "@univerjs/network": "1.2.0",
70
+ "@univerjs/rpc": "1.2.0",
71
+ "@univerjs/sheets": "1.2.0",
72
+ "@univerjs/sheets-formula": "1.2.0",
73
+ "@univerjs/sheets-formula-ui": "1.2.0",
74
+ "@univerjs/sheets-numfmt": "1.2.0",
75
+ "@univerjs/sheets-numfmt-ui": "1.2.0",
76
+ "@univerjs/sheets-ui": "1.2.0",
77
+ "@univerjs/ui": "1.2.0"
78
78
  },
79
79
  "devDependencies": {
80
- "@univerjs-infra/shared": "1.0.4",
81
- "@univerjs/core": "1.0.4",
82
- "@univerjs/presets": "1.0.4",
80
+ "@univerjs-infra/shared": "1.2.0",
81
+ "@univerjs/core": "1.2.0",
82
+ "@univerjs/presets": "1.2.0",
83
83
  "react": "18.3.1",
84
84
  "react-dom": "18.3.1",
85
- "rxjs": "^7.8.2",
85
+ "rxjs": "7.8.2",
86
86
  "typescript": "^6.0.3"
87
87
  },
88
88
  "scripts": {