@iota-uz/sdk 0.1.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.
- package/LICENSE +201 -0
- package/README.MD +164 -0
- package/assets/fonts/Actay/Actay-Regular.otf +0 -0
- package/assets/fonts/Actay/Actay-RegularItalic.otf +0 -0
- package/assets/fonts/Actay/ActayCondensed-Thin.otf +0 -0
- package/assets/fonts/Actay/ActayCondensed-ThinItalic.otf +0 -0
- package/assets/fonts/Actay/ActayWide-Bold.otf +0 -0
- package/assets/fonts/Actay/ActayWide-BoldItalic.otf +0 -0
- package/assets/fonts/Gilroy/Gilroy-Black.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-BlackItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Bold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-BoldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Extrabold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-ExtraboldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Heavy.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-HeavyItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Light.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-LightItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Medium.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-MediumItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Regular.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-RegularItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Semibold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-SemiboldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Thin.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-ThinItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-UltraLight.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-UltraLightItalic.woff2 +0 -0
- package/assets/fonts/Inter.var.woff2 +0 -0
- package/dist/bichat/index.cjs +3033 -0
- package/dist/bichat/index.cjs.map +1 -0
- package/dist/bichat/index.css +139 -0
- package/dist/bichat/index.css.map +1 -0
- package/dist/bichat/index.d.cts +1081 -0
- package/dist/bichat/index.d.ts +1081 -0
- package/dist/bichat/index.mjs +2959 -0
- package/dist/bichat/index.mjs.map +1 -0
- package/dist/bichat/styles.css +160 -0
- package/dist/index.cjs +191 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +237 -0
- package/dist/index.d.ts +237 -0
- package/dist/index.mjs +178 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +70 -0
- package/tailwind/create-config.cjs +142 -0
- package/tailwind/iota.css +1106 -0
- package/tailwind/main.css +2 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* ui/src/bichat/styles.css */
|
|
2
|
+
:root {
|
|
3
|
+
--bichat-primary: #3b82f6;
|
|
4
|
+
--bichat-bg: #ffffff;
|
|
5
|
+
--bichat-text: #1f2937;
|
|
6
|
+
--bichat-border: #e5e7eb;
|
|
7
|
+
--bichat-bubble-user: #3b82f6;
|
|
8
|
+
--bichat-bubble-assistant: #ffffff;
|
|
9
|
+
}
|
|
10
|
+
@media (prefers-color-scheme: dark) {
|
|
11
|
+
:root {
|
|
12
|
+
--bichat-bg: #1f2937;
|
|
13
|
+
--bichat-text: #f9fafb;
|
|
14
|
+
--bichat-border: #374151;
|
|
15
|
+
--bichat-bubble-assistant: #374151;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.bichat-session {
|
|
19
|
+
background-color: var(--bichat-bg);
|
|
20
|
+
color: var(--bichat-text);
|
|
21
|
+
font-family:
|
|
22
|
+
-apple-system,
|
|
23
|
+
BlinkMacSystemFont,
|
|
24
|
+
"Segoe UI",
|
|
25
|
+
"Roboto",
|
|
26
|
+
"Oxygen",
|
|
27
|
+
"Ubuntu",
|
|
28
|
+
"Cantarell",
|
|
29
|
+
"Fira Sans",
|
|
30
|
+
"Droid Sans",
|
|
31
|
+
"Helvetica Neue",
|
|
32
|
+
sans-serif;
|
|
33
|
+
-webkit-font-smoothing: antialiased;
|
|
34
|
+
-moz-osx-font-smoothing: grayscale;
|
|
35
|
+
}
|
|
36
|
+
.bichat-messages::-webkit-scrollbar {
|
|
37
|
+
width: 8px;
|
|
38
|
+
}
|
|
39
|
+
.bichat-messages::-webkit-scrollbar-track {
|
|
40
|
+
background: transparent;
|
|
41
|
+
}
|
|
42
|
+
.bichat-messages::-webkit-scrollbar-thumb {
|
|
43
|
+
background: #d1d5db;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
}
|
|
46
|
+
.bichat-messages::-webkit-scrollbar-thumb:hover {
|
|
47
|
+
background: #9ca3af;
|
|
48
|
+
}
|
|
49
|
+
@keyframes pulse {
|
|
50
|
+
0%, 100% {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
50% {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.animate-pulse {
|
|
58
|
+
animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
59
|
+
}
|
|
60
|
+
.prose {
|
|
61
|
+
color: var(--bichat-text);
|
|
62
|
+
}
|
|
63
|
+
.prose h1,
|
|
64
|
+
.prose h2,
|
|
65
|
+
.prose h3,
|
|
66
|
+
.prose h4,
|
|
67
|
+
.prose h5,
|
|
68
|
+
.prose h6 {
|
|
69
|
+
color: var(--bichat-text);
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
margin-top: 1.5em;
|
|
72
|
+
margin-bottom: 0.5em;
|
|
73
|
+
}
|
|
74
|
+
.prose p {
|
|
75
|
+
margin-top: 0.75em;
|
|
76
|
+
margin-bottom: 0.75em;
|
|
77
|
+
}
|
|
78
|
+
.prose code {
|
|
79
|
+
background-color: #f3f4f6;
|
|
80
|
+
padding: 0.125em 0.25em;
|
|
81
|
+
border-radius: 0.25em;
|
|
82
|
+
font-size: 0.875em;
|
|
83
|
+
}
|
|
84
|
+
.prose pre {
|
|
85
|
+
background-color: #1f2937;
|
|
86
|
+
color: #f9fafb;
|
|
87
|
+
padding: 1em;
|
|
88
|
+
border-radius: 0.5em;
|
|
89
|
+
overflow-x: auto;
|
|
90
|
+
margin-top: 1em;
|
|
91
|
+
margin-bottom: 1em;
|
|
92
|
+
}
|
|
93
|
+
.prose pre code {
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
padding: 0;
|
|
96
|
+
color: inherit;
|
|
97
|
+
font-size: 0.875em;
|
|
98
|
+
}
|
|
99
|
+
.prose a {
|
|
100
|
+
color: var(--bichat-primary);
|
|
101
|
+
text-decoration: none;
|
|
102
|
+
}
|
|
103
|
+
.prose a:hover {
|
|
104
|
+
text-decoration: underline;
|
|
105
|
+
}
|
|
106
|
+
.prose ul,
|
|
107
|
+
.prose ol {
|
|
108
|
+
margin-top: 0.75em;
|
|
109
|
+
margin-bottom: 0.75em;
|
|
110
|
+
padding-left: 1.5em;
|
|
111
|
+
}
|
|
112
|
+
.prose li {
|
|
113
|
+
margin-top: 0.25em;
|
|
114
|
+
margin-bottom: 0.25em;
|
|
115
|
+
}
|
|
116
|
+
.prose blockquote {
|
|
117
|
+
border-left: 4px solid var(--bichat-border);
|
|
118
|
+
padding-left: 1em;
|
|
119
|
+
margin-left: 0;
|
|
120
|
+
font-style: italic;
|
|
121
|
+
color: #6b7280;
|
|
122
|
+
}
|
|
123
|
+
.prose table {
|
|
124
|
+
width: 100%;
|
|
125
|
+
border-collapse: collapse;
|
|
126
|
+
margin-top: 1em;
|
|
127
|
+
margin-bottom: 1em;
|
|
128
|
+
}
|
|
129
|
+
.prose th,
|
|
130
|
+
.prose td {
|
|
131
|
+
border: 1px solid var(--bichat-border);
|
|
132
|
+
padding: 0.5em;
|
|
133
|
+
text-align: left;
|
|
134
|
+
}
|
|
135
|
+
.prose th {
|
|
136
|
+
background-color: #f3f4f6;
|
|
137
|
+
font-weight: 600;
|
|
138
|
+
}
|
|
139
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../ui/src/bichat/styles.css"],"sourcesContent":["/**\n * BI-Chat UI Styles\n * CSS variables for theming\n */\n\n:root {\n --bichat-primary: #3b82f6;\n --bichat-bg: #ffffff;\n --bichat-text: #1f2937;\n --bichat-border: #e5e7eb;\n --bichat-bubble-user: #3b82f6;\n --bichat-bubble-assistant: #ffffff;\n}\n\n/* Dark mode support */\n@media (prefers-color-scheme: dark) {\n :root {\n --bichat-bg: #1f2937;\n --bichat-text: #f9fafb;\n --bichat-border: #374151;\n --bichat-bubble-assistant: #374151;\n }\n}\n\n/* Base styles */\n.bichat-session {\n background-color: var(--bichat-bg);\n color: var(--bichat-text);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Scrollbar styles */\n.bichat-messages::-webkit-scrollbar {\n width: 8px;\n}\n\n.bichat-messages::-webkit-scrollbar-track {\n background: transparent;\n}\n\n.bichat-messages::-webkit-scrollbar-thumb {\n background: #d1d5db;\n border-radius: 4px;\n}\n\n.bichat-messages::-webkit-scrollbar-thumb:hover {\n background: #9ca3af;\n}\n\n/* Animation for streaming cursor */\n@keyframes pulse {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n}\n\n.animate-pulse {\n animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n/* Prose styles for markdown */\n.prose {\n color: var(--bichat-text);\n}\n\n.prose h1,\n.prose h2,\n.prose h3,\n.prose h4,\n.prose h5,\n.prose h6 {\n color: var(--bichat-text);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n}\n\n.prose p {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}\n\n.prose code {\n background-color: #f3f4f6;\n padding: 0.125em 0.25em;\n border-radius: 0.25em;\n font-size: 0.875em;\n}\n\n.prose pre {\n background-color: #1f2937;\n color: #f9fafb;\n padding: 1em;\n border-radius: 0.5em;\n overflow-x: auto;\n margin-top: 1em;\n margin-bottom: 1em;\n}\n\n.prose pre code {\n background-color: transparent;\n padding: 0;\n color: inherit;\n font-size: 0.875em;\n}\n\n.prose a {\n color: var(--bichat-primary);\n text-decoration: none;\n}\n\n.prose a:hover {\n text-decoration: underline;\n}\n\n.prose ul,\n.prose ol {\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n padding-left: 1.5em;\n}\n\n.prose li {\n margin-top: 0.25em;\n margin-bottom: 0.25em;\n}\n\n.prose blockquote {\n border-left: 4px solid var(--bichat-border);\n padding-left: 1em;\n margin-left: 0;\n font-style: italic;\n color: #6b7280;\n}\n\n.prose table {\n width: 100%;\n border-collapse: collapse;\n margin-top: 1em;\n margin-bottom: 1em;\n}\n\n.prose th,\n.prose td {\n border: 1px solid var(--bichat-border);\n padding: 0.5em;\n text-align: left;\n}\n\n.prose th {\n background-color: #f3f4f6;\n font-weight: 600;\n}\n"],"mappings":";AAKA;AACE,oBAAkB;AAClB,eAAa;AACb,iBAAe;AACf,mBAAiB;AACjB,wBAAsB;AACtB,6BAA2B;AAC7B;AAGA,QAAO,sBAAuB;AAC5B;AACE,iBAAa;AACb,mBAAe;AACf,qBAAiB;AACjB,+BAA2B;AAC7B;AACF;AAGA,CAAC;AACC,oBAAkB,IAAI;AACtB,SAAO,IAAI;AACX;AAAA,IAAa,aAAa;AAAA,IAAE,kBAAkB;AAAA,IAAE,UAAU;AAAA,IAAE,QAAQ;AAAA,IAAE,QAAQ;AAAA,IAC5E,QAAQ;AAAA,IAAE,WAAW;AAAA,IAAE,WAAW;AAAA,IAAE,YAAY;AAAA,IA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