yt-chat-components 2.0.6 → 2.0.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.
@@ -0,0 +1,234 @@
1
+ .closeImg {
2
+ width: 14px;
3
+ cursor: pointer;
4
+ }
5
+
6
+ .toolDialog {
7
+ height: 100%;
8
+ border-radius: 8px;
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: space-between;
12
+ }
13
+
14
+ .toolDialogSign {
15
+ width: calc(100vw - 140px);
16
+ min-width:1380px;
17
+ margin: 0 auto;
18
+ }
19
+
20
+ .dialogBox {
21
+ margin: 1.5rem auto 0;
22
+ width: calc(100vw - 140px);
23
+ height: calc(100vh - 192px);
24
+ background: #fff;
25
+ border-radius: 15px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ min-width:1380px;
29
+ }
30
+
31
+ .toolLeft {
32
+ display: flex;
33
+ flex-direction: column;
34
+ align-items: center;
35
+ width: 300px;
36
+ padding: 1.7rem 1.6rem 1.7rem 1.6rem;
37
+ border-top-left-radius: 8px;
38
+ border-bottom-left-radius: 8px;
39
+ }
40
+
41
+ .toolLogo {
42
+ user-select: none;
43
+ display: flex;
44
+ align-items: center;
45
+ margin-top: 18px;
46
+ padding-left: 32px;
47
+ padding-bottom: 12px;
48
+ border-bottom: #E5E5E5 solid 1px;
49
+ }
50
+
51
+ .logoImg {
52
+ width: 48px;
53
+ position: absolute;
54
+ }
55
+
56
+ .logoText {
57
+ font-weight: bold;
58
+ margin-left: 10px;
59
+ font-size: 20px;
60
+ /* background: linear-gradient(to right, #1551FF, #8F4BFF); */
61
+ -webkit-background-clip: text;
62
+ -webkit-text-fill-color: transparent;
63
+ }
64
+
65
+ .historyDialog {
66
+ user-select: none;
67
+ margin-top: 24px;
68
+ margin-bottom: 24px;
69
+ border-radius: 10px;
70
+ flex: 1;
71
+ width: 100%;
72
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
73
+ border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 1 1;
74
+ backdrop-filter: blur(10px);
75
+ position: relative;
76
+ max-height: calc(100% - 60px);
77
+ }
78
+
79
+ .historyTitle {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: space-between;
83
+ }
84
+
85
+ .historyImg {
86
+ width: 25px;
87
+ }
88
+
89
+ .dialogTitle {
90
+ font-size: 18px;
91
+ line-height: 16px;
92
+ text-align: left;
93
+ font-style: normal;
94
+ display: flex;
95
+ font-weight: normal;
96
+ color: #A4A4A4;
97
+ }
98
+
99
+ .historyListEmpty {
100
+ position: absolute;
101
+ top: 50%;
102
+ left: 50%;
103
+ transform: translate(-50%, -50%);
104
+ text-align: center;
105
+ font-size: 12px;
106
+ color: #999999;
107
+ max-height: calc(100% - 1.7rem);
108
+ }
109
+
110
+ .historyList {
111
+ height: calc(100% - 1.7rem);
112
+ margin-top: 10px;
113
+ overflow-y: auto;
114
+ scrollbar-width: none !important; /* firefox */
115
+ }
116
+
117
+ .historyList::-webkit-scrollbar {
118
+ display: none;
119
+ }
120
+
121
+ .historyList:hover {
122
+ scrollbar-width: thin !important; /* firefox */
123
+ scrollbar-color: #ced4e3 transparent;
124
+ }
125
+
126
+ .historyItem {
127
+ padding: 10px 16px;
128
+ padding-left: 0;
129
+ }
130
+
131
+ .historyItem:hover {
132
+ background: #F5F5F5;
133
+ border-radius: 9px;
134
+ color: #1552FF;
135
+ }
136
+
137
+ .activeItem {
138
+ background: #1974FF !important;
139
+ border-radius: 9px;
140
+ color: #FFFFFF !important;
141
+ }
142
+
143
+ .historyName {
144
+ overflow: hidden;
145
+ text-overflow: ellipsis;
146
+ white-space: nowrap;
147
+ cursor: pointer;
148
+ display: flex;
149
+ align-items: center;
150
+ }
151
+
152
+ .toolRight {
153
+ flex: 1;
154
+ /*background: #f5f5f5;*/
155
+ max-width: 780px;
156
+ }
157
+
158
+ .toolRightToRight {
159
+ height: 100%;
160
+ width: 300px;
161
+ display: flex;
162
+ flex-direction: column;
163
+ padding: 1.7rem 1.6rem 1.8rem 1.6rem;
164
+ }
165
+
166
+ .hot {
167
+ display: flex;
168
+ align-items: center;
169
+ }
170
+
171
+ .hot img {
172
+ width: 19px;
173
+ margin-right: 10px;
174
+ }
175
+
176
+ .hot span {
177
+ font-size: 18px;
178
+ color: #000000;
179
+ line-height: 59px;
180
+ }
181
+
182
+ .carousel h3 {
183
+ margin: 0;
184
+ border-radius: 12px;
185
+ }
186
+
187
+ .carousel .slickDotsBottom {
188
+ justify-content: end;
189
+ right: 12px;
190
+ bottom: -10px;
191
+ }
192
+
193
+ .antCarousel .slickDots li.slickActive::after {
194
+ background: #1974FF;
195
+ }
196
+
197
+ .antCarousel .slickDots li button {
198
+ background: #000000;
199
+ }
200
+
201
+ .newDialog {
202
+ width: 252px;
203
+ height: 40px;
204
+ min-height: 40px;
205
+ cursor: pointer;
206
+ display: flex;
207
+ color: #0060FF;
208
+ align-items: center;
209
+ background: #EAF3FF;
210
+ border-radius: 11px;
211
+ border: 1px solid #1974FF;
212
+ transition: all 0.2s ease;
213
+ }
214
+
215
+ .newDialog:hover {
216
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
217
+ }
218
+
219
+ .newDialog:active {
220
+ background-color: #c4d9ff;
221
+ border-color: #0040aa;
222
+ transform: translateY(2px);
223
+ box-shadow: none;
224
+ }
225
+
226
+ .newDialogText {
227
+ margin-left: 6px;
228
+ }
229
+
230
+ .footer {
231
+ text-align: center;
232
+ margin-bottom: 1.5rem;
233
+ margin-top: 1.5rem;
234
+ }
package/src/index.tsx CHANGED
@@ -1,13 +1,14 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom';
3
- import LogoBtn from './YtChatView/logoBtn/index';
4
- import ToolDialog from "./YtChatView/previewDialog/index";
5
- import LogoSplitBtn from "./YtChatView/logoSplitBtn/index";
6
- import MobileChatPage from "./YtChatView/mobileChat/index";
7
- import ToolDialogV2 from "./YtChatView/previewDialogV2/index";
8
- import MobileChatPageV2 from "./YtChatView/mobileChatV2/index";
9
-
10
- // 手动注入 React 和 ReactDOM 到全局
11
- window.React = React;
12
- window.ReactDOM = ReactDOM;
13
- export {ToolDialog, LogoSplitBtn, LogoBtn, MobileChatPage, ToolDialogV2, MobileChatPageV2}
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom';
3
+ import LogoBtn from './YtChatView/logoBtn/index';
4
+ import ToolDialog from "./YtChatView/previewDialog/index";
5
+ import LogoSplitBtn from "./YtChatView/logoSplitBtn/index";
6
+ import MobileChatPage from "./YtChatView/mobileChat/index";
7
+ import ToolDialogV2 from "./YtChatView/previewDialogV2/index";
8
+ import MobileChatPageV2 from "./YtChatView/mobileChatV2/index";
9
+ import MobileChatPageV3 from "./YtChatView/mobileChatV2/index";
10
+
11
+ // 手动注入 React ReactDOM 到全局
12
+ window.React = React;
13
+ window.ReactDOM = ReactDOM;
14
+ export {ToolDialog, LogoSplitBtn, LogoBtn, MobileChatPage, ToolDialogV2, MobileChatPageV2, MobileChatPageV3}