@univerjs/ui 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.
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
- // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
6
+ // \0@oxc-project+runtime@0.157.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) {
@@ -13,25 +13,25 @@ function _typeof(o) {
13
13
  }, _typeof(o);
14
14
  }
15
15
 
16
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
17
- function toPrimitive(t, r) {
16
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
17
+ function toPrimitive(t, e) {
18
18
  if ("object" != _typeof(t) || !t) return t;
19
- var e = t[Symbol.toPrimitive];
20
- if (void 0 !== e) {
21
- var i = e.call(t, r || "default");
19
+ var r;
20
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
21
+ var i = r.call(t, e || "default");
22
22
  if ("object" != _typeof(i)) return i;
23
23
  throw new TypeError("@@toPrimitive must return a primitive value.");
24
24
  }
25
- return ("string" === r ? String : Number)(t);
25
+ return ("string" === e ? String : Number)(t);
26
26
  }
27
27
 
28
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
28
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
29
29
  function toPropertyKey(t) {
30
30
  var i = toPrimitive(t, "string");
31
31
  return "symbol" == _typeof(i) ? i : i + "";
32
32
  }
33
33
 
34
- // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
34
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
35
35
  function _defineProperty(e, r, t) {
36
36
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
37
37
  value: t,
@@ -41,14 +41,14 @@ function _defineProperty(e, r, t) {
41
41
  }) : e[r] = t, e;
42
42
  }
43
43
 
44
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
44
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
45
45
  function __decorateParam(paramIndex, decorator) {
46
46
  return function(target, key) {
47
47
  decorator(target, key, paramIndex);
48
48
  };
49
49
  }
50
50
 
51
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
51
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
52
52
  function __decorate(decorators, target, key, desc) {
53
53
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
54
54
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
package/lib/index.css CHANGED
@@ -1409,6 +1409,10 @@
1409
1409
  padding-top: .75rem;
1410
1410
  }
1411
1411
 
1412
+ .univer-pt-4 {
1413
+ padding-top: 1rem;
1414
+ }
1415
+
1412
1416
  .univer-text-left {
1413
1417
  text-align: left;
1414
1418
  }
@@ -1968,6 +1972,10 @@
1968
1972
  margin-right: auto;
1969
1973
  }
1970
1974
 
1975
+ .rtl\:univer-divide-x-reverse:where([dir="rtl"], [dir="rtl"] *) > :not([hidden]) ~ :not([hidden]) {
1976
+ --univer-tw-divide-x-reverse: 1;
1977
+ }
1978
+
1971
1979
  .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
1972
1980
  border-top-left-radius: .25rem;
1973
1981
  border-bottom-left-radius: .25rem;
@@ -2522,18 +2530,10 @@
2522
2530
  margin: 0 !important;
2523
2531
  }
2524
2532
 
2525
- .\[\&_button\]\:\!univer-h-12 button {
2526
- height: 3rem !important;
2527
- }
2528
-
2529
2533
  .\[\&_button\]\:\!univer-h-8 button {
2530
2534
  height: 2rem !important;
2531
2535
  }
2532
2536
 
2533
- .\[\&_button\]\:\!univer-min-h-10 button {
2534
- min-height: 2.5rem !important;
2535
- }
2536
-
2537
2537
  .\[\&_button\]\:\!univer-w-full button {
2538
2538
  width: 100% !important;
2539
2539
  }
@@ -2596,11 +2596,6 @@
2596
2596
  padding-right: 1rem !important;
2597
2597
  }
2598
2598
 
2599
- .\[\&_button\]\:\!univer-text-base button {
2600
- font-size: 1rem !important;
2601
- line-height: 1.5rem !important;
2602
- }
2603
-
2604
2599
  .\[\&_button\]\:\!univer-leading-none button {
2605
2600
  line-height: 1 !important;
2606
2601
  }
@@ -2675,11 +2670,6 @@
2675
2670
  text-align: center;
2676
2671
  }
2677
2672
 
2678
- .\[\&_input\]\:\!univer-text-base input {
2679
- font-size: 1rem !important;
2680
- line-height: 1.5rem !important;
2681
- }
2682
-
2683
2673
  .\[\&_input\]\:univer-text-sm input {
2684
2674
  font-size: .875rem;
2685
2675
  line-height: 1.25rem;
@@ -2707,11 +2697,6 @@
2707
2697
  outline: 2px solid #0000 !important;
2708
2698
  }
2709
2699
 
2710
- .\[\&_select\]\:\!univer-text-base select {
2711
- font-size: 1rem !important;
2712
- line-height: 1.5rem !important;
2713
- }
2714
-
2715
2700
  .\[\&_svg\]\:univer-size-5 svg {
2716
2701
  width: 1.25rem;
2717
2702
  height: 1.25rem;
@@ -2720,8 +2705,3 @@
2720
2705
  .\[\&_svg\]\:univer-shrink-0 svg {
2721
2706
  flex-shrink: 0;
2722
2707
  }
2723
-
2724
- .\[\&_textarea\]\:\!univer-text-base textarea {
2725
- font-size: 1rem !important;
2726
- line-height: 1.5rem !important;
2727
- }