@univerjs/preset-sheets-core 1.4.0 → 1.5.1

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/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | CSS | Locales | Facade entry |
12
- | ------------------------------ | :-: | :-----: | :----------: |
13
- | `@univerjs/preset-sheets-core` | Yes | Yes | Yes |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/preset-sheets-core` | — | Yes | Yes | No | Yes |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,8 +20,6 @@ pnpm add @univerjs/preset-sheets-core
20
20
  npm install @univerjs/preset-sheets-core
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
27
25
  ```ts
@@ -31,6 +29,19 @@ import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core';
31
29
  // createUniver({ presets: [UniverSheetsCorePreset()] });
32
30
  ```
33
31
 
32
+ ### Worker usage
33
+
34
+ On the main thread, import `UniverSheetsCorePreset` from `@univerjs/preset-sheets-core`. Set `workerURL` to the worker URL or instance.
35
+
36
+ In the worker entry, import `UniverSheetsCoreWorkerPreset` from `@univerjs/preset-sheets-core/worker`:
37
+
38
+ ```ts
39
+ import { UniverSheetsCoreWorkerPreset } from '@univerjs/preset-sheets-core/worker';
40
+ import { createUniver } from '@univerjs/presets';
41
+
42
+ createUniver({ presets: [UniverSheetsCoreWorkerPreset()] });
43
+ ```
44
+
34
45
  ## Resources
35
46
 
36
47
  - [Documentation](https://docs.univer.ai)
package/lib/cjs/index.js CHANGED
@@ -61,8 +61,11 @@ function UniverSheetsCorePreset(config = {}) {
61
61
  formulaBar,
62
62
  footer,
63
63
  allowArrowKeyWrapOnSheetBoundary: sheets === null || sheets === void 0 ? void 0 : sheets.allowArrowKeyWrapOnSheetBoundary,
64
+ selectionAnimation: sheets === null || sheets === void 0 ? void 0 : sheets.selectionAnimation,
64
65
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
66
+ enableFillHandle: sheets === null || sheets === void 0 ? void 0 : sheets.enableFillHandle,
65
67
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
68
+ warnBeforeDragOverwrite: sheets === null || sheets === void 0 ? void 0 : sheets.warnBeforeDragOverwrite,
66
69
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
67
70
  protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
68
71
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
package/lib/es/index.js CHANGED
@@ -88,8 +88,11 @@ function UniverSheetsCorePreset(config = {}) {
88
88
  formulaBar,
89
89
  footer,
90
90
  allowArrowKeyWrapOnSheetBoundary: sheets === null || sheets === void 0 ? void 0 : sheets.allowArrowKeyWrapOnSheetBoundary,
91
+ selectionAnimation: sheets === null || sheets === void 0 ? void 0 : sheets.selectionAnimation,
91
92
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
93
+ enableFillHandle: sheets === null || sheets === void 0 ? void 0 : sheets.enableFillHandle,
92
94
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
95
+ warnBeforeDragOverwrite: sheets === null || sheets === void 0 ? void 0 : sheets.warnBeforeDragOverwrite,
93
96
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
94
97
  protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
95
98
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
package/lib/index.css CHANGED
@@ -99,11 +99,6 @@
99
99
  right: 0;
100
100
  }
101
101
 
102
- .univer-inset-x-2 {
103
- left: .5rem;
104
- right: .5rem;
105
- }
106
-
107
102
  .\!univer-left-0 {
108
103
  left: 0 !important;
109
104
  }
@@ -116,10 +111,6 @@
116
111
  top: auto !important;
117
112
  }
118
113
 
119
- .-univer-bottom-px {
120
- bottom: -1px;
121
- }
122
-
123
114
  .univer-bottom-0 {
124
115
  bottom: 0;
125
116
  }
@@ -357,21 +348,11 @@
357
348
  aspect-ratio: 1;
358
349
  }
359
350
 
360
- .univer-size-0 {
361
- width: 0;
362
- height: 0;
363
- }
364
-
365
351
  .univer-size-10 {
366
352
  width: 2.5rem;
367
353
  height: 2.5rem;
368
354
  }
369
355
 
370
- .univer-size-12 {
371
- width: 3rem;
372
- height: 3rem;
373
- }
374
-
375
356
  .univer-size-2 {
376
357
  width: .5rem;
377
358
  height: .5rem;
@@ -431,10 +412,6 @@
431
412
  height: 2.75rem !important;
432
413
  }
433
414
 
434
- .\!univer-h-auto {
435
- height: auto !important;
436
- }
437
-
438
415
  .univer-h-0\.5 {
439
416
  height: .125rem;
440
417
  }
@@ -451,10 +428,6 @@
451
428
  height: 2.5rem;
452
429
  }
453
430
 
454
- .univer-h-11 {
455
- height: 2.75rem;
456
- }
457
-
458
431
  .univer-h-12 {
459
432
  height: 3rem;
460
433
  }
@@ -511,6 +484,10 @@
511
484
  height: calc(100% - 2px);
512
485
  }
513
486
 
487
+ .univer-h-auto {
488
+ height: auto;
489
+ }
490
+
514
491
  .univer-h-full {
515
492
  height: 100%;
516
493
  }
@@ -551,10 +528,6 @@
551
528
  max-height: 100vh;
552
529
  }
553
530
 
554
- .\!univer-min-h-12 {
555
- min-height: 3rem !important;
556
- }
557
-
558
531
  .univer-min-h-0 {
559
532
  min-height: 0;
560
533
  }
@@ -583,6 +556,10 @@
583
556
  width: 2.5rem;
584
557
  }
585
558
 
559
+ .univer-w-11 {
560
+ width: 2.75rem;
561
+ }
562
+
586
563
  .univer-w-2 {
587
564
  width: .5rem;
588
565
  }
@@ -651,10 +628,6 @@
651
628
  min-width: 0;
652
629
  }
653
630
 
654
- .univer-min-w-12 {
655
- min-width: 3rem;
656
- }
657
-
658
631
  .univer-min-w-28 {
659
632
  min-width: 7rem;
660
633
  }
@@ -663,8 +636,8 @@
663
636
  min-width: 9rem;
664
637
  }
665
638
 
666
- .univer-min-w-\[320px\] {
667
- min-width: 320px;
639
+ .univer-min-w-8 {
640
+ min-width: 2rem;
668
641
  }
669
642
 
670
643
  .\!univer-max-w-none {
@@ -1233,6 +1206,10 @@
1233
1206
  border-color: var(--univer-primary-300) !important;
1234
1207
  }
1235
1208
 
1209
+ .\!univer-border-primary-600 {
1210
+ border-color: var(--univer-primary-600) !important;
1211
+ }
1212
+
1236
1213
  .\!univer-border-transparent {
1237
1214
  border-color: #0000 !important;
1238
1215
  }
@@ -1273,8 +1250,8 @@
1273
1250
  border-color: var(--univer-red-300);
1274
1251
  }
1275
1252
 
1276
- .univer-border-red-500 {
1277
- border-color: var(--univer-red-500);
1253
+ .univer-border-red-600 {
1254
+ border-color: var(--univer-red-600);
1278
1255
  }
1279
1256
 
1280
1257
  .univer-border-transparent {
@@ -1375,6 +1352,10 @@
1375
1352
  background-color: var(--univer-red-500);
1376
1353
  }
1377
1354
 
1355
+ .univer-bg-red-600 {
1356
+ background-color: var(--univer-red-600);
1357
+ }
1358
+
1378
1359
  .univer-bg-sky-100\/70 {
1379
1360
  background-color: #e0f2feb3;
1380
1361
  }
@@ -1479,11 +1460,6 @@
1479
1460
  padding: 2rem;
1480
1461
  }
1481
1462
 
1482
- .univer-px-0 {
1483
- padding-left: 0;
1484
- padding-right: 0;
1485
- }
1486
-
1487
1463
  .univer-px-1 {
1488
1464
  padding-left: .25rem;
1489
1465
  padding-right: .25rem;
@@ -1577,10 +1553,6 @@
1577
1553
  padding-top: 3.5rem !important;
1578
1554
  }
1579
1555
 
1580
- .univer-pb-2 {
1581
- padding-bottom: .5rem;
1582
- }
1583
-
1584
1556
  .univer-pb-2\.5 {
1585
1557
  padding-bottom: .625rem;
1586
1558
  }
@@ -1609,10 +1581,6 @@
1609
1581
  padding-right: 2rem;
1610
1582
  }
1611
1583
 
1612
- .univer-pt-0 {
1613
- padding-top: 0;
1614
- }
1615
-
1616
1584
  .univer-pt-3 {
1617
1585
  padding-top: .75rem;
1618
1586
  }
@@ -1806,11 +1774,6 @@
1806
1774
  color: var(--color);
1807
1775
  }
1808
1776
 
1809
- .univer-text-amber-500 {
1810
- --univer-tw-text-opacity: 1;
1811
- color: rgba(245, 158, 11, var(--univer-tw-text-opacity, 1));
1812
- }
1813
-
1814
1777
  .univer-text-current {
1815
1778
  color: currentColor;
1816
1779
  }
@@ -1848,8 +1811,8 @@
1848
1811
  color: var(--univer-gray-900);
1849
1812
  }
1850
1813
 
1851
- .univer-text-green-500 {
1852
- color: var(--univer-green-500);
1814
+ .univer-text-green-600 {
1815
+ color: var(--univer-green-600);
1853
1816
  }
1854
1817
 
1855
1818
  .univer-text-primary-500 {
@@ -1864,9 +1827,8 @@
1864
1827
  color: var(--univer-red-500);
1865
1828
  }
1866
1829
 
1867
- .univer-text-sky-500 {
1868
- --univer-tw-text-opacity: 1;
1869
- color: rgba(14, 165, 233, var(--univer-tw-text-opacity, 1));
1830
+ .univer-text-red-600 {
1831
+ color: var(--univer-red-600);
1870
1832
  }
1871
1833
 
1872
1834
  .univer-text-sky-700 {
@@ -1899,9 +1861,8 @@
1899
1861
  color: rgba(30, 41, 59, var(--univer-tw-text-opacity, 1));
1900
1862
  }
1901
1863
 
1902
- .univer-text-violet-500 {
1903
- --univer-tw-text-opacity: 1;
1904
- color: rgba(139, 92, 246, var(--univer-tw-text-opacity, 1));
1864
+ .univer-text-yellow-600 {
1865
+ color: var(--univer-yellow-600);
1905
1866
  }
1906
1867
 
1907
1868
  .univer-text-opacity-25 {
@@ -2286,14 +2247,14 @@
2286
2247
  transition-timing-function: cubic-bezier(.6, .04, .98, .34);
2287
2248
  }
2288
2249
 
2289
- .placeholder\:univer-text-gray-200::placeholder {
2290
- color: var(--univer-gray-200);
2291
- }
2292
-
2293
2250
  .placeholder\:univer-text-gray-400::placeholder {
2294
2251
  color: var(--univer-gray-400);
2295
2252
  }
2296
2253
 
2254
+ .placeholder\:univer-text-gray-500::placeholder {
2255
+ color: var(--univer-gray-500);
2256
+ }
2257
+
2297
2258
  .before\:univer-absolute:before {
2298
2259
  content: var(--univer-tw-content);
2299
2260
  position: absolute;
@@ -2351,6 +2312,49 @@
2351
2312
  }
2352
2313
  }
2353
2314
 
2315
+ .univer-peer:focus ~ .peer-focus\:univer-outline {
2316
+ outline-style: solid;
2317
+ }
2318
+
2319
+ .univer-peer:focus ~ .peer-focus\:univer-outline-2 {
2320
+ outline-width: 2px;
2321
+ }
2322
+
2323
+ .univer-peer:focus ~ .peer-focus\:univer-outline-offset-2 {
2324
+ outline-offset: 2px;
2325
+ }
2326
+
2327
+ .univer-peer:focus ~ .peer-focus\:univer-outline-primary-600 {
2328
+ outline-color: var(--univer-primary-600);
2329
+ }
2330
+
2331
+ .univer-peer:focus ~ .peer-focus\:univer-ring-2 {
2332
+ --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
+ --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
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
2335
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
2336
+ }
2337
+
2338
+ .univer-peer:focus ~ .peer-focus\:univer-ring-primary-600 {
2339
+ --univer-tw-ring-color: var(--univer-primary-600);
2340
+ }
2341
+
2342
+ .univer-peer:focus ~ .peer-focus\:univer-ring-offset-2 {
2343
+ --univer-tw-ring-offset-width: 2px;
2344
+ }
2345
+
2346
+ .aria-pressed\:\!univer-bg-primary-50[aria-pressed="true"] {
2347
+ background-color: var(--univer-primary-50) !important;
2348
+ }
2349
+
2350
+ .aria-pressed\:\!univer-text-primary-600[aria-pressed="true"] {
2351
+ color: var(--univer-primary-600) !important;
2352
+ }
2353
+
2354
+ .aria-\[invalid\=true\]\:\!univer-border-red-600[aria-invalid="true"] {
2355
+ border-color: var(--univer-red-600) !important;
2356
+ }
2357
+
2354
2358
  .data-\[disabled\=true\]\:univer-pointer-events-none[data-disabled="true"], .data-\[disabled\]\:univer-pointer-events-none[data-disabled], .data-\[state\=closed\]\:univer-pointer-events-none[data-state="closed"] {
2355
2359
  pointer-events: none;
2356
2360
  }
@@ -2464,8 +2468,8 @@
2464
2468
  border-color: var(--univer-primary-600);
2465
2469
  }
2466
2470
 
2467
- .hover\:univer-border-red-400:hover {
2468
- border-color: var(--univer-red-400);
2471
+ .hover\:univer-border-red-700:hover {
2472
+ border-color: var(--univer-red-700);
2469
2473
  }
2470
2474
 
2471
2475
  .hover\:univer-border-transparent:hover {
@@ -2504,8 +2508,8 @@
2504
2508
  background-color: var(--univer-primary-500);
2505
2509
  }
2506
2510
 
2507
- .hover\:univer-bg-red-400:hover {
2508
- background-color: var(--univer-red-400);
2511
+ .hover\:univer-bg-red-700:hover {
2512
+ background-color: var(--univer-red-700);
2509
2513
  }
2510
2514
 
2511
2515
  .hover\:univer-p-2:hover {
@@ -2528,8 +2532,8 @@
2528
2532
  color: var(--univer-gray-900);
2529
2533
  }
2530
2534
 
2531
- .hover\:univer-text-primary-500:hover {
2532
- color: var(--univer-primary-500);
2535
+ .hover\:univer-text-primary-700:hover {
2536
+ color: var(--univer-primary-700);
2533
2537
  }
2534
2538
 
2535
2539
  .hover\:univer-underline:hover {
@@ -2553,12 +2557,8 @@
2553
2557
  }
2554
2558
  }
2555
2559
 
2556
- .focus\:univer-border-primary-500:focus {
2557
- border-color: var(--univer-primary-500);
2558
- }
2559
-
2560
- .focus\:univer-border-primary-600:focus {
2561
- border-color: var(--univer-primary-600);
2560
+ .focus\:\!univer-border-primary-600:focus {
2561
+ border-color: var(--univer-primary-600) !important;
2562
2562
  }
2563
2563
 
2564
2564
  .focus\:univer-bg-gray-100:focus {
@@ -2574,6 +2574,22 @@
2574
2574
  outline: 2px solid #0000;
2575
2575
  }
2576
2576
 
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
+
2577
2593
  .focus\:univer-ring-2:focus {
2578
2594
  --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);
2579
2595
  --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);
@@ -2585,6 +2601,18 @@
2585
2601
  --univer-tw-ring-color: var(--univer-primary-50);
2586
2602
  }
2587
2603
 
2604
+ .focus\:univer-ring-primary-600:focus {
2605
+ --univer-tw-ring-color: var(--univer-primary-600);
2606
+ }
2607
+
2608
+ .aria-\[invalid\=true\]\:focus\:\!univer-border-red-600:focus[aria-invalid="true"] {
2609
+ border-color: var(--univer-red-600) !important;
2610
+ }
2611
+
2612
+ .aria-\[invalid\=true\]\:focus\:univer-ring-red-50:focus[aria-invalid="true"] {
2613
+ --univer-tw-ring-color: var(--univer-red-50);
2614
+ }
2615
+
2588
2616
  .data-\[variant\=destructive\]\:focus\:univer-bg-red-50:focus[data-variant="destructive"] {
2589
2617
  background-color: var(--univer-red-50);
2590
2618
  }
@@ -2655,8 +2683,8 @@
2655
2683
  --univer-tw-ring-color: var(--univer-primary-500);
2656
2684
  }
2657
2685
 
2658
- .active\:univer-border-red-600:active {
2659
- border-color: var(--univer-red-600);
2686
+ .active\:univer-border-red-800:active {
2687
+ border-color: var(--univer-red-800);
2660
2688
  }
2661
2689
 
2662
2690
  .active\:univer-bg-gray-100:active {
@@ -2671,8 +2699,8 @@
2671
2699
  background-color: var(--univer-primary-700);
2672
2700
  }
2673
2701
 
2674
- .active\:univer-bg-red-600:active {
2675
- background-color: var(--univer-red-600);
2702
+ .active\:univer-bg-red-800:active {
2703
+ background-color: var(--univer-red-800);
2676
2704
  }
2677
2705
 
2678
2706
  .active\:univer-text-primary-700:active {
@@ -2839,6 +2867,10 @@
2839
2867
  border-color: var(--univer-gray-700) !important;
2840
2868
  }
2841
2869
 
2870
+ .dark\:\!univer-border-primary-300:where(.univer-dark, .univer-dark *) {
2871
+ border-color: var(--univer-primary-300) !important;
2872
+ }
2873
+
2842
2874
  .dark\:\!univer-border-primary-700:where(.univer-dark, .univer-dark *) {
2843
2875
  border-color: var(--univer-primary-700) !important;
2844
2876
  }
@@ -2867,10 +2899,6 @@
2867
2899
  background-color: var(--univer-gray-900) !important;
2868
2900
  }
2869
2901
 
2870
- .dark\:\!univer-bg-primary-300:where(.univer-dark, .univer-dark *) {
2871
- background-color: var(--univer-primary-300) !important;
2872
- }
2873
-
2874
2902
  .dark\:\!univer-bg-primary-600:where(.univer-dark, .univer-dark *) {
2875
2903
  background-color: var(--univer-primary-600) !important;
2876
2904
  }
@@ -2911,6 +2939,10 @@
2911
2939
  color: var(--univer-gray-900) !important;
2912
2940
  }
2913
2941
 
2942
+ .dark\:\!univer-text-green-400:where(.univer-dark, .univer-dark *) {
2943
+ color: var(--univer-green-400) !important;
2944
+ }
2945
+
2914
2946
  .dark\:\!univer-text-primary-100:where(.univer-dark, .univer-dark *) {
2915
2947
  color: var(--univer-primary-100) !important;
2916
2948
  }
@@ -2931,9 +2963,8 @@
2931
2963
  color: var(--univer-red-400) !important;
2932
2964
  }
2933
2965
 
2934
- .dark\:\!univer-text-sky-400:where(.univer-dark, .univer-dark *) {
2935
- --univer-tw-text-opacity: 1 !important;
2936
- color: rgba(56, 189, 248, var(--univer-tw-text-opacity, 1)) !important;
2966
+ .dark\:\!univer-text-yellow-400:where(.univer-dark, .univer-dark *) {
2967
+ color: var(--univer-yellow-400) !important;
2937
2968
  }
2938
2969
 
2939
2970
  .dark\:\!univer-ring-primary-400:where(.univer-dark, .univer-dark *) {
@@ -2960,11 +2991,35 @@
2960
2991
  --scrollbar-thumb: var(--univer-gray-700) !important;
2961
2992
  }
2962
2993
 
2994
+ .dark\:placeholder\:univer-text-gray-300:where(.univer-dark, .univer-dark *)::-moz-placeholder {
2995
+ color: var(--univer-gray-300);
2996
+ }
2997
+
2998
+ .dark\:placeholder\:univer-text-gray-300:where(.univer-dark, .univer-dark *)::placeholder {
2999
+ color: var(--univer-gray-300);
3000
+ }
3001
+
2963
3002
  .dark\:before\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *):before {
2964
3003
  content: var(--univer-tw-content);
2965
3004
  background-color: var(--univer-gray-600) !important;
2966
3005
  }
2967
3006
 
3007
+ .univer-peer:focus ~ .dark\:peer-focus\:\!univer-outline-primary-300:where(.univer-dark, .univer-dark *) {
3008
+ outline-color: var(--univer-primary-300) !important;
3009
+ }
3010
+
3011
+ .dark\:aria-pressed\:\!univer-bg-primary-900[aria-pressed="true"]:where(.univer-dark, .univer-dark *) {
3012
+ background-color: var(--univer-primary-900) !important;
3013
+ }
3014
+
3015
+ .dark\:aria-pressed\:\!univer-text-primary-100[aria-pressed="true"]:where(.univer-dark, .univer-dark *) {
3016
+ color: var(--univer-primary-100) !important;
3017
+ }
3018
+
3019
+ .dark\:aria-\[invalid\=true\]\:\!univer-border-red-400[aria-invalid="true"]:where(.univer-dark, .univer-dark *) {
3020
+ border-color: var(--univer-red-400) !important;
3021
+ }
3022
+
2968
3023
  .dark\:data-\[selected\=true\]\:\!univer-bg-gray-600[data-selected="true"]:where(.univer-dark, .univer-dark *), .dark\:data-\[state\=open\]\:\!univer-bg-gray-600[data-state="open"]:where(.univer-dark, .univer-dark *) {
2969
3024
  background-color: var(--univer-gray-600) !important;
2970
3025
  }
@@ -3001,20 +3056,36 @@
3001
3056
  .dark\:hover\:\!univer-text-gray-100:hover:where(.univer-dark, .univer-dark *) {
3002
3057
  color: var(--univer-gray-100) !important;
3003
3058
  }
3059
+
3060
+ .dark\:hover\:\!univer-text-primary-200:hover:where(.univer-dark, .univer-dark *) {
3061
+ color: var(--univer-primary-200) !important;
3062
+ }
3004
3063
  }
3005
3064
 
3006
- .dark\:focus\:\!univer-border-primary-500:focus:where(.univer-dark, .univer-dark *) {
3007
- border-color: var(--univer-primary-500) !important;
3065
+ .dark\:focus\:\!univer-border-primary-300:focus:where(.univer-dark, .univer-dark *) {
3066
+ border-color: var(--univer-primary-300) !important;
3008
3067
  }
3009
3068
 
3010
3069
  .dark\:focus\:\!univer-bg-gray-600:focus:where(.univer-dark, .univer-dark *) {
3011
3070
  background-color: var(--univer-gray-600) !important;
3012
3071
  }
3013
3072
 
3073
+ .dark\:focus\:\!univer-outline-primary-300:focus:where(.univer-dark, .univer-dark *) {
3074
+ outline-color: var(--univer-primary-300) !important;
3075
+ }
3076
+
3014
3077
  .dark\:focus\:\!univer-ring-primary-900:focus:where(.univer-dark, .univer-dark *) {
3015
3078
  --univer-tw-ring-color: var(--univer-primary-900) !important;
3016
3079
  }
3017
3080
 
3081
+ .dark\:aria-\[invalid\=true\]\:focus\:\!univer-border-red-400:focus[aria-invalid="true"]:where(.univer-dark, .univer-dark *) {
3082
+ border-color: var(--univer-red-400) !important;
3083
+ }
3084
+
3085
+ .dark\:aria-\[invalid\=true\]\:focus\:\!univer-ring-red-900:focus[aria-invalid="true"]:where(.univer-dark, .univer-dark *) {
3086
+ --univer-tw-ring-color: var(--univer-red-900) !important;
3087
+ }
3088
+
3018
3089
  .dark\:data-\[variant\=destructive\]\:focus\:\!univer-bg-red-900:focus[data-variant="destructive"]:where(.univer-dark, .univer-dark *) {
3019
3090
  background-color: var(--univer-red-900) !important;
3020
3091
  }
@@ -3035,6 +3106,10 @@
3035
3106
  background-color: var(--univer-gray-700) !important;
3036
3107
  }
3037
3108
 
3109
+ .dark\:active\:\!univer-text-primary-100:active:where(.univer-dark, .univer-dark *) {
3110
+ color: var(--univer-primary-100) !important;
3111
+ }
3112
+
3038
3113
  .\[\&\:\:-webkit-calendar-picker-indicator\]\:univer-hidden::-webkit-calendar-picker-indicator {
3039
3114
  display: none;
3040
3115
  }
@@ -3055,10 +3130,6 @@
3055
3130
  margin: 0 !important;
3056
3131
  }
3057
3132
 
3058
- .\[\&\>button\]\:\!univer-h-12 > button {
3059
- height: 3rem !important;
3060
- }
3061
-
3062
3133
  .\[\&\>button\]\:\!univer-min-w-0 > button {
3063
3134
  min-width: 0 !important;
3064
3135
  }
@@ -3071,26 +3142,6 @@
3071
3142
  border-radius: .75rem !important;
3072
3143
  }
3073
3144
 
3074
- .\[\&\>input\]\:univer-w-11 > input {
3075
- width: 2.75rem;
3076
- }
3077
-
3078
- .\[\&\>input\]\:univer-border-gray-200 > input {
3079
- border-color: var(--univer-gray-200);
3080
- }
3081
-
3082
- .\[\&\>input\]\:focus\:univer-border-primary-500:focus > input {
3083
- border-color: var(--univer-primary-500);
3084
- }
3085
-
3086
- .dark\:\[\&\>input\]\:\!univer-border-gray-600 > input:where(.univer-dark, .univer-dark *) {
3087
- border-color: var(--univer-gray-600) !important;
3088
- }
3089
-
3090
- .dark\:\[\&\>input\]\:\!univer-text-gray-0 > input:where(.univer-dark, .univer-dark *) {
3091
- color: var(--univer-gray-0) !important;
3092
- }
3093
-
3094
3145
  .\[\&\>svg\]\:univer-block > svg {
3095
3146
  display: block;
3096
3147
  }
@@ -3152,13 +3203,17 @@
3152
3203
  color: var(--univer-gray-500);
3153
3204
  }
3154
3205
 
3155
- .\[\&_\[data-description\]\]\:univer-text-sm [data-description] {
3156
- font-size: .875rem;
3157
- line-height: 1.25rem;
3206
+ .dark\:\[\&_\[cmdk-group-heading\]\]\:\!univer-text-gray-300 [cmdk-group-heading]:where(.univer-dark, .univer-dark *) {
3207
+ color: var(--univer-gray-300) !important;
3158
3208
  }
3159
3209
 
3160
- .\[\&_\[data-description\]\]\:univer-text-gray-600 [data-description] {
3161
- color: var(--univer-gray-600);
3210
+ .\[\&_\[data-description\]\]\:\!univer-text-sm [data-description] {
3211
+ font-size: .875rem !important;
3212
+ line-height: 1.25rem !important;
3213
+ }
3214
+
3215
+ .\[\&_\[data-description\]\]\:\!univer-text-gray-600 [data-description] {
3216
+ color: var(--univer-gray-600) !important;
3162
3217
  }
3163
3218
 
3164
3219
  .dark\:\[\&_\[data-description\]\]\:\!univer-text-gray-200 [data-description]:where(.univer-dark, .univer-dark *) {
@@ -3177,35 +3232,36 @@
3177
3232
  align-self: baseline;
3178
3233
  }
3179
3234
 
3180
- .\[\&_\[data-icon\]\]\:univer-text-amber-500 [data-icon] {
3181
- --univer-tw-text-opacity: 1;
3182
- color: rgba(245, 158, 11, var(--univer-tw-text-opacity, 1));
3183
- }
3184
-
3185
- .\[\&_\[data-icon\]\]\:univer-text-green-500 [data-icon] {
3186
- color: var(--univer-green-500);
3235
+ .\[\&_\[data-icon\]\]\:univer-text-green-600 [data-icon] {
3236
+ color: var(--univer-green-600);
3187
3237
  }
3188
3238
 
3189
3239
  .\[\&_\[data-icon\]\]\:univer-text-primary-600 [data-icon] {
3190
3240
  color: var(--univer-primary-600);
3191
3241
  }
3192
3242
 
3193
- .\[\&_\[data-icon\]\]\:univer-text-red-500 [data-icon] {
3194
- color: var(--univer-red-500);
3243
+ .\[\&_\[data-icon\]\]\:univer-text-red-600 [data-icon] {
3244
+ color: var(--univer-red-600);
3195
3245
  }
3196
3246
 
3197
- .\[\&_\[data-icon\]\]\:univer-text-sky-500 [data-icon] {
3198
- --univer-tw-text-opacity: 1;
3199
- color: rgba(14, 165, 233, var(--univer-tw-text-opacity, 1));
3247
+ .\[\&_\[data-icon\]\]\:univer-text-yellow-600 [data-icon] {
3248
+ color: var(--univer-yellow-600);
3200
3249
  }
3201
3250
 
3202
- .\[\&_\[data-icon\]\]\:univer-text-violet-500 [data-icon] {
3203
- --univer-tw-text-opacity: 1;
3204
- color: rgba(139, 92, 246, var(--univer-tw-text-opacity, 1));
3251
+ .dark\:\[\&_\[data-icon\]\]\:\!univer-text-green-400 [data-icon]:where(.univer-dark, .univer-dark *) {
3252
+ color: var(--univer-green-400) !important;
3205
3253
  }
3206
3254
 
3207
- .\[\&_\[data-icon\]\]\:univer-text-yellow-500 [data-icon] {
3208
- color: var(--univer-yellow-500);
3255
+ .dark\:\[\&_\[data-icon\]\]\:\!univer-text-primary-300 [data-icon]:where(.univer-dark, .univer-dark *) {
3256
+ color: var(--univer-primary-300) !important;
3257
+ }
3258
+
3259
+ .dark\:\[\&_\[data-icon\]\]\:\!univer-text-red-400 [data-icon]:where(.univer-dark, .univer-dark *) {
3260
+ color: var(--univer-red-400) !important;
3261
+ }
3262
+
3263
+ .dark\:\[\&_\[data-icon\]\]\:\!univer-text-yellow-400 [data-icon]:where(.univer-dark, .univer-dark *) {
3264
+ color: var(--univer-yellow-400) !important;
3209
3265
  }
3210
3266
 
3211
3267
  .\[\&_\[data-slot\=\'dialog-footer\'\]\]\:\!univer-flex-row [data-slot="dialog-footer"] {
@@ -3216,68 +3272,48 @@
3216
3272
  gap: .75rem !important;
3217
3273
  }
3218
3274
 
3219
- .\[\&_\[data-slot\=\'dialog-footer\'\]_button\]\:\!univer-h-12 [data-slot="dialog-footer"] button {
3220
- height: 3rem !important;
3221
- }
3222
-
3223
3275
  .\[\&_\[data-slot\=\'dialog-footer\'\]_button\]\:\!univer-flex-1 [data-slot="dialog-footer"] button {
3224
3276
  flex: 1 !important;
3225
3277
  }
3226
3278
 
3227
- .\[\&_\[data-sonner-toast\]\]\:univer-rounded-2xl [data-sonner-toast] {
3228
- border-radius: 1rem;
3229
- }
3230
-
3231
- .\[\&_\[data-sonner-toast\]\]\:univer-border [data-sonner-toast] {
3232
- border-width: 1px;
3233
- }
3234
-
3235
- .\[\&_\[data-sonner-toast\]\]\:univer-border-solid [data-sonner-toast] {
3236
- border-style: solid;
3237
- }
3238
-
3239
- .\[\&_\[data-sonner-toast\]\]\:univer-border-gray-200 [data-sonner-toast] {
3240
- border-color: var(--univer-gray-200);
3241
- }
3242
-
3243
- .\[\&_\[data-sonner-toast\]\]\:univer-bg-gray-0 [data-sonner-toast] {
3244
- background-color: var(--univer-gray-0);
3279
+ .\[\&_\[data-sonner-toast\]\]\:\!univer-rounded-lg [data-sonner-toast] {
3280
+ border-radius: .5rem !important;
3245
3281
  }
3246
3282
 
3247
- .\[\&_\[data-sonner-toast\]\]\:univer-shadow-\[0_16px_40px_-20px_rgba\(15\,23\,42\,0\.55\)\] [data-sonner-toast] {
3248
- --univer-tw-shadow: 0 16px 40px -20px #0f172a8c;
3249
- --univer-tw-shadow-colored: 0 16px 40px -20px var(--univer-tw-shadow-color);
3250
- box-shadow: 0 0 #0000, 0 0 #0000, 0 16px 40px -20px #0f172a8c;
3251
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3283
+ .\[\&_\[data-sonner-toast\]\]\:\!univer-border-gray-200 [data-sonner-toast] {
3284
+ border-color: var(--univer-gray-200) !important;
3252
3285
  }
3253
3286
 
3254
- .\[\&_\[data-sonner-toast\]\]\:univer-shadow-md [data-sonner-toast] {
3255
- --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;
3256
- --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);
3257
- box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 6px -2px #1e284d14, 0 2px 6px -1px #1e284d1a;
3258
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3287
+ .\[\&_\[data-sonner-toast\]\]\:\!univer-bg-gray-0 [data-sonner-toast] {
3288
+ background-color: var(--univer-gray-0) !important;
3259
3289
  }
3260
3290
 
3261
- .\[\&_\[data-sonner-toast\]\]\:univer-backdrop-blur-sm [data-sonner-toast] {
3262
- --univer-tw-backdrop-blur: blur(4px);
3263
- 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);
3291
+ .\[\&_\[data-sonner-toast\]\]\:\!univer-shadow-md [data-sonner-toast] {
3292
+ --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a !important;
3293
+ --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color) !important;
3294
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 6px -2px #1e284d14, 0 2px 6px -1px #1e284d1a !important;
3295
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
3264
3296
  }
3265
3297
 
3266
3298
  .dark\:\[\&_\[data-sonner-toast\]\]\:\!univer-border-gray-600 [data-sonner-toast]:where(.univer-dark, .univer-dark *) {
3267
3299
  border-color: var(--univer-gray-600) !important;
3268
3300
  }
3269
3301
 
3270
- .dark\:\[\&_\[data-sonner-toast\]\]\:\!univer-bg-gray-800 [data-sonner-toast]:where(.univer-dark, .univer-dark *) {
3271
- background-color: var(--univer-gray-800) !important;
3302
+ .dark\:\[\&_\[data-sonner-toast\]\]\:\!univer-bg-gray-700 [data-sonner-toast]:where(.univer-dark, .univer-dark *) {
3303
+ background-color: var(--univer-gray-700) !important;
3272
3304
  }
3273
3305
 
3274
- .\[\&_\[data-title\]\]\:univer-text-sm [data-title] {
3275
- font-size: .875rem;
3276
- line-height: 1.25rem;
3306
+ .\[\&_\[data-title\]\]\:\!univer-text-sm [data-title] {
3307
+ font-size: .875rem !important;
3308
+ line-height: 1.25rem !important;
3277
3309
  }
3278
3310
 
3279
- .\[\&_\[data-title\]\]\:univer-text-gray-900 [data-title] {
3280
- color: var(--univer-gray-900);
3311
+ .\[\&_\[data-title\]\]\:\!univer-text-gray-900 [data-title] {
3312
+ color: var(--univer-gray-900) !important;
3313
+ }
3314
+
3315
+ .dark\:\[\&_\[data-title\]\]\:\!univer-text-gray-0 [data-title]:where(.univer-dark, .univer-dark *) {
3316
+ color: var(--univer-gray-0) !important;
3281
3317
  }
3282
3318
 
3283
3319
  .\[\&_\[data-u-comp\=form-layout\]\]\:univer-max-w-\[calc\(50\%-8px\)\] [data-u-comp="form-layout"] {
@@ -3296,10 +3332,6 @@
3296
3332
  width: 100%;
3297
3333
  }
3298
3334
 
3299
- .\[\&_\[data-u-comp\=input\]\]\:univer-border-red-500 [data-u-comp="input"] {
3300
- border-color: var(--univer-red-500);
3301
- }
3302
-
3303
3335
  .\[\&_\[data-u-comp\=pager-left-arrow\]\:hover\]\:\!univer-bg-gray-600 [data-u-comp="pager-left-arrow"]:hover, .\[\&_\[data-u-comp\=pager-right-arrow\]\:hover\]\:\!univer-bg-gray-600 [data-u-comp="pager-right-arrow"]:hover {
3304
3336
  background-color: var(--univer-gray-600) !important;
3305
3337
  }
@@ -3308,10 +3340,6 @@
3308
3340
  width: 100%;
3309
3341
  }
3310
3342
 
3311
- .\[\&_\[data-u-comp\=select\]\]\:univer-border-red-500 [data-u-comp="select"] {
3312
- border-color: var(--univer-red-500);
3313
- }
3314
-
3315
3343
  @media (hover: hover) and (pointer: fine) {
3316
3344
  .\[\&_a\]\:hover\:univer-p-4:hover a {
3317
3345
  padding: 1rem;
@@ -3335,82 +3363,6 @@
3335
3363
  height: 2.5rem !important;
3336
3364
  }
3337
3365
 
3338
- .\[\&_button\]\:\!univer-min-h-11 button {
3339
- min-height: 2.75rem !important;
3340
- }
3341
-
3342
- .\[\&_input\]\:univer-box-border input {
3343
- box-sizing: border-box;
3344
- }
3345
-
3346
- .\[\&_input\]\:univer-flex input {
3347
- display: flex;
3348
- }
3349
-
3350
- .\[\&_input\]\:\!univer-h-12 input {
3351
- height: 3rem !important;
3352
- }
3353
-
3354
- .\[\&_input\]\:univer-h-7 input {
3355
- height: 1.75rem;
3356
- }
3357
-
3358
- .\[\&_input\]\:univer-items-center input {
3359
- align-items: center;
3360
- }
3361
-
3362
- .\[\&_input\]\:univer-rounded input {
3363
- border-radius: .25rem;
3364
- }
3365
-
3366
- .\[\&_input\]\:univer-border input {
3367
- border-width: 1px;
3368
- }
3369
-
3370
- .\[\&_input\]\:univer-border-solid input {
3371
- border-style: solid;
3372
- }
3373
-
3374
- .\[\&_input\]\:univer-border-gray-200 input {
3375
- border-color: var(--univer-gray-200);
3376
- }
3377
-
3378
- .\[\&_input\]\:univer-bg-transparent input {
3379
- background-color: #0000;
3380
- }
3381
-
3382
- .\[\&_input\]\:univer-px-1\.5 input {
3383
- padding-left: .375rem;
3384
- padding-right: .375rem;
3385
- }
3386
-
3387
- .\[\&_input\]\:\!univer-text-base input {
3388
- font-size: 1rem !important;
3389
- line-height: 1.5rem !important;
3390
- }
3391
-
3392
- .\[\&_input\]\:univer-text-sm input {
3393
- font-size: .875rem;
3394
- line-height: 1.25rem;
3395
- }
3396
-
3397
- .\[\&_input\]\:univer-text-gray-700 input {
3398
- color: var(--univer-gray-700);
3399
- }
3400
-
3401
- .\[\&_input\]\:univer-outline-none input {
3402
- outline-offset: 2px;
3403
- outline: 2px solid #0000;
3404
- }
3405
-
3406
- .dark\:\[\&_input\]\:\!univer-border-gray-600 input:where(.univer-dark, .univer-dark *) {
3407
- border-color: var(--univer-gray-600) !important;
3408
- }
3409
-
3410
- .dark\:\[\&_input\]\:\!univer-text-gray-0 input:where(.univer-dark, .univer-dark *) {
3411
- color: var(--univer-gray-0) !important;
3412
- }
3413
-
3414
3366
  .\[\&_svg\]\:univer-pointer-events-none svg {
3415
3367
  pointer-events: none;
3416
3368
  }
@@ -3497,10 +3449,6 @@
3497
3449
  z-index: 10;
3498
3450
  }
3499
3451
 
3500
- .univer-z-30 {
3501
- z-index: 30;
3502
- }
3503
-
3504
3452
  .univer-z-40 {
3505
3453
  z-index: 40;
3506
3454
  }
@@ -3681,10 +3629,6 @@
3681
3629
  height: 1.75rem !important;
3682
3630
  }
3683
3631
 
3684
- .\!univer-h-auto {
3685
- height: auto !important;
3686
- }
3687
-
3688
3632
  .univer-h-0\.5 {
3689
3633
  height: .125rem;
3690
3634
  }
@@ -3741,10 +3685,6 @@
3741
3685
  min-height: 0;
3742
3686
  }
3743
3687
 
3744
- .univer-min-h-11 {
3745
- min-height: 2.75rem;
3746
- }
3747
-
3748
3688
  .univer-min-h-12 {
3749
3689
  min-height: 3rem;
3750
3690
  }
@@ -3777,10 +3717,6 @@
3777
3717
  width: 8rem;
3778
3718
  }
3779
3719
 
3780
- .univer-w-4\/5 {
3781
- width: 80%;
3782
- }
3783
-
3784
3720
  .univer-w-8 {
3785
3721
  width: 2rem;
3786
3722
  }
@@ -3921,6 +3857,10 @@
3921
3857
  place-items: center;
3922
3858
  }
3923
3859
 
3860
+ .univer-items-end {
3861
+ align-items: flex-end;
3862
+ }
3863
+
3924
3864
  .univer-items-center {
3925
3865
  align-items: center;
3926
3866
  }
@@ -4670,11 +4610,6 @@
4670
4610
  font-size: .75rem;
4671
4611
  line-height: 1rem;
4672
4612
  }
4673
-
4674
- .\[\&_svg\]\:\!univer-size-6 svg {
4675
- width: 1.5rem !important;
4676
- height: 1.5rem !important;
4677
- }
4678
4613
  .univer-pointer-events-none {
4679
4614
  pointer-events: none;
4680
4615
  }
@@ -5481,6 +5416,10 @@
5481
5416
  margin-top: 1rem;
5482
5417
  }
5483
5418
 
5419
+ .univer-box-border {
5420
+ box-sizing: border-box;
5421
+ }
5422
+
5484
5423
  .univer-flex {
5485
5424
  display: flex;
5486
5425
  }
@@ -5871,18 +5810,10 @@
5871
5810
  margin-right: .5rem;
5872
5811
  }
5873
5812
 
5874
- .univer-mr-5 {
5875
- margin-right: 1.25rem;
5876
- }
5877
-
5878
5813
  .univer-mr-px {
5879
5814
  margin-right: 1px;
5880
5815
  }
5881
5816
 
5882
- .univer-mt-1 {
5883
- margin-top: .25rem;
5884
- }
5885
-
5886
5817
  .univer-mt-2 {
5887
5818
  margin-top: .5rem;
5888
5819
  }
@@ -5903,6 +5834,10 @@
5903
5834
  box-sizing: border-box;
5904
5835
  }
5905
5836
 
5837
+ .univer-box-content {
5838
+ box-sizing: content-box;
5839
+ }
5840
+
5906
5841
  .univer-line-clamp-1 {
5907
5842
  -webkit-line-clamp: 1;
5908
5843
  -webkit-box-orient: vertical;
@@ -5991,6 +5926,10 @@
5991
5926
  height: 100% !important;
5992
5927
  }
5993
5928
 
5929
+ .univer-h-0 {
5930
+ height: 0;
5931
+ }
5932
+
5994
5933
  .univer-h-0\.5 {
5995
5934
  height: .125rem;
5996
5935
  }
@@ -6019,6 +5958,10 @@
6019
5958
  height: 1rem;
6020
5959
  }
6021
5960
 
5961
+ .univer-h-44 {
5962
+ height: 11rem;
5963
+ }
5964
+
6022
5965
  .univer-h-5 {
6023
5966
  height: 1.25rem;
6024
5967
  }
@@ -6047,10 +5990,6 @@
6047
5990
  height: 270px;
6048
5991
  }
6049
5992
 
6050
- .univer-h-\[30px\] {
6051
- height: 30px;
6052
- }
6053
-
6054
5993
  .univer-h-\[calc\(100\%-16px\)\] {
6055
5994
  height: calc(100% - 16px);
6056
5995
  }
@@ -6059,6 +5998,10 @@
6059
5998
  height: calc(100% - 8px);
6060
5999
  }
6061
6000
 
6001
+ .univer-h-auto {
6002
+ height: auto;
6003
+ }
6004
+
6062
6005
  .univer-h-full {
6063
6006
  height: 100%;
6064
6007
  }
@@ -6099,10 +6042,18 @@
6099
6042
  min-height: 3.5rem;
6100
6043
  }
6101
6044
 
6045
+ .univer-min-h-24 {
6046
+ min-height: 6rem;
6047
+ }
6048
+
6102
6049
  .univer-min-h-\[30px\] {
6103
6050
  min-height: 30px;
6104
6051
  }
6105
6052
 
6053
+ .univer-min-h-full {
6054
+ min-height: 100%;
6055
+ }
6056
+
6106
6057
  .\!univer-w-\[90px\] {
6107
6058
  width: 90px !important;
6108
6059
  }
@@ -6143,14 +6094,6 @@
6143
6094
  width: 1.25rem;
6144
6095
  }
6145
6096
 
6146
- .univer-w-6 {
6147
- width: 1.5rem;
6148
- }
6149
-
6150
- .univer-w-60 {
6151
- width: 15rem;
6152
- }
6153
-
6154
6097
  .univer-w-8 {
6155
6098
  width: 2rem;
6156
6099
  }
@@ -6195,6 +6138,10 @@
6195
6138
  max-width: 9rem;
6196
6139
  }
6197
6140
 
6141
+ .univer-max-w-60 {
6142
+ max-width: 15rem;
6143
+ }
6144
+
6198
6145
  .univer-max-w-64 {
6199
6146
  max-width: 16rem;
6200
6147
  }
@@ -6565,10 +6512,6 @@
6565
6512
  background-color: var(--univer-gray-900) !important;
6566
6513
  }
6567
6514
 
6568
- .univer-bg-blue-500 {
6569
- background-color: var(--univer-blue-500);
6570
- }
6571
-
6572
6515
  .univer-bg-gray-0 {
6573
6516
  background-color: var(--univer-gray-0);
6574
6517
  }
@@ -6664,6 +6607,11 @@
6664
6607
  padding-right: 1.25rem;
6665
6608
  }
6666
6609
 
6610
+ .univer-px-6 {
6611
+ padding-left: 1.5rem;
6612
+ padding-right: 1.5rem;
6613
+ }
6614
+
6667
6615
  .univer-py-0\.5 {
6668
6616
  padding-top: .125rem;
6669
6617
  padding-bottom: .125rem;
@@ -6702,6 +6650,10 @@
6702
6650
  padding-bottom: .5rem;
6703
6651
  }
6704
6652
 
6653
+ .univer-pb-4 {
6654
+ padding-bottom: 1rem;
6655
+ }
6656
+
6705
6657
  .univer-pl-1\.5 {
6706
6658
  padding-left: .375rem;
6707
6659
  }
@@ -6787,6 +6739,10 @@
6787
6739
  line-height: 1.75rem;
6788
6740
  }
6789
6741
 
6742
+ .univer-leading-relaxed {
6743
+ line-height: 1.625;
6744
+ }
6745
+
6790
6746
  .\!univer-text-gray-0 {
6791
6747
  color: var(--univer-gray-0) !important;
6792
6748
  }
@@ -7273,10 +7229,6 @@
7273
7229
  height: 1.5rem;
7274
7230
  }
7275
7231
 
7276
- .\[\&_button\]\:\!univer-min-h-12 button {
7277
- min-height: 3rem !important;
7278
- }
7279
-
7280
7232
  .\[\&_button\]\:\!univer-w-full button {
7281
7233
  width: 100% !important;
7282
7234
  }
@@ -8703,6 +8655,10 @@
8703
8655
  padding-top: .75rem;
8704
8656
  }
8705
8657
 
8658
+ .univer-pt-4 {
8659
+ padding-top: 1rem;
8660
+ }
8661
+
8706
8662
  .univer-text-left {
8707
8663
  text-align: left;
8708
8664
  }
@@ -9262,6 +9218,10 @@
9262
9218
  margin-right: auto;
9263
9219
  }
9264
9220
 
9221
+ .rtl\:univer-divide-x-reverse:where([dir="rtl"], [dir="rtl"] *) > :not([hidden]) ~ :not([hidden]) {
9222
+ --univer-tw-divide-x-reverse: 1;
9223
+ }
9224
+
9265
9225
  .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
9266
9226
  border-top-left-radius: .25rem;
9267
9227
  border-bottom-left-radius: .25rem;
@@ -9816,18 +9776,10 @@
9816
9776
  margin: 0 !important;
9817
9777
  }
9818
9778
 
9819
- .\[\&_button\]\:\!univer-h-12 button {
9820
- height: 3rem !important;
9821
- }
9822
-
9823
9779
  .\[\&_button\]\:\!univer-h-8 button {
9824
9780
  height: 2rem !important;
9825
9781
  }
9826
9782
 
9827
- .\[\&_button\]\:\!univer-min-h-10 button {
9828
- min-height: 2.5rem !important;
9829
- }
9830
-
9831
9783
  .\[\&_button\]\:\!univer-w-full button {
9832
9784
  width: 100% !important;
9833
9785
  }
@@ -9890,11 +9842,6 @@
9890
9842
  padding-right: 1rem !important;
9891
9843
  }
9892
9844
 
9893
- .\[\&_button\]\:\!univer-text-base button {
9894
- font-size: 1rem !important;
9895
- line-height: 1.5rem !important;
9896
- }
9897
-
9898
9845
  .\[\&_button\]\:\!univer-leading-none button {
9899
9846
  line-height: 1 !important;
9900
9847
  }
@@ -9969,11 +9916,6 @@
9969
9916
  text-align: center;
9970
9917
  }
9971
9918
 
9972
- .\[\&_input\]\:\!univer-text-base input {
9973
- font-size: 1rem !important;
9974
- line-height: 1.5rem !important;
9975
- }
9976
-
9977
9919
  .\[\&_input\]\:univer-text-sm input {
9978
9920
  font-size: .875rem;
9979
9921
  line-height: 1.25rem;
@@ -10001,11 +9943,6 @@
10001
9943
  outline: 2px solid #0000 !important;
10002
9944
  }
10003
9945
 
10004
- .\[\&_select\]\:\!univer-text-base select {
10005
- font-size: 1rem !important;
10006
- line-height: 1.5rem !important;
10007
- }
10008
-
10009
9946
  .\[\&_svg\]\:univer-size-5 svg {
10010
9947
  width: 1.25rem;
10011
9948
  height: 1.25rem;
@@ -10014,8 +9951,3 @@
10014
9951
  .\[\&_svg\]\:univer-shrink-0 svg {
10015
9952
  flex-shrink: 0;
10016
9953
  }
10017
-
10018
- .\[\&_textarea\]\:\!univer-text-base textarea {
10019
- font-size: 1rem !important;
10020
- line-height: 1.5rem !important;
10021
- }
package/lib/index.js CHANGED
@@ -88,8 +88,11 @@ function UniverSheetsCorePreset(config = {}) {
88
88
  formulaBar,
89
89
  footer,
90
90
  allowArrowKeyWrapOnSheetBoundary: sheets === null || sheets === void 0 ? void 0 : sheets.allowArrowKeyWrapOnSheetBoundary,
91
+ selectionAnimation: sheets === null || sheets === void 0 ? void 0 : sheets.selectionAnimation,
91
92
  maxAutoHeightCount: sheets === null || sheets === void 0 ? void 0 : sheets.maxAutoHeightCount,
93
+ enableFillHandle: sheets === null || sheets === void 0 ? void 0 : sheets.enableFillHandle,
92
94
  clipboardConfig: sheets === null || sheets === void 0 ? void 0 : sheets.clipboardConfig,
95
+ warnBeforeDragOverwrite: sheets === null || sheets === void 0 ? void 0 : sheets.warnBeforeDragOverwrite,
93
96
  scrollConfig: sheets === null || sheets === void 0 ? void 0 : sheets.scrollConfig,
94
97
  protectedRangeShadow: (sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeShadow) ?? true,
95
98
  protectedRangeUserSelector: sheets === null || sheets === void 0 ? void 0 : sheets.protectedRangeUserSelector,
@@ -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' | 'textLineGap'>, Pick<IUniverSheetsUIConfig, 'maxAutoHeightCount' | 'clipboardConfig' | 'scrollConfig' | 'protectedRangeShadow' | 'protectedRangeUserSelector' | 'disableForceStringAlert' | 'disableForceStringMark' | 'allowArrowKeyWrapOnSheetBoundary'> {
28
+ export interface IUniverSheetsPresetConfig extends Pick<IUniverSheetsConfig, 'isRowStylePrecedeColumnStyle' | 'autoHeightForMergedCells' | 'freezeSync' | 'textLineGap'>, Pick<IUniverSheetsUIConfig, 'maxAutoHeightCount' | 'enableFillHandle' | 'clipboardConfig' | 'warnBeforeDragOverwrite' | 'scrollConfig' | 'protectedRangeShadow' | 'protectedRangeUserSelector' | 'disableForceStringAlert' | 'disableForceStringMark' | 'allowArrowKeyWrapOnSheetBoundary' | 'selectionAnimation'> {
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-core",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
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.4.0",
65
- "@univerjs/docs": "1.4.0",
66
- "@univerjs/docs-ui": "1.4.0",
67
- "@univerjs/engine-formula": "1.4.0",
68
- "@univerjs/engine-render": "1.4.0",
69
- "@univerjs/network": "1.4.0",
70
- "@univerjs/rpc": "1.4.0",
71
- "@univerjs/sheets": "1.4.0",
72
- "@univerjs/sheets-formula": "1.4.0",
73
- "@univerjs/sheets-formula-ui": "1.4.0",
74
- "@univerjs/sheets-numfmt": "1.4.0",
75
- "@univerjs/sheets-numfmt-ui": "1.4.0",
76
- "@univerjs/sheets-ui": "1.4.0",
77
- "@univerjs/ui": "1.4.0"
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"
78
78
  },
79
79
  "devDependencies": {
80
- "@univerjs-infra/shared": "1.4.0",
81
- "@univerjs/core": "1.4.0",
82
- "@univerjs/presets": "1.4.0",
80
+ "@univerjs-infra/shared": "1.5.1",
81
+ "@univerjs/core": "1.5.1",
82
+ "@univerjs/presets": "1.5.1",
83
83
  "react": "18.3.1",
84
84
  "react-dom": "18.3.1",
85
85
  "rxjs": "7.8.2",
86
- "tsrs": "0.20.1-ts7.1.0-beta"
86
+ "tsrs": "0.23.0-ts7.1.0-beta"
87
87
  },
88
88
  "scripts": {
89
89
  "build:bundle": "univer-cli preset build --cleanup",