@univerjs/preset-sheets-drawing 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.
Files changed (3) hide show
  1. package/README.md +3 -5
  2. package/lib/index.css +12 -88
  3. package/package.json +10 -10
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-drawing` | Yes | Yes | Yes |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/preset-sheets-drawing` | — | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,8 +20,6 @@ pnpm add @univerjs/preset-sheets-drawing
20
20
  npm install @univerjs/preset-sheets-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
@@ -126,10 +126,6 @@
126
126
  height: 1rem !important;
127
127
  }
128
128
 
129
- .\!univer-h-7 {
130
- height: 1.75rem !important;
131
- }
132
-
133
129
  .\!univer-h-8 {
134
130
  height: 2rem !important;
135
131
  }
@@ -146,10 +142,6 @@
146
142
  height: 2.75rem;
147
143
  }
148
144
 
149
- .univer-h-12 {
150
- height: 3rem;
151
- }
152
-
153
145
  .univer-h-6 {
154
146
  height: 1.5rem;
155
147
  }
@@ -174,6 +166,10 @@
174
166
  min-height: 0;
175
167
  }
176
168
 
169
+ .univer-min-h-10 {
170
+ min-height: 2.5rem;
171
+ }
172
+
177
173
  .univer-min-h-12 {
178
174
  min-height: 3rem;
179
175
  }
@@ -182,10 +178,6 @@
182
178
  min-height: 4rem;
183
179
  }
184
180
 
185
- .univer-w-0 {
186
- width: 0;
187
- }
188
-
189
181
  .univer-w-2 {
190
182
  width: .5rem;
191
183
  }
@@ -272,10 +264,6 @@
272
264
  animation: 1s linear infinite univer-spin;
273
265
  }
274
266
 
275
- .univer-cursor-not-allowed {
276
- cursor: not-allowed;
277
- }
278
-
279
267
  .univer-resize-none {
280
268
  resize: none;
281
269
  }
@@ -389,18 +377,6 @@
389
377
  overflow: hidden;
390
378
  }
391
379
 
392
- .univer-text-ellipsis {
393
- text-overflow: ellipsis;
394
- }
395
-
396
- .univer-whitespace-nowrap {
397
- white-space: nowrap;
398
- }
399
-
400
- .\!univer-rounded {
401
- border-radius: .25rem !important;
402
- }
403
-
404
380
  .\!univer-rounded-lg {
405
381
  border-radius: .5rem !important;
406
382
  }
@@ -465,10 +441,6 @@
465
441
  border-color: var(--univer-gray-200) !important;
466
442
  }
467
443
 
468
- .\!univer-border-transparent {
469
- border-color: #0000 !important;
470
- }
471
-
472
444
  .univer-border-current {
473
445
  border-color: currentColor;
474
446
  }
@@ -545,11 +517,6 @@
545
517
  padding: .75rem;
546
518
  }
547
519
 
548
- .\!univer-px-1 {
549
- padding-left: .25rem !important;
550
- padding-right: .25rem !important;
551
- }
552
-
553
520
  .\!univer-px-3 {
554
521
  padding-left: .75rem !important;
555
522
  padding-right: .75rem !important;
@@ -622,6 +589,10 @@
622
589
  text-align: center;
623
590
  }
624
591
 
592
+ .univer-text-start {
593
+ text-align: left;
594
+ }
595
+
625
596
  .univer-font-sans {
626
597
  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;
627
598
  }
@@ -726,6 +697,10 @@
726
697
  color: var(--univer-gray-900);
727
698
  }
728
699
 
700
+ .univer-text-inherit {
701
+ color: inherit;
702
+ }
703
+
729
704
  .univer-text-primary-600 {
730
705
  color: var(--univer-primary-600);
731
706
  }
@@ -742,13 +717,6 @@
742
717
  opacity: .5;
743
718
  }
744
719
 
745
- .\!univer-shadow-none {
746
- --univer-tw-shadow: 0 0 #0000 !important;
747
- --univer-tw-shadow-colored: 0 0 #0000 !important;
748
- box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000 !important;
749
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
750
- }
751
-
752
720
  .univer-shadow-lg {
753
721
  --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
754
722
  --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
@@ -833,25 +801,6 @@
833
801
  }
834
802
  }
835
803
 
836
- .focus\:\!univer-border-primary-500:focus {
837
- border-color: var(--univer-primary-500) !important;
838
- }
839
-
840
- .focus\:\!univer-bg-gray-0:focus {
841
- background-color: var(--univer-gray-0) !important;
842
- }
843
-
844
- .focus\:\!univer-ring-1:focus {
845
- --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;
846
- --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;
847
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000 !important;
848
- box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
849
- }
850
-
851
- .focus\:\!univer-ring-primary-100:focus {
852
- --univer-tw-ring-color: var(--univer-primary-100) !important;
853
- }
854
-
855
804
  .focus-visible\:\!univer-text-red-600:focus-visible {
856
805
  color: var(--univer-red-600) !important;
857
806
  }
@@ -891,14 +840,6 @@
891
840
  cursor: not-allowed;
892
841
  }
893
842
 
894
- .disabled\:\!univer-bg-transparent:disabled {
895
- background-color: #0000 !important;
896
- }
897
-
898
- .disabled\:univer-opacity-100:disabled {
899
- opacity: 1;
900
- }
901
-
902
843
  .disabled\:univer-opacity-40:disabled {
903
844
  opacity: .4;
904
845
  }
@@ -1009,14 +950,6 @@
1009
950
  }
1010
951
  }
1011
952
 
1012
- .dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
1013
- background-color: var(--univer-gray-900) !important;
1014
- }
1015
-
1016
- .dark\:focus\:\!univer-ring-primary-900:focus:where(.univer-dark, .univer-dark *) {
1017
- --univer-tw-ring-color: var(--univer-primary-900) !important;
1018
- }
1019
-
1020
953
  .\[\&\>div\]\:univer-grid > div {
1021
954
  display: grid;
1022
955
  }
@@ -1028,15 +961,6 @@
1028
961
  .\[\&\>svg\]\:\!univer-top-0 > svg {
1029
962
  top: 0 !important;
1030
963
  }
1031
-
1032
- .\[\&_input\]\:\!univer-h-12 input {
1033
- height: 3rem !important;
1034
- }
1035
-
1036
- .\[\&_input\]\:\!univer-text-base input {
1037
- font-size: 1rem !important;
1038
- line-height: 1.5rem !important;
1039
- }
1040
964
  .univer-absolute {
1041
965
  position: absolute;
1042
966
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-drawing",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "Preset for drawing capabilities in Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -56,20 +56,20 @@
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/drawing": "1.4.0",
62
- "@univerjs/drawing-ui": "1.4.0",
63
- "@univerjs/sheets-drawing": "1.4.0",
64
- "@univerjs/sheets-drawing-ui": "1.4.0"
59
+ "@univerjs/core": "1.5.1",
60
+ "@univerjs/docs-drawing": "1.5.1",
61
+ "@univerjs/drawing": "1.5.1",
62
+ "@univerjs/drawing-ui": "1.5.1",
63
+ "@univerjs/sheets-drawing": "1.5.1",
64
+ "@univerjs/sheets-drawing-ui": "1.5.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.4.0",
68
- "@univerjs/presets": "1.4.0",
67
+ "@univerjs-infra/shared": "1.5.1",
68
+ "@univerjs/presets": "1.5.1",
69
69
  "react": "18.3.1",
70
70
  "react-dom": "18.3.1",
71
71
  "rxjs": "7.8.2",
72
- "tsrs": "0.20.1-ts7.1.0-beta"
72
+ "tsrs": "0.23.0-ts7.1.0-beta"
73
73
  },
74
74
  "scripts": {
75
75
  "build:bundle": "univer-cli preset build --cleanup",