@univerjs/ui 0.25.0 → 1.0.0-alpha.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 (85) hide show
  1. package/lib/cjs/facade.js +6 -6
  2. package/lib/cjs/index.js +4546 -3688
  3. package/lib/es/facade.js +6 -6
  4. package/lib/es/index.js +5820 -4942
  5. package/lib/facade.js +6 -6
  6. package/lib/index.css +172 -46
  7. package/lib/index.js +5820 -4942
  8. package/lib/types/common/component-manager.d.ts +3 -4
  9. package/lib/types/common/icon-manager.d.ts +86 -0
  10. package/lib/types/common/index.d.ts +1 -0
  11. package/lib/types/controllers/components.controller.d.ts +24 -0
  12. package/lib/types/controllers/menus/menus.d.ts +3 -2
  13. package/lib/types/controllers/shortcut-display/menu.d.ts +2 -1
  14. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +2 -3
  15. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +0 -1
  16. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +0 -1
  17. package/lib/types/index.d.ts +41 -29
  18. package/lib/types/locale/types.d.ts +18 -0
  19. package/lib/types/services/menu/menu-manager.service.d.ts +8 -0
  20. package/lib/types/services/menu/menu.d.ts +25 -31
  21. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -1
  22. package/lib/types/services/notification/notification.service.d.ts +1 -1
  23. package/lib/types/services/shortcut/keycode.d.ts +2 -0
  24. package/lib/types/utils/storage-driver.d.ts +26 -0
  25. package/lib/types/{components/common-label/index.d.ts → views/CommonLabel.d.ts} +1 -1
  26. package/lib/types/{components/heading-item/index.d.ts → views/HeadingItem.d.ts} +1 -1
  27. package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +1 -1
  28. package/lib/types/views/components/confirm-part/interface.d.ts +1 -1
  29. package/lib/types/views/components/context-menu/AnchoredContextMenu.d.ts +1 -1
  30. package/lib/types/views/components/context-menu/ContextMenu.d.ts +1 -1
  31. package/lib/types/views/components/context-menu/ContextMenuPanel.d.ts +19 -1
  32. package/lib/types/views/components/dialog-part/DialogPart.d.ts +1 -1
  33. package/lib/types/views/components/dialog-part/interface.d.ts +1 -1
  34. package/lib/types/views/components/dom/FloatDom.d.ts +2 -2
  35. package/lib/types/views/components/dom/Print.d.ts +1 -1
  36. package/lib/types/views/components/gallery-part/GalleryPart.d.ts +1 -1
  37. package/lib/types/views/components/popup/CanvasPopup.d.ts +2 -2
  38. package/lib/types/views/components/popup/RectPopup.d.ts +1 -1
  39. package/lib/types/views/components/ribbon/MobileRibbon.d.ts +1 -1
  40. package/lib/types/views/components/ribbon/Ribbon.d.ts +1 -1
  41. package/lib/types/views/components/ribbon/ToolbarButton.d.ts +5 -1
  42. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +9 -3
  43. package/lib/types/views/components/ribbon/hook.d.ts +1 -0
  44. package/lib/types/views/components/ribbon/ribbon-menu/ClassicMenu.d.ts +1 -1
  45. package/lib/types/views/components/ribbon/ribbon-menu/DefaultMenu.d.ts +1 -1
  46. package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +1 -1
  47. package/lib/types/views/components/sidebar/Sidebar.d.ts +2 -2
  48. package/lib/types/{components → views}/custom-label/CustomLabel.d.ts +2 -2
  49. package/lib/types/{components → views}/font-family/FontFamily.d.ts +1 -1
  50. package/lib/types/{components → views}/font-family/FontFamilyItem.d.ts +1 -1
  51. package/lib/types/{components → views}/font-size/FontSize.d.ts +1 -1
  52. package/lib/types/{components → views}/hooks/layout.d.ts +1 -1
  53. package/lib/types/{components → views}/index.d.ts +4 -4
  54. package/lib/types/{components → views}/menu/desktop/DesignTinyMenuGroup.d.ts +11 -7
  55. package/lib/types/{components → views}/menu/desktop/TinyMenuGroup.d.ts +7 -2
  56. package/lib/types/{components → views}/menu/mobile/MobileMenu.d.ts +1 -1
  57. package/lib/types/{components → views}/menu/mobile/MobileMenu.stories.d.ts +1 -1
  58. package/lib/types/views/{components/zen-zone/ZenZone.d.ts → message/MessageContainer.d.ts} +1 -1
  59. package/lib/types/views/mobile-workbench/MobileWorkbench.d.ts +3 -1
  60. package/lib/types/{components → views}/notification/Notification.d.ts +1 -1
  61. package/lib/types/{components → views}/notification/Notification.stories.d.ts +5 -5
  62. package/lib/types/{components → views}/progress-bar/ProgressBar.d.ts +1 -1
  63. package/lib/types/{components → views}/slider/Slider.d.ts +1 -1
  64. package/lib/types/{components → views}/slider/Slider.stories.d.ts +1 -1
  65. package/lib/types/views/workbench/Workbench.d.ts +4 -2
  66. package/lib/umd/index.js +25 -131
  67. package/package.json +9 -10
  68. package/lib/types/components/message/MessageContainer.d.ts +0 -16
  69. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +0 -37
  70. package/lib/types/services/zen-zone/zen-zone.service.d.ts +0 -37
  71. /package/lib/types/services/message/{__testing__ → __tests__}/mock-message.service.d.ts +0 -0
  72. /package/lib/types/{components → views}/color-picker/interface.d.ts +0 -0
  73. /package/lib/types/{components → views}/custom-label/index.d.ts +0 -0
  74. /package/lib/types/{components → views}/font-family/index.d.ts +0 -0
  75. /package/lib/types/{components → views}/font-family/interface.d.ts +0 -0
  76. /package/lib/types/{components → views}/font-size/interface.d.ts +0 -0
  77. /package/lib/types/{components → views}/hooks/event.d.ts +0 -0
  78. /package/lib/types/{components → views}/hooks/index.d.ts +0 -0
  79. /package/lib/types/{components → views}/hooks/update-effect.d.ts +0 -0
  80. /package/lib/types/{components → views}/hooks/use-click-out-side.d.ts +0 -0
  81. /package/lib/types/{components → views}/hooks/use-debounce.d.ts +0 -0
  82. /package/lib/types/{components → views}/hooks/virtual-list.d.ts +0 -0
  83. /package/lib/types/{components → views}/menu/common/hook.d.ts +0 -0
  84. /package/lib/types/{components → views}/menu/types.d.ts +0 -0
  85. /package/lib/types/{components → views}/slider/index.d.ts +0 -0
package/lib/facade.js CHANGED
@@ -3,7 +3,7 @@ import { IRenderManagerService } from "@univerjs/engine-render";
3
3
  import { BuiltInUIPart, ComponentManager, CopyCommand, IDialogService, IFontService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, IUIPartsService, KeyCode, MenuItemType, MenuManagerPosition, PasteCommand, RibbonPosition, RibbonStartGroup, SheetPasteShortKeyCommandName, connectInjector } from "@univerjs/ui";
4
4
  import { CommandType, ICommandService, IUniverInstanceService, Inject, Injector, UniverInstanceType, generateRandomId } from "@univerjs/core";
5
5
 
6
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
6
+ //#region \0@oxc-project+runtime@0.137.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.133.0/helpers/esm/toPrimitive.js
17
+ //#region \0@oxc-project+runtime@0.137.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.133.0/helpers/esm/toPropertyKey.js
30
+ //#region \0@oxc-project+runtime@0.137.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.133.0/helpers/esm/defineProperty.js
37
+ //#region \0@oxc-project+runtime@0.137.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.133.0/helpers/esm/decorateParam.js
48
+ //#region \0@oxc-project+runtime@0.137.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.133.0/helpers/esm/decorate.js
56
+ //#region \0@oxc-project+runtime@0.137.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
@@ -49,10 +49,6 @@
49
49
  left: 0;
50
50
  }
51
51
 
52
- .univer-left-1 {
53
- left: .25rem;
54
- }
55
-
56
52
  .univer-left-1\/2 {
57
53
  left: 50%;
58
54
  }
@@ -73,10 +69,6 @@
73
69
  top: 0;
74
70
  }
75
71
 
76
- .univer-top-0\.5 {
77
- top: .125rem;
78
- }
79
-
80
72
  .univer-top-1\/2 {
81
73
  top: 50%;
82
74
  }
@@ -85,10 +77,6 @@
85
77
  top: -9999px;
86
78
  }
87
79
 
88
- .univer-top-\[calc\(50\%-6px\)\] {
89
- top: calc(50% - 6px);
90
- }
91
-
92
80
  .univer-z-10 {
93
81
  z-index: 10;
94
82
  }
@@ -97,10 +85,6 @@
97
85
  z-index: 20;
98
86
  }
99
87
 
100
- .univer-z-\[-1\] {
101
- z-index: -1;
102
- }
103
-
104
88
  .univer-z-\[100\] {
105
89
  z-index: 100;
106
90
  }
@@ -135,6 +119,10 @@
135
119
  margin-bottom: 0;
136
120
  }
137
121
 
122
+ .univer-ml-auto {
123
+ margin-left: auto;
124
+ }
125
+
138
126
  .univer-mr-2 {
139
127
  margin-right: .5rem;
140
128
  }
@@ -183,9 +171,19 @@
183
171
  height: .875rem !important;
184
172
  }
185
173
 
186
- .univer-size-0\.5 {
187
- width: .125rem;
188
- height: .125rem;
174
+ .\!univer-size-4 {
175
+ width: 1rem !important;
176
+ height: 1rem !important;
177
+ }
178
+
179
+ .univer-size-1\.5 {
180
+ width: .375rem;
181
+ height: .375rem;
182
+ }
183
+
184
+ .univer-size-10 {
185
+ width: 2.5rem;
186
+ height: 2.5rem;
189
187
  }
190
188
 
191
189
  .univer-size-12 {
@@ -208,6 +206,11 @@
208
206
  height: 1rem;
209
207
  }
210
208
 
209
+ .univer-size-5 {
210
+ width: 1.25rem;
211
+ height: 1.25rem;
212
+ }
213
+
211
214
  .univer-size-6 {
212
215
  width: 1.5rem;
213
216
  height: 1.5rem;
@@ -285,6 +288,10 @@
285
288
  min-height: 0;
286
289
  }
287
290
 
291
+ .univer-min-h-10 {
292
+ min-height: 2.5rem;
293
+ }
294
+
288
295
  .univer-min-h-8 {
289
296
  min-height: 2rem;
290
297
  }
@@ -321,6 +328,10 @@
321
328
  width: 8rem;
322
329
  }
323
330
 
331
+ .univer-w-4 {
332
+ width: 1rem;
333
+ }
334
+
324
335
  .univer-w-40 {
325
336
  width: 10rem;
326
337
  }
@@ -341,6 +352,14 @@
341
352
  width: 24rem;
342
353
  }
343
354
 
355
+ .univer-w-\[52px\] {
356
+ width: 52px;
357
+ }
358
+
359
+ .univer-w-\[68px\] {
360
+ width: 68px;
361
+ }
362
+
344
363
  .univer-w-full {
345
364
  width: 100%;
346
365
  }
@@ -365,6 +384,10 @@
365
384
  min-width: 1.5rem;
366
385
  }
367
386
 
387
+ .univer-min-w-64 {
388
+ min-width: 16rem;
389
+ }
390
+
368
391
  .univer-min-w-min {
369
392
  min-width: min-content;
370
393
  }
@@ -443,6 +466,13 @@
443
466
  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));
444
467
  }
445
468
 
469
+ .univer-scale-105 {
470
+ --univer-tw-scale-x: 1.05;
471
+ --univer-tw-scale-y: 1.05;
472
+ 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(1.05) scaleY(1.05);
473
+ 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));
474
+ }
475
+
446
476
  .univer-cursor-col-resize {
447
477
  cursor: col-resize;
448
478
  }
@@ -480,6 +510,10 @@
480
510
  grid-template-columns: repeat(3, minmax(0, 1fr));
481
511
  }
482
512
 
513
+ .univer-grid-cols-6 {
514
+ grid-template-columns: repeat(6, minmax(0, 1fr));
515
+ }
516
+
483
517
  .univer-grid-cols-\[1fr\] {
484
518
  grid-template-columns: 1fr;
485
519
  }
@@ -532,6 +566,10 @@
532
566
  align-items: center;
533
567
  }
534
568
 
569
+ .univer-justify-end {
570
+ justify-content: flex-end;
571
+ }
572
+
535
573
  .univer-justify-center {
536
574
  justify-content: center;
537
575
  }
@@ -540,6 +578,18 @@
540
578
  justify-content: space-between;
541
579
  }
542
580
 
581
+ .univer-justify-items-start {
582
+ justify-items: start;
583
+ }
584
+
585
+ .univer-justify-items-center {
586
+ justify-items: center;
587
+ }
588
+
589
+ .univer-gap-0 {
590
+ gap: 0;
591
+ }
592
+
543
593
  .univer-gap-0\.5 {
544
594
  gap: .125rem;
545
595
  }
@@ -564,6 +614,10 @@
564
614
  gap: .75rem;
565
615
  }
566
616
 
617
+ .univer-gap-4 {
618
+ gap: 1rem;
619
+ }
620
+
567
621
  .univer-gap-6 {
568
622
  gap: 1.5rem;
569
623
  }
@@ -634,6 +688,10 @@
634
688
  border-radius: .375rem;
635
689
  }
636
690
 
691
+ .univer-rounded-none {
692
+ border-radius: 0;
693
+ }
694
+
637
695
  .univer-rounded-sm {
638
696
  border-radius: .125rem;
639
697
  }
@@ -681,16 +739,16 @@
681
739
  border-color: var(--univer-gray-200);
682
740
  }
683
741
 
684
- .\!univer-bg-gray-200 {
685
- background-color: var(--univer-gray-200) !important;
742
+ .univer-border-primary-600 {
743
+ border-color: var(--univer-primary-600);
686
744
  }
687
745
 
688
- .\!univer-bg-gray-500 {
689
- background-color: var(--univer-gray-500) !important;
746
+ .univer-border-white {
747
+ border-color: var(--univer-white);
690
748
  }
691
749
 
692
- .\!univer-bg-gray-900 {
693
- background-color: var(--univer-gray-900) !important;
750
+ .\!univer-bg-gray-200 {
751
+ background-color: var(--univer-gray-200) !important;
694
752
  }
695
753
 
696
754
  .univer-bg-\[rgba\(15\,23\,42\,0\.32\)\] {
@@ -760,10 +818,18 @@
760
818
  padding: 0;
761
819
  }
762
820
 
821
+ .univer-p-0\.5 {
822
+ padding: .125rem;
823
+ }
824
+
763
825
  .univer-p-1 {
764
826
  padding: .25rem;
765
827
  }
766
828
 
829
+ .univer-p-1\.5 {
830
+ padding: .375rem;
831
+ }
832
+
767
833
  .univer-p-2 {
768
834
  padding: .5rem;
769
835
  }
@@ -826,6 +892,11 @@
826
892
  padding-bottom: .375rem;
827
893
  }
828
894
 
895
+ .univer-py-2 {
896
+ padding-top: .5rem;
897
+ padding-bottom: .5rem;
898
+ }
899
+
829
900
  .univer-py-3 {
830
901
  padding-top: .75rem;
831
902
  padding-bottom: .75rem;
@@ -855,10 +926,6 @@
855
926
  padding-left: 1rem;
856
927
  }
857
928
 
858
- .univer-pl-6 {
859
- padding-left: 1.5rem;
860
- }
861
-
862
929
  .univer-pr-1\.5 {
863
930
  padding-right: .375rem;
864
931
  }
@@ -875,6 +942,10 @@
875
942
  padding-top: .25rem;
876
943
  }
877
944
 
945
+ .univer-pt-2 {
946
+ padding-top: .5rem;
947
+ }
948
+
878
949
  .univer-pt-3 {
879
950
  padding-top: .75rem;
880
951
  }
@@ -951,14 +1022,6 @@
951
1022
  letter-spacing: -.025em;
952
1023
  }
953
1024
 
954
- .\!univer-text-gray-600 {
955
- color: var(--univer-gray-600) !important;
956
- }
957
-
958
- .\!univer-text-white {
959
- color: var(--univer-white) !important;
960
- }
961
-
962
1025
  .univer-text-current {
963
1026
  color: currentColor;
964
1027
  }
@@ -1032,13 +1095,6 @@
1032
1095
  opacity: .6;
1033
1096
  }
1034
1097
 
1035
- .univer-shadow {
1036
- --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
1037
- --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
1038
- box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
1039
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
1040
- }
1041
-
1042
1098
  .univer-shadow-\[0_-16px_48px_rgba\(15\,23\,42\,0\.18\)\] {
1043
1099
  --univer-tw-shadow: 0 -16px 48px #0f172a2e;
1044
1100
  --univer-tw-shadow-colored: 0 -16px 48px var(--univer-tw-shadow-color);
@@ -1147,6 +1203,10 @@
1147
1203
  --univer-tw-enter-opacity: .7;
1148
1204
  }
1149
1205
 
1206
+ .univer-context-menu-hover-suppressed button:hover:not(:focus) {
1207
+ background-color: #0000 !important;
1208
+ }
1209
+
1150
1210
  .last\:univer-border-b-0:last-child {
1151
1211
  border-bottom-width: 0;
1152
1212
  }
@@ -1155,6 +1215,10 @@
1155
1215
  display: none;
1156
1216
  }
1157
1217
 
1218
+ .hover\:univer-border-primary-600:hover {
1219
+ border-color: var(--univer-primary-600);
1220
+ }
1221
+
1158
1222
  .hover\:univer-bg-gray-100:hover {
1159
1223
  background-color: var(--univer-gray-100);
1160
1224
  }
@@ -1175,6 +1239,17 @@
1175
1239
  opacity: .5;
1176
1240
  }
1177
1241
 
1242
+ .hover\:univer-shadow-md:hover {
1243
+ --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;
1244
+ --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);
1245
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 6px -2px #1e284d14, 0 2px 6px -1px #1e284d1a;
1246
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
1247
+ }
1248
+
1249
+ .focus\:univer-bg-gray-50:focus {
1250
+ background-color: var(--univer-gray-50);
1251
+ }
1252
+
1178
1253
  .focus\:univer-bg-white:focus {
1179
1254
  background-color: var(--univer-white);
1180
1255
  }
@@ -1191,6 +1266,11 @@
1191
1266
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
1192
1267
  }
1193
1268
 
1269
+ .focus-visible\:univer-outline-none:focus-visible {
1270
+ outline-offset: 2px;
1271
+ outline: 2px solid #0000;
1272
+ }
1273
+
1194
1274
  .focus-visible\:univer-ring-2:focus-visible {
1195
1275
  --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);
1196
1276
  --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);
@@ -1198,6 +1278,10 @@
1198
1278
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
1199
1279
  }
1200
1280
 
1281
+ .focus-visible\:univer-ring-primary-100:focus-visible {
1282
+ --univer-tw-ring-color: var(--univer-primary-100);
1283
+ }
1284
+
1201
1285
  .focus-visible\:univer-ring-primary-600:focus-visible {
1202
1286
  --univer-tw-ring-color: var(--univer-primary-600);
1203
1287
  }
@@ -1235,8 +1319,8 @@
1235
1319
  }
1236
1320
 
1237
1321
  @media (min-width: 640px) {
1238
- .sm\:\!univer-block {
1239
- display: block !important;
1322
+ .sm\:\!univer-flex {
1323
+ display: flex !important;
1240
1324
  }
1241
1325
  }
1242
1326
 
@@ -1256,10 +1340,18 @@
1256
1340
  border-color: var(--univer-gray-600) !important;
1257
1341
  }
1258
1342
 
1343
+ .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
1344
+ border-color: var(--univer-gray-700) !important;
1345
+ }
1346
+
1259
1347
  .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
1260
1348
  background-color: var(--univer-gray-200) !important;
1261
1349
  }
1262
1350
 
1351
+ .dark\:\!univer-bg-gray-300:where(.univer-dark, .univer-dark *) {
1352
+ background-color: var(--univer-gray-300) !important;
1353
+ }
1354
+
1263
1355
  .dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
1264
1356
  background-color: var(--univer-gray-500) !important;
1265
1357
  }
@@ -1348,6 +1440,14 @@
1348
1440
  background-color: #0000 !important;
1349
1441
  }
1350
1442
 
1443
+ .dark\:focus\:\!univer-bg-gray-600:focus:where(.univer-dark, .univer-dark *) {
1444
+ background-color: var(--univer-gray-600) !important;
1445
+ }
1446
+
1447
+ .dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
1448
+ background-color: var(--univer-gray-900) !important;
1449
+ }
1450
+
1351
1451
  .dark\:active\:\!univer-bg-gray-600:active:where(.univer-dark, .univer-dark *) {
1352
1452
  background-color: var(--univer-gray-600) !important;
1353
1453
  }
@@ -1646,6 +1746,10 @@
1646
1746
  width: 1.75rem;
1647
1747
  }
1648
1748
 
1749
+ .\[\&_input\]\:univer-w-\[52px\] input {
1750
+ width: 52px;
1751
+ }
1752
+
1649
1753
  .\[\&_input\]\:\!univer-appearance-none input {
1650
1754
  -webkit-appearance: none !important;
1651
1755
  appearance: none !important;
@@ -1671,11 +1775,33 @@
1671
1775
  padding: 0;
1672
1776
  }
1673
1777
 
1778
+ .\[\&_input\]\:univer-px-1 input {
1779
+ padding-left: .25rem;
1780
+ padding-right: .25rem;
1781
+ }
1782
+
1783
+ .\[\&_input\]\:univer-text-center input {
1784
+ text-align: center;
1785
+ }
1786
+
1674
1787
  .\[\&_input\]\:univer-text-sm input {
1675
1788
  font-size: .875rem;
1676
1789
  line-height: 1.25rem;
1677
1790
  }
1678
1791
 
1792
+ .\[\&_input\]\:univer-text-xs input {
1793
+ font-size: .75rem;
1794
+ line-height: 1rem;
1795
+ }
1796
+
1797
+ .\[\&_input\]\:univer-tabular-nums input {
1798
+ --univer-tw-numeric-spacing: tabular-nums;
1799
+ font-feature-settings: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) tabular-nums var(--univer-tw-numeric-fraction);
1800
+ font-feature-settings: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) var(--univer-tw-numeric-spacing) var(--univer-tw-numeric-fraction);
1801
+ font-variant-numeric: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) tabular-nums var(--univer-tw-numeric-fraction);
1802
+ font-variant-numeric: var(--univer-tw-ordinal) var(--univer-tw-slashed-zero) var(--univer-tw-numeric-figure) var(--univer-tw-numeric-spacing) var(--univer-tw-numeric-fraction);
1803
+ }
1804
+
1679
1805
  .\[\&_input\]\:\!univer-leading-none input {
1680
1806
  line-height: 1 !important;
1681
1807
  }