@univerjs/preset-sheets-drawing 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 (107) hide show
  1. package/README.md +3 -3
  2. package/lib/cjs/index.js +60 -1
  3. package/lib/cjs/locales/ar-SA.js +11 -1
  4. package/lib/cjs/locales/ca-ES.js +11 -1
  5. package/lib/cjs/locales/de-DE.js +11 -1
  6. package/lib/cjs/locales/en-US.js +11 -1
  7. package/lib/cjs/locales/es-ES.js +11 -1
  8. package/lib/cjs/locales/fa-IR.js +11 -1
  9. package/lib/cjs/locales/fr-FR.js +11 -1
  10. package/lib/cjs/locales/id-ID.js +11 -1
  11. package/lib/cjs/locales/it-IT.js +11 -1
  12. package/lib/cjs/locales/ja-JP.js +11 -1
  13. package/lib/cjs/locales/ko-KR.js +11 -1
  14. package/lib/cjs/locales/pl-PL.js +11 -1
  15. package/lib/cjs/locales/pt-BR.js +11 -1
  16. package/lib/cjs/locales/ru-RU.js +11 -1
  17. package/lib/cjs/locales/sk-SK.js +11 -1
  18. package/lib/cjs/locales/vi-VN.js +11 -1
  19. package/lib/cjs/locales/zh-CN.js +11 -1
  20. package/lib/cjs/locales/zh-HK.js +11 -1
  21. package/lib/cjs/locales/zh-TW.js +11 -1
  22. package/lib/cjs/rolldown-runtime-C_NdSu1c.js +34 -0
  23. package/lib/es/index.js +34 -29
  24. package/lib/es/locales/ar-SA.js +8 -10
  25. package/lib/es/locales/ca-ES.js +8 -10
  26. package/lib/es/locales/de-DE.js +8 -10
  27. package/lib/es/locales/en-US.js +8 -10
  28. package/lib/es/locales/es-ES.js +8 -10
  29. package/lib/es/locales/fa-IR.js +8 -10
  30. package/lib/es/locales/fr-FR.js +8 -10
  31. package/lib/es/locales/id-ID.js +8 -10
  32. package/lib/es/locales/it-IT.js +8 -10
  33. package/lib/es/locales/ja-JP.js +8 -10
  34. package/lib/es/locales/ko-KR.js +8 -10
  35. package/lib/es/locales/pl-PL.js +8 -10
  36. package/lib/es/locales/pt-BR.js +8 -10
  37. package/lib/es/locales/ru-RU.js +8 -10
  38. package/lib/es/locales/sk-SK.js +8 -10
  39. package/lib/es/locales/vi-VN.js +8 -10
  40. package/lib/es/locales/zh-CN.js +8 -10
  41. package/lib/es/locales/zh-HK.js +8 -10
  42. package/lib/es/locales/zh-TW.js +8 -10
  43. package/lib/index.css +365 -1
  44. package/lib/index.js +34 -29
  45. package/lib/locales/ar-SA.js +8 -10
  46. package/lib/locales/ca-ES.js +8 -10
  47. package/lib/locales/de-DE.js +8 -10
  48. package/lib/locales/en-US.js +8 -10
  49. package/lib/locales/es-ES.js +8 -10
  50. package/lib/locales/fa-IR.js +8 -10
  51. package/lib/locales/fr-FR.js +8 -10
  52. package/lib/locales/id-ID.js +8 -10
  53. package/lib/locales/it-IT.js +8 -10
  54. package/lib/locales/ja-JP.js +8 -10
  55. package/lib/locales/ko-KR.js +8 -10
  56. package/lib/locales/pl-PL.js +8 -10
  57. package/lib/locales/pt-BR.js +8 -10
  58. package/lib/locales/ru-RU.js +8 -10
  59. package/lib/locales/sk-SK.js +8 -10
  60. package/lib/locales/vi-VN.js +8 -10
  61. package/lib/locales/zh-CN.js +8 -10
  62. package/lib/locales/zh-HK.js +8 -10
  63. package/lib/locales/zh-TW.js +8 -10
  64. package/lib/types/index.d.ts +16 -1
  65. package/lib/types/locales/ar-SA.d.ts +137 -1
  66. package/lib/types/locales/ca-ES.d.ts +137 -1
  67. package/lib/types/locales/de-DE.d.ts +137 -1
  68. package/lib/types/locales/en-US.d.ts +137 -1
  69. package/lib/types/locales/es-ES.d.ts +137 -1
  70. package/lib/types/locales/fa-IR.d.ts +137 -1
  71. package/lib/types/locales/fr-FR.d.ts +137 -1
  72. package/lib/types/locales/id-ID.d.ts +137 -1
  73. package/lib/types/locales/it-IT.d.ts +137 -1
  74. package/lib/types/locales/ja-JP.d.ts +137 -1
  75. package/lib/types/locales/ko-KR.d.ts +137 -1
  76. package/lib/types/locales/pl-PL.d.ts +137 -1
  77. package/lib/types/locales/pt-BR.d.ts +137 -1
  78. package/lib/types/locales/ru-RU.d.ts +137 -1
  79. package/lib/types/locales/sk-SK.d.ts +137 -1
  80. package/lib/types/locales/vi-VN.d.ts +137 -1
  81. package/lib/types/locales/zh-CN.d.ts +137 -1
  82. package/lib/types/locales/zh-HK.d.ts +137 -1
  83. package/lib/types/locales/zh-TW.d.ts +137 -1
  84. package/lib/types/preset.d.ts +25 -0
  85. package/package.json +16 -18
  86. package/lib/types/types.d.ts +0 -11
  87. package/lib/types/umd.d.ts +0 -12
  88. package/lib/umd/index.js +0 -24
  89. package/lib/umd/locales/ar-SA.js +0 -8
  90. package/lib/umd/locales/ca-ES.js +0 -8
  91. package/lib/umd/locales/de-DE.js +0 -8
  92. package/lib/umd/locales/en-US.js +0 -8
  93. package/lib/umd/locales/es-ES.js +0 -8
  94. package/lib/umd/locales/fa-IR.js +0 -8
  95. package/lib/umd/locales/fr-FR.js +0 -8
  96. package/lib/umd/locales/id-ID.js +0 -8
  97. package/lib/umd/locales/it-IT.js +0 -8
  98. package/lib/umd/locales/ja-JP.js +0 -8
  99. package/lib/umd/locales/ko-KR.js +0 -8
  100. package/lib/umd/locales/pl-PL.js +0 -8
  101. package/lib/umd/locales/pt-BR.js +0 -8
  102. package/lib/umd/locales/ru-RU.js +0 -8
  103. package/lib/umd/locales/sk-SK.js +0 -8
  104. package/lib/umd/locales/vi-VN.js +0 -8
  105. package/lib/umd/locales/zh-CN.js +0 -8
  106. package/lib/umd/locales/zh-HK.js +0 -8
  107. package/lib/umd/locales/zh-TW.js +0 -8
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import i from "@univerjs/drawing-ui/locale/it-IT";
3
- import e from "@univerjs/sheets-drawing-ui/locale/it-IT";
4
- const s = r(
5
- i,
6
- e
7
- );
8
- export {
9
- s as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/it-IT";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/it-IT";
3
+
4
+ //#region src/locales/it-IT.ts
5
+ var it_IT_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { it_IT_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/ja-JP";
3
- import i from "@univerjs/sheets-drawing-ui/locale/ja-JP";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/ja-JP";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/ja-JP";
3
+
4
+ //#region src/locales/ja-JP.ts
5
+ var ja_JP_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { ja_JP_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import o from "@univerjs/drawing-ui/locale/ko-KR";
3
- import e from "@univerjs/sheets-drawing-ui/locale/ko-KR";
4
- const t = r(
5
- o,
6
- e
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/ko-KR";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/ko-KR";
3
+
4
+ //#region src/locales/ko-KR.ts
5
+ var ko_KR_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { ko_KR_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/pl-PL";
3
- import i from "@univerjs/sheets-drawing-ui/locale/pl-PL";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/pl-PL";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/pl-PL";
3
+
4
+ //#region src/locales/pl-PL.ts
5
+ var pl_PL_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { pl_PL_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/pt-BR";
3
- import i from "@univerjs/sheets-drawing-ui/locale/pt-BR";
4
- const s = r(
5
- e,
6
- i
7
- );
8
- export {
9
- s as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/pt-BR";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/pt-BR";
3
+
4
+ //#region src/locales/pt-BR.ts
5
+ var pt_BR_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { pt_BR_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/ru-RU";
3
- import i from "@univerjs/sheets-drawing-ui/locale/ru-RU";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/ru-RU";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/ru-RU";
3
+
4
+ //#region src/locales/ru-RU.ts
5
+ var ru_RU_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { ru_RU_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/sk-SK";
3
- import i from "@univerjs/sheets-drawing-ui/locale/sk-SK";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/sk-SK";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/sk-SK";
3
+
4
+ //#region src/locales/sk-SK.ts
5
+ var sk_SK_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { sk_SK_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import i from "@univerjs/drawing-ui/locale/vi-VN";
3
- import e from "@univerjs/sheets-drawing-ui/locale/vi-VN";
4
- const t = r(
5
- i,
6
- e
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/vi-VN";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/vi-VN";
3
+
4
+ //#region src/locales/vi-VN.ts
5
+ var vi_VN_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { vi_VN_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/zh-CN";
3
- import i from "@univerjs/sheets-drawing-ui/locale/zh-CN";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/zh-CN";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/zh-CN";
3
+
4
+ //#region src/locales/zh-CN.ts
5
+ var zh_CN_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { zh_CN_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/zh-HK";
3
- import i from "@univerjs/sheets-drawing-ui/locale/zh-HK";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/zh-HK";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/zh-HK";
3
+
4
+ //#region src/locales/zh-HK.ts
5
+ var zh_HK_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { zh_HK_default as default };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/zh-TW";
3
- import i from "@univerjs/sheets-drawing-ui/locale/zh-TW";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/zh-TW";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/zh-TW";
3
+
4
+ //#region src/locales/zh-TW.ts
5
+ var zh_TW_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { zh_TW_default as default };
package/lib/index.css CHANGED
@@ -1 +1,365 @@
1
- .univer-relative{position:relative}.univer-mt-2\.5{margin-top:.625rem}.univer-box-border{box-sizing:border-box}.univer-size-4{width:1rem;height:1rem}.univer-h-5{height:1.25rem}.univer-h-6{height:1.5rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-full{height:100%}.univer-w-6{width:1.5rem}.univer-w-full{width:100%}.univer-w-px{width:1px}.univer-min-w-32{min-width:8rem}.univer-min-w-9{min-width:2.25rem}.univer-flex-1{flex:1}.univer-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.univer-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-gap-1{gap:.25rem}.univer-rounded{border-radius:.25rem}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-border{border-width:1px}.univer-border-solid{border-style:solid}.univer-border-none{border-style:none}.\!univer-bg-gray-800{background-color:var(--univer-gray-800)!important}.\!univer-bg-gray-900{background-color:var(--univer-gray-900)!important}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-primary-50{background-color:var(--univer-primary-50)}.univer-bg-transparent{background-color:#0000}.univer-bg-white{background-color:var(--univer-white)}.univer-fill-primary-600{fill:var(--univer-primary-600)}.univer-p-0{padding:0}.univer-p-1{padding:.25rem}.univer-px-1{padding-left:.25rem;padding-right:.25rem}.univer-px-1\.5{padding-left:.375rem;padding-right:.375rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-text-left{text-align:left}.univer-text-center{text-align:center}.\!univer-text-primary-300{color:var(--univer-primary-300)!important}.univer-text-gray-700{color:var(--univer-gray-700)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-primary-600{color:var(--univer-primary-600)}.univer-shadow-lg{--univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;--univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 4px 6px #1e284d0d,0 10px 15px -3px #1e284d1a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.univer-shadow-sm{--univer-tw-shadow: 0px 1px 2px 0px #1e284d14;--univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #1e284d14;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.disabled\:univer-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:univer-opacity-40:disabled{opacity:.4}.dark\:\!univer-border-gray-700:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-800:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!important}.dark\:\!univer-bg-gray-900:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-900)!important}.dark\:\!univer-text-gray-100:where(.univer-dark,.univer-dark *){color:var(--univer-gray-100)!important}.dark\:\!univer-text-primary-300:where(.univer-dark,.univer-dark *){color:var(--univer-primary-300)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-800)!important}.\[\&\>div\]\:univer-grid>div{display:grid}.\[\&\>div\]\:univer-gap-2>div{gap:.5rem}.univer-flex{display:flex}.univer-grid{display:grid}.univer-hidden{display:none}.univer-flex-col{flex-direction:column}.univer-justify-end{justify-content:flex-end}.univer-gap-2{gap:.5rem}.univer-border-t{border-top-width:1px}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-py-2{padding-top:.5rem;padding-bottom:.5rem}.univer-pt-3{padding-top:.75rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-red-500{color:var(--univer-red-500)}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}
1
+ .univer-relative {
2
+ position: relative;
3
+ }
4
+
5
+ .univer-mt-2\.5 {
6
+ margin-top: .625rem;
7
+ }
8
+
9
+ .univer-box-border {
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .univer-flex {
14
+ display: flex;
15
+ }
16
+
17
+ .univer-grid {
18
+ display: grid;
19
+ }
20
+
21
+ .univer-hidden {
22
+ display: none;
23
+ }
24
+
25
+ .univer-size-4 {
26
+ width: 1rem;
27
+ height: 1rem;
28
+ }
29
+
30
+ .univer-h-6 {
31
+ height: 1.5rem;
32
+ }
33
+
34
+ .univer-h-7 {
35
+ height: 1.75rem;
36
+ }
37
+
38
+ .univer-h-8 {
39
+ height: 2rem;
40
+ }
41
+
42
+ .univer-h-full {
43
+ height: 100%;
44
+ }
45
+
46
+ .univer-w-6 {
47
+ width: 1.5rem;
48
+ }
49
+
50
+ .univer-w-full {
51
+ width: 100%;
52
+ }
53
+
54
+ .univer-min-w-32 {
55
+ min-width: 8rem;
56
+ }
57
+
58
+ .univer-min-w-9 {
59
+ min-width: 2.25rem;
60
+ }
61
+
62
+ .univer-flex-1 {
63
+ flex: 1;
64
+ }
65
+
66
+ .univer-grid-cols-2 {
67
+ grid-template-columns: repeat(2, minmax(0, 1fr));
68
+ }
69
+
70
+ .univer-grid-cols-3 {
71
+ grid-template-columns: repeat(3, minmax(0, 1fr));
72
+ }
73
+
74
+ .univer-items-center {
75
+ align-items: center;
76
+ }
77
+
78
+ .univer-justify-center {
79
+ justify-content: center;
80
+ }
81
+
82
+ .univer-gap-1 {
83
+ gap: .25rem;
84
+ }
85
+
86
+ .univer-gap-2 {
87
+ gap: .5rem;
88
+ }
89
+
90
+ .univer-rounded {
91
+ border-radius: .25rem;
92
+ }
93
+
94
+ .univer-rounded-lg {
95
+ border-radius: .5rem;
96
+ }
97
+
98
+ .univer-rounded-md {
99
+ border-radius: .375rem;
100
+ }
101
+
102
+ .univer-border {
103
+ border-width: 1px;
104
+ }
105
+
106
+ .univer-border-solid {
107
+ border-style: solid;
108
+ }
109
+
110
+ .univer-border-none {
111
+ border-style: none;
112
+ }
113
+
114
+ .univer-border-gray-200 {
115
+ border-color: var(--univer-gray-200);
116
+ }
117
+
118
+ .\!univer-bg-gray-800 {
119
+ background-color: var(--univer-gray-800) !important;
120
+ }
121
+
122
+ .\!univer-bg-gray-900 {
123
+ background-color: var(--univer-gray-900) !important;
124
+ }
125
+
126
+ .univer-bg-gray-100 {
127
+ background-color: var(--univer-gray-100);
128
+ }
129
+
130
+ .univer-bg-primary-50 {
131
+ background-color: var(--univer-primary-50);
132
+ }
133
+
134
+ .univer-bg-transparent {
135
+ background-color: #0000;
136
+ }
137
+
138
+ .univer-bg-white {
139
+ background-color: var(--univer-white);
140
+ }
141
+
142
+ .univer-fill-primary-600 {
143
+ fill: var(--univer-primary-600);
144
+ }
145
+
146
+ .univer-p-0 {
147
+ padding: 0;
148
+ }
149
+
150
+ .univer-p-1 {
151
+ padding: .25rem;
152
+ }
153
+
154
+ .univer-px-1 {
155
+ padding-left: .25rem;
156
+ padding-right: .25rem;
157
+ }
158
+
159
+ .univer-px-1\.5 {
160
+ padding-left: .375rem;
161
+ padding-right: .375rem;
162
+ }
163
+
164
+ .univer-px-2 {
165
+ padding-left: .5rem;
166
+ padding-right: .5rem;
167
+ }
168
+
169
+ .univer-py-1 {
170
+ padding-top: .25rem;
171
+ padding-bottom: .25rem;
172
+ }
173
+
174
+ .univer-py-2 {
175
+ padding-top: .5rem;
176
+ padding-bottom: .5rem;
177
+ }
178
+
179
+ .univer-text-left {
180
+ text-align: left;
181
+ }
182
+
183
+ .univer-text-center {
184
+ text-align: center;
185
+ }
186
+
187
+ .univer-text-sm {
188
+ font-size: .875rem;
189
+ line-height: 1.25rem;
190
+ }
191
+
192
+ .univer-text-xs {
193
+ font-size: .75rem;
194
+ line-height: 1rem;
195
+ }
196
+
197
+ .\!univer-text-primary-300 {
198
+ color: var(--univer-primary-300) !important;
199
+ }
200
+
201
+ .univer-text-gray-400 {
202
+ color: var(--univer-gray-400);
203
+ }
204
+
205
+ .univer-text-gray-600 {
206
+ color: var(--univer-gray-600);
207
+ }
208
+
209
+ .univer-text-gray-700 {
210
+ color: var(--univer-gray-700);
211
+ }
212
+
213
+ .univer-text-gray-900 {
214
+ color: var(--univer-gray-900);
215
+ }
216
+
217
+ .univer-text-primary-600 {
218
+ color: var(--univer-primary-600);
219
+ }
220
+
221
+ .univer-shadow-lg {
222
+ --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
223
+ --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
224
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px #1e284d0d, 0 10px 15px -3px #1e284d1a;
225
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
226
+ }
227
+
228
+ .univer-shadow-sm {
229
+ --univer-tw-shadow: 0px 1px 2px 0px #1e284d14;
230
+ --univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);
231
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px #1e284d14;
232
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
233
+ }
234
+
235
+ .univer-transition-colors {
236
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
237
+ transition-duration: .15s;
238
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
239
+ }
240
+
241
+ .hover\:univer-bg-gray-100:hover {
242
+ background-color: var(--univer-gray-100);
243
+ }
244
+
245
+ .disabled\:univer-cursor-not-allowed:disabled {
246
+ cursor: not-allowed;
247
+ }
248
+
249
+ .disabled\:univer-opacity-40:disabled {
250
+ opacity: .4;
251
+ }
252
+
253
+ .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
254
+ border-color: var(--univer-gray-700) !important;
255
+ }
256
+
257
+ .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
258
+ background-color: var(--univer-gray-700) !important;
259
+ }
260
+
261
+ .dark\:\!univer-bg-gray-800:where(.univer-dark, .univer-dark *) {
262
+ background-color: var(--univer-gray-800) !important;
263
+ }
264
+
265
+ .dark\:\!univer-bg-gray-900:where(.univer-dark, .univer-dark *) {
266
+ background-color: var(--univer-gray-900) !important;
267
+ }
268
+
269
+ .dark\:\!univer-text-gray-100:where(.univer-dark, .univer-dark *) {
270
+ color: var(--univer-gray-100) !important;
271
+ }
272
+
273
+ .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
274
+ color: var(--univer-gray-200) !important;
275
+ }
276
+
277
+ .dark\:\!univer-text-primary-300:where(.univer-dark, .univer-dark *) {
278
+ color: var(--univer-primary-300) !important;
279
+ }
280
+
281
+ .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
282
+ color: var(--univer-white) !important;
283
+ }
284
+
285
+ .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
286
+ background-color: var(--univer-gray-700) !important;
287
+ }
288
+
289
+ .dark\:hover\:\!univer-bg-gray-800:hover:where(.univer-dark, .univer-dark *) {
290
+ background-color: var(--univer-gray-800) !important;
291
+ }
292
+
293
+ .\[\&\>div\]\:univer-grid > div {
294
+ display: grid;
295
+ }
296
+
297
+ .\[\&\>div\]\:univer-gap-2 > div {
298
+ gap: .5rem;
299
+ }
300
+ .univer-flex {
301
+ display: flex;
302
+ }
303
+
304
+ .univer-grid {
305
+ display: grid;
306
+ }
307
+
308
+ .univer-hidden {
309
+ display: none;
310
+ }
311
+
312
+ .univer-flex-col {
313
+ flex-direction: column;
314
+ }
315
+
316
+ .univer-justify-end {
317
+ justify-content: flex-end;
318
+ }
319
+
320
+ .univer-gap-2 {
321
+ gap: .5rem;
322
+ }
323
+
324
+ .univer-border-t {
325
+ border-top-width: 1px;
326
+ }
327
+
328
+ .univer-border-gray-200 {
329
+ border-color: var(--univer-gray-200);
330
+ }
331
+
332
+ .univer-py-2 {
333
+ padding-top: .5rem;
334
+ padding-bottom: .5rem;
335
+ }
336
+
337
+ .univer-pt-3 {
338
+ padding-top: .75rem;
339
+ }
340
+
341
+ .univer-text-sm {
342
+ font-size: .875rem;
343
+ line-height: 1.25rem;
344
+ }
345
+
346
+ .univer-text-xs {
347
+ font-size: .75rem;
348
+ line-height: 1rem;
349
+ }
350
+
351
+ .univer-text-gray-400 {
352
+ color: var(--univer-gray-400);
353
+ }
354
+
355
+ .univer-text-gray-600 {
356
+ color: var(--univer-gray-600);
357
+ }
358
+
359
+ .univer-text-red-500 {
360
+ color: var(--univer-red-500);
361
+ }
362
+
363
+ .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
364
+ color: var(--univer-gray-200) !important;
365
+ }
package/lib/index.js CHANGED
@@ -1,30 +1,35 @@
1
- import { UniverDocsDrawingPlugin as n } from "@univerjs/docs-drawing";
2
- export * from "@univerjs/docs-drawing";
3
- import { UniverDrawingPlugin as t, IImageIoService as m } from "@univerjs/drawing";
4
- export * from "@univerjs/drawing";
5
- import { UniverDrawingUIPlugin as g } from "@univerjs/drawing-ui";
6
- export * from "@univerjs/drawing-ui";
7
- import { UniverSheetsDrawingPlugin as l } from "@univerjs/sheets-drawing";
8
- export * from "@univerjs/sheets-drawing";
9
- import { UniverSheetsDrawingUIPlugin as p } from "@univerjs/sheets-drawing-ui";
10
- export * from "@univerjs/sheets-drawing-ui";
11
- import "@univerjs/sheets-drawing/lib/facade";
12
- import "@univerjs/sheets-drawing-ui/lib/facade";
13
- function D(r = {}) {
14
- const { collaboration: o = !1, allowImageSize: i } = r;
15
- return {
16
- plugins: [
17
- [t, {
18
- override: o ? [[m, null]] : [],
19
- allowImageSize: i
20
- }],
21
- n,
22
- g,
23
- l,
24
- p
25
- ].filter((e) => !!e)
26
- };
1
+ import { UniverDocsDrawingPlugin } from "@univerjs/docs-drawing";
2
+ import { IImageIoService, UniverDrawingPlugin } from "@univerjs/drawing";
3
+ import { UniverDrawingUIPlugin } from "@univerjs/drawing-ui";
4
+ import { UniverSheetsDrawingPlugin } from "@univerjs/sheets-drawing";
5
+ import { UniverSheetsDrawingUIPlugin } from "@univerjs/sheets-drawing-ui";
6
+ import "@univerjs/sheets-drawing/facade";
7
+ import "@univerjs/sheets-drawing-ui/facade";
8
+
9
+ export * from "@univerjs/docs-drawing"
10
+
11
+ export * from "@univerjs/drawing"
12
+
13
+ export * from "@univerjs/drawing-ui"
14
+
15
+ export * from "@univerjs/sheets-drawing"
16
+
17
+ export * from "@univerjs/sheets-drawing-ui"
18
+
19
+ //#region src/preset.ts
20
+ function UniverSheetsDrawingPreset(config = {}) {
21
+ const { collaboration = false, allowImageSize } = config;
22
+ return { plugins: [
23
+ [UniverDrawingPlugin, {
24
+ override: collaboration ? [[IImageIoService, null]] : [],
25
+ allowImageSize
26
+ }],
27
+ UniverDocsDrawingPlugin,
28
+ UniverDrawingUIPlugin,
29
+ UniverSheetsDrawingPlugin,
30
+ UniverSheetsDrawingUIPlugin
31
+ ].filter((v) => !!v) };
27
32
  }
28
- export {
29
- D as UniverSheetsDrawingPreset
30
- };
33
+
34
+ //#endregion
35
+ export { UniverSheetsDrawingPreset };
@@ -1,10 +1,8 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs/drawing-ui/locale/ar-SA";
3
- import i from "@univerjs/sheets-drawing-ui/locale/ar-SA";
4
- const t = r(
5
- e,
6
- i
7
- );
8
- export {
9
- t as default
10
- };
1
+ import univerjsdrawingui from "@univerjs/drawing-ui/locale/ar-SA";
2
+ import univerjssheetsdrawingui from "@univerjs/sheets-drawing-ui/locale/ar-SA";
3
+
4
+ //#region src/locales/ar-SA.ts
5
+ var ar_SA_default = Object.assign({}, univerjsdrawingui, univerjssheetsdrawingui);
6
+
7
+ //#endregion
8
+ export { ar_SA_default as default };