@univerjs/preset-docs-core 1.0.0-beta.1 → 1.0.0-beta.2

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 +122 -40
  2. package/package.json +11 -11
package/lib/index.css CHANGED
@@ -314,6 +314,11 @@
314
314
  height: 0;
315
315
  }
316
316
 
317
+ .univer-size-10 {
318
+ width: 2.5rem;
319
+ height: 2.5rem;
320
+ }
321
+
317
322
  .univer-size-2 {
318
323
  width: .5rem;
319
324
  height: .5rem;
@@ -1044,6 +1049,14 @@
1044
1049
  border-color: var(--univer-gray-200) !important;
1045
1050
  }
1046
1051
 
1052
+ .\!univer-border-gray-500 {
1053
+ border-color: var(--univer-gray-500) !important;
1054
+ }
1055
+
1056
+ .\!univer-border-transparent {
1057
+ border-color: #0000 !important;
1058
+ }
1059
+
1047
1060
  .univer-border-gray-0 {
1048
1061
  border-color: var(--univer-gray-0);
1049
1062
  }
@@ -1092,10 +1105,18 @@
1092
1105
  background-color: var(--univer-gray-600) !important;
1093
1106
  }
1094
1107
 
1108
+ .\!univer-bg-gray-800 {
1109
+ background-color: var(--univer-gray-800) !important;
1110
+ }
1111
+
1095
1112
  .\!univer-bg-primary-600 {
1096
1113
  background-color: var(--univer-primary-600) !important;
1097
1114
  }
1098
1115
 
1116
+ .\!univer-bg-transparent {
1117
+ background-color: #0000 !important;
1118
+ }
1119
+
1099
1120
  .univer-bg-\[\#e8eefc\] {
1100
1121
  --univer-tw-bg-opacity: 1;
1101
1122
  background-color: #e8eefc;
@@ -1482,6 +1503,10 @@
1482
1503
  color: var(--univer-gray-0) !important;
1483
1504
  }
1484
1505
 
1506
+ .\!univer-text-gray-300 {
1507
+ color: var(--univer-gray-300) !important;
1508
+ }
1509
+
1485
1510
  .\!univer-text-gray-400 {
1486
1511
  color: var(--univer-gray-400) !important;
1487
1512
  }
@@ -2096,6 +2121,14 @@
2096
2121
  border-color: #0000;
2097
2122
  }
2098
2123
 
2124
+ .hover\:\!univer-bg-gray-600:hover {
2125
+ background-color: var(--univer-gray-600) !important;
2126
+ }
2127
+
2128
+ .hover\:\!univer-bg-gray-700:hover {
2129
+ background-color: var(--univer-gray-700) !important;
2130
+ }
2131
+
2099
2132
  .hover\:univer-bg-gray-100:hover {
2100
2133
  background-color: var(--univer-gray-100);
2101
2134
  }
@@ -2116,8 +2149,8 @@
2116
2149
  background-color: var(--univer-red-400);
2117
2150
  }
2118
2151
 
2119
- .hover\:univer-text-gray-0:hover {
2120
- color: var(--univer-gray-0);
2152
+ .hover\:\!univer-text-gray-0:hover {
2153
+ color: var(--univer-gray-0) !important;
2121
2154
  }
2122
2155
 
2123
2156
  .hover\:univer-text-gray-500:hover {
@@ -2180,6 +2213,38 @@
2180
2213
  background-color: var(--univer-red-50);
2181
2214
  }
2182
2215
 
2216
+ .focus-visible\:\!univer-outline-none:focus-visible {
2217
+ outline-offset: 2px !important;
2218
+ outline: 2px solid #0000 !important;
2219
+ }
2220
+
2221
+ .focus-visible\:univer-outline-none:focus-visible {
2222
+ outline-offset: 2px;
2223
+ outline: 2px solid #0000;
2224
+ }
2225
+
2226
+ .focus-visible\:\!univer-ring-2:focus-visible {
2227
+ --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) !important;
2228
+ --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) !important;
2229
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000 !important;
2230
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
2231
+ }
2232
+
2233
+ .focus-visible\:univer-ring-2:focus-visible {
2234
+ --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);
2235
+ --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);
2236
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
2237
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
2238
+ }
2239
+
2240
+ .focus-visible\:\!univer-ring-gray-0:focus-visible {
2241
+ --univer-tw-ring-color: var(--univer-gray-0) !important;
2242
+ }
2243
+
2244
+ .focus-visible\:univer-ring-primary-500:focus-visible {
2245
+ --univer-tw-ring-color: var(--univer-primary-500);
2246
+ }
2247
+
2183
2248
  .active\:univer-border-red-600:active {
2184
2249
  border-color: var(--univer-red-600);
2185
2250
  }
@@ -2204,10 +2269,18 @@
2204
2269
  pointer-events: none;
2205
2270
  }
2206
2271
 
2272
+ .disabled\:univer-cursor-default:disabled {
2273
+ cursor: default;
2274
+ }
2275
+
2207
2276
  .disabled\:univer-cursor-not-allowed:disabled {
2208
2277
  cursor: not-allowed;
2209
2278
  }
2210
2279
 
2280
+ .disabled\:univer-opacity-40:disabled {
2281
+ opacity: .4;
2282
+ }
2283
+
2211
2284
  .disabled\:univer-opacity-50:disabled {
2212
2285
  opacity: .5;
2213
2286
  }
@@ -2874,10 +2947,6 @@
2874
2947
  margin-bottom: .5rem;
2875
2948
  }
2876
2949
 
2877
- .univer-mb-3 {
2878
- margin-bottom: .75rem;
2879
- }
2880
-
2881
2950
  .univer-mb-4 {
2882
2951
  margin-bottom: 1rem;
2883
2952
  }
@@ -2886,10 +2955,6 @@
2886
2955
  margin-right: .25rem;
2887
2956
  }
2888
2957
 
2889
- .univer-mt-0\.5 {
2890
- margin-top: .125rem;
2891
- }
2892
-
2893
2958
  .univer-mt-1\.5 {
2894
2959
  margin-top: .375rem;
2895
2960
  }
@@ -2926,10 +2991,6 @@
2926
2991
  display: grid;
2927
2992
  }
2928
2993
 
2929
- .univer-contents {
2930
- display: contents;
2931
- }
2932
-
2933
2994
  .univer-size-0\.5 {
2934
2995
  width: .125rem;
2935
2996
  height: .125rem;
@@ -3057,6 +3118,10 @@
3057
3118
  min-width: 0;
3058
3119
  }
3059
3120
 
3121
+ .univer-min-w-12 {
3122
+ min-width: 3rem;
3123
+ }
3124
+
3060
3125
  .univer-min-w-\[180px\] {
3061
3126
  min-width: 180px;
3062
3127
  }
@@ -3099,10 +3164,6 @@
3099
3164
  grid-template-columns: repeat(4, minmax(0, 1fr));
3100
3165
  }
3101
3166
 
3102
- .univer-grid-cols-\[1fr_auto\] {
3103
- grid-template-columns: 1fr auto;
3104
- }
3105
-
3106
3167
  .univer-grid-rows-4 {
3107
3168
  grid-template-rows: repeat(4, minmax(0, 1fr));
3108
3169
  }
@@ -3168,15 +3229,6 @@
3168
3229
  column-gap: .125rem;
3169
3230
  }
3170
3231
 
3171
- .univer-gap-x-5 {
3172
- -moz-column-gap: 1.25rem;
3173
- column-gap: 1.25rem;
3174
- }
3175
-
3176
- .univer-gap-y-2 {
3177
- row-gap: .5rem;
3178
- }
3179
-
3180
3232
  .univer-gap-y-px {
3181
3233
  row-gap: 1px;
3182
3234
  }
@@ -3308,10 +3360,6 @@
3308
3360
  padding: .5rem;
3309
3361
  }
3310
3362
 
3311
- .univer-p-4 {
3312
- padding: 1rem;
3313
- }
3314
-
3315
3363
  .univer-px-2 {
3316
3364
  padding-left: .5rem;
3317
3365
  padding-right: .5rem;
@@ -3332,11 +3380,21 @@
3332
3380
  padding-bottom: 0;
3333
3381
  }
3334
3382
 
3383
+ .univer-py-1 {
3384
+ padding-top: .25rem;
3385
+ padding-bottom: .25rem;
3386
+ }
3387
+
3335
3388
  .univer-py-1\.5 {
3336
3389
  padding-top: .375rem;
3337
3390
  padding-bottom: .375rem;
3338
3391
  }
3339
3392
 
3393
+ .univer-py-3 {
3394
+ padding-top: .75rem;
3395
+ padding-bottom: .75rem;
3396
+ }
3397
+
3340
3398
  .univer-pb-0\.5 {
3341
3399
  padding-bottom: .125rem;
3342
3400
  }
@@ -3429,6 +3487,10 @@
3429
3487
  font-variant-numeric: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) var(--univer-tw-numeric-spacing) var(--univer-tw-numeric-fraction);
3430
3488
  }
3431
3489
 
3490
+ .univer-leading-4 {
3491
+ line-height: 1rem;
3492
+ }
3493
+
3432
3494
  .univer-leading-5 {
3433
3495
  line-height: 1.25rem;
3434
3496
  }
@@ -3485,6 +3547,10 @@
3485
3547
  color: var(--univer-gray-900);
3486
3548
  }
3487
3549
 
3550
+ .univer-text-primary-600 {
3551
+ color: var(--univer-primary-600);
3552
+ }
3553
+
3488
3554
  .univer-shadow {
3489
3555
  --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
3490
3556
  --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
@@ -3492,13 +3558,6 @@
3492
3558
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3493
3559
  }
3494
3560
 
3495
- .univer-shadow-lg {
3496
- --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
3497
- --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
3498
- box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px #1e284d0d, 0 10px 15px -3px #1e284d1a;
3499
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3500
- }
3501
-
3502
3561
  .univer-shadow-md {
3503
3562
  --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;
3504
3563
  --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);
@@ -3513,6 +3572,13 @@
3513
3572
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3514
3573
  }
3515
3574
 
3575
+ .univer-shadow-xl {
3576
+ --univer-tw-shadow: 0px 10px 10px 0px #1e284d0a, 0px 20px 24px -5px #1e284d1a;
3577
+ --univer-tw-shadow-colored: 0px 10px 10px 0px var(--univer-tw-shadow-color), 0px 20px 24px -5px var(--univer-tw-shadow-color);
3578
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 10px #1e284d0a, 0 20px 24px -5px #1e284d1a;
3579
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
3580
+ }
3581
+
3516
3582
  .univer-backdrop-blur-\[10px\] {
3517
3583
  --univer-tw-backdrop-blur: blur(10px);
3518
3584
  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);
@@ -3580,8 +3646,12 @@
3580
3646
  cursor: grabbing;
3581
3647
  }
3582
3648
 
3583
- .dark\:\!univer-border-gray-600:where(.univer-dark, .univer-dark *) {
3584
- border-color: var(--univer-gray-600) !important;
3649
+ .rtl\:univer-text-left:where([dir="rtl"], [dir="rtl"] *) {
3650
+ text-align: left;
3651
+ }
3652
+
3653
+ .rtl\:univer-text-right:where([dir="rtl"], [dir="rtl"] *) {
3654
+ text-align: right;
3585
3655
  }
3586
3656
 
3587
3657
  .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
@@ -5080,6 +5150,10 @@
5080
5150
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
5081
5151
  }
5082
5152
 
5153
+ .univer-delay-100 {
5154
+ transition-delay: .1s;
5155
+ }
5156
+
5083
5157
  .univer-duration-150 {
5084
5158
  transition-duration: .15s;
5085
5159
  }
@@ -5124,6 +5198,14 @@
5124
5198
  animation-duration: .15s;
5125
5199
  }
5126
5200
 
5201
+ .univer-delay-100 {
5202
+ animation-delay: .1s;
5203
+ }
5204
+
5205
+ .univer-fill-mode-backwards {
5206
+ animation-fill-mode: backwards;
5207
+ }
5208
+
5127
5209
  .univer-context-menu-hover-suppressed button:hover:not(:focus) {
5128
5210
  background-color: #0000 !important;
5129
5211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-core",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
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.0.0-beta.1",
60
- "@univerjs/docs": "1.0.0-beta.1",
61
- "@univerjs/docs-ui": "1.0.0-beta.1",
62
- "@univerjs/engine-formula": "1.0.0-beta.1",
63
- "@univerjs/engine-render": "1.0.0-beta.1",
64
- "@univerjs/network": "1.0.0-beta.1",
65
- "@univerjs/ui": "1.0.0-beta.1"
59
+ "@univerjs/design": "1.0.0-beta.2",
60
+ "@univerjs/docs": "1.0.0-beta.2",
61
+ "@univerjs/engine-render": "1.0.0-beta.2",
62
+ "@univerjs/docs-ui": "1.0.0-beta.2",
63
+ "@univerjs/engine-formula": "1.0.0-beta.2",
64
+ "@univerjs/network": "1.0.0-beta.2",
65
+ "@univerjs/ui": "1.0.0-beta.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "react": "18.3.1",
69
69
  "react-dom": "18.3.1",
70
70
  "rxjs": "^7.8.2",
71
71
  "typescript": "^6.0.3",
72
- "@univerjs-infra/shared": "1.0.0-beta.1",
73
- "@univerjs/presets": "1.0.0-beta.1",
74
- "@univerjs/core": "1.0.0-beta.1"
72
+ "@univerjs-infra/shared": "1.0.0-beta.2",
73
+ "@univerjs/core": "1.0.0-beta.2",
74
+ "@univerjs/presets": "1.0.0-beta.2"
75
75
  },
76
76
  "scripts": {
77
77
  "build:bundle": "univer-cli preset build --cleanup",