@univerjs/preset-sheets-advanced 1.0.0-alpha.7 → 1.0.0-alpha.8

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.
package/lib/cjs/index.js CHANGED
@@ -127,14 +127,6 @@ Object.keys(_univerjs_pro_sheets_exchange_client).forEach(function (k) {
127
127
  });
128
128
  });
129
129
 
130
- var _univerjs_pro_sheets_graphics = require("@univerjs-pro/sheets-graphics");
131
- Object.keys(_univerjs_pro_sheets_graphics).forEach(function (k) {
132
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
133
- enumerable: true,
134
- get: function () { return _univerjs_pro_sheets_graphics[k]; }
135
- });
136
- });
137
-
138
130
  Object.keys(_univerjs_pro_sheets_outline).forEach(function (k) {
139
131
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
140
132
  enumerable: true,
package/lib/es/index.js CHANGED
@@ -57,8 +57,6 @@ export * from "@univerjs-pro/engine-chart"
57
57
 
58
58
  export * from "@univerjs-pro/engine-shape"
59
59
 
60
- export * from "@univerjs-pro/sheets-graphics"
61
-
62
60
  //#region src/preset.ts
63
61
  /**
64
62
  * This presets helps you to create a Univer sheet with open sourced features.
package/lib/index.css CHANGED
@@ -366,10 +366,6 @@
366
366
  right: 0;
367
367
  }
368
368
 
369
- .-univer-top-3 {
370
- top: -.75rem;
371
- }
372
-
373
369
  .univer-bottom-full {
374
370
  bottom: 100%;
375
371
  }
@@ -378,10 +374,6 @@
378
374
  left: 0;
379
375
  }
380
376
 
381
- .univer-left-1\/2 {
382
- left: 50%;
383
- }
384
-
385
377
  .univer-top-full {
386
378
  top: 100%;
387
379
  }
@@ -472,6 +464,11 @@
472
464
  aspect-ratio: 1;
473
465
  }
474
466
 
467
+ .univer-size-2 {
468
+ width: .5rem;
469
+ height: .5rem;
470
+ }
471
+
475
472
  .univer-size-4 {
476
473
  width: 1rem;
477
474
  height: 1rem;
@@ -507,12 +504,12 @@
507
504
  height: 3.5rem;
508
505
  }
509
506
 
510
- .univer-h-28 {
511
- height: 7rem;
507
+ .univer-h-2 {
508
+ height: .5rem;
512
509
  }
513
510
 
514
- .univer-h-3 {
515
- height: .75rem;
511
+ .univer-h-28 {
512
+ height: 7rem;
516
513
  }
517
514
 
518
515
  .univer-h-4 {
@@ -587,18 +584,10 @@
587
584
  width: 3.5rem;
588
585
  }
589
586
 
590
- .univer-w-16 {
591
- width: 4rem;
592
- }
593
-
594
587
  .univer-w-20 {
595
588
  width: 5rem;
596
589
  }
597
590
 
598
- .univer-w-24 {
599
- width: 6rem;
600
- }
601
-
602
591
  .univer-w-28 {
603
592
  width: 7rem;
604
593
  }
@@ -611,8 +600,8 @@
611
600
  width: 1rem;
612
601
  }
613
602
 
614
- .univer-w-40 {
615
- width: 10rem;
603
+ .univer-w-44 {
604
+ width: 11rem;
616
605
  }
617
606
 
618
607
  .univer-w-52 {
@@ -679,10 +668,6 @@
679
668
  min-width: 8rem;
680
669
  }
681
670
 
682
- .univer-min-w-40 {
683
- min-width: 10rem;
684
- }
685
-
686
671
  .univer-min-w-44 {
687
672
  min-width: 11rem;
688
673
  }
@@ -715,19 +700,13 @@
715
700
  flex-shrink: 0;
716
701
  }
717
702
 
718
- .-univer-translate-x-1\/2 {
719
- --univer-tw-translate-x: -50%;
720
- transform: translate(-50%, 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));
721
- 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));
722
- }
723
-
724
703
  .-univer-translate-y-1 {
725
704
  --univer-tw-translate-y: -.25rem;
726
705
  transform: translate(var(--univer-tw-translate-x), -.25rem) 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));
727
706
  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));
728
707
  }
729
708
 
730
- .-univer-rotate-90, .univer--rotate-90 {
709
+ .-univer-rotate-90 {
731
710
  --univer-tw-rotate: -90deg;
732
711
  transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(-90deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
733
712
  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));
@@ -916,21 +895,16 @@
916
895
  border-bottom-right-radius: 0;
917
896
  }
918
897
 
919
- .univer-rounded-t-md {
920
- border-top-left-radius: .375rem;
921
- border-top-right-radius: .375rem;
922
- }
923
-
924
898
  .univer-border {
925
899
  border-width: 1px;
926
900
  }
927
901
 
928
- .univer-border-b {
929
- border-bottom-width: 1px;
902
+ .univer-border-0 {
903
+ border-width: 0;
930
904
  }
931
905
 
932
- .univer-border-b-0 {
933
- border-bottom-width: 0;
906
+ .univer-border-b {
907
+ border-bottom-width: 1px;
934
908
  }
935
909
 
936
910
  .univer-border-l-2 {
@@ -1009,6 +983,12 @@
1009
983
  background-color: var(--univer-primary-600);
1010
984
  }
1011
985
 
986
+ .univer-bg-red-950 {
987
+ --univer-tw-bg-opacity: 1;
988
+ background-color: #450a0a;
989
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
990
+ }
991
+
1012
992
  .univer-bg-transparent {
1013
993
  background-color: #0000;
1014
994
  }
@@ -1026,10 +1006,6 @@
1026
1006
  padding: .25rem !important;
1027
1007
  }
1028
1008
 
1029
- .\!univer-p-1\.5 {
1030
- padding: .375rem !important;
1031
- }
1032
-
1033
1009
  .univer-p-0 {
1034
1010
  padding: 0;
1035
1011
  }
@@ -1038,6 +1014,10 @@
1038
1014
  padding: .25rem;
1039
1015
  }
1040
1016
 
1017
+ .univer-p-1\.5 {
1018
+ padding: .375rem;
1019
+ }
1020
+
1041
1021
  .univer-p-2 {
1042
1022
  padding: .5rem;
1043
1023
  }
@@ -1207,6 +1187,18 @@
1207
1187
  color: var(--univer-primary-700);
1208
1188
  }
1209
1189
 
1190
+ .univer-text-red-500 {
1191
+ color: var(--univer-red-500);
1192
+ }
1193
+
1194
+ .univer-text-red-600 {
1195
+ color: var(--univer-red-600);
1196
+ }
1197
+
1198
+ .univer-opacity-50 {
1199
+ opacity: .5;
1200
+ }
1201
+
1210
1202
  .univer-opacity-60 {
1211
1203
  opacity: .6;
1212
1204
  }
@@ -1246,6 +1238,12 @@
1246
1238
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
1247
1239
  }
1248
1240
 
1241
+ .univer-transition {
1242
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1243
+ transition-duration: .15s;
1244
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1245
+ }
1246
+
1249
1247
  .univer-transition-colors {
1250
1248
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1251
1249
  transition-duration: .15s;
@@ -1258,12 +1256,12 @@
1258
1256
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1259
1257
  }
1260
1258
 
1261
- .univer-group:hover .group-hover\:univer-block {
1262
- display: block;
1259
+ .univer-duration-150 {
1260
+ transition-duration: .15s;
1263
1261
  }
1264
1262
 
1265
- .hover\:univer-border-gray-300:hover {
1266
- border-color: var(--univer-gray-300);
1263
+ .univer-group:hover .group-hover\:univer-block {
1264
+ display: block;
1267
1265
  }
1268
1266
 
1269
1267
  .hover\:univer-border-primary-600:hover {
@@ -1282,10 +1280,22 @@
1282
1280
  background-color: var(--univer-gray-50);
1283
1281
  }
1284
1282
 
1283
+ .hover\:univer-bg-red-50:hover {
1284
+ background-color: var(--univer-red-50);
1285
+ }
1286
+
1285
1287
  .hover\:univer-text-gray-700:hover {
1286
1288
  color: var(--univer-gray-700);
1287
1289
  }
1288
1290
 
1291
+ .hover\:univer-opacity-100:hover {
1292
+ opacity: 1;
1293
+ }
1294
+
1295
+ .focus-visible\:univer-opacity-100:focus-visible {
1296
+ opacity: 1;
1297
+ }
1298
+
1289
1299
  .disabled\:univer-cursor-not-allowed:disabled {
1290
1300
  cursor: not-allowed;
1291
1301
  }
@@ -1386,6 +1396,10 @@
1386
1396
  color: var(--univer-primary-300) !important;
1387
1397
  }
1388
1398
 
1399
+ .dark\:\!univer-text-red-400:where(.univer-dark, .univer-dark *) {
1400
+ color: var(--univer-red-400) !important;
1401
+ }
1402
+
1389
1403
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
1390
1404
  background-color: var(--univer-gray-700) !important;
1391
1405
  }
@@ -1394,6 +1408,12 @@
1394
1408
  background-color: var(--univer-gray-800) !important;
1395
1409
  }
1396
1410
 
1411
+ .dark\:hover\:univer-bg-red-950:hover:where(.univer-dark, .univer-dark *) {
1412
+ --univer-tw-bg-opacity: 1;
1413
+ background-color: #450a0a;
1414
+ background-color: rgba(69, 10, 10, var(--univer-tw-bg-opacity, 1));
1415
+ }
1416
+
1397
1417
  .\[\&\:\:-webkit-slider-thumb\]\:univer-size-3\.5::-webkit-slider-thumb {
1398
1418
  width: .875rem;
1399
1419
  height: .875rem;
@@ -1426,6 +1446,18 @@
1426
1446
  .\[\&\>label\]\:univer-gap-1 > label {
1427
1447
  gap: .25rem;
1428
1448
  }
1449
+
1450
+ .\[\&_input\]\:univer-box-border input {
1451
+ box-sizing: border-box;
1452
+ }
1453
+
1454
+ .\[\&_input\]\:univer-w-full input {
1455
+ width: 100%;
1456
+ }
1457
+
1458
+ .\[\&_input\]\:univer-p-0 input {
1459
+ padding: 0;
1460
+ }
1429
1461
  .univer-absolute {
1430
1462
  position: absolute;
1431
1463
  }
@@ -1442,11 +1474,6 @@
1442
1474
  top: .5rem;
1443
1475
  }
1444
1476
 
1445
- .-univer-mx-4 {
1446
- margin-left: -1rem;
1447
- margin-right: -1rem;
1448
- }
1449
-
1450
1477
  .univer-my-2 {
1451
1478
  margin-top: .5rem;
1452
1479
  margin-bottom: .5rem;
@@ -1468,6 +1495,10 @@
1468
1495
  margin-left: .75rem;
1469
1496
  }
1470
1497
 
1498
+ .univer-ml-auto {
1499
+ margin-left: auto;
1500
+ }
1501
+
1471
1502
  .univer-mr-2 {
1472
1503
  margin-right: .5rem;
1473
1504
  }
@@ -1508,6 +1539,11 @@
1508
1539
  display: grid;
1509
1540
  }
1510
1541
 
1542
+ .\!univer-size-6 {
1543
+ width: 1.5rem !important;
1544
+ height: 1.5rem !important;
1545
+ }
1546
+
1511
1547
  .univer-size-4 {
1512
1548
  width: 1rem;
1513
1549
  height: 1rem;
@@ -1518,11 +1554,6 @@
1518
1554
  height: 1.5rem;
1519
1555
  }
1520
1556
 
1521
- .univer-size-full {
1522
- width: 100%;
1523
- height: 100%;
1524
- }
1525
-
1526
1557
  .univer-h-4 {
1527
1558
  height: 1rem;
1528
1559
  }
@@ -1547,6 +1578,10 @@
1547
1578
  height: 26px;
1548
1579
  }
1549
1580
 
1581
+ .univer-min-h-8 {
1582
+ min-height: 2rem;
1583
+ }
1584
+
1550
1585
  .univer-w-\[--radix-popper-anchor-width\] {
1551
1586
  width: var(--radix-popper-anchor-width);
1552
1587
  }
@@ -1571,6 +1606,10 @@
1571
1606
  min-width: 0 !important;
1572
1607
  }
1573
1608
 
1609
+ .univer-min-w-0 {
1610
+ min-width: 0;
1611
+ }
1612
+
1574
1613
  .univer-flex-1 {
1575
1614
  flex: 1;
1576
1615
  }
@@ -1587,6 +1626,10 @@
1587
1626
  cursor: pointer;
1588
1627
  }
1589
1628
 
1629
+ .univer-grid-cols-2 {
1630
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1631
+ }
1632
+
1590
1633
  .univer-grid-cols-4 {
1591
1634
  grid-template-columns: repeat(4, minmax(0, 1fr));
1592
1635
  }
@@ -1631,6 +1674,10 @@
1631
1674
  gap: .625rem;
1632
1675
  }
1633
1676
 
1677
+ .univer-gap-3 {
1678
+ gap: .75rem;
1679
+ }
1680
+
1634
1681
  .univer-gap-4 {
1635
1682
  gap: 1rem;
1636
1683
  }
@@ -1639,8 +1686,10 @@
1639
1686
  justify-self: end;
1640
1687
  }
1641
1688
 
1642
- .univer-overflow-auto {
1643
- overflow: auto;
1689
+ .univer-truncate {
1690
+ text-overflow: ellipsis;
1691
+ white-space: nowrap;
1692
+ overflow: hidden;
1644
1693
  }
1645
1694
 
1646
1695
  .univer-rounded-lg {
@@ -1762,6 +1811,10 @@
1762
1811
  color: var(--univer-primary-600);
1763
1812
  }
1764
1813
 
1814
+ .univer-text-red-500 {
1815
+ color: var(--univer-red-500);
1816
+ }
1817
+
1765
1818
  .univer-shadow {
1766
1819
  --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
1767
1820
  --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
@@ -1811,6 +1864,10 @@
1811
1864
  --univer-tw-ring-color: var(--univer-primary-50);
1812
1865
  }
1813
1866
 
1867
+ .dark\:\!univer-border-gray-600:where(.univer-dark, .univer-dark *) {
1868
+ border-color: var(--univer-gray-600) !important;
1869
+ }
1870
+
1814
1871
  .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
1815
1872
  border-color: var(--univer-gray-700) !important;
1816
1873
  }
package/lib/index.js CHANGED
@@ -57,8 +57,6 @@ export * from "@univerjs-pro/engine-chart"
57
57
 
58
58
  export * from "@univerjs-pro/engine-shape"
59
59
 
60
- export * from "@univerjs-pro/sheets-graphics"
61
-
62
60
  //#region src/preset.ts
63
61
  /**
64
62
  * This presets helps you to create a Univer sheet with open sourced features.
@@ -8,7 +8,6 @@ export * from '@univerjs-pro/license';
8
8
  export * from '@univerjs-pro/sheets-chart';
9
9
  export * from '@univerjs-pro/sheets-chart-ui';
10
10
  export * from '@univerjs-pro/sheets-exchange-client';
11
- export * from '@univerjs-pro/sheets-graphics';
12
11
  export * from '@univerjs-pro/sheets-outline';
13
12
  export * from '@univerjs-pro/sheets-outline-ui';
14
13
  export * from '@univerjs-pro/sheets-pivot';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-advanced",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "private": false,
5
5
  "description": "Preset for advanced Univer Sheets with charts, pivot tables, and print capabilities.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,37 +61,36 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/engine-chart": "1.0.0-alpha.7",
65
- "@univerjs-pro/engine-formula": "1.0.0-alpha.7",
66
- "@univerjs-pro/engine-pivot": "1.0.0-alpha.7",
67
- "@univerjs-pro/engine-shape": "1.0.0-alpha.7",
68
- "@univerjs-pro/collaboration": "1.0.0-alpha.7",
69
- "@univerjs-pro/license": "1.0.0-alpha.7",
70
- "@univerjs-pro/print": "1.0.0-alpha.7",
71
- "@univerjs-pro/exchange-client": "1.0.0-alpha.7",
72
- "@univerjs-pro/shape-editor-ui": "1.0.0-alpha.7",
73
- "@univerjs-pro/sheets-chart-ui": "1.0.0-alpha.7",
74
- "@univerjs-pro/sheets-exchange-client": "1.0.0-alpha.7",
75
- "@univerjs-pro/sheets-graphics": "1.0.0-alpha.7",
76
- "@univerjs-pro/sheets-outline": "1.0.0-alpha.7",
77
- "@univerjs-pro/sheets-chart": "1.0.0-alpha.7",
78
- "@univerjs-pro/sheets-outline-ui": "1.0.0-alpha.7",
79
- "@univerjs-pro/sheets-pivot": "1.0.0-alpha.7",
80
- "@univerjs-pro/sheets-pivot-ui": "1.0.0-alpha.7",
81
- "@univerjs-pro/sheets-print": "1.0.0-alpha.7",
82
- "@univerjs-pro/sheets-shape": "1.0.0-alpha.7",
83
- "@univerjs-pro/sheets-shape-ui": "1.0.0-alpha.7",
84
- "@univerjs-pro/sheets-sparkline-ui": "1.0.0-alpha.7",
85
- "@univerjs-pro/sheets-sparkline": "1.0.0-alpha.7"
64
+ "@univerjs-pro/collaboration": "1.0.0-alpha.8",
65
+ "@univerjs-pro/engine-chart": "1.0.0-alpha.8",
66
+ "@univerjs-pro/engine-formula": "1.0.0-alpha.8",
67
+ "@univerjs-pro/engine-pivot": "1.0.0-alpha.8",
68
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.8",
69
+ "@univerjs-pro/exchange-client": "1.0.0-alpha.8",
70
+ "@univerjs-pro/license": "1.0.0-alpha.8",
71
+ "@univerjs-pro/print": "1.0.0-alpha.8",
72
+ "@univerjs-pro/sheets-chart": "1.0.0-alpha.8",
73
+ "@univerjs-pro/sheets-chart-ui": "1.0.0-alpha.8",
74
+ "@univerjs-pro/sheets-exchange-client": "1.0.0-alpha.8",
75
+ "@univerjs-pro/sheets-outline": "1.0.0-alpha.8",
76
+ "@univerjs-pro/shape-editor-ui": "1.0.0-alpha.8",
77
+ "@univerjs-pro/sheets-outline-ui": "1.0.0-alpha.8",
78
+ "@univerjs-pro/sheets-pivot": "1.0.0-alpha.8",
79
+ "@univerjs-pro/sheets-pivot-ui": "1.0.0-alpha.8",
80
+ "@univerjs-pro/sheets-shape": "1.0.0-alpha.8",
81
+ "@univerjs-pro/sheets-print": "1.0.0-alpha.8",
82
+ "@univerjs-pro/sheets-shape-ui": "1.0.0-alpha.8",
83
+ "@univerjs-pro/sheets-sparkline": "1.0.0-alpha.8",
84
+ "@univerjs-pro/sheets-sparkline-ui": "1.0.0-alpha.8"
86
85
  },
87
86
  "devDependencies": {
88
87
  "react": "18.3.1",
89
88
  "react-dom": "18.3.1",
90
89
  "rxjs": "^7.8.2",
91
90
  "typescript": "^6.0.3",
92
- "@univerjs-infra/shared": "1.0.0-alpha.7",
93
- "@univerjs/core": "1.0.0-alpha.7",
94
- "@univerjs/presets": "1.0.0-alpha.7"
91
+ "@univerjs/core": "1.0.0-alpha.8",
92
+ "@univerjs-infra/shared": "1.0.0-alpha.8",
93
+ "@univerjs/presets": "1.0.0-alpha.8"
95
94
  },
96
95
  "scripts": {
97
96
  "build:bundle": "univer-cli preset build --cleanup",