@univerjs/preset-docs-core 1.4.0 → 1.5.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.
Files changed (3) hide show
  1. package/README.md +3 -5
  2. package/lib/index.css +230 -315
  3. package/package.json +12 -12
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-docs-core` | Yes | Yes | Yes |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/preset-docs-core` | — | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,8 +20,6 @@ pnpm add @univerjs/preset-docs-core
20
20
  npm install @univerjs/preset-docs-core
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
27
25
  ```ts
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
  }
@@ -6086,6 +6021,10 @@
6086
6021
  padding-top: .75rem;
6087
6022
  }
6088
6023
 
6024
+ .univer-pt-4 {
6025
+ padding-top: 1rem;
6026
+ }
6027
+
6089
6028
  .univer-text-left {
6090
6029
  text-align: left;
6091
6030
  }
@@ -6645,6 +6584,10 @@
6645
6584
  margin-right: auto;
6646
6585
  }
6647
6586
 
6587
+ .rtl\:univer-divide-x-reverse:where([dir="rtl"], [dir="rtl"] *) > :not([hidden]) ~ :not([hidden]) {
6588
+ --univer-tw-divide-x-reverse: 1;
6589
+ }
6590
+
6648
6591
  .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
6649
6592
  border-top-left-radius: .25rem;
6650
6593
  border-bottom-left-radius: .25rem;
@@ -7199,18 +7142,10 @@
7199
7142
  margin: 0 !important;
7200
7143
  }
7201
7144
 
7202
- .\[\&_button\]\:\!univer-h-12 button {
7203
- height: 3rem !important;
7204
- }
7205
-
7206
7145
  .\[\&_button\]\:\!univer-h-8 button {
7207
7146
  height: 2rem !important;
7208
7147
  }
7209
7148
 
7210
- .\[\&_button\]\:\!univer-min-h-10 button {
7211
- min-height: 2.5rem !important;
7212
- }
7213
-
7214
7149
  .\[\&_button\]\:\!univer-w-full button {
7215
7150
  width: 100% !important;
7216
7151
  }
@@ -7273,11 +7208,6 @@
7273
7208
  padding-right: 1rem !important;
7274
7209
  }
7275
7210
 
7276
- .\[\&_button\]\:\!univer-text-base button {
7277
- font-size: 1rem !important;
7278
- line-height: 1.5rem !important;
7279
- }
7280
-
7281
7211
  .\[\&_button\]\:\!univer-leading-none button {
7282
7212
  line-height: 1 !important;
7283
7213
  }
@@ -7352,11 +7282,6 @@
7352
7282
  text-align: center;
7353
7283
  }
7354
7284
 
7355
- .\[\&_input\]\:\!univer-text-base input {
7356
- font-size: 1rem !important;
7357
- line-height: 1.5rem !important;
7358
- }
7359
-
7360
7285
  .\[\&_input\]\:univer-text-sm input {
7361
7286
  font-size: .875rem;
7362
7287
  line-height: 1.25rem;
@@ -7384,11 +7309,6 @@
7384
7309
  outline: 2px solid #0000 !important;
7385
7310
  }
7386
7311
 
7387
- .\[\&_select\]\:\!univer-text-base select {
7388
- font-size: 1rem !important;
7389
- line-height: 1.5rem !important;
7390
- }
7391
-
7392
7312
  .\[\&_svg\]\:univer-size-5 svg {
7393
7313
  width: 1.25rem;
7394
7314
  height: 1.25rem;
@@ -7397,8 +7317,3 @@
7397
7317
  .\[\&_svg\]\:univer-shrink-0 svg {
7398
7318
  flex-shrink: 0;
7399
7319
  }
7400
-
7401
- .\[\&_textarea\]\:\!univer-text-base textarea {
7402
- font-size: 1rem !important;
7403
- line-height: 1.5rem !important;
7404
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-core",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Preset for core Univer Docs editing and UI features.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -56,22 +56,22 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/design": "1.4.0",
60
- "@univerjs/docs": "1.4.0",
61
- "@univerjs/docs-ui": "1.4.0",
62
- "@univerjs/engine-formula": "1.4.0",
63
- "@univerjs/engine-render": "1.4.0",
64
- "@univerjs/network": "1.4.0",
65
- "@univerjs/ui": "1.4.0"
59
+ "@univerjs/design": "1.5.0",
60
+ "@univerjs/docs": "1.5.0",
61
+ "@univerjs/docs-ui": "1.5.0",
62
+ "@univerjs/engine-formula": "1.5.0",
63
+ "@univerjs/engine-render": "1.5.0",
64
+ "@univerjs/network": "1.5.0",
65
+ "@univerjs/ui": "1.5.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@univerjs-infra/shared": "1.4.0",
69
- "@univerjs/core": "1.4.0",
70
- "@univerjs/presets": "1.4.0",
68
+ "@univerjs-infra/shared": "1.5.0",
69
+ "@univerjs/core": "1.5.0",
70
+ "@univerjs/presets": "1.5.0",
71
71
  "react": "18.3.1",
72
72
  "react-dom": "18.3.1",
73
73
  "rxjs": "7.8.2",
74
- "tsrs": "0.20.1-ts7.1.0-beta"
74
+ "tsrs": "0.23.0-ts7.1.0-beta"
75
75
  },
76
76
  "scripts": {
77
77
  "build:bundle": "univer-cli preset build --cleanup",