@univerjs/preset-docs-drawing 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 +12 -101
  3. package/package.json +9 -9
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-drawing` | Yes | Yes | Yes |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/preset-docs-drawing` | — | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,8 +20,6 @@ pnpm add @univerjs/preset-docs-drawing
20
20
  npm install @univerjs/preset-docs-drawing
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
@@ -26,10 +26,6 @@
26
26
  display: none;
27
27
  }
28
28
 
29
- .univer-h-12 {
30
- height: 3rem;
31
- }
32
-
33
29
  .univer-w-full {
34
30
  width: 100%;
35
31
  }
@@ -129,15 +125,6 @@
129
125
  .\[\&\>div\]\:univer-gap-2 > div {
130
126
  gap: .5rem;
131
127
  }
132
-
133
- .\[\&_input\]\:\!univer-h-12 input {
134
- height: 3rem !important;
135
- }
136
-
137
- .\[\&_input\]\:\!univer-text-base input {
138
- font-size: 1rem !important;
139
- line-height: 1.5rem !important;
140
- }
141
128
  .\!univer-pointer-events-none {
142
129
  pointer-events: none !important;
143
130
  }
@@ -266,10 +253,6 @@
266
253
  height: 1rem !important;
267
254
  }
268
255
 
269
- .\!univer-h-7 {
270
- height: 1.75rem !important;
271
- }
272
-
273
256
  .\!univer-h-8 {
274
257
  height: 2rem !important;
275
258
  }
@@ -286,10 +269,6 @@
286
269
  height: 2.75rem;
287
270
  }
288
271
 
289
- .univer-h-12 {
290
- height: 3rem;
291
- }
292
-
293
272
  .univer-h-6 {
294
273
  height: 1.5rem;
295
274
  }
@@ -314,6 +293,10 @@
314
293
  min-height: 0;
315
294
  }
316
295
 
296
+ .univer-min-h-10 {
297
+ min-height: 2.5rem;
298
+ }
299
+
317
300
  .univer-min-h-12 {
318
301
  min-height: 3rem;
319
302
  }
@@ -322,10 +305,6 @@
322
305
  min-height: 4rem;
323
306
  }
324
307
 
325
- .univer-w-0 {
326
- width: 0;
327
- }
328
-
329
308
  .univer-w-2 {
330
309
  width: .5rem;
331
310
  }
@@ -412,10 +391,6 @@
412
391
  animation: 1s linear infinite univer-spin;
413
392
  }
414
393
 
415
- .univer-cursor-not-allowed {
416
- cursor: not-allowed;
417
- }
418
-
419
394
  .univer-resize-none {
420
395
  resize: none;
421
396
  }
@@ -529,18 +504,6 @@
529
504
  overflow: hidden;
530
505
  }
531
506
 
532
- .univer-text-ellipsis {
533
- text-overflow: ellipsis;
534
- }
535
-
536
- .univer-whitespace-nowrap {
537
- white-space: nowrap;
538
- }
539
-
540
- .\!univer-rounded {
541
- border-radius: .25rem !important;
542
- }
543
-
544
507
  .\!univer-rounded-lg {
545
508
  border-radius: .5rem !important;
546
509
  }
@@ -605,10 +568,6 @@
605
568
  border-color: var(--univer-gray-200) !important;
606
569
  }
607
570
 
608
- .\!univer-border-transparent {
609
- border-color: #0000 !important;
610
- }
611
-
612
571
  .univer-border-current {
613
572
  border-color: currentColor;
614
573
  }
@@ -685,11 +644,6 @@
685
644
  padding: .75rem;
686
645
  }
687
646
 
688
- .\!univer-px-1 {
689
- padding-left: .25rem !important;
690
- padding-right: .25rem !important;
691
- }
692
-
693
647
  .\!univer-px-3 {
694
648
  padding-left: .75rem !important;
695
649
  padding-right: .75rem !important;
@@ -762,6 +716,10 @@
762
716
  text-align: center;
763
717
  }
764
718
 
719
+ .univer-text-start {
720
+ text-align: left;
721
+ }
722
+
765
723
  .univer-font-sans {
766
724
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
767
725
  }
@@ -866,6 +824,10 @@
866
824
  color: var(--univer-gray-900);
867
825
  }
868
826
 
827
+ .univer-text-inherit {
828
+ color: inherit;
829
+ }
830
+
869
831
  .univer-text-primary-600 {
870
832
  color: var(--univer-primary-600);
871
833
  }
@@ -882,13 +844,6 @@
882
844
  opacity: .5;
883
845
  }
884
846
 
885
- .\!univer-shadow-none {
886
- --univer-tw-shadow: 0 0 #0000 !important;
887
- --univer-tw-shadow-colored: 0 0 #0000 !important;
888
- box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000 !important;
889
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
890
- }
891
-
892
847
  .univer-shadow-lg {
893
848
  --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
894
849
  --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
@@ -973,25 +928,6 @@
973
928
  }
974
929
  }
975
930
 
976
- .focus\:\!univer-border-primary-500:focus {
977
- border-color: var(--univer-primary-500) !important;
978
- }
979
-
980
- .focus\:\!univer-bg-gray-0:focus {
981
- background-color: var(--univer-gray-0) !important;
982
- }
983
-
984
- .focus\:\!univer-ring-1:focus {
985
- --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;
986
- --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(1px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color) !important;
987
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000 !important;
988
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
989
- }
990
-
991
- .focus\:\!univer-ring-primary-100:focus {
992
- --univer-tw-ring-color: var(--univer-primary-100) !important;
993
- }
994
-
995
931
  .focus-visible\:\!univer-text-red-600:focus-visible {
996
932
  color: var(--univer-red-600) !important;
997
933
  }
@@ -1031,14 +967,6 @@
1031
967
  cursor: not-allowed;
1032
968
  }
1033
969
 
1034
- .disabled\:\!univer-bg-transparent:disabled {
1035
- background-color: #0000 !important;
1036
- }
1037
-
1038
- .disabled\:univer-opacity-100:disabled {
1039
- opacity: 1;
1040
- }
1041
-
1042
970
  .disabled\:univer-opacity-40:disabled {
1043
971
  opacity: .4;
1044
972
  }
@@ -1149,14 +1077,6 @@
1149
1077
  }
1150
1078
  }
1151
1079
 
1152
- .dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
1153
- background-color: var(--univer-gray-900) !important;
1154
- }
1155
-
1156
- .dark\:focus\:\!univer-ring-primary-900:focus:where(.univer-dark, .univer-dark *) {
1157
- --univer-tw-ring-color: var(--univer-primary-900) !important;
1158
- }
1159
-
1160
1080
  .\[\&\>div\]\:univer-grid > div {
1161
1081
  display: grid;
1162
1082
  }
@@ -1168,12 +1088,3 @@
1168
1088
  .\[\&\>svg\]\:\!univer-top-0 > svg {
1169
1089
  top: 0 !important;
1170
1090
  }
1171
-
1172
- .\[\&_input\]\:\!univer-h-12 input {
1173
- height: 3rem !important;
1174
- }
1175
-
1176
- .\[\&_input\]\:\!univer-text-base input {
1177
- font-size: 1rem !important;
1178
- line-height: 1.5rem !important;
1179
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-drawing",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Preset for drawing capabilities in Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -56,19 +56,19 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/core": "1.4.0",
60
- "@univerjs/docs-drawing": "1.4.0",
61
- "@univerjs/docs-drawing-ui": "1.4.0",
62
- "@univerjs/drawing": "1.4.0",
63
- "@univerjs/drawing-ui": "1.4.0"
59
+ "@univerjs/core": "1.5.0",
60
+ "@univerjs/docs-drawing": "1.5.0",
61
+ "@univerjs/docs-drawing-ui": "1.5.0",
62
+ "@univerjs/drawing": "1.5.0",
63
+ "@univerjs/drawing-ui": "1.5.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@univerjs-infra/shared": "1.4.0",
67
- "@univerjs/presets": "1.4.0",
66
+ "@univerjs-infra/shared": "1.5.0",
67
+ "@univerjs/presets": "1.5.0",
68
68
  "react": "18.3.1",
69
69
  "react-dom": "18.3.1",
70
70
  "rxjs": "7.8.2",
71
- "tsrs": "0.20.1-ts7.1.0-beta"
71
+ "tsrs": "0.23.0-ts7.1.0-beta"
72
72
  },
73
73
  "scripts": {
74
74
  "build:bundle": "univer-cli preset build --cleanup",