@bytexbyte/nxtlinq-ai-agent-sdk 1.6.0 → 1.6.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.
- package/dist/components/context/ChatBotContext.d.ts.map +1 -1
- package/dist/components/context/ChatBotContext.js +8 -4
- package/dist/components/ui/BerifyMeModal.d.ts +1 -0
- package/dist/components/ui/BerifyMeModal.d.ts.map +1 -1
- package/dist/components/ui/BerifyMeModal.js +8 -10
- package/dist/components/ui/ChatBotUI.d.ts +1 -0
- package/dist/components/ui/ChatBotUI.d.ts.map +1 -1
- package/dist/components/ui/ChatBotUI.js +58 -213
- package/dist/components/ui/MessageInput.d.ts.map +1 -1
- package/dist/components/ui/MessageInput.js +41 -38
- package/dist/components/ui/MessageList.d.ts +1 -0
- package/dist/components/ui/MessageList.d.ts.map +1 -1
- package/dist/components/ui/MessageList.js +16 -79
- package/dist/components/ui/ModelSelector.d.ts +1 -0
- package/dist/components/ui/ModelSelector.d.ts.map +1 -1
- package/dist/components/ui/ModelSelector.js +51 -45
- package/dist/components/ui/NotificationModal.d.ts +1 -0
- package/dist/components/ui/NotificationModal.d.ts.map +1 -1
- package/dist/components/ui/NotificationModal.js +48 -74
- package/dist/components/ui/PermissionForm.d.ts +1 -1
- package/dist/components/ui/PermissionForm.d.ts.map +1 -1
- package/dist/components/ui/PermissionForm.js +296 -293
- package/dist/components/ui/PresetMessages.d.ts +1 -0
- package/dist/components/ui/PresetMessages.d.ts.map +1 -1
- package/dist/components/ui/PresetMessages.js +26 -27
- package/dist/components/ui/styles/isolatedStyles.d.ts +34 -0
- package/dist/components/ui/styles/isolatedStyles.d.ts.map +1 -0
- package/dist/components/ui/styles/isolatedStyles.js +449 -0
- package/package.json +1 -1
- package/umd/nxtlinq-ai-agent.umd.js +882 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresetMessages.d.ts","sourceRoot":"","sources":["../../../src/components/ui/PresetMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PresetMessages.d.ts","sourceRoot":"","sources":["../../../src/components/ui/PresetMessages.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA0ClC,CAAC"}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css } from '@emotion/react';
|
|
2
3
|
import { useChatBot } from '../context/ChatBotContext';
|
|
4
|
+
import { actionButton } from './styles/isolatedStyles';
|
|
3
5
|
export const PresetMessages = () => {
|
|
4
6
|
const { suggestions, handlePresetMessage } = useChatBot();
|
|
5
7
|
if (!suggestions || suggestions.length === 0) {
|
|
6
8
|
return null;
|
|
7
9
|
}
|
|
8
|
-
return (_jsx("div", {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}, onMouseDown: (e) => {
|
|
32
|
-
e.currentTarget.style.backgroundColor = '#004085';
|
|
33
|
-
}, children: preset.text }, index))) }));
|
|
10
|
+
return (_jsx("div", { css: css `
|
|
11
|
+
padding: 10px 15px !important;
|
|
12
|
+
border-top: 1px solid #eee !important;
|
|
13
|
+
overflow-x: auto !important;
|
|
14
|
+
white-space: nowrap !important;
|
|
15
|
+
display: flex !important;
|
|
16
|
+
gap: 10px !important;
|
|
17
|
+
align-items: center !important;
|
|
18
|
+
`, children: suggestions.map((preset, index) => (_jsx("button", { onClick: () => handlePresetMessage(preset), css: css `
|
|
19
|
+
${actionButton}
|
|
20
|
+
padding: 5px 10px !important;
|
|
21
|
+
font-size: 12px !important;
|
|
22
|
+
white-space: nowrap !important;
|
|
23
|
+
flex-shrink: 0 !important;
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: #0056b3 !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:active {
|
|
30
|
+
background-color: #004085 !important;
|
|
31
|
+
}
|
|
32
|
+
`, children: preset.text }, index))) }));
|
|
34
33
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const sdkReset: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const sdkContainer: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const floatingButton: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const chatWindow: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const chatHeader: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const headerTitle: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const headerButton: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const closeButton: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const messageListContainer: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const messageBubble: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const userMessage: import("@emotion/utils").SerializedStyles;
|
|
12
|
+
export declare const messageContent: import("@emotion/utils").SerializedStyles;
|
|
13
|
+
export declare const userMessageContent: import("@emotion/utils").SerializedStyles;
|
|
14
|
+
export declare const retryMessageContent: import("@emotion/utils").SerializedStyles;
|
|
15
|
+
export declare const actionButton: import("@emotion/utils").SerializedStyles;
|
|
16
|
+
export declare const connectedButton: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
export declare const loadingIndicator: import("@emotion/utils").SerializedStyles;
|
|
18
|
+
export declare const modelIndicator: import("@emotion/utils").SerializedStyles;
|
|
19
|
+
export declare const modelBadge: import("@emotion/utils").SerializedStyles;
|
|
20
|
+
export declare const modelDot: import("@emotion/utils").SerializedStyles;
|
|
21
|
+
export declare const toastNotification: import("@emotion/utils").SerializedStyles;
|
|
22
|
+
export declare const successToast: import("@emotion/utils").SerializedStyles;
|
|
23
|
+
export declare const errorToast: import("@emotion/utils").SerializedStyles;
|
|
24
|
+
export declare const warningToast: import("@emotion/utils").SerializedStyles;
|
|
25
|
+
export declare const infoToast: import("@emotion/utils").SerializedStyles;
|
|
26
|
+
export declare const toastCloseButton: import("@emotion/utils").SerializedStyles;
|
|
27
|
+
export declare const modalOverlay: import("@emotion/utils").SerializedStyles;
|
|
28
|
+
export declare const idvBanner: import("@emotion/utils").SerializedStyles;
|
|
29
|
+
export declare const idvBannerTitle: import("@emotion/utils").SerializedStyles;
|
|
30
|
+
export declare const idvBannerText: import("@emotion/utils").SerializedStyles;
|
|
31
|
+
export declare const idvVerifyButton: import("@emotion/utils").SerializedStyles;
|
|
32
|
+
export declare const idvDismissButton: import("@emotion/utils").SerializedStyles;
|
|
33
|
+
export declare const loadingSpinner: import("@emotion/utils").SerializedStyles;
|
|
34
|
+
//# sourceMappingURL=isolatedStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isolatedStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/styles/isolatedStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,2CAwBpB,CAAC;AAGF,eAAO,MAAM,YAAY,2CAqDxB,CAAC;AAGF,eAAO,MAAM,cAAc,2CAqB1B,CAAC;AAGF,eAAO,MAAM,UAAU,2CActB,CAAC;AAGF,eAAO,MAAM,UAAU,2CAStB,CAAC;AAGF,eAAO,MAAM,WAAW,2CAMvB,CAAC;AAGF,eAAO,MAAM,YAAY,2CAqBxB,CAAC;AAGF,eAAO,MAAM,WAAW,2CAevB,CAAC;AAGF,eAAO,MAAM,oBAAoB,2CAQhC,CAAC;AAGF,eAAO,MAAM,aAAa,2CAKzB,CAAC;AAGF,eAAO,MAAM,WAAW,2CAKvB,CAAC;AAGF,eAAO,MAAM,cAAc,2CAQ1B,CAAC;AAGF,eAAO,MAAM,kBAAkB,2CAQ9B,CAAC;AAGF,eAAO,MAAM,mBAAmB,2CAS/B,CAAC;AAGF,eAAO,MAAM,YAAY,2CAgBxB,CAAC;AAGF,eAAO,MAAM,eAAe,2CAU3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,2CAQ5B,CAAC;AAGF,eAAO,MAAM,cAAc,2CAM1B,CAAC;AAGF,eAAO,MAAM,UAAU,2CAYtB,CAAC;AAGF,eAAO,MAAM,QAAQ,2CAMpB,CAAC;AAGF,eAAO,MAAM,iBAAiB,2CAc7B,CAAC;AAGF,eAAO,MAAM,YAAY,2CAIxB,CAAC;AAGF,eAAO,MAAM,UAAU,2CAItB,CAAC;AAGF,eAAO,MAAM,YAAY,2CAIxB,CAAC;AAGF,eAAO,MAAM,SAAS,2CAIrB,CAAC;AAGF,eAAO,MAAM,gBAAgB,2CAiB5B,CAAC;AAGF,eAAO,MAAM,YAAY,2CAYxB,CAAC;AAGF,eAAO,MAAM,SAAS,2CAWrB,CAAC;AAGF,eAAO,MAAM,cAAc,2CAM1B,CAAC;AAGF,eAAO,MAAM,aAAa,2CAMzB,CAAC;AAGF,eAAO,MAAM,eAAe,2CAe3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,2CAc5B,CAAC;AAGF,eAAO,MAAM,cAAc,2CAO1B,CAAC"}
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
// Light CSS Reset for SDK components - only reset problematic inherited styles
|
|
3
|
+
export const sdkReset = css `
|
|
4
|
+
/* Only reset problematic inherited styles, keep the rest */
|
|
5
|
+
box-sizing: border-box !important;
|
|
6
|
+
|
|
7
|
+
/* Ensure consistent font rendering */
|
|
8
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
9
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
10
|
+
sans-serif !important;
|
|
11
|
+
|
|
12
|
+
/* Reset only problematic inherited styles */
|
|
13
|
+
text-decoration: none !important;
|
|
14
|
+
text-transform: none !important;
|
|
15
|
+
letter-spacing: normal !important;
|
|
16
|
+
word-spacing: normal !important;
|
|
17
|
+
text-align: left !important;
|
|
18
|
+
|
|
19
|
+
/* Reset list styles if needed */
|
|
20
|
+
list-style: none !important;
|
|
21
|
+
|
|
22
|
+
/* Reset form elements outline */
|
|
23
|
+
outline: none !important;
|
|
24
|
+
|
|
25
|
+
/* Reset user select for better UX */
|
|
26
|
+
user-select: auto !important;
|
|
27
|
+
`;
|
|
28
|
+
// Base container styles with light isolation
|
|
29
|
+
export const sdkContainer = css `
|
|
30
|
+
/* Light isolation - only reset problematic inherited styles */
|
|
31
|
+
${sdkReset}
|
|
32
|
+
|
|
33
|
+
/* Ensure all text elements have proper color inheritance */
|
|
34
|
+
&, & * {
|
|
35
|
+
color: inherit !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Ensure consistent box-sizing for all children */
|
|
39
|
+
& * {
|
|
40
|
+
box-sizing: border-box !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Light reset for buttons to prevent external button styles */
|
|
44
|
+
& button {
|
|
45
|
+
box-sizing: border-box !important;
|
|
46
|
+
font-family: inherit !important;
|
|
47
|
+
cursor: pointer !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Light reset for form elements */
|
|
51
|
+
& input, & textarea {
|
|
52
|
+
box-sizing: border-box !important;
|
|
53
|
+
font-family: inherit !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Light reset for text elements */
|
|
57
|
+
& div, & span, & p, & h1, & h2, & h3, & h4, & h5, & h6 {
|
|
58
|
+
box-sizing: border-box !important;
|
|
59
|
+
font-family: inherit !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Light reset for lists */
|
|
63
|
+
& ul, & ol, & li {
|
|
64
|
+
box-sizing: border-box !important;
|
|
65
|
+
font-family: inherit !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Light reset for links */
|
|
69
|
+
& a {
|
|
70
|
+
box-sizing: border-box !important;
|
|
71
|
+
font-family: inherit !important;
|
|
72
|
+
color: inherit !important;
|
|
73
|
+
text-decoration: none !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Light reset for images */
|
|
77
|
+
& img {
|
|
78
|
+
box-sizing: border-box !important;
|
|
79
|
+
max-width: 100% !important;
|
|
80
|
+
height: auto !important;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
// Floating button styles
|
|
84
|
+
export const floatingButton = css `
|
|
85
|
+
position: fixed !important;
|
|
86
|
+
bottom: 20px !important;
|
|
87
|
+
right: 20px !important;
|
|
88
|
+
background-color: #007bff !important;
|
|
89
|
+
color: white !important;
|
|
90
|
+
border: none !important;
|
|
91
|
+
padding: 10px 20px !important;
|
|
92
|
+
border-radius: 20px !important;
|
|
93
|
+
cursor: pointer !important;
|
|
94
|
+
box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
|
|
95
|
+
transition: all 0.3s ease !important;
|
|
96
|
+
z-index: 1000 !important;
|
|
97
|
+
font-size: 14px !important;
|
|
98
|
+
font-weight: 500 !important;
|
|
99
|
+
font-family: inherit !important;
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
background-color: #0056b3 !important;
|
|
103
|
+
transform: translateY(-2px) !important;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
// Chat window container styles
|
|
107
|
+
export const chatWindow = css `
|
|
108
|
+
position: fixed !important;
|
|
109
|
+
bottom: 20px !important;
|
|
110
|
+
right: 20px !important;
|
|
111
|
+
width: 500px !important;
|
|
112
|
+
height: 600px !important;
|
|
113
|
+
background-color: white !important;
|
|
114
|
+
border-radius: 10px !important;
|
|
115
|
+
box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
|
|
116
|
+
display: flex !important;
|
|
117
|
+
flex-direction: column !important;
|
|
118
|
+
z-index: 1001 !important;
|
|
119
|
+
overflow: hidden !important;
|
|
120
|
+
font-family: inherit !important;
|
|
121
|
+
`;
|
|
122
|
+
// Header styles
|
|
123
|
+
export const chatHeader = css `
|
|
124
|
+
padding: 15px !important;
|
|
125
|
+
background-color: #007bff !important;
|
|
126
|
+
color: white !important;
|
|
127
|
+
border-radius: 10px 10px 0 0 !important;
|
|
128
|
+
display: flex !important;
|
|
129
|
+
justify-content: space-between !important;
|
|
130
|
+
align-items: center !important;
|
|
131
|
+
font-family: inherit !important;
|
|
132
|
+
`;
|
|
133
|
+
// Header title styles
|
|
134
|
+
export const headerTitle = css `
|
|
135
|
+
margin: 0 !important;
|
|
136
|
+
font-size: 16px !important;
|
|
137
|
+
font-weight: 600 !important;
|
|
138
|
+
color: white !important;
|
|
139
|
+
font-family: inherit !important;
|
|
140
|
+
`;
|
|
141
|
+
// Header button styles
|
|
142
|
+
export const headerButton = css `
|
|
143
|
+
background: none !important;
|
|
144
|
+
border: none !important;
|
|
145
|
+
color: white !important;
|
|
146
|
+
font-size: 18px !important;
|
|
147
|
+
cursor: pointer !important;
|
|
148
|
+
padding: 0 !important;
|
|
149
|
+
display: flex !important;
|
|
150
|
+
align-items: center !important;
|
|
151
|
+
justify-content: center !important;
|
|
152
|
+
border-radius: 4px !important;
|
|
153
|
+
transition: background-color 0.2s !important;
|
|
154
|
+
font-family: inherit !important;
|
|
155
|
+
width: 32px !important;
|
|
156
|
+
height: 32px !important;
|
|
157
|
+
line-height: 0 !important;
|
|
158
|
+
vertical-align: middle !important;
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
162
|
+
}
|
|
163
|
+
`;
|
|
164
|
+
// Close button styles
|
|
165
|
+
export const closeButton = css `
|
|
166
|
+
background: none !important;
|
|
167
|
+
border: none !important;
|
|
168
|
+
color: white !important;
|
|
169
|
+
font-size: 18px !important;
|
|
170
|
+
cursor: pointer !important;
|
|
171
|
+
padding: 0 !important;
|
|
172
|
+
display: flex !important;
|
|
173
|
+
align-items: center !important;
|
|
174
|
+
justify-content: center !important;
|
|
175
|
+
font-family: inherit !important;
|
|
176
|
+
width: 32px !important;
|
|
177
|
+
height: 32px !important;
|
|
178
|
+
line-height: 0 !important;
|
|
179
|
+
vertical-align: middle !important;
|
|
180
|
+
`;
|
|
181
|
+
// Message list container styles
|
|
182
|
+
export const messageListContainer = css `
|
|
183
|
+
flex: 1 !important;
|
|
184
|
+
padding: 15px !important;
|
|
185
|
+
overflow-y: auto !important;
|
|
186
|
+
display: flex !important;
|
|
187
|
+
flex-direction: column !important;
|
|
188
|
+
gap: 10px !important;
|
|
189
|
+
font-family: inherit !important;
|
|
190
|
+
`;
|
|
191
|
+
// Message bubble styles
|
|
192
|
+
export const messageBubble = css `
|
|
193
|
+
align-self: flex-start !important;
|
|
194
|
+
max-width: 80% !important;
|
|
195
|
+
margin-bottom: 10px !important;
|
|
196
|
+
font-family: inherit !important;
|
|
197
|
+
`;
|
|
198
|
+
// User message styles
|
|
199
|
+
export const userMessage = css `
|
|
200
|
+
align-self: flex-end !important;
|
|
201
|
+
max-width: 80% !important;
|
|
202
|
+
margin-bottom: 10px !important;
|
|
203
|
+
font-family: inherit !important;
|
|
204
|
+
`;
|
|
205
|
+
// Message content styles
|
|
206
|
+
export const messageContent = css `
|
|
207
|
+
background-color: #f1f1f1 !important;
|
|
208
|
+
color: #333 !important;
|
|
209
|
+
padding: 10px 15px !important;
|
|
210
|
+
border-radius: 15px !important;
|
|
211
|
+
word-wrap: break-word !important;
|
|
212
|
+
position: relative !important;
|
|
213
|
+
font-family: inherit !important;
|
|
214
|
+
`;
|
|
215
|
+
// User message content styles
|
|
216
|
+
export const userMessageContent = css `
|
|
217
|
+
background-color: #007bff !important;
|
|
218
|
+
color: white !important;
|
|
219
|
+
padding: 10px 15px !important;
|
|
220
|
+
border-radius: 15px !important;
|
|
221
|
+
word-wrap: break-word !important;
|
|
222
|
+
position: relative !important;
|
|
223
|
+
font-family: inherit !important;
|
|
224
|
+
`;
|
|
225
|
+
// Retry message content styles
|
|
226
|
+
export const retryMessageContent = css `
|
|
227
|
+
background-color: #fff3cd !important;
|
|
228
|
+
color: #856404 !important;
|
|
229
|
+
padding: 10px 15px !important;
|
|
230
|
+
border-radius: 15px !important;
|
|
231
|
+
word-wrap: break-word !important;
|
|
232
|
+
position: relative !important;
|
|
233
|
+
border: 1px solid #ffeaa7 !important;
|
|
234
|
+
font-family: inherit !important;
|
|
235
|
+
`;
|
|
236
|
+
// Action button styles
|
|
237
|
+
export const actionButton = css `
|
|
238
|
+
padding: 8px 16px !important;
|
|
239
|
+
background-color: #007bff !important;
|
|
240
|
+
color: white !important;
|
|
241
|
+
border: none !important;
|
|
242
|
+
border-radius: 5px !important;
|
|
243
|
+
cursor: pointer !important;
|
|
244
|
+
font-size: 14px !important;
|
|
245
|
+
font-family: inherit !important;
|
|
246
|
+
margin-top: 10px !important;
|
|
247
|
+
|
|
248
|
+
&:disabled {
|
|
249
|
+
background-color: #6c757d !important;
|
|
250
|
+
cursor: not-allowed !important;
|
|
251
|
+
opacity: 0.8 !important;
|
|
252
|
+
}
|
|
253
|
+
`;
|
|
254
|
+
// Connected button styles
|
|
255
|
+
export const connectedButton = css `
|
|
256
|
+
padding: 8px 16px !important;
|
|
257
|
+
background-color: #28a745 !important;
|
|
258
|
+
color: white !important;
|
|
259
|
+
border: none !important;
|
|
260
|
+
border-radius: 5px !important;
|
|
261
|
+
cursor: pointer !important;
|
|
262
|
+
font-size: 14px !important;
|
|
263
|
+
font-family: inherit !important;
|
|
264
|
+
margin-top: 10px !important;
|
|
265
|
+
`;
|
|
266
|
+
// Loading indicator styles
|
|
267
|
+
export const loadingIndicator = css `
|
|
268
|
+
align-self: flex-start !important;
|
|
269
|
+
background-color: #f1f1f1 !important;
|
|
270
|
+
color: #333 !important;
|
|
271
|
+
padding: 10px 15px !important;
|
|
272
|
+
border-radius: 15px !important;
|
|
273
|
+
max-width: 80% !important;
|
|
274
|
+
font-family: inherit !important;
|
|
275
|
+
`;
|
|
276
|
+
// Model indicator styles
|
|
277
|
+
export const modelIndicator = css `
|
|
278
|
+
display: flex !important;
|
|
279
|
+
align-items: center !important;
|
|
280
|
+
margin-top: 4px !important;
|
|
281
|
+
margin-left: 8px !important;
|
|
282
|
+
font-family: inherit !important;
|
|
283
|
+
`;
|
|
284
|
+
// Model badge styles
|
|
285
|
+
export const modelBadge = css `
|
|
286
|
+
background-color: #e3f2fd !important;
|
|
287
|
+
color: #1976d2 !important;
|
|
288
|
+
padding: 2px 8px !important;
|
|
289
|
+
border-radius: 10px !important;
|
|
290
|
+
font-size: 10px !important;
|
|
291
|
+
font-weight: 500 !important;
|
|
292
|
+
border: 1px solid #bbdefb !important;
|
|
293
|
+
display: flex !important;
|
|
294
|
+
align-items: center !important;
|
|
295
|
+
gap: 4px !important;
|
|
296
|
+
font-family: inherit !important;
|
|
297
|
+
`;
|
|
298
|
+
// Model dot styles
|
|
299
|
+
export const modelDot = css `
|
|
300
|
+
width: 6px !important;
|
|
301
|
+
height: 6px !important;
|
|
302
|
+
background-color: #1976d2 !important;
|
|
303
|
+
border-radius: 50% !important;
|
|
304
|
+
display: inline-block !important;
|
|
305
|
+
`;
|
|
306
|
+
// Toast notification styles
|
|
307
|
+
export const toastNotification = css `
|
|
308
|
+
position: fixed !important;
|
|
309
|
+
padding: 12px 24px !important;
|
|
310
|
+
border-radius: 8px !important;
|
|
311
|
+
z-index: 2000 !important;
|
|
312
|
+
font-weight: 600 !important;
|
|
313
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
|
|
314
|
+
transition: all 0.3s ease !important;
|
|
315
|
+
display: flex !important;
|
|
316
|
+
align-items: center !important;
|
|
317
|
+
gap: 12px !important;
|
|
318
|
+
min-width: 300px !important;
|
|
319
|
+
max-width: 500px !important;
|
|
320
|
+
font-family: inherit !important;
|
|
321
|
+
`;
|
|
322
|
+
// Success toast styles
|
|
323
|
+
export const successToast = css `
|
|
324
|
+
${toastNotification}
|
|
325
|
+
background: #4caf50 !important;
|
|
326
|
+
color: white !important;
|
|
327
|
+
`;
|
|
328
|
+
// Error toast styles
|
|
329
|
+
export const errorToast = css `
|
|
330
|
+
${toastNotification}
|
|
331
|
+
background: #f44336 !important;
|
|
332
|
+
color: white !important;
|
|
333
|
+
`;
|
|
334
|
+
// Warning toast styles
|
|
335
|
+
export const warningToast = css `
|
|
336
|
+
${toastNotification}
|
|
337
|
+
background: #ff9800 !important;
|
|
338
|
+
color: white !important;
|
|
339
|
+
`;
|
|
340
|
+
// Info toast styles
|
|
341
|
+
export const infoToast = css `
|
|
342
|
+
${toastNotification}
|
|
343
|
+
background: #2196f3 !important;
|
|
344
|
+
color: white !important;
|
|
345
|
+
`;
|
|
346
|
+
// Toast close button styles
|
|
347
|
+
export const toastCloseButton = css `
|
|
348
|
+
background: none !important;
|
|
349
|
+
border: none !important;
|
|
350
|
+
color: white !important;
|
|
351
|
+
font-size: 18px !important;
|
|
352
|
+
cursor: pointer !important;
|
|
353
|
+
padding: 4px !important;
|
|
354
|
+
display: flex !important;
|
|
355
|
+
align-items: center !important;
|
|
356
|
+
justify-content: center !important;
|
|
357
|
+
border-radius: 4px !important;
|
|
358
|
+
transition: background-color 0.2s !important;
|
|
359
|
+
font-family: inherit !important;
|
|
360
|
+
|
|
361
|
+
&:hover {
|
|
362
|
+
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
363
|
+
}
|
|
364
|
+
`;
|
|
365
|
+
// Modal overlay styles
|
|
366
|
+
export const modalOverlay = css `
|
|
367
|
+
position: fixed !important;
|
|
368
|
+
top: 0 !important;
|
|
369
|
+
left: 0 !important;
|
|
370
|
+
right: 0 !important;
|
|
371
|
+
bottom: 0 !important;
|
|
372
|
+
background-color: rgba(0, 0, 0, 0.5) !important;
|
|
373
|
+
display: flex !important;
|
|
374
|
+
align-items: center !important;
|
|
375
|
+
justify-content: center !important;
|
|
376
|
+
z-index: 1002 !important;
|
|
377
|
+
padding: 20px !important;
|
|
378
|
+
`;
|
|
379
|
+
// IDV banner styles
|
|
380
|
+
export const idvBanner = css `
|
|
381
|
+
background-color: #fff3cd !important;
|
|
382
|
+
border: 1px solid #ffeaa7 !important;
|
|
383
|
+
border-left: 4px solid #f39c12 !important;
|
|
384
|
+
margin: 16px !important;
|
|
385
|
+
padding: 16px !important;
|
|
386
|
+
border-radius: 8px !important;
|
|
387
|
+
display: flex !important;
|
|
388
|
+
align-items: center !important;
|
|
389
|
+
gap: 12px !important;
|
|
390
|
+
font-family: inherit !important;
|
|
391
|
+
`;
|
|
392
|
+
// IDV banner title styles
|
|
393
|
+
export const idvBannerTitle = css `
|
|
394
|
+
margin: 0 0 8px 0 !important;
|
|
395
|
+
font-size: 14px !important;
|
|
396
|
+
font-weight: 600 !important;
|
|
397
|
+
color: #856404 !important;
|
|
398
|
+
font-family: inherit !important;
|
|
399
|
+
`;
|
|
400
|
+
// IDV banner text styles
|
|
401
|
+
export const idvBannerText = css `
|
|
402
|
+
margin: 0 0 12px 0 !important;
|
|
403
|
+
font-size: 13px !important;
|
|
404
|
+
color: #856404 !important;
|
|
405
|
+
line-height: 1.4 !important;
|
|
406
|
+
font-family: inherit !important;
|
|
407
|
+
`;
|
|
408
|
+
// IDV verify button styles
|
|
409
|
+
export const idvVerifyButton = css `
|
|
410
|
+
padding: 8px 16px !important;
|
|
411
|
+
background-color: #f39c12 !important;
|
|
412
|
+
color: white !important;
|
|
413
|
+
border: none !important;
|
|
414
|
+
border-radius: 6px !important;
|
|
415
|
+
cursor: pointer !important;
|
|
416
|
+
font-size: 13px !important;
|
|
417
|
+
font-weight: 500 !important;
|
|
418
|
+
transition: background-color 0.2s !important;
|
|
419
|
+
font-family: inherit !important;
|
|
420
|
+
|
|
421
|
+
&:hover {
|
|
422
|
+
background-color: #e67e22 !important;
|
|
423
|
+
}
|
|
424
|
+
`;
|
|
425
|
+
// IDV dismiss button styles
|
|
426
|
+
export const idvDismissButton = css `
|
|
427
|
+
background: none !important;
|
|
428
|
+
border: none !important;
|
|
429
|
+
color: #856404 !important;
|
|
430
|
+
font-size: 18px !important;
|
|
431
|
+
cursor: pointer !important;
|
|
432
|
+
padding: 4px !important;
|
|
433
|
+
border-radius: 4px !important;
|
|
434
|
+
transition: background-color 0.2s !important;
|
|
435
|
+
font-family: inherit !important;
|
|
436
|
+
|
|
437
|
+
&:hover {
|
|
438
|
+
background-color: rgba(133, 100, 4, 0.1) !important;
|
|
439
|
+
}
|
|
440
|
+
`;
|
|
441
|
+
// Loading spinner styles
|
|
442
|
+
export const loadingSpinner = css `
|
|
443
|
+
width: 12px !important;
|
|
444
|
+
height: 12px !important;
|
|
445
|
+
border: 2px solid rgba(255, 255, 255, 0.3) !important;
|
|
446
|
+
border-top: 2px solid white !important;
|
|
447
|
+
border-radius: 50% !important;
|
|
448
|
+
animation: spin 1s linear infinite !important;
|
|
449
|
+
`;
|
package/package.json
CHANGED