@univerjs/preset-docs-core 1.1.0 → 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.
Files changed (2) hide show
  1. package/lib/index.css +105 -106
  2. package/package.json +12 -12
package/lib/index.css CHANGED
@@ -297,7 +297,7 @@
297
297
  margin-left: .25rem;
298
298
  }
299
299
 
300
- .univer-ml-auto {
300
+ .univer-ml-auto, .univer-ms-auto {
301
301
  margin-left: auto;
302
302
  }
303
303
 
@@ -1345,6 +1345,10 @@
1345
1345
  background-color: var(--univer-gray-900);
1346
1346
  }
1347
1347
 
1348
+ .univer-bg-primary-100 {
1349
+ background-color: var(--univer-primary-100);
1350
+ }
1351
+
1348
1352
  .univer-bg-primary-50 {
1349
1353
  background-color: var(--univer-primary-50);
1350
1354
  }
@@ -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
  }
@@ -3652,11 +3671,6 @@
3652
3671
  height: 1.75rem;
3653
3672
  }
3654
3673
 
3655
- .univer-size-8 {
3656
- width: 2rem;
3657
- height: 2rem;
3658
- }
3659
-
3660
3674
  .univer-size-9 {
3661
3675
  width: 2.25rem;
3662
3676
  height: 2.25rem;
@@ -3743,10 +3757,6 @@
3743
3757
  min-height: 2rem;
3744
3758
  }
3745
3759
 
3746
- .univer-w-0\.5 {
3747
- width: .125rem;
3748
- }
3749
-
3750
3760
  .univer-w-10 {
3751
3761
  width: 2.5rem;
3752
3762
  }
@@ -4115,10 +4125,6 @@
4115
4125
  background-color: var(--univer-gray-50);
4116
4126
  }
4117
4127
 
4118
- .univer-bg-gray-700 {
4119
- background-color: var(--univer-gray-700);
4120
- }
4121
-
4122
4128
  .univer-bg-primary-100 {
4123
4129
  background-color: var(--univer-primary-100);
4124
4130
  }
@@ -4171,11 +4177,6 @@
4171
4177
  padding-right: .5rem;
4172
4178
  }
4173
4179
 
4174
- .univer-px-3 {
4175
- padding-left: .75rem;
4176
- padding-right: .75rem;
4177
- }
4178
-
4179
4180
  .univer-px-4 {
4180
4181
  padding-left: 1rem;
4181
4182
  padding-right: 1rem;
@@ -4215,14 +4216,14 @@
4215
4216
  padding-bottom: .125rem;
4216
4217
  }
4217
4218
 
4218
- .univer-pb-1 {
4219
- padding-bottom: .25rem;
4220
- }
4221
-
4222
4219
  .univer-pb-2 {
4223
4220
  padding-bottom: .5rem;
4224
4221
  }
4225
4222
 
4223
+ .univer-pe-2 {
4224
+ padding-right: .5rem;
4225
+ }
4226
+
4226
4227
  .univer-pl-1\.5 {
4227
4228
  padding-left: .375rem;
4228
4229
  }
@@ -4235,10 +4236,6 @@
4235
4236
  padding-left: 1rem;
4236
4237
  }
4237
4238
 
4238
- .univer-pr-12 {
4239
- padding-right: 3rem;
4240
- }
4241
-
4242
4239
  .univer-pr-2 {
4243
4240
  padding-right: .5rem;
4244
4241
  }
@@ -4247,12 +4244,12 @@
4247
4244
  padding-top: .375rem;
4248
4245
  }
4249
4246
 
4250
- .univer-pt-2 {
4251
- padding-top: .5rem;
4247
+ .univer-pt-10 {
4248
+ padding-top: 2.5rem;
4252
4249
  }
4253
4250
 
4254
- .univer-text-left {
4255
- text-align: left;
4251
+ .univer-pt-2 {
4252
+ padding-top: .5rem;
4256
4253
  }
4257
4254
 
4258
4255
  .univer-text-center {
@@ -4333,6 +4330,10 @@
4333
4330
  line-height: 1;
4334
4331
  }
4335
4332
 
4333
+ .\!univer-text-gray-500 {
4334
+ color: var(--univer-gray-500) !important;
4335
+ }
4336
+
4336
4337
  .\!univer-text-gray-600 {
4337
4338
  color: var(--univer-gray-600) !important;
4338
4339
  }
@@ -4345,10 +4346,6 @@
4345
4346
  color: var(--univer-gray-100);
4346
4347
  }
4347
4348
 
4348
- .univer-text-gray-300 {
4349
- color: var(--univer-gray-300);
4350
- }
4351
-
4352
4349
  .univer-text-gray-400 {
4353
4350
  color: var(--univer-gray-400);
4354
4351
  }
@@ -4373,12 +4370,12 @@
4373
4370
  color: var(--univer-gray-900);
4374
4371
  }
4375
4372
 
4376
- .univer-text-primary-600 {
4377
- color: var(--univer-primary-600);
4373
+ .univer-text-primary-400 {
4374
+ color: var(--univer-primary-400);
4378
4375
  }
4379
4376
 
4380
- .univer-text-primary-700 {
4381
- color: var(--univer-primary-700);
4377
+ .univer-text-primary-600 {
4378
+ color: var(--univer-primary-600);
4382
4379
  }
4383
4380
 
4384
4381
  .univer-text-violet-500 {
@@ -4453,16 +4450,12 @@
4453
4450
  border-color: var(--univer-primary-500);
4454
4451
  }
4455
4452
 
4456
- .hover\:univer-bg-gray-100:hover {
4457
- background-color: var(--univer-gray-100);
4458
- }
4459
-
4460
4453
  .hover\:univer-bg-gray-50:hover {
4461
4454
  background-color: var(--univer-gray-50);
4462
4455
  }
4463
4456
 
4464
- .hover\:univer-bg-primary-50:hover {
4465
- background-color: var(--univer-primary-50);
4457
+ .hover\:\!univer-text-gray-900:hover {
4458
+ color: var(--univer-gray-900) !important;
4466
4459
  }
4467
4460
 
4468
4461
  .hover\:univer-text-gray-900:hover {
@@ -4551,10 +4544,6 @@
4551
4544
  border-color: var(--univer-gray-700) !important;
4552
4545
  }
4553
4546
 
4554
- .dark\:univer-border-gray-700:where(.univer-dark, .univer-dark *) {
4555
- border-color: var(--univer-gray-700);
4556
- }
4557
-
4558
4547
  .dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
4559
4548
  background-color: var(--univer-gray-500) !important;
4560
4549
  }
@@ -4591,10 +4580,6 @@
4591
4580
  background-color: var(--univer-gray-900);
4592
4581
  }
4593
4582
 
4594
- .dark\:univer-bg-primary-400:where(.univer-dark, .univer-dark *) {
4595
- background-color: var(--univer-primary-400);
4596
- }
4597
-
4598
4583
  .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
4599
4584
  color: var(--univer-gray-0) !important;
4600
4585
  }
@@ -4619,10 +4604,6 @@
4619
4604
  color: var(--univer-primary-400) !important;
4620
4605
  }
4621
4606
 
4622
- .dark\:univer-text-gray-100:where(.univer-dark, .univer-dark *) {
4623
- color: var(--univer-gray-100);
4624
- }
4625
-
4626
4607
  .dark\:univer-text-gray-200:where(.univer-dark, .univer-dark *) {
4627
4608
  color: var(--univer-gray-200);
4628
4609
  }
@@ -4635,8 +4616,8 @@
4635
4616
  color: var(--univer-gray-400);
4636
4617
  }
4637
4618
 
4638
- .dark\:univer-text-primary-200:where(.univer-dark, .univer-dark *) {
4639
- color: var(--univer-primary-200);
4619
+ .dark\:univer-text-primary-400:where(.univer-dark, .univer-dark *) {
4620
+ color: var(--univer-primary-400);
4640
4621
  }
4641
4622
 
4642
4623
  @media (hover: hover) and (pointer: fine) {
@@ -4648,12 +4629,12 @@
4648
4629
  background-color: var(--univer-gray-800) !important;
4649
4630
  }
4650
4631
 
4651
- .dark\:hover\:univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
4652
- 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;
4653
4634
  }
4654
4635
 
4655
- .dark\:hover\:univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
4656
- 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);
4657
4638
  }
4658
4639
  }
4659
4640
 
@@ -5301,6 +5282,10 @@
5301
5282
  max-width: 32%;
5302
5283
  }
5303
5284
 
5285
+ .univer-max-w-\[50\%\] {
5286
+ max-width: 50%;
5287
+ }
5288
+
5304
5289
  .univer-max-w-\[560px\] {
5305
5290
  max-width: 560px;
5306
5291
  }
@@ -5834,6 +5819,10 @@
5834
5819
  background-color: var(--univer-primary-50);
5835
5820
  }
5836
5821
 
5822
+ .univer-bg-primary-500 {
5823
+ background-color: var(--univer-primary-500);
5824
+ }
5825
+
5837
5826
  .univer-bg-primary-600 {
5838
5827
  background-color: var(--univer-primary-600);
5839
5828
  }
@@ -6172,11 +6161,6 @@
6172
6161
  color: var(--univer-primary-700);
6173
6162
  }
6174
6163
 
6175
- .univer-text-slate-200 {
6176
- --univer-tw-text-opacity: 1;
6177
- color: rgba(226, 232, 240, var(--univer-tw-text-opacity, 1));
6178
- }
6179
-
6180
6164
  .univer-underline {
6181
6165
  text-decoration-line: underline;
6182
6166
  }
@@ -6250,11 +6234,6 @@
6250
6234
  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);
6251
6235
  }
6252
6236
 
6253
- .univer-backdrop-blur-xl {
6254
- --univer-tw-backdrop-blur: blur(24px);
6255
- 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);
6256
- }
6257
-
6258
6237
  .\!univer-transition-none {
6259
6238
  transition-property: none !important;
6260
6239
  }
@@ -6400,6 +6379,10 @@
6400
6379
  background-color: var(--univer-gray-50);
6401
6380
  }
6402
6381
 
6382
+ .hover\:univer-bg-primary-500:hover {
6383
+ background-color: var(--univer-primary-500);
6384
+ }
6385
+
6403
6386
  .hover\:univer-bg-transparent:hover {
6404
6387
  background-color: #0000;
6405
6388
  }
@@ -6444,6 +6427,10 @@
6444
6427
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
6445
6428
  }
6446
6429
 
6430
+ .focus\:univer-ring-primary-500:focus {
6431
+ --univer-tw-ring-color: var(--univer-primary-500);
6432
+ }
6433
+
6447
6434
  .focus-visible\:univer-outline-none:focus-visible {
6448
6435
  outline-offset: 2px;
6449
6436
  outline: 2px solid #0000;
@@ -6491,6 +6478,10 @@
6491
6478
  background-color: var(--univer-gray-200);
6492
6479
  }
6493
6480
 
6481
+ .active\:univer-bg-primary-500:active {
6482
+ background-color: var(--univer-primary-500);
6483
+ }
6484
+
6494
6485
  .enabled\:active\:univer-scale-\[0\.98\]:active:enabled {
6495
6486
  --univer-tw-scale-x: .98;
6496
6487
  --univer-tw-scale-y: .98;
@@ -6747,6 +6738,10 @@
6747
6738
  background-color: var(--univer-gray-900) !important;
6748
6739
  }
6749
6740
 
6741
+ .dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
6742
+ --univer-tw-ring-color: var(--univer-primary-300) !important;
6743
+ }
6744
+
6750
6745
  .dark\:active\:\!univer-bg-gray-600:active:where(.univer-dark, .univer-dark *) {
6751
6746
  background-color: var(--univer-gray-600) !important;
6752
6747
  }
@@ -7180,6 +7175,10 @@
7180
7175
  outline: 2px solid #0000 !important;
7181
7176
  }
7182
7177
 
7178
+ .\[\&_button\]\:\!\[font-family\:inherit\] button {
7179
+ font-family: inherit !important;
7180
+ }
7181
+
7183
7182
  .\[\&_button_svg\]\:\!univer-size-5 button svg {
7184
7183
  width: 1.25rem !important;
7185
7184
  height: 1.25rem !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-core",
3
- "version": "1.1.0",
3
+ "version": "1.2.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,21 +56,21 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/design": "1.1.0",
60
- "@univerjs/docs": "1.1.0",
61
- "@univerjs/docs-ui": "1.1.0",
62
- "@univerjs/engine-formula": "1.1.0",
63
- "@univerjs/engine-render": "1.1.0",
64
- "@univerjs/network": "1.1.0",
65
- "@univerjs/ui": "1.1.0"
59
+ "@univerjs/design": "1.2.0",
60
+ "@univerjs/docs": "1.2.0",
61
+ "@univerjs/docs-ui": "1.2.0",
62
+ "@univerjs/engine-formula": "1.2.0",
63
+ "@univerjs/engine-render": "1.2.0",
64
+ "@univerjs/network": "1.2.0",
65
+ "@univerjs/ui": "1.2.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@univerjs-infra/shared": "1.1.0",
69
- "@univerjs/core": "1.1.0",
70
- "@univerjs/presets": "1.1.0",
68
+ "@univerjs-infra/shared": "1.2.0",
69
+ "@univerjs/core": "1.2.0",
70
+ "@univerjs/presets": "1.2.0",
71
71
  "react": "18.3.1",
72
72
  "react-dom": "18.3.1",
73
- "rxjs": "^7.8.2",
73
+ "rxjs": "7.8.2",
74
74
  "typescript": "^6.0.3"
75
75
  },
76
76
  "scripts": {