@univerjs/ui 1.2.0 → 1.3.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 (91) hide show
  1. package/lib/cjs/index.js +765 -525
  2. package/lib/cjs/locale/ar-SA.js +16 -1
  3. package/lib/cjs/locale/ca-ES.js +16 -1
  4. package/lib/cjs/locale/de-DE.js +16 -1
  5. package/lib/cjs/locale/en-US.js +16 -1
  6. package/lib/cjs/locale/es-ES.js +16 -1
  7. package/lib/cjs/locale/fa-IR.js +16 -1
  8. package/lib/cjs/locale/fr-FR.js +16 -1
  9. package/lib/cjs/locale/id-ID.js +16 -1
  10. package/lib/cjs/locale/it-IT.js +16 -1
  11. package/lib/cjs/locale/ja-JP.js +16 -1
  12. package/lib/cjs/locale/ko-KR.js +16 -1
  13. package/lib/cjs/locale/pl-PL.js +16 -1
  14. package/lib/cjs/locale/pt-BR.js +16 -1
  15. package/lib/cjs/locale/ru-RU.js +16 -1
  16. package/lib/cjs/locale/sk-SK.js +16 -1
  17. package/lib/cjs/locale/vi-VN.js +16 -1
  18. package/lib/cjs/locale/zh-CN.js +16 -1
  19. package/lib/cjs/locale/zh-HK.js +16 -1
  20. package/lib/cjs/locale/zh-TW.js +16 -1
  21. package/lib/es/index.js +765 -526
  22. package/lib/es/locale/ar-SA.js +16 -1
  23. package/lib/es/locale/ca-ES.js +16 -1
  24. package/lib/es/locale/de-DE.js +16 -1
  25. package/lib/es/locale/en-US.js +16 -1
  26. package/lib/es/locale/es-ES.js +16 -1
  27. package/lib/es/locale/fa-IR.js +16 -1
  28. package/lib/es/locale/fr-FR.js +16 -1
  29. package/lib/es/locale/id-ID.js +16 -1
  30. package/lib/es/locale/it-IT.js +16 -1
  31. package/lib/es/locale/ja-JP.js +16 -1
  32. package/lib/es/locale/ko-KR.js +16 -1
  33. package/lib/es/locale/pl-PL.js +16 -1
  34. package/lib/es/locale/pt-BR.js +16 -1
  35. package/lib/es/locale/ru-RU.js +16 -1
  36. package/lib/es/locale/sk-SK.js +16 -1
  37. package/lib/es/locale/vi-VN.js +16 -1
  38. package/lib/es/locale/zh-CN.js +16 -1
  39. package/lib/es/locale/zh-HK.js +16 -1
  40. package/lib/es/locale/zh-TW.js +16 -1
  41. package/lib/index.css +98 -21
  42. package/lib/index.js +765 -526
  43. package/lib/locale/ar-SA.js +16 -1
  44. package/lib/locale/ca-ES.js +16 -1
  45. package/lib/locale/de-DE.js +16 -1
  46. package/lib/locale/en-US.js +16 -1
  47. package/lib/locale/es-ES.js +16 -1
  48. package/lib/locale/fa-IR.js +16 -1
  49. package/lib/locale/fr-FR.js +16 -1
  50. package/lib/locale/id-ID.js +16 -1
  51. package/lib/locale/it-IT.js +16 -1
  52. package/lib/locale/ja-JP.js +16 -1
  53. package/lib/locale/ko-KR.js +16 -1
  54. package/lib/locale/pl-PL.js +16 -1
  55. package/lib/locale/pt-BR.js +16 -1
  56. package/lib/locale/ru-RU.js +16 -1
  57. package/lib/locale/sk-SK.js +16 -1
  58. package/lib/locale/vi-VN.js +16 -1
  59. package/lib/locale/zh-CN.js +16 -1
  60. package/lib/locale/zh-HK.js +16 -1
  61. package/lib/locale/zh-TW.js +16 -1
  62. package/lib/types/facade/f-univer.d.ts +5 -3
  63. package/lib/types/index.d.ts +1 -1
  64. package/lib/types/locale/en-US.d.ts +15 -0
  65. package/lib/types/services/font.service.d.ts +9 -2
  66. package/lib/types/services/menu/menu-manager.service.d.ts +1 -1
  67. package/lib/types/views/components/ribbon/RibbonOverflow.d.ts +22 -0
  68. package/lib/types/views/components/ribbon/ToolbarItem.d.ts +1 -0
  69. package/lib/types/views/components/ribbon/hook.d.ts +2 -2
  70. package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +1 -1
  71. package/lib/umd/index.js +19 -19
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +7 -7
package/lib/index.css CHANGED
@@ -206,6 +206,10 @@
206
206
  margin-bottom: 0;
207
207
  }
208
208
 
209
+ .univer-mb-1 {
210
+ margin-bottom: .25rem;
211
+ }
212
+
209
213
  .univer-ml-2 {
210
214
  margin-left: .5rem;
211
215
  }
@@ -288,11 +292,6 @@
288
292
  height: 1rem !important;
289
293
  }
290
294
 
291
- .univer-size-1\.5 {
292
- width: .375rem;
293
- height: .375rem;
294
- }
295
-
296
295
  .univer-size-10 {
297
296
  width: 2.5rem;
298
297
  height: 2.5rem;
@@ -353,6 +352,14 @@
353
352
  height: 100%;
354
353
  }
355
354
 
355
+ .\!univer-h-14 {
356
+ height: 3.5rem !important;
357
+ }
358
+
359
+ .\!univer-h-auto {
360
+ height: auto !important;
361
+ }
362
+
356
363
  .univer-h-0 {
357
364
  height: 0;
358
365
  }
@@ -389,6 +396,10 @@
389
396
  height: .5rem;
390
397
  }
391
398
 
399
+ .univer-h-3 {
400
+ height: .75rem;
401
+ }
402
+
392
403
  .univer-h-4 {
393
404
  height: 1rem;
394
405
  }
@@ -421,6 +432,10 @@
421
432
  height: 340px;
422
433
  }
423
434
 
435
+ .univer-h-\[73px\] {
436
+ height: 73px;
437
+ }
438
+
424
439
  .univer-h-full {
425
440
  height: 100%;
426
441
  }
@@ -449,6 +464,10 @@
449
464
  min-height: 5rem;
450
465
  }
451
466
 
467
+ .univer-min-h-7 {
468
+ min-height: 1.75rem;
469
+ }
470
+
452
471
  .univer-min-h-8 {
453
472
  min-height: 2rem;
454
473
  }
@@ -461,6 +480,10 @@
461
480
  min-height: 100%;
462
481
  }
463
482
 
483
+ .\!univer-w-14 {
484
+ width: 3.5rem !important;
485
+ }
486
+
464
487
  .\!univer-w-full {
465
488
  width: 100% !important;
466
489
  }
@@ -521,6 +544,10 @@
521
544
  width: 2rem;
522
545
  }
523
546
 
547
+ .univer-w-80 {
548
+ width: 20rem;
549
+ }
550
+
524
551
  .univer-w-9 {
525
552
  width: 2.25rem;
526
553
  }
@@ -928,6 +955,10 @@
928
955
  overflow: hidden;
929
956
  }
930
957
 
958
+ .univer-whitespace-normal {
959
+ white-space: normal;
960
+ }
961
+
931
962
  .univer-whitespace-nowrap {
932
963
  white-space: nowrap;
933
964
  }
@@ -1122,14 +1153,14 @@
1122
1153
  background-color: var(--univer-gray-300);
1123
1154
  }
1124
1155
 
1125
- .univer-bg-gray-400 {
1126
- background-color: var(--univer-gray-400);
1127
- }
1128
-
1129
1156
  .univer-bg-gray-50 {
1130
1157
  background-color: var(--univer-gray-50);
1131
1158
  }
1132
1159
 
1160
+ .univer-bg-gray-600 {
1161
+ background-color: var(--univer-gray-600);
1162
+ }
1163
+
1133
1164
  .univer-bg-gray-700 {
1134
1165
  background-color: var(--univer-gray-700);
1135
1166
  }
@@ -1370,6 +1401,10 @@
1370
1401
  text-align: right;
1371
1402
  }
1372
1403
 
1404
+ .univer-text-start {
1405
+ text-align: left;
1406
+ }
1407
+
1373
1408
  .univer-font-sans {
1374
1409
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
1375
1410
  }
@@ -1472,6 +1507,10 @@
1472
1507
  color: var(--univer-gray-900);
1473
1508
  }
1474
1509
 
1510
+ .univer-text-inherit {
1511
+ color: inherit;
1512
+ }
1513
+
1475
1514
  .univer-text-primary-500 {
1476
1515
  color: var(--univer-primary-500);
1477
1516
  }
@@ -1561,6 +1600,12 @@
1561
1600
  transition-property: none !important;
1562
1601
  }
1563
1602
 
1603
+ .univer-transition {
1604
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1605
+ transition-duration: .15s;
1606
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
1607
+ }
1608
+
1564
1609
  .univer-transition-\[height\] {
1565
1610
  transition-property: height;
1566
1611
  transition-duration: .15s;
@@ -1681,6 +1726,14 @@
1681
1726
  opacity: .4;
1682
1727
  }
1683
1728
 
1729
+ .data-\[state\=open\]\:univer-bg-primary-50[data-state="open"] {
1730
+ background-color: var(--univer-primary-50);
1731
+ }
1732
+
1733
+ .data-\[state\=open\]\:univer-text-primary-600[data-state="open"] {
1734
+ color: var(--univer-primary-600);
1735
+ }
1736
+
1684
1737
  @media (hover: hover) and (pointer: fine) {
1685
1738
  .hover\:univer-border-primary-600:hover {
1686
1739
  border-color: var(--univer-primary-600);
@@ -1730,14 +1783,14 @@
1730
1783
  }
1731
1784
  }
1732
1785
 
1733
- .focus\:univer-bg-gray-0:focus {
1734
- background-color: var(--univer-gray-0);
1735
- }
1736
-
1737
1786
  .focus\:univer-bg-gray-50:focus {
1738
1787
  background-color: var(--univer-gray-50);
1739
1788
  }
1740
1789
 
1790
+ .focus\:univer-bg-transparent:focus {
1791
+ background-color: #0000;
1792
+ }
1793
+
1741
1794
  .focus\:univer-outline-none:focus {
1742
1795
  outline-offset: 2px;
1743
1796
  outline: 2px solid #0000;
@@ -1904,6 +1957,10 @@
1904
1957
  border-bottom-right-radius: 0;
1905
1958
  }
1906
1959
 
1960
+ .rtl\:univer-pl-0:where([dir="rtl"], [dir="rtl"] *) {
1961
+ padding-left: 0;
1962
+ }
1963
+
1907
1964
  .rtl\:univer-pl-1\.5:where([dir="rtl"], [dir="rtl"] *) {
1908
1965
  padding-left: .375rem;
1909
1966
  }
@@ -1928,12 +1985,16 @@
1928
1985
  border-color: var(--univer-gray-700) !important;
1929
1986
  }
1930
1987
 
1931
- .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
1932
- background-color: var(--univer-gray-200) !important;
1988
+ .dark\:\!univer-border-gray-800:where(.univer-dark, .univer-dark *) {
1989
+ border-color: var(--univer-gray-800) !important;
1933
1990
  }
1934
1991
 
1935
- .dark\:\!univer-bg-gray-300:where(.univer-dark, .univer-dark *) {
1936
- background-color: var(--univer-gray-300) !important;
1992
+ .dark\:\!univer-bg-gray-100:where(.univer-dark, .univer-dark *) {
1993
+ background-color: var(--univer-gray-100) !important;
1994
+ }
1995
+
1996
+ .dark\:\!univer-bg-gray-200:where(.univer-dark, .univer-dark *) {
1997
+ background-color: var(--univer-gray-200) !important;
1937
1998
  }
1938
1999
 
1939
2000
  .dark\:\!univer-bg-gray-500:where(.univer-dark, .univer-dark *) {
@@ -2019,6 +2080,14 @@
2019
2080
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
2020
2081
  }
2021
2082
 
2083
+ .dark\:data-\[state\=open\]\:\!univer-bg-gray-700[data-state="open"]:where(.univer-dark, .univer-dark *) {
2084
+ background-color: var(--univer-gray-700) !important;
2085
+ }
2086
+
2087
+ .dark\:data-\[state\=open\]\:\!univer-text-primary-300[data-state="open"]:where(.univer-dark, .univer-dark *) {
2088
+ color: var(--univer-primary-300) !important;
2089
+ }
2090
+
2022
2091
  @media (hover: hover) and (pointer: fine) {
2023
2092
  .dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark, .univer-dark *) {
2024
2093
  background-color: var(--univer-gray-600) !important;
@@ -2053,14 +2122,14 @@
2053
2122
  background-color: var(--univer-gray-600) !important;
2054
2123
  }
2055
2124
 
2056
- .dark\:focus\:\!univer-bg-gray-800:focus:where(.univer-dark, .univer-dark *) {
2057
- background-color: var(--univer-gray-800) !important;
2058
- }
2059
-
2060
2125
  .dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
2061
2126
  background-color: var(--univer-gray-900) !important;
2062
2127
  }
2063
2128
 
2129
+ .dark\:focus\:\!univer-bg-transparent:focus:where(.univer-dark, .univer-dark *) {
2130
+ background-color: #0000 !important;
2131
+ }
2132
+
2064
2133
  .dark\:focus\:\!univer-ring-primary-300:focus:where(.univer-dark, .univer-dark *) {
2065
2134
  --univer-tw-ring-color: var(--univer-primary-300) !important;
2066
2135
  }
@@ -2233,12 +2302,20 @@
2233
2302
  width: 100%;
2234
2303
  }
2235
2304
 
2305
+ .\[\&\>span\]\:univer-min-w-0 > span {
2306
+ min-width: 0;
2307
+ }
2308
+
2236
2309
  .\[\&\>span\]\:univer-truncate > span {
2237
2310
  text-overflow: ellipsis;
2238
2311
  white-space: nowrap;
2239
2312
  overflow: hidden;
2240
2313
  }
2241
2314
 
2315
+ .\[\&\>span\]\:univer-whitespace-normal > span {
2316
+ white-space: normal;
2317
+ }
2318
+
2242
2319
  .\[\&\>span\]\:univer-text-base > span {
2243
2320
  font-size: 1rem;
2244
2321
  line-height: 1.5rem;