@copilotkit/react-core 1.9.2-next.7 → 1.9.2-next.9
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.
- package/CHANGELOG.md +16 -0
- package/dist/{chunk-CCESTGAM.mjs → chunk-3OQM3NEK.mjs} +2 -2
- package/dist/{chunk-T4ZKC4X4.mjs → chunk-3YHYWAHK.mjs} +2 -2
- package/dist/{chunk-ISYBUDL4.mjs → chunk-55QZ2SVJ.mjs} +4 -5
- package/dist/chunk-55QZ2SVJ.mjs.map +1 -0
- package/dist/chunk-57K2ZJ5F.mjs +348 -0
- package/dist/chunk-57K2ZJ5F.mjs.map +1 -0
- package/dist/{chunk-ZHEEHGLS.mjs → chunk-ADIITPD2.mjs} +8 -5
- package/dist/{chunk-ZHEEHGLS.mjs.map → chunk-ADIITPD2.mjs.map} +1 -1
- package/dist/{chunk-S4BOATBG.mjs → chunk-EF5BNM34.mjs} +2 -2
- package/dist/{chunk-I4JPQECN.mjs → chunk-EXU7GWLC.mjs} +4 -4
- package/dist/{chunk-7G6RR4HE.mjs → chunk-FXK6RQIN.mjs} +2 -2
- package/dist/{chunk-JXF732XG.mjs → chunk-G7LYGERN.mjs} +80 -13
- package/dist/chunk-G7LYGERN.mjs.map +1 -0
- package/dist/{chunk-VJCHRQ7Q.mjs → chunk-JDEWNLNP.mjs} +37 -4
- package/dist/chunk-JDEWNLNP.mjs.map +1 -0
- package/dist/{chunk-JHIZ5HAI.mjs → chunk-NQVCZQ5T.mjs} +3 -3
- package/dist/{chunk-VF6UPRKM.mjs → chunk-OF4SZTLL.mjs} +3 -3
- package/dist/{chunk-QQZLIEXK.mjs → chunk-SJJNFYGQ.mjs} +3 -3
- package/dist/{chunk-RN3ZRHI7.mjs → chunk-WOGURSAL.mjs} +5 -5
- package/dist/chunk-YAF2LATQ.mjs +310 -0
- package/dist/chunk-YAF2LATQ.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.js +35 -2
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
- package/dist/components/copilot-provider/copilotkit.js +289 -234
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +7 -7
- package/dist/components/copilot-provider/index.js +289 -234
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +7 -7
- package/dist/components/error-boundary/error-boundary.js +135 -146
- package/dist/components/error-boundary/error-boundary.js.map +1 -1
- package/dist/components/error-boundary/error-boundary.mjs +4 -4
- package/dist/components/error-boundary/error-utils.js.map +1 -1
- package/dist/components/error-boundary/error-utils.mjs +2 -2
- package/dist/components/index.js +289 -234
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -7
- package/dist/components/toast/toast-provider.js +118 -85
- package/dist/components/toast/toast-provider.js.map +1 -1
- package/dist/components/toast/toast-provider.mjs +1 -1
- package/dist/components/usage-banner.js +135 -146
- package/dist/components/usage-banner.js.map +1 -1
- package/dist/components/usage-banner.mjs +1 -1
- package/dist/hooks/index.js +75 -10
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +14 -14
- package/dist/hooks/use-chat.js +72 -10
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +4 -4
- package/dist/hooks/use-coagent-state-render.js.map +1 -1
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-coagent.js +75 -10
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +10 -10
- package/dist/hooks/use-copilot-action.js.map +1 -1
- package/dist/hooks/use-copilot-action.mjs +3 -3
- package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
- package/dist/hooks/use-copilot-authenticated-action.mjs +4 -4
- package/dist/hooks/use-copilot-chat.js +72 -10
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +9 -9
- package/dist/hooks/use-copilot-runtime-client.js +1 -1
- package/dist/hooks/use-copilot-runtime-client.js.map +1 -1
- package/dist/hooks/use-copilot-runtime-client.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt.js +72 -10
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +10 -10
- package/dist/index.js +363 -243
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/lib/copilot-task.mjs +8 -8
- package/dist/lib/index.mjs +8 -8
- package/dist/utils/extract.mjs +7 -7
- package/dist/utils/index.mjs +7 -7
- package/jest.config.js +7 -3
- package/package.json +4 -3
- package/src/components/copilot-provider/__tests__/copilotkit-trace.test.tsx +1 -0
- package/src/components/copilot-provider/copilot-messages.tsx +42 -3
- package/src/components/toast/toast-provider.tsx +49 -24
- package/src/components/usage-banner.tsx +144 -147
- package/src/hooks/use-chat.ts +106 -6
- package/src/hooks/use-coagent.ts +5 -0
- package/src/hooks/use-copilot-runtime-client.ts +2 -39
- package/tsconfig.json +1 -8
- package/dist/chunk-HD2GE3DK.mjs +0 -359
- package/dist/chunk-HD2GE3DK.mjs.map +0 -1
- package/dist/chunk-ISYBUDL4.mjs.map +0 -1
- package/dist/chunk-JXF732XG.mjs.map +0 -1
- package/dist/chunk-VJCHRQ7Q.mjs.map +0 -1
- package/dist/chunk-VRXANACV.mjs +0 -277
- package/dist/chunk-VRXANACV.mjs.map +0 -1
- /package/dist/{chunk-CCESTGAM.mjs.map → chunk-3OQM3NEK.mjs.map} +0 -0
- /package/dist/{chunk-T4ZKC4X4.mjs.map → chunk-3YHYWAHK.mjs.map} +0 -0
- /package/dist/{chunk-S4BOATBG.mjs.map → chunk-EF5BNM34.mjs.map} +0 -0
- /package/dist/{chunk-I4JPQECN.mjs.map → chunk-EXU7GWLC.mjs.map} +0 -0
- /package/dist/{chunk-7G6RR4HE.mjs.map → chunk-FXK6RQIN.mjs.map} +0 -0
- /package/dist/{chunk-JHIZ5HAI.mjs.map → chunk-NQVCZQ5T.mjs.map} +0 -0
- /package/dist/{chunk-VF6UPRKM.mjs.map → chunk-OF4SZTLL.mjs.map} +0 -0
- /package/dist/{chunk-QQZLIEXK.mjs.map → chunk-SJJNFYGQ.mjs.map} +0 -0
- /package/dist/{chunk-RN3ZRHI7.mjs.map → chunk-WOGURSAL.mjs.map} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-WOGURSAL.mjs";
|
|
5
|
+
import "../../chunk-SJJNFYGQ.mjs";
|
|
6
|
+
import "../../chunk-JDEWNLNP.mjs";
|
|
7
7
|
import "../../chunk-5FHSUKQL.mjs";
|
|
8
8
|
import "../../chunk-RKTVJRK7.mjs";
|
|
9
9
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-57K2ZJ5F.mjs";
|
|
11
11
|
import "../../chunk-DCTJZ742.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-3OQM3NEK.mjs";
|
|
13
13
|
import "../../chunk-O7ARI5CV.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-55QZ2SVJ.mjs";
|
|
15
15
|
import "../../chunk-GFJW4RIM.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-YAF2LATQ.mjs";
|
|
17
17
|
import "../../chunk-XFOTNHYA.mjs";
|
|
18
18
|
import "../../chunk-SKC7AJIV.mjs";
|
|
19
19
|
export {
|
|
@@ -119,8 +119,8 @@ var defaultIcons = {
|
|
|
119
119
|
"svg",
|
|
120
120
|
{
|
|
121
121
|
viewBox: "0 0 24 24",
|
|
122
|
-
width: "
|
|
123
|
-
height: "
|
|
122
|
+
width: "16",
|
|
123
|
+
height: "16",
|
|
124
124
|
stroke: "currentColor",
|
|
125
125
|
strokeWidth: "2.5",
|
|
126
126
|
fill: "none",
|
|
@@ -137,8 +137,8 @@ var defaultIcons = {
|
|
|
137
137
|
"svg",
|
|
138
138
|
{
|
|
139
139
|
viewBox: "0 0 24 24",
|
|
140
|
-
width: "
|
|
141
|
-
height: "
|
|
140
|
+
width: "16",
|
|
141
|
+
height: "16",
|
|
142
142
|
stroke: "currentColor",
|
|
143
143
|
strokeWidth: "2.5",
|
|
144
144
|
fill: "none",
|
|
@@ -155,8 +155,8 @@ var defaultIcons = {
|
|
|
155
155
|
"svg",
|
|
156
156
|
{
|
|
157
157
|
viewBox: "0 0 24 24",
|
|
158
|
-
width: "
|
|
159
|
-
height: "
|
|
158
|
+
width: "16",
|
|
159
|
+
height: "16",
|
|
160
160
|
stroke: "currentColor",
|
|
161
161
|
strokeWidth: "2.5",
|
|
162
162
|
fill: "none",
|
|
@@ -181,19 +181,33 @@ function UsageBanner({
|
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
183
|
const parseMessage = (rawMessage) => {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
return
|
|
184
|
+
if (rawMessage.toLowerCase().includes("authentication") || rawMessage.toLowerCase().includes("api key")) {
|
|
185
|
+
return "Authentication failed. Please check your API key.";
|
|
186
|
+
}
|
|
187
|
+
if (rawMessage.toLowerCase().includes("rate limit")) {
|
|
188
|
+
return "Rate limit exceeded. Please try again later.";
|
|
189
|
+
}
|
|
190
|
+
if (rawMessage.toLowerCase().includes("checkpointer")) {
|
|
191
|
+
return "Agent configuration error. Please check your setup.";
|
|
189
192
|
}
|
|
190
|
-
|
|
193
|
+
let cleanMessage2 = rawMessage;
|
|
194
|
+
cleanMessage2 = cleanMessage2.split(" - ")[0];
|
|
195
|
+
cleanMessage2 = cleanMessage2.split(": Error code")[0];
|
|
196
|
+
cleanMessage2 = cleanMessage2.split(": 401")[0];
|
|
197
|
+
cleanMessage2 = cleanMessage2.split(": 403")[0];
|
|
198
|
+
cleanMessage2 = cleanMessage2.split(": 404")[0];
|
|
199
|
+
cleanMessage2 = cleanMessage2.split(": 500")[0];
|
|
200
|
+
cleanMessage2 = cleanMessage2.replace(/See more:.*$/g, "").trim();
|
|
201
|
+
if (cleanMessage2.includes("{") || cleanMessage2.includes("'") || cleanMessage2.length > 60) {
|
|
202
|
+
return "Configuration error. Please check your setup.";
|
|
203
|
+
}
|
|
204
|
+
return cleanMessage2 || "An error occurred. Please check your configuration.";
|
|
191
205
|
};
|
|
192
206
|
const cleanMessage = parseMessage(message);
|
|
193
207
|
const Icon = icon || defaultIcons[severity];
|
|
194
208
|
const themeConfigs = {
|
|
195
209
|
[import_shared2.Severity.INFO]: {
|
|
196
|
-
bg: "
|
|
210
|
+
bg: "rgba(239, 246, 255, 0.95)",
|
|
197
211
|
border: "#93c5fd",
|
|
198
212
|
text: "#1e40af",
|
|
199
213
|
icon: "#3b82f6",
|
|
@@ -201,7 +215,7 @@ function UsageBanner({
|
|
|
201
215
|
primaryBtnHover: "#2563eb"
|
|
202
216
|
},
|
|
203
217
|
[import_shared2.Severity.WARNING]: {
|
|
204
|
-
bg: "
|
|
218
|
+
bg: "rgba(255, 251, 235, 0.95)",
|
|
205
219
|
border: "#fbbf24",
|
|
206
220
|
text: "#92400e",
|
|
207
221
|
icon: "#f59e0b",
|
|
@@ -209,7 +223,7 @@ function UsageBanner({
|
|
|
209
223
|
primaryBtnHover: "#d97706"
|
|
210
224
|
},
|
|
211
225
|
[import_shared2.Severity.CRITICAL]: {
|
|
212
|
-
bg: "
|
|
226
|
+
bg: "rgba(254, 242, 242, 0.95)",
|
|
213
227
|
border: "#f87171",
|
|
214
228
|
text: "#991b1b",
|
|
215
229
|
icon: "#ef4444",
|
|
@@ -223,24 +237,26 @@ function UsageBanner({
|
|
|
223
237
|
{
|
|
224
238
|
style: {
|
|
225
239
|
position: "fixed",
|
|
226
|
-
bottom: "
|
|
240
|
+
bottom: "24px",
|
|
227
241
|
left: "50%",
|
|
228
242
|
transform: "translateX(-50%)",
|
|
229
|
-
|
|
230
|
-
|
|
243
|
+
width: "400px",
|
|
244
|
+
maxWidth: "90vw",
|
|
231
245
|
zIndex: 1e4,
|
|
232
|
-
animation: "bannerSlideIn 0.
|
|
246
|
+
animation: "bannerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1)"
|
|
233
247
|
},
|
|
234
248
|
children: [
|
|
235
249
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: `
|
|
236
250
|
@keyframes bannerSlideIn {
|
|
237
251
|
from {
|
|
238
252
|
opacity: 0;
|
|
239
|
-
transform: translateX(-50%) translateY(
|
|
253
|
+
transform: translateX(-50%) translateY(20px);
|
|
254
|
+
scale: 0.95;
|
|
240
255
|
}
|
|
241
256
|
to {
|
|
242
257
|
opacity: 1;
|
|
243
258
|
transform: translateX(-50%) translateY(0);
|
|
259
|
+
scale: 1;
|
|
244
260
|
}
|
|
245
261
|
}
|
|
246
262
|
` }),
|
|
@@ -248,17 +264,16 @@ function UsageBanner({
|
|
|
248
264
|
"div",
|
|
249
265
|
{
|
|
250
266
|
style: {
|
|
251
|
-
|
|
252
|
-
alignItems: "flex-start",
|
|
253
|
-
gap: "14px",
|
|
254
|
-
borderRadius: "16px",
|
|
267
|
+
borderRadius: "12px",
|
|
255
268
|
border: `1px solid ${themeConfig.border}`,
|
|
256
269
|
background: themeConfig.bg,
|
|
257
|
-
padding: "
|
|
258
|
-
boxShadow: "0
|
|
270
|
+
padding: "14px",
|
|
271
|
+
boxShadow: "0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08)",
|
|
259
272
|
position: "relative",
|
|
260
|
-
backdropFilter: "blur(
|
|
261
|
-
WebkitBackdropFilter: "blur(
|
|
273
|
+
backdropFilter: "blur(12px)",
|
|
274
|
+
WebkitBackdropFilter: "blur(12px)",
|
|
275
|
+
boxSizing: "border-box",
|
|
276
|
+
overflow: "hidden"
|
|
262
277
|
},
|
|
263
278
|
children: [
|
|
264
279
|
onClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -267,35 +282,23 @@ function UsageBanner({
|
|
|
267
282
|
onClick: onClose,
|
|
268
283
|
style: {
|
|
269
284
|
position: "absolute",
|
|
270
|
-
top: "
|
|
271
|
-
right: "
|
|
272
|
-
background: "rgba(255, 255, 255, 0.
|
|
285
|
+
top: "8px",
|
|
286
|
+
right: "8px",
|
|
287
|
+
background: "rgba(255, 255, 255, 0.9)",
|
|
273
288
|
border: "none",
|
|
274
289
|
color: themeConfig.text,
|
|
275
290
|
cursor: "pointer",
|
|
276
|
-
fontSize: "
|
|
291
|
+
fontSize: "16px",
|
|
277
292
|
lineHeight: "1",
|
|
278
|
-
padding: "
|
|
279
|
-
borderRadius: "
|
|
280
|
-
|
|
281
|
-
|
|
293
|
+
padding: "4px",
|
|
294
|
+
borderRadius: "4px",
|
|
295
|
+
width: "20px",
|
|
296
|
+
height: "20px",
|
|
282
297
|
display: "flex",
|
|
283
298
|
alignItems: "center",
|
|
284
|
-
justifyContent: "center"
|
|
285
|
-
width: "28px",
|
|
286
|
-
height: "28px"
|
|
299
|
+
justifyContent: "center"
|
|
287
300
|
},
|
|
288
301
|
title: "Close",
|
|
289
|
-
onMouseOver: (e) => {
|
|
290
|
-
e.currentTarget.style.opacity = "1";
|
|
291
|
-
e.currentTarget.style.background = "rgba(255, 255, 255, 1)";
|
|
292
|
-
e.currentTarget.style.transform = "scale(1.05)";
|
|
293
|
-
},
|
|
294
|
-
onMouseOut: (e) => {
|
|
295
|
-
e.currentTarget.style.opacity = "0.7";
|
|
296
|
-
e.currentTarget.style.background = "rgba(255, 255, 255, 0.8)";
|
|
297
|
-
e.currentTarget.style.transform = "scale(1)";
|
|
298
|
-
},
|
|
299
302
|
children: "\xD7"
|
|
300
303
|
}
|
|
301
304
|
),
|
|
@@ -303,106 +306,92 @@ function UsageBanner({
|
|
|
303
306
|
"div",
|
|
304
307
|
{
|
|
305
308
|
style: {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
309
|
+
fontSize: "14px",
|
|
310
|
+
fontWeight: 500,
|
|
311
|
+
color: themeConfig.text,
|
|
312
|
+
lineHeight: "1.4",
|
|
313
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
314
|
+
paddingRight: onClose ? "30px" : "0",
|
|
315
|
+
marginBottom: actions ? "12px" : "0",
|
|
316
|
+
wordBreak: "break-word",
|
|
317
|
+
overflow: "hidden",
|
|
318
|
+
textOverflow: "ellipsis",
|
|
319
|
+
display: "-webkit-box",
|
|
320
|
+
WebkitLineClamp: 2,
|
|
321
|
+
WebkitBoxOrient: "vertical"
|
|
315
322
|
},
|
|
316
|
-
children:
|
|
323
|
+
children: cleanMessage
|
|
317
324
|
}
|
|
318
325
|
),
|
|
319
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
},
|
|
389
|
-
onMouseOver: (e) => {
|
|
390
|
-
e.currentTarget.style.backgroundColor = themeConfig.primaryBtnHover;
|
|
391
|
-
e.currentTarget.style.transform = "translateY(-1px)";
|
|
392
|
-
e.currentTarget.style.boxShadow = "0 6px 16px rgba(0, 0, 0, 0.2)";
|
|
393
|
-
},
|
|
394
|
-
onMouseOut: (e) => {
|
|
395
|
-
e.currentTarget.style.backgroundColor = themeConfig.primaryBtn;
|
|
396
|
-
e.currentTarget.style.transform = "translateY(0)";
|
|
397
|
-
e.currentTarget.style.boxShadow = "0 4px 12px rgba(0, 0, 0, 0.15)";
|
|
398
|
-
},
|
|
399
|
-
children: actions.primary.label
|
|
400
|
-
}
|
|
401
|
-
)
|
|
402
|
-
]
|
|
403
|
-
}
|
|
404
|
-
)
|
|
405
|
-
] })
|
|
326
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
327
|
+
"div",
|
|
328
|
+
{
|
|
329
|
+
style: {
|
|
330
|
+
display: "flex",
|
|
331
|
+
gap: "8px",
|
|
332
|
+
flexWrap: "wrap"
|
|
333
|
+
},
|
|
334
|
+
children: [
|
|
335
|
+
actions.secondary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
336
|
+
"button",
|
|
337
|
+
{
|
|
338
|
+
onClick: actions.secondary.onClick,
|
|
339
|
+
style: {
|
|
340
|
+
borderRadius: "8px",
|
|
341
|
+
padding: "6px 12px",
|
|
342
|
+
fontSize: "13px",
|
|
343
|
+
fontWeight: 500,
|
|
344
|
+
color: themeConfig.text,
|
|
345
|
+
backgroundColor: "rgba(255, 255, 255, 0.9)",
|
|
346
|
+
border: `1px solid ${themeConfig.border}`,
|
|
347
|
+
cursor: "pointer",
|
|
348
|
+
transition: "all 0.2s ease",
|
|
349
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
|
|
350
|
+
},
|
|
351
|
+
onMouseOver: (e) => {
|
|
352
|
+
e.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 1)";
|
|
353
|
+
e.currentTarget.style.transform = "translateY(-1px)";
|
|
354
|
+
},
|
|
355
|
+
onMouseOut: (e) => {
|
|
356
|
+
e.currentTarget.style.backgroundColor = "rgba(255, 255, 255, 0.9)";
|
|
357
|
+
e.currentTarget.style.transform = "translateY(0)";
|
|
358
|
+
},
|
|
359
|
+
children: actions.secondary.label
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
actions.primary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
363
|
+
"button",
|
|
364
|
+
{
|
|
365
|
+
onClick: actions.primary.onClick,
|
|
366
|
+
style: {
|
|
367
|
+
borderRadius: "8px",
|
|
368
|
+
padding: "6px 12px",
|
|
369
|
+
fontSize: "13px",
|
|
370
|
+
fontWeight: 600,
|
|
371
|
+
color: "#fff",
|
|
372
|
+
backgroundColor: themeConfig.primaryBtn,
|
|
373
|
+
border: "none",
|
|
374
|
+
cursor: "pointer",
|
|
375
|
+
transition: "all 0.2s ease",
|
|
376
|
+
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
377
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
|
|
378
|
+
},
|
|
379
|
+
onMouseOver: (e) => {
|
|
380
|
+
e.currentTarget.style.backgroundColor = themeConfig.primaryBtnHover;
|
|
381
|
+
e.currentTarget.style.transform = "translateY(-1px)";
|
|
382
|
+
e.currentTarget.style.boxShadow = "0 4px 12px rgba(0, 0, 0, 0.2)";
|
|
383
|
+
},
|
|
384
|
+
onMouseOut: (e) => {
|
|
385
|
+
e.currentTarget.style.backgroundColor = themeConfig.primaryBtn;
|
|
386
|
+
e.currentTarget.style.transform = "translateY(0)";
|
|
387
|
+
e.currentTarget.style.boxShadow = "0 2px 8px rgba(0, 0, 0, 0.15)";
|
|
388
|
+
},
|
|
389
|
+
children: actions.primary.label
|
|
390
|
+
}
|
|
391
|
+
)
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
)
|
|
406
395
|
]
|
|
407
396
|
}
|
|
408
397
|
)
|