@univerjs/ui 1.0.4 → 1.2.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.
package/lib/facade.js CHANGED
@@ -3,7 +3,7 @@ import { FBase, FEnum, FUniver } from "@univerjs/core/facade";
3
3
  import { IRenderManagerService } from "@univerjs/engine-render";
4
4
  import { BuiltInUIPart, ComponentManager, CopyCommand, IDialogService, IFontService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, IUIPartsService, KeyCode, MenuItemType, MenuManagerPosition, PasteCommand, RibbonPosition, RibbonStartGroup, UI_PLUGIN_CONFIG_KEY, connectInjector } from "@univerjs/ui";
5
5
 
6
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/typeof.js
6
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
7
7
  function _typeof(o) {
8
8
  "@babel/helpers - typeof";
9
9
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -14,7 +14,7 @@ function _typeof(o) {
14
14
  }
15
15
 
16
16
  //#endregion
17
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPrimitive.js
17
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
18
18
  function toPrimitive(t, r) {
19
19
  if ("object" != _typeof(t) || !t) return t;
20
20
  var e = t[Symbol.toPrimitive];
@@ -27,14 +27,14 @@ function toPrimitive(t, r) {
27
27
  }
28
28
 
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/toPropertyKey.js
30
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
31
31
  function toPropertyKey(t) {
32
32
  var i = toPrimitive(t, "string");
33
33
  return "symbol" == _typeof(i) ? i : i + "";
34
34
  }
35
35
 
36
36
  //#endregion
37
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/defineProperty.js
37
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
38
38
  function _defineProperty(e, r, t) {
39
39
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40
40
  value: t,
@@ -45,7 +45,7 @@ function _defineProperty(e, r, t) {
45
45
  }
46
46
 
47
47
  //#endregion
48
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorateParam.js
48
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
49
49
  function __decorateParam(paramIndex, decorator) {
50
50
  return function(target, key) {
51
51
  decorator(target, key, paramIndex);
@@ -53,7 +53,7 @@ function __decorateParam(paramIndex, decorator) {
53
53
  }
54
54
 
55
55
  //#endregion
56
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorate.js
56
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
57
57
  function __decorate(decorators, target, key, desc) {
58
58
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
59
59
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
package/lib/index.css CHANGED
@@ -52,10 +52,6 @@
52
52
  right: .75rem;
53
53
  }
54
54
 
55
- .\!univer-bottom-0 {
56
- bottom: 0 !important;
57
- }
58
-
59
55
  .\!univer-bottom-0\.5 {
60
56
  bottom: .125rem !important;
61
57
  }
@@ -565,10 +561,6 @@
565
561
  min-width: 3.5rem;
566
562
  }
567
563
 
568
- .univer-min-w-16 {
569
- min-width: 4rem;
570
- }
571
-
572
564
  .univer-min-w-44 {
573
565
  min-width: 11rem;
574
566
  }
@@ -613,6 +605,10 @@
613
605
  max-width: 32%;
614
606
  }
615
607
 
608
+ .univer-max-w-\[50\%\] {
609
+ max-width: 50%;
610
+ }
611
+
616
612
  .univer-max-w-\[560px\] {
617
613
  max-width: 560px;
618
614
  }
@@ -1146,6 +1142,10 @@
1146
1142
  background-color: var(--univer-primary-50);
1147
1143
  }
1148
1144
 
1145
+ .univer-bg-primary-500 {
1146
+ background-color: var(--univer-primary-500);
1147
+ }
1148
+
1149
1149
  .univer-bg-primary-600 {
1150
1150
  background-color: var(--univer-primary-600);
1151
1151
  }
@@ -1484,11 +1484,6 @@
1484
1484
  color: var(--univer-primary-700);
1485
1485
  }
1486
1486
 
1487
- .univer-text-slate-200 {
1488
- --univer-tw-text-opacity: 1;
1489
- color: rgba(226, 232, 240, var(--univer-tw-text-opacity, 1));
1490
- }
1491
-
1492
1487
  .univer-underline {
1493
1488
  text-decoration-line: underline;
1494
1489
  }
@@ -1562,11 +1557,6 @@
1562
1557
  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);
1563
1558
  }
1564
1559
 
1565
- .univer-backdrop-blur-xl {
1566
- --univer-tw-backdrop-blur: blur(24px);
1567
- 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);
1568
- }
1569
-
1570
1560
  .\!univer-transition-none {
1571
1561
  transition-property: none !important;
1572
1562
  }
@@ -1712,6 +1702,10 @@
1712
1702
  background-color: var(--univer-gray-50);
1713
1703
  }
1714
1704
 
1705
+ .hover\:univer-bg-primary-500:hover {
1706
+ background-color: var(--univer-primary-500);
1707
+ }
1708
+
1715
1709
  .hover\:univer-bg-transparent:hover {
1716
1710
  background-color: #0000;
1717
1711
  }
@@ -1756,6 +1750,10 @@
1756
1750
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
1757
1751
  }
1758
1752
 
1753
+ .focus\:univer-ring-primary-500:focus {
1754
+ --univer-tw-ring-color: var(--univer-primary-500);
1755
+ }
1756
+
1759
1757
  .focus-visible\:univer-outline-none:focus-visible {
1760
1758
  outline-offset: 2px;
1761
1759
  outline: 2px solid #0000;
@@ -1803,6 +1801,10 @@
1803
1801
  background-color: var(--univer-gray-200);
1804
1802
  }
1805
1803
 
1804
+ .active\:univer-bg-primary-500:active {
1805
+ background-color: var(--univer-primary-500);
1806
+ }
1807
+
1806
1808
  .enabled\:active\:univer-scale-\[0\.98\]:active:enabled {
1807
1809
  --univer-tw-scale-x: .98;
1808
1810
  --univer-tw-scale-y: .98;
@@ -2059,6 +2061,10 @@
2059
2061
  background-color: var(--univer-gray-900) !important;
2060
2062
  }
2061
2063
 
2064
+ .dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
2065
+ --univer-tw-ring-color: var(--univer-primary-300) !important;
2066
+ }
2067
+
2062
2068
  .dark\:active\:\!univer-bg-gray-600:active:where(.univer-dark, .univer-dark *) {
2063
2069
  background-color: var(--univer-gray-600) !important;
2064
2070
  }
@@ -2492,6 +2498,10 @@
2492
2498
  outline: 2px solid #0000 !important;
2493
2499
  }
2494
2500
 
2501
+ .\[\&_button\]\:\!\[font-family\:inherit\] button {
2502
+ font-family: inherit !important;
2503
+ }
2504
+
2495
2505
  .\[\&_button_svg\]\:\!univer-size-5 button svg {
2496
2506
  width: 1.25rem !important;
2497
2507
  height: 1.25rem !important;