@univerjs/ui 1.0.0-alpha.6 → 1.0.0-alpha.7

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 (109) hide show
  1. package/lib/cjs/index.js +1092 -349
  2. package/lib/cjs/locale/ar-SA.js +12 -0
  3. package/lib/cjs/locale/ca-ES.js +12 -0
  4. package/lib/cjs/locale/de-DE.js +12 -0
  5. package/lib/cjs/locale/en-US.js +12 -0
  6. package/lib/cjs/locale/es-ES.js +12 -0
  7. package/lib/cjs/locale/fa-IR.js +12 -0
  8. package/lib/cjs/locale/fr-FR.js +12 -0
  9. package/lib/cjs/locale/id-ID.js +12 -0
  10. package/lib/cjs/locale/it-IT.js +12 -0
  11. package/lib/cjs/locale/ja-JP.js +12 -0
  12. package/lib/cjs/locale/ko-KR.js +12 -0
  13. package/lib/cjs/locale/pl-PL.js +12 -0
  14. package/lib/cjs/locale/pt-BR.js +12 -0
  15. package/lib/cjs/locale/ru-RU.js +12 -0
  16. package/lib/cjs/locale/sk-SK.js +12 -0
  17. package/lib/cjs/locale/vi-VN.js +12 -0
  18. package/lib/cjs/locale/zh-CN.js +12 -0
  19. package/lib/cjs/locale/zh-HK.js +12 -0
  20. package/lib/cjs/locale/zh-TW.js +12 -0
  21. package/lib/es/index.js +1092 -354
  22. package/lib/es/locale/ar-SA.js +12 -0
  23. package/lib/es/locale/ca-ES.js +12 -0
  24. package/lib/es/locale/de-DE.js +12 -0
  25. package/lib/es/locale/en-US.js +12 -0
  26. package/lib/es/locale/es-ES.js +12 -0
  27. package/lib/es/locale/fa-IR.js +12 -0
  28. package/lib/es/locale/fr-FR.js +12 -0
  29. package/lib/es/locale/id-ID.js +12 -0
  30. package/lib/es/locale/it-IT.js +12 -0
  31. package/lib/es/locale/ja-JP.js +12 -0
  32. package/lib/es/locale/ko-KR.js +12 -0
  33. package/lib/es/locale/pl-PL.js +12 -0
  34. package/lib/es/locale/pt-BR.js +12 -0
  35. package/lib/es/locale/ru-RU.js +12 -0
  36. package/lib/es/locale/sk-SK.js +12 -0
  37. package/lib/es/locale/vi-VN.js +12 -0
  38. package/lib/es/locale/zh-CN.js +12 -0
  39. package/lib/es/locale/zh-HK.js +12 -0
  40. package/lib/es/locale/zh-TW.js +12 -0
  41. package/lib/index.css +176 -6
  42. package/lib/index.js +1092 -354
  43. package/lib/locale/ar-SA.js +12 -0
  44. package/lib/locale/ca-ES.js +12 -0
  45. package/lib/locale/de-DE.js +12 -0
  46. package/lib/locale/en-US.js +12 -0
  47. package/lib/locale/es-ES.js +12 -0
  48. package/lib/locale/fa-IR.js +12 -0
  49. package/lib/locale/fr-FR.js +12 -0
  50. package/lib/locale/id-ID.js +12 -0
  51. package/lib/locale/it-IT.js +12 -0
  52. package/lib/locale/ja-JP.js +12 -0
  53. package/lib/locale/ko-KR.js +12 -0
  54. package/lib/locale/pl-PL.js +12 -0
  55. package/lib/locale/pt-BR.js +12 -0
  56. package/lib/locale/ru-RU.js +12 -0
  57. package/lib/locale/sk-SK.js +12 -0
  58. package/lib/locale/vi-VN.js +12 -0
  59. package/lib/locale/zh-CN.js +12 -0
  60. package/lib/locale/zh-HK.js +12 -0
  61. package/lib/locale/zh-TW.js +12 -0
  62. package/lib/types/commands/operations/open-feature-search.operation.d.ts +17 -0
  63. package/lib/types/controllers/feature-search/feature-search.controller.d.ts +20 -0
  64. package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
  65. package/lib/types/index.d.ts +2 -3
  66. package/lib/types/locale/en-US.d.ts +12 -0
  67. package/lib/types/menu/feature-search.menu.d.ts +18 -0
  68. package/lib/types/{controllers/menus/menus.d.ts → menu/history.menu.d.ts} +2 -2
  69. package/lib/types/{controllers/shortcut-display/menu.d.ts → menu/shortcut-panel.menu.d.ts} +2 -2
  70. package/lib/types/services/contextmenu/contextmenu-host.service.d.ts +5 -1
  71. package/lib/types/services/menu/menu-manager.service.d.ts +11 -0
  72. package/lib/types/services/menu/types.d.ts +1 -0
  73. package/lib/types/services/shortcut/shortcut.service.d.ts +4 -1
  74. package/lib/types/utils/embed-boundary.d.ts +2 -0
  75. package/lib/types/views/components/feature-search/FeatureSearch.d.ts +29 -0
  76. package/lib/types/views/components/ribbon/RibbonGrid.d.ts +23 -0
  77. package/lib/types/views/components/ribbon/ToolbarItem.d.ts +10 -1
  78. package/lib/types/views/components/ribbon/ribbon-grid-layout.d.ts +27 -0
  79. package/lib/types/views/components/ribbon/ribbon-menu/RibbonGridMenu.d.ts +21 -0
  80. package/lib/types/views/components/sidebar/Sidebar.d.ts +0 -2
  81. package/lib/types/views/custom-label/CustomLabel.d.ts +1 -0
  82. package/lib/types/views/emoji-picker/EmojiPicker.d.ts +7 -3
  83. package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +1 -1
  84. package/lib/types/views/emoji-picker/index.d.ts +0 -1
  85. package/lib/types/views/index.d.ts +1 -0
  86. package/lib/types/views/symbol-picker/SymbolPicker.d.ts +31 -0
  87. package/lib/types/views/symbol-picker/index.d.ts +18 -0
  88. package/lib/types/views/symbol-picker/symbols.d.ts +23 -0
  89. package/lib/umd/index.js +13 -13
  90. package/lib/umd/locale/ar-SA.js +1 -1
  91. package/lib/umd/locale/ca-ES.js +1 -1
  92. package/lib/umd/locale/de-DE.js +1 -1
  93. package/lib/umd/locale/en-US.js +1 -1
  94. package/lib/umd/locale/es-ES.js +1 -1
  95. package/lib/umd/locale/fa-IR.js +1 -1
  96. package/lib/umd/locale/fr-FR.js +1 -1
  97. package/lib/umd/locale/id-ID.js +1 -1
  98. package/lib/umd/locale/it-IT.js +1 -1
  99. package/lib/umd/locale/ja-JP.js +1 -1
  100. package/lib/umd/locale/ko-KR.js +1 -1
  101. package/lib/umd/locale/pl-PL.js +1 -1
  102. package/lib/umd/locale/pt-BR.js +1 -1
  103. package/lib/umd/locale/ru-RU.js +1 -1
  104. package/lib/umd/locale/sk-SK.js +1 -1
  105. package/lib/umd/locale/vi-VN.js +1 -1
  106. package/lib/umd/locale/zh-CN.js +1 -1
  107. package/lib/umd/locale/zh-HK.js +1 -1
  108. package/lib/umd/locale/zh-TW.js +1 -1
  109. package/package.json +7 -7
package/lib/index.css CHANGED
@@ -33,6 +33,10 @@
33
33
  right: 0;
34
34
  }
35
35
 
36
+ .\!univer-top-auto {
37
+ top: auto !important;
38
+ }
39
+
36
40
  .-univer-left-\[99999\] {
37
41
  left: -99999px;
38
42
  }
@@ -45,6 +49,10 @@
45
49
  bottom: 0;
46
50
  }
47
51
 
52
+ .univer-bottom-1\.5 {
53
+ bottom: .375rem;
54
+ }
55
+
48
56
  .univer-left-0 {
49
57
  left: 0;
50
58
  }
@@ -73,6 +81,10 @@
73
81
  top: 50%;
74
82
  }
75
83
 
84
+ .univer-top-3\.5 {
85
+ top: .875rem;
86
+ }
87
+
76
88
  .univer-top-\[-9999px\] {
77
89
  top: -9999px;
78
90
  }
@@ -127,6 +139,10 @@
127
139
  margin-right: .5rem;
128
140
  }
129
141
 
142
+ .univer-mr-auto {
143
+ margin-right: auto;
144
+ }
145
+
130
146
  .univer-mt-2 {
131
147
  margin-top: .5rem;
132
148
  }
@@ -256,6 +272,10 @@
256
272
  height: 2.5rem;
257
273
  }
258
274
 
275
+ .univer-h-4 {
276
+ height: 1rem;
277
+ }
278
+
259
279
  .univer-h-6 {
260
280
  height: 1.5rem;
261
281
  }
@@ -280,6 +300,10 @@
280
300
  height: 340px;
281
301
  }
282
302
 
303
+ .univer-h-\[88px\] {
304
+ height: 88px;
305
+ }
306
+
283
307
  .univer-h-full {
284
308
  height: 100%;
285
309
  }
@@ -320,6 +344,10 @@
320
344
  min-height: 100%;
321
345
  }
322
346
 
347
+ .\!univer-w-full {
348
+ width: 100% !important;
349
+ }
350
+
323
351
  .univer-w-0 {
324
352
  width: 0;
325
353
  }
@@ -368,10 +396,6 @@
368
396
  width: 420px;
369
397
  }
370
398
 
371
- .univer-w-\[52px\] {
372
- width: 52px;
373
- }
374
-
375
399
  .univer-w-\[68px\] {
376
400
  width: 68px;
377
401
  }
@@ -392,6 +416,14 @@
392
416
  min-width: 0;
393
417
  }
394
418
 
419
+ .univer-min-w-14 {
420
+ min-width: 3.5rem;
421
+ }
422
+
423
+ .univer-min-w-16 {
424
+ min-width: 4rem;
425
+ }
426
+
395
427
  .univer-min-w-44 {
396
428
  min-width: 11rem;
397
429
  }
@@ -408,6 +440,10 @@
408
440
  min-width: 16rem;
409
441
  }
410
442
 
443
+ .univer-min-w-8 {
444
+ min-width: 2rem;
445
+ }
446
+
411
447
  .univer-min-w-min {
412
448
  min-width: min-content;
413
449
  }
@@ -562,6 +598,10 @@
562
598
  grid-template-columns: auto 1fr auto;
563
599
  }
564
600
 
601
+ .univer-grid-rows-2 {
602
+ grid-template-rows: repeat(2, minmax(0, 1fr));
603
+ }
604
+
565
605
  .univer-grid-rows-\[100\%\] {
566
606
  grid-template-rows: 100%;
567
607
  }
@@ -586,6 +626,10 @@
586
626
  flex-wrap: wrap;
587
627
  }
588
628
 
629
+ .univer-content-center {
630
+ align-content: center;
631
+ }
632
+
589
633
  .univer-items-end {
590
634
  align-items: flex-end;
591
635
  }
@@ -594,6 +638,14 @@
594
638
  align-items: center;
595
639
  }
596
640
 
641
+ .univer-items-stretch {
642
+ align-items: stretch;
643
+ }
644
+
645
+ .univer-justify-start {
646
+ justify-content: flex-start;
647
+ }
648
+
597
649
  .univer-justify-end {
598
650
  justify-content: flex-end;
599
651
  }
@@ -646,10 +698,23 @@
646
698
  gap: 1rem;
647
699
  }
648
700
 
701
+ .univer-gap-5 {
702
+ gap: 1.25rem;
703
+ }
704
+
649
705
  .univer-gap-6 {
650
706
  gap: 1.5rem;
651
707
  }
652
708
 
709
+ .univer-gap-x-1 {
710
+ -moz-column-gap: .25rem;
711
+ column-gap: .25rem;
712
+ }
713
+
714
+ .univer-gap-y-2 {
715
+ row-gap: .5rem;
716
+ }
717
+
653
718
  .univer-overflow-hidden {
654
719
  overflow: hidden;
655
720
  }
@@ -662,6 +727,10 @@
662
727
  overflow-y: auto;
663
728
  }
664
729
 
730
+ .univer-overflow-y-hidden {
731
+ overflow-y: hidden;
732
+ }
733
+
665
734
  .univer-overscroll-contain {
666
735
  overscroll-behavior: contain;
667
736
  }
@@ -732,6 +801,11 @@
732
801
  border-radius: .75rem;
733
802
  }
734
803
 
804
+ .univer-rounded-b {
805
+ border-bottom-right-radius: .25rem;
806
+ border-bottom-left-radius: .25rem;
807
+ }
808
+
735
809
  .univer-rounded-l {
736
810
  border-top-left-radius: .25rem;
737
811
  border-bottom-left-radius: .25rem;
@@ -752,6 +826,11 @@
752
826
  border-top-right-radius: 28px;
753
827
  }
754
828
 
829
+ .univer-rounded-t-none {
830
+ border-top-left-radius: 0;
831
+ border-top-right-radius: 0;
832
+ }
833
+
755
834
  .univer-border {
756
835
  border-width: 1px;
757
836
  }
@@ -764,6 +843,10 @@
764
843
  border-bottom-width: 1px;
765
844
  }
766
845
 
846
+ .univer-border-b-\[3px\] {
847
+ border-bottom-width: 3px;
848
+ }
849
+
767
850
  .univer-border-solid {
768
851
  border-style: solid;
769
852
  }
@@ -772,6 +855,10 @@
772
855
  border-style: none;
773
856
  }
774
857
 
858
+ .\!univer-border-gray-300 {
859
+ border-color: var(--univer-gray-300) !important;
860
+ }
861
+
775
862
  .univer-border-gray-200 {
776
863
  border-color: var(--univer-gray-200);
777
864
  }
@@ -784,6 +871,10 @@
784
871
  border-color: var(--univer-primary-600);
785
872
  }
786
873
 
874
+ .univer-border-transparent {
875
+ border-color: #0000;
876
+ }
877
+
787
878
  .univer-border-white {
788
879
  border-color: var(--univer-white);
789
880
  }
@@ -792,6 +883,10 @@
792
883
  background-color: var(--univer-gray-200) !important;
793
884
  }
794
885
 
886
+ .\!univer-bg-gray-800 {
887
+ background-color: var(--univer-gray-800) !important;
888
+ }
889
+
795
890
  .univer-bg-\[rgba\(15\,23\,42\,0\.32\)\] {
796
891
  background-color: #0f172a52;
797
892
  }
@@ -855,6 +950,10 @@
855
950
  --univer-tw-gradient-to: #164e63 var(--univer-tw-gradient-to-position);
856
951
  }
857
952
 
953
+ .\!univer-p-0 {
954
+ padding: 0 !important;
955
+ }
956
+
858
957
  .univer-p-0 {
859
958
  padding: 0;
860
959
  }
@@ -883,6 +982,11 @@
883
982
  padding: 2rem;
884
983
  }
885
984
 
985
+ .\!univer-px-0 {
986
+ padding-left: 0 !important;
987
+ padding-right: 0 !important;
988
+ }
989
+
886
990
  .univer-px-0 {
887
991
  padding-left: 0;
888
992
  padding-right: 0;
@@ -953,6 +1057,10 @@
953
1057
  padding-bottom: 1.75rem;
954
1058
  }
955
1059
 
1060
+ .\!univer-pr-0 {
1061
+ padding-right: 0 !important;
1062
+ }
1063
+
956
1064
  .univer-pb-1 {
957
1065
  padding-bottom: .25rem;
958
1066
  }
@@ -965,6 +1073,10 @@
965
1073
  padding-bottom: .75rem;
966
1074
  }
967
1075
 
1076
+ .univer-pb-4 {
1077
+ padding-bottom: 1rem;
1078
+ }
1079
+
968
1080
  .univer-pl-2 {
969
1081
  padding-left: .5rem;
970
1082
  }
@@ -1151,6 +1263,10 @@
1151
1263
  opacity: .4;
1152
1264
  }
1153
1265
 
1266
+ .univer-opacity-50 {
1267
+ opacity: .5;
1268
+ }
1269
+
1154
1270
  .univer-opacity-60 {
1155
1271
  opacity: .6;
1156
1272
  }
@@ -1310,6 +1426,10 @@
1310
1426
  color: var(--univer-gray-700);
1311
1427
  }
1312
1428
 
1429
+ .hover\:univer-text-gray-900:hover {
1430
+ color: var(--univer-gray-900);
1431
+ }
1432
+
1313
1433
  .hover\:univer-opacity-50:hover {
1314
1434
  opacity: .5;
1315
1435
  }
@@ -1353,10 +1473,18 @@
1353
1473
  box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
1354
1474
  }
1355
1475
 
1476
+ .focus-visible\:univer-ring-inset:focus-visible {
1477
+ --univer-tw-ring-inset: inset;
1478
+ }
1479
+
1356
1480
  .focus-visible\:univer-ring-primary-100:focus-visible {
1357
1481
  --univer-tw-ring-color: var(--univer-primary-100);
1358
1482
  }
1359
1483
 
1484
+ .focus-visible\:univer-ring-primary-500:focus-visible {
1485
+ --univer-tw-ring-color: var(--univer-primary-500);
1486
+ }
1487
+
1360
1488
  .focus-visible\:univer-ring-primary-600:focus-visible {
1361
1489
  --univer-tw-ring-color: var(--univer-primary-600);
1362
1490
  }
@@ -1411,6 +1539,14 @@
1411
1539
  right: auto;
1412
1540
  }
1413
1541
 
1542
+ .rtl\:univer-ml-0:where([dir="rtl"], [dir="rtl"] *) {
1543
+ margin-left: 0;
1544
+ }
1545
+
1546
+ .rtl\:univer-mr-auto:where([dir="rtl"], [dir="rtl"] *) {
1547
+ margin-right: auto;
1548
+ }
1549
+
1414
1550
  .rtl\:univer-rounded-l:where([dir="rtl"], [dir="rtl"] *) {
1415
1551
  border-top-left-radius: .25rem;
1416
1552
  border-bottom-left-radius: .25rem;
@@ -1566,6 +1702,10 @@
1566
1702
  color: var(--univer-gray-300) !important;
1567
1703
  }
1568
1704
 
1705
+ .dark\:hover\:\!univer-text-white:hover:where(.univer-dark, .univer-dark *) {
1706
+ color: var(--univer-white) !important;
1707
+ }
1708
+
1569
1709
  .dark\:focus\:\!univer-bg-gray-600:focus:where(.univer-dark, .univer-dark *) {
1570
1710
  background-color: var(--univer-gray-600) !important;
1571
1711
  }
@@ -1660,6 +1800,22 @@
1660
1800
  background-color: var(--univer-gray-100);
1661
1801
  }
1662
1802
 
1803
+ .\[\&\>div\>span\>span\]\:univer-h-full > div > span > span, .\[\&\>span\>button\]\:univer-h-full > span > button {
1804
+ height: 100%;
1805
+ }
1806
+
1807
+ .\[\&\>span\>span\]\:univer-w-full > span > span {
1808
+ width: 100%;
1809
+ }
1810
+
1811
+ .\[\&\>span\]\:univer-h-full > span {
1812
+ height: 100%;
1813
+ }
1814
+
1815
+ .\[\&\>span\]\:univer-w-full > span {
1816
+ width: 100%;
1817
+ }
1818
+
1663
1819
  .\[\&\>span\]\:univer-truncate > span {
1664
1820
  text-overflow: ellipsis;
1665
1821
  white-space: nowrap;
@@ -1675,6 +1831,16 @@
1675
1831
  font-weight: 500;
1676
1832
  }
1677
1833
 
1834
+ .\[\&\>svg\]\:univer-size-4 > svg {
1835
+ width: 1rem;
1836
+ height: 1rem;
1837
+ }
1838
+
1839
+ .\[\&\>svg\]\:univer-size-8 > svg {
1840
+ width: 2rem;
1841
+ height: 2rem;
1842
+ }
1843
+
1678
1844
  .\[\&\>svg\]\:univer-shrink-0 > svg {
1679
1845
  flex-shrink: 0;
1680
1846
  }
@@ -1797,6 +1963,10 @@
1797
1963
  min-height: 2rem !important;
1798
1964
  }
1799
1965
 
1966
+ .\[\&_\[data-u-command\]\]\:univer-w-full [data-u-command] {
1967
+ width: 100%;
1968
+ }
1969
+
1800
1970
  .\[\&_\[data-u-command\]\]\:\!univer-rounded-md [data-u-command] {
1801
1971
  border-radius: .375rem !important;
1802
1972
  }
@@ -1872,8 +2042,8 @@
1872
2042
  width: 1.75rem;
1873
2043
  }
1874
2044
 
1875
- .\[\&_input\]\:univer-w-\[52px\] input {
1876
- width: 52px;
2045
+ .\[\&_input\]\:univer-w-full input {
2046
+ width: 100%;
1877
2047
  }
1878
2048
 
1879
2049
  .\[\&_input\]\:\!univer-appearance-none input {