wenay-react2 1.0.1

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 (92) hide show
  1. package/lib/common/api.d.ts +17 -0
  2. package/lib/common/api.js +24 -0
  3. package/lib/common/src/components/Buttons/MiniButton.d.ts +17 -0
  4. package/lib/common/src/components/Buttons/MiniButton.js +18 -0
  5. package/lib/common/src/components/Buttons/index.d.ts +1 -0
  6. package/lib/common/src/components/Buttons/index.js +1 -0
  7. package/lib/common/src/components/Dnd/DraggableOutlineDiv.d.ts +1 -0
  8. package/lib/common/src/components/Dnd/DraggableOutlineDiv.js +31 -0
  9. package/lib/common/src/components/Dnd/RNDFunc.d.ts +13 -0
  10. package/lib/common/src/components/Dnd/RNDFunc.js +111 -0
  11. package/lib/common/src/components/Dnd/RNDFunc3.d.ts +81 -0
  12. package/lib/common/src/components/Dnd/RNDFunc3.js +380 -0
  13. package/lib/common/src/components/Dnd/Resizable.d.ts +15 -0
  14. package/lib/common/src/components/Dnd/Resizable.js +36 -0
  15. package/lib/common/src/components/Dnd/index.d.ts +4 -0
  16. package/lib/common/src/components/Dnd/index.js +4 -0
  17. package/lib/common/src/components/Input.d.ts +28 -0
  18. package/lib/common/src/components/Input.js +30 -0
  19. package/lib/common/src/components/Menu/RightMenu.d.ts +22 -0
  20. package/lib/common/src/components/Menu/RightMenu.js +179 -0
  21. package/lib/common/src/components/Menu/StickerMenu.d.ts +5 -0
  22. package/lib/common/src/components/Menu/StickerMenu.js +110 -0
  23. package/lib/common/src/components/Menu/index.d.ts +2 -0
  24. package/lib/common/src/components/Menu/index.js +2 -0
  25. package/lib/common/src/components/Modal/LeftModal.d.ts +58 -0
  26. package/lib/common/src/components/Modal/LeftModal.js +284 -0
  27. package/lib/common/src/components/Modal/Modal.d.ts +31 -0
  28. package/lib/common/src/components/Modal/Modal.js +104 -0
  29. package/lib/common/src/components/Modal/index.d.ts +2 -0
  30. package/lib/common/src/components/Modal/index.js +2 -0
  31. package/lib/common/src/components/MyResizeObserver.d.ts +10 -0
  32. package/lib/common/src/components/MyResizeObserver.js +94 -0
  33. package/lib/common/src/components/Other.d.ts +9 -0
  34. package/lib/common/src/components/Other.js +31 -0
  35. package/lib/common/src/components/Parameters.d.ts +10 -0
  36. package/lib/common/src/components/Parameters.js +24 -0
  37. package/lib/common/src/components/ParametersEngine.d.ts +8 -0
  38. package/lib/common/src/components/ParametersEngine.js +373 -0
  39. package/lib/common/src/components/index.d.ts +9 -0
  40. package/lib/common/src/components/index.js +9 -0
  41. package/lib/common/src/hooks/index.d.ts +3 -0
  42. package/lib/common/src/hooks/index.js +3 -0
  43. package/lib/common/src/hooks/useAddDownAnyKey.d.ts +5 -0
  44. package/lib/common/src/hooks/useAddDownAnyKey.js +22 -0
  45. package/lib/common/src/hooks/useDraggable.d.ts +15 -0
  46. package/lib/common/src/hooks/useDraggable.js +134 -0
  47. package/lib/common/src/hooks/useOutside.d.ts +40 -0
  48. package/lib/common/src/hooks/useOutside.js +68 -0
  49. package/lib/common/src/logs/logs.d.ts +163 -0
  50. package/lib/common/src/logs/logs.js +249 -0
  51. package/lib/common/src/logs/logs3.d.ts +63 -0
  52. package/lib/common/src/logs/logs3.js +245 -0
  53. package/lib/common/src/logs/miniLogs.d.ts +5 -0
  54. package/lib/common/src/logs/miniLogs.js +51 -0
  55. package/lib/common/src/menu/menu.d.ts +72 -0
  56. package/lib/common/src/menu/menu.js +230 -0
  57. package/lib/common/src/menu/menuMouse.d.ts +21 -0
  58. package/lib/common/src/menu/menuMouse.js +32 -0
  59. package/lib/common/src/menu/menuR.d.ts +17 -0
  60. package/lib/common/src/menu/menuR.js +116 -0
  61. package/lib/common/src/myChart/1/myChart.d.ts +40 -0
  62. package/lib/common/src/myChart/1/myChart.js +306 -0
  63. package/lib/common/src/myChart/1/myChartTest.d.ts +1 -0
  64. package/lib/common/src/myChart/1/myChartTest.js +45 -0
  65. package/lib/common/src/myChart/chartEngine/chartEngineReact.d.ts +164 -0
  66. package/lib/common/src/myChart/chartEngine/chartEngineReact.js +834 -0
  67. package/lib/common/src/styles/index.d.ts +1 -0
  68. package/lib/common/src/styles/index.js +1 -0
  69. package/lib/common/src/styles/styleGrid.d.ts +20 -0
  70. package/lib/common/src/styles/styleGrid.js +50 -0
  71. package/lib/common/src/utils/applyTransactionAsyncUpdate.d.ts +42 -0
  72. package/lib/common/src/utils/applyTransactionAsyncUpdate.js +97 -0
  73. package/lib/common/src/utils/arrayPromise.d.ts +5 -0
  74. package/lib/common/src/utils/arrayPromise.js +16 -0
  75. package/lib/common/src/utils/cache.d.ts +31 -0
  76. package/lib/common/src/utils/cache.js +119 -0
  77. package/lib/common/src/utils/index.d.ts +6 -0
  78. package/lib/common/src/utils/index.js +6 -0
  79. package/lib/common/src/utils/inputAutoStep.d.ts +4 -0
  80. package/lib/common/src/utils/inputAutoStep.js +79 -0
  81. package/lib/common/src/utils/mapMemory.d.ts +26 -0
  82. package/lib/common/src/utils/mapMemory.js +72 -0
  83. package/lib/common/src/utils/pageVisibilityContext.d.ts +5 -0
  84. package/lib/common/src/utils/pageVisibilityContext.js +18 -0
  85. package/lib/common/updateBy.d.ts +12 -0
  86. package/lib/common/updateBy.js +88 -0
  87. package/lib/index.d.ts +1 -0
  88. package/lib/index.js +3 -0
  89. package/lib/style/menuRight.css +139 -0
  90. package/lib/style/style.css +334 -0
  91. package/lib/tsconfig.json +6 -0
  92. package/package.json +50 -0
@@ -0,0 +1,88 @@
1
+ import { useLayoutEffect, useState } from "react";
2
+ import { waitRun } from "wenay-common2";
3
+ export const map3 = new WeakMap();
4
+ export const mapWait = new Map();
5
+ export function renderBy(a, ms) {
6
+ const t = () => map3.get(a)?.forEach(e => e(a));
7
+ if (ms) {
8
+ (mapWait.get(a) || mapWait.set(a, waitRun()).get(a))
9
+ .refreshAsync(ms, () => {
10
+ mapWait.delete(a);
11
+ t();
12
+ });
13
+ }
14
+ else
15
+ t();
16
+ }
17
+ export function renderByRevers(a, ms, reverse = true) {
18
+ const ar = [];
19
+ map3.get(a)?.forEach(e => ar.push(e));
20
+ const t = reverse ? () => ar.reverse().forEach(e => e(a))
21
+ : () => ar.forEach(e => e(a));
22
+ if (ms) {
23
+ (mapWait.get(a) || mapWait.set(a, waitRun()).get(a))
24
+ .refreshAsync(ms, () => {
25
+ mapWait.delete(a);
26
+ t();
27
+ });
28
+ }
29
+ else
30
+ t();
31
+ }
32
+ export function renderByLast(a, ms) {
33
+ const ar = [];
34
+ map3.get(a)?.forEach(e => ar.push(e));
35
+ const t = () => ar.at(-1)?.();
36
+ if (ms) {
37
+ (mapWait.get(a) || mapWait.set(a, waitRun()).get(a))
38
+ .refreshAsync(ms, () => {
39
+ mapWait.delete(a);
40
+ t();
41
+ });
42
+ }
43
+ else
44
+ t();
45
+ }
46
+ // Главная функция
47
+ export function useUpdateBy(a, f) {
48
+ const [_, setCounter] = useState(0); // Состояние счётчика для обновлений
49
+ // Эффект для работы с объектом и картой
50
+ useLayoutEffect(() => {
51
+ // Если передан второй аргумент `f`, используем его, иначе создаём default-функцию
52
+ const func = f ?? (() => {
53
+ setCounter(prev => prev + 1);
54
+ });
55
+ // Получаем карту из глобальной переменной map3 или создаём новую для объекта `a`
56
+ const funcMap = map3.get(a) || map3.set(a, new Map()).get(a);
57
+ funcMap.set(func, func); // Привязываем функцию обновления к объекту `a`
58
+ // Возвращаем функцию очистки (cleanup), чтобы удалить привязки
59
+ return () => {
60
+ funcMap.delete(func); // Удаляем функцию из карты
61
+ if (funcMap.size === 0) {
62
+ map3.delete(a); // Удаляем объект из `map3`, если он больше не нужен
63
+ }
64
+ };
65
+ }, [a, f]); // Указываем зависимости: объект `a` и функция `f`
66
+ }
67
+ // Backward-compatible name (hook rules are the same).
68
+ export function updateBy(a, f) {
69
+ return useUpdateBy(a, f);
70
+ }
71
+ // export function updateBy<T extends object>(a: T, f?: React.Dispatch<React.SetStateAction<T>> | ((a: T) => void)) {
72
+ // const t = useState(0)
73
+ // useLayoutEffect(() => {
74
+ // const func = f ?? ((a: T) =>{
75
+ // // без особых причин только для первого рендера - необходима два вызова, иначе - вызов не проходит
76
+ // if (t[0] == 0) {
77
+ // t[1](t[0]++)
78
+ // // t[1](t[0]++)
79
+ // }
80
+ // else t[1](t[0]++)
81
+ // })
82
+ // const r = (map3.get(a) || map3.set(a, new Map()).get(a)!)
83
+ // r.set(func, func)
84
+ // return ()=> {
85
+ // r?.delete(func)
86
+ // }
87
+ // },[true])
88
+ // }
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./common/api";
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./common/api";
2
+ import { test } from "./common/api";
3
+ test();
@@ -0,0 +1,139 @@
1
+ :root {
2
+ --base-border: 1px solid rgba(255, 255, 255, 0.41);
3
+ --base-color-hover: #fff;
4
+ }
5
+ :root {
6
+ --menu-bg-color: rgba(12, 12, 12, 0.91);
7
+ --menu-blur: 10px;
8
+ --menu-border: var(--base-border);
9
+ --menu-active-background: rgba(255, 255, 255, 0.23);
10
+
11
+ --menu-item-color: var(--base-color-hover);
12
+ --menu-item-hover-color: #101010;
13
+ --menu-item-hover-bg-color: var(--base-color-hover);
14
+
15
+ }
16
+
17
+ .menu-container{
18
+ position: fixed;
19
+ user-select: none;
20
+ right: 0;
21
+ }
22
+ .menu-container.activeM {
23
+ background: var(--menu-active-background);
24
+ }
25
+
26
+ .menu-button {
27
+ padding: 4px 10px;
28
+ color: var(--menu-item-color);
29
+ font-size: 28px;
30
+ border: none;
31
+ background: transparent;
32
+ cursor: pointer;
33
+ }
34
+
35
+ .dropdown-content2 {
36
+ position: absolute;
37
+ /*right: 0;*/
38
+ top: 100%;
39
+ }
40
+
41
+ .dropdown-content2.dropdown-up {
42
+ top: auto;
43
+ bottom: 100%;
44
+ align-items: flex-end;
45
+ }
46
+
47
+
48
+ .dropdown-content {
49
+ background: var(--menu-bg-color);
50
+ border-top: var(--menu-border);
51
+ border-left: var(--menu-border);
52
+ border-right: var(--menu-border);
53
+ user-select: none;
54
+ min-width: 50px;
55
+ height: min-content;
56
+ width: max-content;
57
+ }
58
+
59
+ .menu-item {
60
+ min-height: 30px;
61
+ padding: 10px;
62
+ position: relative;
63
+ cursor: pointer;
64
+ border-bottom: var(--menu-border);
65
+ transition: background 0.3s;
66
+ }
67
+
68
+ .menu-item:hover,
69
+ .menu-item.force-hover {
70
+ background: var(--menu-item-hover-bg-color);
71
+ color: var(--menu-item-hover-color);
72
+ }
73
+
74
+ .submenu {
75
+ background: var(--menu-bg-color);
76
+
77
+ backdrop-filter: blur(var(--menu-blur)); /* Размытие */
78
+ -webkit-backdrop-filter: blur(var(--menu-blur)); /* Для Safari */
79
+
80
+ border: var(--menu-border);
81
+ min-width: 200px;
82
+ }
83
+ .draggable-div {
84
+ position: relative;
85
+ /*padding: 20px;*/
86
+ /*margin: 20px;*/
87
+ /*background-color: #fff;*/
88
+ /*border: 1px solid #ddd; !* базовая граница, можно убрать *!*/
89
+ cursor: pointer;
90
+ }
91
+
92
+ /* Псевдоэлемент для отрисовки обводки */
93
+ .draggable-div::after {
94
+ content: "";
95
+ position: absolute;
96
+ top: 0;
97
+ left: 0;
98
+ width: 100%;
99
+ height: 100%;
100
+ border: 3px solid transparent;
101
+ pointer-events: none;
102
+ box-sizing: border-box;
103
+ }
104
+
105
+ /* Запуск анимации, когда зажата кнопка мыши */
106
+ .draggable-div.outline-animation::after {
107
+ animation: running-line 0.5s linear forwards;
108
+ }
109
+
110
+ /* Если анимация успела завершиться, обводка остается */
111
+ .draggable-div.outline-complete::after {
112
+ border-color: #007bff;
113
+ /* Чтобы псевдоэлемент точно отображал полную обводку */
114
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
115
+ }
116
+
117
+ /* Анимация «бегущей линии» */
118
+ @keyframes running-line {
119
+ 0% {
120
+ border-color: transparent;
121
+ clip-path: polygon(0 0, 0 0, 0 0, 0 0);
122
+ }
123
+ 25% {
124
+ border-color: #007bff;
125
+ /* Рисуем верхнюю линию */
126
+ clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
127
+ }
128
+ 50% {
129
+ /* Добавляем правую сторону */
130
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
131
+ }
132
+ 75% {
133
+ /* Добавляем нижнюю сторону */
134
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
135
+ }
136
+ 100% {
137
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
138
+ }
139
+ }
@@ -0,0 +1,334 @@
1
+ :root {
2
+ /* Основные фоновые цвета */
3
+ --color-bg-dark: #131821;
4
+ --color-bg-light: #17202e;
5
+
6
+ /* Скролл */
7
+ --color-scrollbar-track: rgba(255, 255, 255, 0);
8
+ --color-scrollbar-thumb: #1d262c;
9
+ /* альтернатива для MSTradeScroll */
10
+ --color-scrollbar-thumb-alt: #4c4562;
11
+
12
+ /* Основные текстовые/обводки */
13
+ --color-text-base: #c4c4c4;
14
+ --color-text-theme: #5D9FFA;
15
+ --color-border-common: rgb(50, 62, 71);
16
+ }
17
+
18
+ /* Сбрасываем box-sizing */
19
+ *,
20
+ *::before,
21
+ *::after {
22
+ -moz-box-sizing: border-box;
23
+ -webkit-box-sizing: border-box;
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ /* Основные фоны */
28
+ html,
29
+ .fon {
30
+ background: var(--color-bg-dark);
31
+ }
32
+ .fonLight {
33
+ background: var(--color-bg-light);
34
+ }
35
+
36
+ /* Стили прокрутки (scrollbar) */
37
+ body::-webkit-scrollbar {
38
+ width: 12px; /* ширина scrollbar */
39
+ }
40
+ ::-webkit-scrollbar-track {
41
+ background: var(--color-scrollbar-track); /* цвет дорожки */
42
+ }
43
+ ::-webkit-scrollbar-thumb {
44
+ background-color: var(--color-scrollbar-thumb); /* цвет плашки */
45
+ border-radius: 20px; /* закругления плашки */
46
+ }
47
+
48
+ .MSTradeScroll .ag-body-viewport::-webkit-scrollbar-track {
49
+ background: var(--color-scrollbar-track);
50
+ }
51
+ .MSTradeScroll .ag-body-viewport::-webkit-scrollbar-thumb {
52
+ background-color: var(--color-scrollbar-thumb-alt) !important;
53
+ border-radius: 20px;
54
+ }
55
+
56
+ /* Дублирующие селекторы scrollbar, если нужна поддержка под некоторыми движками */
57
+ *::-webkit-scrollbar {
58
+ width: 12px;
59
+ }
60
+ *::-webkit-scrollbar-track {
61
+ background: var(--color-scrollbar-track);
62
+ }
63
+ *::-webkit-scrollbar-thumb {
64
+ background-color: var(--color-scrollbar-thumb);
65
+ border-radius: 20px;
66
+ }
67
+
68
+ /* Кнопки */
69
+ .defButton {
70
+ padding: 20px;
71
+ display: block;
72
+ width: 30%;
73
+ }
74
+
75
+ html {
76
+ height: 100vh;
77
+ }
78
+
79
+ .toRight {
80
+ float: right;
81
+ margin-right: 20px;
82
+ margin-left: auto;
83
+ }
84
+ .toLine {
85
+ display: flex;
86
+ }
87
+
88
+ /* инпуты */
89
+ .toNumberInput {
90
+ width: 70px;
91
+ margin-right: 10%;
92
+ }
93
+ input:invalid {
94
+ box-shadow: 0 0 5px 1px red;
95
+ }
96
+
97
+ /* Блоки-кнопки, миниэлементы */
98
+ .toButton,
99
+ .miniEl,
100
+ .toButtonA,
101
+ .toButtonEasy {
102
+ text-align: center;
103
+ height: auto;
104
+ cursor: default;
105
+ }
106
+
107
+ /* Кнопки Switch */
108
+ .LeftMenuParameters {
109
+ font-size: 12px;
110
+ min-height: 30px;
111
+ }
112
+ .miniEl {
113
+ margin-left: auto;
114
+ padding: 8px 10px;
115
+ margin-right: 10px;
116
+ font-size: 12px;
117
+ }
118
+
119
+ /* Заполнение последнего дива на всю оставшуюся часть */
120
+ .toSpace,
121
+ .toSpaceColum {
122
+ display: flex;
123
+ }
124
+ .toSpaceColum {
125
+ flex-direction: column;
126
+ }
127
+ .toSpaceStatic {
128
+ flex: 0 0 auto;
129
+ }
130
+ .toSpaceOther {
131
+ flex: 1 1 100%;
132
+ }
133
+
134
+ /* Кнопки */
135
+ .toButton {
136
+ padding: 8px 10px;
137
+ height: 30px;
138
+ display: block;
139
+ }
140
+ .toButtonEasy {
141
+ height: auto;
142
+ display: block;
143
+ }
144
+ .toButtonA {
145
+ user-select: none;
146
+ height: 30px;
147
+ padding: 8px 10px;
148
+ display: block;
149
+ }
150
+
151
+ /* Меню */
152
+ .MenuR {
153
+ box-shadow: 0 0 20px 14px rgba(34, 60, 80, 0.2);
154
+ margin-top: 4px;
155
+ min-width: 80px;
156
+ width: max-content;
157
+ background: rgba(12, 12, 12, 0.91);
158
+ }
159
+
160
+ .maxSize {
161
+ height: 100%;
162
+ width: 100%;
163
+ }
164
+
165
+ .testAnime {
166
+ animation: 100ms ease-in-out moveDown;
167
+ }
168
+
169
+ @keyframes moveDown {
170
+ from {
171
+ margin-top: -65px;
172
+ }
173
+ to {
174
+ margin-top: 0;
175
+ }
176
+ }
177
+ .border {
178
+ border: solid 1px var(--color-border-common);
179
+ }
180
+
181
+ /* Наведение/активность */
182
+ .toButtonA,
183
+ .miniEl:hover {
184
+ user-select: none;
185
+ color: var(--color-text-theme);
186
+ text-align: center;
187
+ cursor: default;
188
+ }
189
+ .miniEl:hover {
190
+ color: var(--color-text-theme);
191
+ }
192
+ .toButton:hover,
193
+ .toButton:active,
194
+ .toButtonA {
195
+ user-select: none;
196
+ min-height: 30px;
197
+ border-bottom-style: solid;
198
+ border-color: var(--color-text-theme);
199
+ color: var(--color-text-theme);
200
+ display: block;
201
+ padding: 8px 10px;
202
+ }
203
+ .toButtonA:hover {
204
+ /* border-color: #ffffff; */
205
+ color: #ffffff;
206
+ }
207
+ .toButtonEasy:hover {
208
+ color: var(--color-text-theme);
209
+ }
210
+
211
+ /* Элементы меню-индикаторы */
212
+ .toIndicatorMenuButton {
213
+ user-select: none;
214
+ padding-left: 10px;
215
+ padding-top: 2px;
216
+ padding-bottom: 2px;
217
+ vertical-align: middle;
218
+ }
219
+ .toIndicatorMenuButton:hover {
220
+ background: #3a4b57;
221
+ }
222
+
223
+ /* input-стили */
224
+ .inputCan {
225
+ -webkit-writing-mode: horizontal-tb !important;
226
+ text-rendering: auto;
227
+ color: inherit;
228
+ letter-spacing: normal;
229
+ word-spacing: normal;
230
+ text-transform: none;
231
+ text-indent: 0;
232
+ text-shadow: none;
233
+ display: inline-block;
234
+ background-color: inherit;
235
+ -webkit-rtl-ordering: logical;
236
+ cursor: text;
237
+ font: inherit;
238
+ padding: 1px 2px;
239
+ outline: none;
240
+ text-align: right;
241
+ font-size: 14px;
242
+
243
+ border-image: none;
244
+ border-style: none;
245
+ border-color: var(--color-text-theme);
246
+ }
247
+ .inputCan:hover {
248
+ color: var(--color-text-theme);
249
+ border-image: none;
250
+ }
251
+ .inputCan:active,
252
+ .inputCan:focus {
253
+ color: var(--color-text-theme);
254
+ border-image: none;
255
+ }
256
+
257
+ /* Кнопки формы */
258
+ button[type="submit"] {
259
+ background: #86b32d;
260
+ border-bottom: 1px solid #5d7d1f;
261
+ }
262
+ input[type="color"] {
263
+ width: 30px;
264
+ height: 30px;
265
+ border: none;
266
+ overflow: hidden;
267
+ background-color: transparent;
268
+ color: transparent;
269
+ padding: 0;
270
+ display: block;
271
+ }
272
+
273
+ /* Основное тело */
274
+ body {
275
+ color: var(--color-text-base);
276
+ vertical-align: middle;
277
+ font-family: 'Roboto', serif;
278
+ font-size: 12px;
279
+ text-transform: uppercase;
280
+
281
+ margin: 0;
282
+ height: 100vh;
283
+ width: 100%;
284
+
285
+ display: flex;
286
+ }
287
+
288
+ /* Текстовые блоки */
289
+ .toPTextIndicator {
290
+ margin-block-start: 0.7em;
291
+ margin-block-end: 0.7em;
292
+ }
293
+
294
+ /* React анимации появления/удаления */
295
+ .example-exit {
296
+ opacity: 1;
297
+ transform: translateY(0px);
298
+ }
299
+ .example-exit.example-exit-active {
300
+ opacity: 0;
301
+ transform: translateY(-250px);
302
+ transition: 0.3s;
303
+ }
304
+
305
+ /* Доп. стили .msTradeAlt */
306
+ .msTradeAlt {
307
+ font-size: 12px;
308
+ cursor: default;
309
+ color: #676E73;
310
+ background: #1f272d;
311
+ justify-content: center;
312
+ align-items: center;
313
+ padding: 3px 4px;
314
+ margin: 3px 4px;
315
+ gap: 10px;
316
+ height: 24px;
317
+ border-radius: 4px;
318
+ line-height: 18px;
319
+ user-select: none;
320
+ }
321
+ .msTradeAlt:hover {
322
+ color: #a6b2b7;
323
+ background: #1f272d;
324
+ }
325
+ .msTradeActive {
326
+ color: #bdbdbd;
327
+ background: #262f36;
328
+ }
329
+ .newButtonSimple {
330
+ border: rgba(255, 255, 255, 0.1) 1px solid;
331
+ border-radius: 8px;
332
+ margin-top: -1px;
333
+ margin-left: -1px;
334
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonJS",
4
+ "target": "esnext"
5
+ }
6
+ }
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "wenay-react2",
3
+ "version": "1.0.1",
4
+ "description": "Common react",
5
+ "strict": true,
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "lib/**/*",
10
+ "README.md",
11
+ "!**/*.tsbuildinfo"
12
+ ],
13
+ "author": "wenay",
14
+ "license": "ISC",
15
+ "peerDependenciesMeta": {
16
+ "react-dom": {
17
+ "optional": true
18
+ }
19
+ },
20
+ "dependencies": {
21
+ "ag-grid-community": "^34.2.0",
22
+ "ag-grid-react": "^34.2.0",
23
+ "re-resizable": "^6.11.2",
24
+ "react": "^19.2.0",
25
+ "react-dom": "^19.2.0",
26
+ "react-rnd": "^10.5.2",
27
+ "wenay-common2": "^1.0.17"
28
+ },
29
+ "peerDependencies": {
30
+ "react": "^19.2.0",
31
+ "react-dom": "^19.2.0"
32
+ },
33
+ "engines": {
34
+ "node": ">=18",
35
+ "vscode": "^1.22.0"
36
+ },
37
+ "browserslist": {
38
+ "production": [
39
+ ">0.2%",
40
+ "not dead"
41
+ ],
42
+ "development": [
43
+ ">1%"
44
+ ]
45
+ },
46
+ "exports": {
47
+ ".": "./lib/index.js",
48
+ "./package.json": "./package.json"
49
+ }
50
+ }