@univerjs-pro/shape-editor-ui 1.3.1 → 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 (89) hide show
  1. package/README.md +7 -21
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.css +148 -92
  43. package/lib/index.js +1 -1
  44. package/lib/locale/ar-SA.js +1 -1
  45. package/lib/locale/ca-ES.js +1 -1
  46. package/lib/locale/de-DE.js +1 -1
  47. package/lib/locale/en-US.js +1 -1
  48. package/lib/locale/es-ES.js +1 -1
  49. package/lib/locale/fa-IR.js +1 -1
  50. package/lib/locale/fr-FR.js +1 -1
  51. package/lib/locale/id-ID.js +1 -1
  52. package/lib/locale/it-IT.js +1 -1
  53. package/lib/locale/ja-JP.js +1 -1
  54. package/lib/locale/ko-KR.js +1 -1
  55. package/lib/locale/pl-PL.js +1 -1
  56. package/lib/locale/pt-BR.js +1 -1
  57. package/lib/locale/ru-RU.js +1 -1
  58. package/lib/locale/sk-SK.js +1 -1
  59. package/lib/locale/vi-VN.js +1 -1
  60. package/lib/locale/zh-CN.js +1 -1
  61. package/lib/locale/zh-HK.js +1 -1
  62. package/lib/locale/zh-TW.js +1 -1
  63. package/lib/types/utils/shape-transformer-config.d.ts +2 -2
  64. package/lib/types/views/mobile-shape-editor/MobileShapeActionPanel.d.ts +1 -0
  65. package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +1 -1
  66. package/lib/types/views/shape-text-editor/types.d.ts +7 -2
  67. package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +3 -3
  68. package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +25 -25
package/lib/index.css CHANGED
@@ -67,9 +67,9 @@
67
67
  margin: 0;
68
68
  }
69
69
 
70
- .univer-mx-auto {
71
- margin-left: auto;
72
- margin-right: auto;
70
+ .-univer-mx-4 {
71
+ margin-left: -1rem;
72
+ margin-right: -1rem;
73
73
  }
74
74
 
75
75
  .univer-my-1 {
@@ -77,8 +77,9 @@
77
77
  margin-bottom: .25rem;
78
78
  }
79
79
 
80
- .univer-mb-0\.5 {
81
- margin-bottom: .125rem;
80
+ .univer-my-3 {
81
+ margin-top: .75rem;
82
+ margin-bottom: .75rem;
82
83
  }
83
84
 
84
85
  .univer-mb-1 {
@@ -109,10 +110,6 @@
109
110
  margin-right: .5rem;
110
111
  }
111
112
 
112
- .univer-mr-5 {
113
- margin-right: 1.25rem;
114
- }
115
-
116
113
  .univer-mt-1 {
117
114
  margin-top: .25rem;
118
115
  }
@@ -174,11 +171,6 @@
174
171
  height: 2.5rem;
175
172
  }
176
173
 
177
- .univer-size-12 {
178
- width: 3rem;
179
- height: 3rem;
180
- }
181
-
182
174
  .univer-size-3 {
183
175
  width: .75rem;
184
176
  height: .75rem;
@@ -209,28 +201,15 @@
209
201
  height: 68px;
210
202
  }
211
203
 
212
- .univer-size-\[88px\] {
213
- width: 88px;
214
- height: 88px;
215
- }
216
-
217
204
  .univer-size-full {
218
205
  width: 100%;
219
206
  height: 100%;
220
207
  }
221
208
 
222
- .\!univer-h-12 {
223
- height: 3rem !important;
224
- }
225
-
226
209
  .\!univer-h-6 {
227
210
  height: 1.5rem !important;
228
211
  }
229
212
 
230
- .\!univer-h-auto {
231
- height: auto !important;
232
- }
233
-
234
213
  .univer-h-0 {
235
214
  height: 0;
236
215
  }
@@ -239,10 +218,6 @@
239
218
  height: .125rem;
240
219
  }
241
220
 
242
- .univer-h-1 {
243
- height: .25rem;
244
- }
245
-
246
221
  .univer-h-1\.5 {
247
222
  height: .375rem;
248
223
  }
@@ -295,30 +270,26 @@
295
270
  height: 100px;
296
271
  }
297
272
 
298
- .univer-h-\[470px\] {
299
- height: 470px;
273
+ .univer-h-\[448px\] {
274
+ height: 448px;
300
275
  }
301
276
 
302
277
  .univer-h-\[500px\] {
303
278
  height: 500px;
304
279
  }
305
280
 
306
- .univer-h-\[620px\] {
307
- height: 620px;
308
- }
309
-
310
281
  .univer-h-\[62px\] {
311
282
  height: 62px;
312
283
  }
313
284
 
314
- .univer-h-\[92px\] {
315
- height: 92px;
316
- }
317
-
318
285
  .univer-h-\[min\(780px\,calc\(100vh-180px\)\)\] {
319
286
  height: min(780px, 100vh - 180px);
320
287
  }
321
288
 
289
+ .univer-h-auto {
290
+ height: auto;
291
+ }
292
+
322
293
  .univer-h-full {
323
294
  height: 100%;
324
295
  }
@@ -331,16 +302,16 @@
331
302
  max-height: 75vh;
332
303
  }
333
304
 
334
- .\!univer-min-h-12 {
335
- min-height: 3rem !important;
305
+ .univer-max-h-\[calc\(100vh-180px\)\] {
306
+ max-height: calc(100vh - 180px);
336
307
  }
337
308
 
338
- .univer-min-h-0 {
339
- min-height: 0;
309
+ .univer-max-h-\[min\(620px\,calc\(100vh-180px\)\)\] {
310
+ max-height: min(620px, 100vh - 180px);
340
311
  }
341
312
 
342
- .univer-min-h-10 {
343
- min-height: 2.5rem;
313
+ .univer-min-h-0 {
314
+ min-height: 0;
344
315
  }
345
316
 
346
317
  .univer-min-h-12 {
@@ -355,6 +326,10 @@
355
326
  min-height: 6rem;
356
327
  }
357
328
 
329
+ .univer-min-h-28 {
330
+ min-height: 7rem;
331
+ }
332
+
358
333
  .univer-min-h-60 {
359
334
  min-height: 15rem;
360
335
  }
@@ -391,10 +366,6 @@
391
366
  width: 0;
392
367
  }
393
368
 
394
- .univer-w-1\/2 {
395
- width: 50%;
396
- }
397
-
398
369
  .univer-w-10 {
399
370
  width: 2.5rem;
400
371
  }
@@ -423,12 +394,12 @@
423
394
  width: 8rem;
424
395
  }
425
396
 
426
- .univer-w-4 {
427
- width: 1rem;
397
+ .univer-w-36 {
398
+ width: 9rem;
428
399
  }
429
400
 
430
- .univer-w-40 {
431
- width: 10rem;
401
+ .univer-w-4 {
402
+ width: 1rem;
432
403
  }
433
404
 
434
405
  .univer-w-44 {
@@ -503,20 +474,20 @@
503
474
  width: 366px;
504
475
  }
505
476
 
506
- .univer-w-\[560px\] {
507
- width: 560px;
477
+ .univer-w-\[480px\] {
478
+ width: 480px;
508
479
  }
509
480
 
510
- .univer-w-\[72px\] {
511
- width: 72px;
481
+ .univer-w-\[600px\] {
482
+ width: 600px;
512
483
  }
513
484
 
514
- .univer-w-\[760px\] {
515
- width: 760px;
485
+ .univer-w-\[704px\] {
486
+ width: 704px;
516
487
  }
517
488
 
518
- .univer-w-\[820px\] {
519
- width: 820px;
489
+ .univer-w-\[72px\] {
490
+ width: 72px;
520
491
  }
521
492
 
522
493
  .univer-w-\[86px\] {
@@ -567,6 +538,10 @@
567
538
  max-width: 20rem;
568
539
  }
569
540
 
541
+ .univer-max-w-\[calc\(100vw-32px\)\] {
542
+ max-width: calc(100vw - 32px);
543
+ }
544
+
570
545
  .univer-max-w-\[min\(760px\,calc\(100vw-32px\)\)\] {
571
546
  max-width: min(760px, 100vw - 32px);
572
547
  }
@@ -595,10 +570,6 @@
595
570
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
596
571
  }
597
572
 
598
- .univer-cursor-default {
599
- cursor: default;
600
- }
601
-
602
573
  .univer-cursor-pointer {
603
574
  cursor: pointer;
604
575
  }
@@ -647,6 +618,14 @@
647
618
  grid-template-columns: repeat(3, minmax(0, 1fr)) 76px;
648
619
  }
649
620
 
621
+ .univer-grid-cols-\[repeat\(auto-fill\,minmax\(112px\,1fr\)\)\] {
622
+ grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
623
+ }
624
+
625
+ .univer-grid-cols-\[repeat\(auto-fill\,minmax\(96px\,1fr\)\)\] {
626
+ grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
627
+ }
628
+
650
629
  .univer-grid-rows-5 {
651
630
  grid-template-rows: repeat(5, minmax(0, 1fr));
652
631
  }
@@ -687,6 +666,10 @@
687
666
  justify-content: space-between;
688
667
  }
689
668
 
669
+ .univer-justify-stretch {
670
+ justify-content: stretch;
671
+ }
672
+
690
673
  .univer-gap-0\.5 {
691
674
  gap: .125rem;
692
675
  }
@@ -859,12 +842,12 @@
859
842
  border-bottom-width: 1px;
860
843
  }
861
844
 
862
- .univer-border-l-2 {
863
- border-left-width: 2px;
845
+ .univer-border-e {
846
+ border-right-width: 1px;
864
847
  }
865
848
 
866
- .univer-border-r {
867
- border-right-width: 1px;
849
+ .univer-border-l-2 {
850
+ border-left-width: 2px;
868
851
  }
869
852
 
870
853
  .univer-border-t {
@@ -1011,8 +994,8 @@
1011
994
  fill: var(--univer-gray-200);
1012
995
  }
1013
996
 
1014
- .univer-stroke-gray-400 {
1015
- stroke: var(--univer-gray-400);
997
+ .univer-stroke-gray-500 {
998
+ stroke: var(--univer-gray-500);
1016
999
  }
1017
1000
 
1018
1001
  .univer-object-cover {
@@ -1115,11 +1098,6 @@
1115
1098
  padding-bottom: .375rem;
1116
1099
  }
1117
1100
 
1118
- .univer-py-4 {
1119
- padding-top: 1rem;
1120
- padding-bottom: 1rem;
1121
- }
1122
-
1123
1101
  .univer-py-5 {
1124
1102
  padding-top: 1.25rem;
1125
1103
  padding-bottom: 1.25rem;
@@ -1141,6 +1119,10 @@
1141
1119
  padding-bottom: .75rem;
1142
1120
  }
1143
1121
 
1122
+ .univer-pb-4 {
1123
+ padding-bottom: 1rem;
1124
+ }
1125
+
1144
1126
  .univer-pl-3 {
1145
1127
  padding-left: .75rem;
1146
1128
  }
@@ -1169,6 +1151,10 @@
1169
1151
  text-align: center;
1170
1152
  }
1171
1153
 
1154
+ .univer-text-start {
1155
+ text-align: left;
1156
+ }
1157
+
1172
1158
  .univer-font-mono {
1173
1159
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
1174
1160
  }
@@ -1178,11 +1164,6 @@
1178
1164
  line-height: 1.5rem !important;
1179
1165
  }
1180
1166
 
1181
- .univer-text-2xl {
1182
- font-size: 1.5rem;
1183
- line-height: 2rem;
1184
- }
1185
-
1186
1167
  .univer-text-base {
1187
1168
  font-size: 1rem;
1188
1169
  line-height: 1.5rem;
@@ -1216,10 +1197,18 @@
1216
1197
  font-weight: 500;
1217
1198
  }
1218
1199
 
1200
+ .univer-font-normal {
1201
+ font-weight: 400;
1202
+ }
1203
+
1219
1204
  .univer-font-semibold {
1220
1205
  font-weight: 600;
1221
1206
  }
1222
1207
 
1208
+ .univer-leading-4 {
1209
+ line-height: 1rem;
1210
+ }
1211
+
1223
1212
  .univer-leading-5 {
1224
1213
  line-height: 1.25rem;
1225
1214
  }
@@ -1391,12 +1380,6 @@
1391
1380
  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);
1392
1381
  }
1393
1382
 
1394
- .univer-transition-all {
1395
- transition-property: all;
1396
- transition-duration: .15s;
1397
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1398
- }
1399
-
1400
1383
  .univer-transition-colors {
1401
1384
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1402
1385
  transition-duration: .15s;
@@ -1417,6 +1400,18 @@
1417
1400
  animation-fill-mode: backwards;
1418
1401
  }
1419
1402
 
1403
+ .last\:univer-mb-0:last-child {
1404
+ margin-bottom: 0;
1405
+ }
1406
+
1407
+ .last\:univer-border-b-0:last-child {
1408
+ border-bottom-width: 0;
1409
+ }
1410
+
1411
+ .last\:univer-pb-0:last-child {
1412
+ padding-bottom: 0;
1413
+ }
1414
+
1420
1415
  @media (hover: hover) and (pointer: fine) {
1421
1416
  .univer-group:hover .group-hover\:univer-block {
1422
1417
  display: block;
@@ -1471,6 +1466,11 @@
1471
1466
  }
1472
1467
  }
1473
1468
 
1469
+ .focus\:univer-outline-none:focus {
1470
+ outline-offset: 2px;
1471
+ outline: 2px solid #0000;
1472
+ }
1473
+
1474
1474
  .focus\:\!univer-ring-0:focus {
1475
1475
  --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;
1476
1476
  --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(0px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color) !important;
@@ -1478,6 +1478,21 @@
1478
1478
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
1479
1479
  }
1480
1480
 
1481
+ .focus\:univer-ring-2:focus {
1482
+ --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);
1483
+ --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);
1484
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
1485
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
1486
+ }
1487
+
1488
+ .focus\:univer-ring-inset:focus {
1489
+ --univer-tw-ring-inset: inset;
1490
+ }
1491
+
1492
+ .focus\:univer-ring-primary-500:focus {
1493
+ --univer-tw-ring-color: var(--univer-primary-500);
1494
+ }
1495
+
1481
1496
  .active\:univer-scale-95:active {
1482
1497
  --univer-tw-scale-x: .95;
1483
1498
  --univer-tw-scale-y: .95;
@@ -1576,6 +1591,10 @@
1576
1591
  border-color: var(--univer-gray-300) !important;
1577
1592
  }
1578
1593
 
1594
+ .dark\:\!univer-border-gray-500:where(.univer-dark, .univer-dark *) {
1595
+ border-color: var(--univer-gray-500) !important;
1596
+ }
1597
+
1579
1598
  .dark\:\!univer-border-gray-600:where(.univer-dark, .univer-dark *) {
1580
1599
  border-color: var(--univer-gray-600) !important;
1581
1600
  }
@@ -1604,6 +1623,14 @@
1604
1623
  background-color: var(--univer-gray-900) !important;
1605
1624
  }
1606
1625
 
1626
+ .dark\:\!univer-fill-gray-700:where(.univer-dark, .univer-dark *) {
1627
+ fill: var(--univer-gray-700) !important;
1628
+ }
1629
+
1630
+ .dark\:\!univer-stroke-gray-400:where(.univer-dark, .univer-dark *) {
1631
+ stroke: var(--univer-gray-400) !important;
1632
+ }
1633
+
1607
1634
  .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
1608
1635
  color: var(--univer-gray-0) !important;
1609
1636
  }
@@ -1644,7 +1671,15 @@
1644
1671
  color: var(--univer-red-400) !important;
1645
1672
  }
1646
1673
 
1674
+ .dark\:\!univer-ring-primary-800:where(.univer-dark, .univer-dark *) {
1675
+ --univer-tw-ring-color: var(--univer-primary-800) !important;
1676
+ }
1677
+
1647
1678
  @media (hover: hover) and (pointer: fine) {
1679
+ .dark\:hover\:\!univer-border-gray-500:hover:where(.univer-dark, .univer-dark *) {
1680
+ border-color: var(--univer-gray-500) !important;
1681
+ }
1682
+
1648
1683
  .dark\:hover\:\!univer-border-gray-600:hover:where(.univer-dark, .univer-dark *) {
1649
1684
  border-color: var(--univer-gray-600) !important;
1650
1685
  }
@@ -1746,6 +1781,19 @@
1746
1781
  height: 1.5rem;
1747
1782
  }
1748
1783
 
1784
+ .\[\&_button\]\:univer-whitespace-normal button {
1785
+ white-space: normal;
1786
+ }
1787
+
1788
+ .\[\&_button\]\:univer-break-words button {
1789
+ word-wrap: break-word;
1790
+ }
1791
+
1792
+ .\[\&_button\]\:univer-px-2 button {
1793
+ padding-left: .5rem;
1794
+ padding-right: .5rem;
1795
+ }
1796
+
1749
1797
  .\[\&_input\]\:univer-box-border input {
1750
1798
  box-sizing: border-box;
1751
1799
  }
@@ -1758,9 +1806,17 @@
1758
1806
  padding: 0;
1759
1807
  }
1760
1808
 
1761
- .\[\&_input\]\:\!univer-text-base input {
1762
- font-size: 1rem !important;
1763
- line-height: 1.5rem !important;
1809
+ .\[\&_svg\]\:univer-size-8 svg {
1810
+ width: 2rem;
1811
+ height: 2rem;
1812
+ }
1813
+
1814
+ .\[\&_svg\]\:univer-h-16 svg {
1815
+ height: 4rem;
1816
+ }
1817
+
1818
+ .\[\&_svg\]\:univer-w-full svg {
1819
+ width: 100%;
1764
1820
  }
1765
1821
 
1766
1822
  [data-u-comp="ribbon-grid-toolbar"] .\[\[data-u-comp\=\'ribbon-grid-toolbar\'\]_\&\]\:univer-grid {