@farming-labs/theme 0.0.5-beta.1 → 0.0.6
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/package.json +7 -2
- package/styles/ai.css +122 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -73,6 +73,11 @@
|
|
|
73
73
|
"import": "./dist/docs-api.mjs",
|
|
74
74
|
"default": "./dist/docs-api.mjs"
|
|
75
75
|
},
|
|
76
|
+
"./ai": {
|
|
77
|
+
"types": "./dist/ai-search-dialog.d.mts",
|
|
78
|
+
"import": "./dist/ai-search-dialog.mjs",
|
|
79
|
+
"default": "./dist/ai-search-dialog.mjs"
|
|
80
|
+
},
|
|
76
81
|
"./css": "./styles/default.css",
|
|
77
82
|
"./base/css": "./styles/base.css",
|
|
78
83
|
"./default/css": "./styles/default.css",
|
|
@@ -98,7 +103,7 @@
|
|
|
98
103
|
"next": ">=14.0.0",
|
|
99
104
|
"tsdown": "^0.20.3",
|
|
100
105
|
"typescript": "^5.9.3",
|
|
101
|
-
"@farming-labs/docs": "0.0.
|
|
106
|
+
"@farming-labs/docs": "0.0.6"
|
|
102
107
|
},
|
|
103
108
|
"peerDependencies": {
|
|
104
109
|
"@farming-labs/docs": ">=0.0.1",
|
package/styles/ai.css
CHANGED
|
@@ -178,6 +178,10 @@
|
|
|
178
178
|
font-family: inherit;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
.fd-ai-input::placeholder {
|
|
182
|
+
color: var(--color-fd-muted-foreground, #71717a);
|
|
183
|
+
}
|
|
184
|
+
|
|
181
185
|
/* ─── Search results ─────────────────────────────────────────────── */
|
|
182
186
|
|
|
183
187
|
.fd-ai-results {
|
|
@@ -840,6 +844,63 @@
|
|
|
840
844
|
font-size: 12px;
|
|
841
845
|
}
|
|
842
846
|
|
|
847
|
+
/* ─── Markdown prose inside AI bubbles (panel/modal/popover) ─────── */
|
|
848
|
+
|
|
849
|
+
.fd-ai-bubble-ai h2 {
|
|
850
|
+
font-size: 1.125rem;
|
|
851
|
+
font-weight: 600;
|
|
852
|
+
margin: 12px 0 6px;
|
|
853
|
+
line-height: 1.3;
|
|
854
|
+
color: inherit;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.fd-ai-bubble-ai h3 {
|
|
858
|
+
font-size: 1rem;
|
|
859
|
+
font-weight: 600;
|
|
860
|
+
margin: 10px 0 4px;
|
|
861
|
+
line-height: 1.4;
|
|
862
|
+
color: inherit;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.fd-ai-bubble-ai h4 {
|
|
866
|
+
font-size: 0.9375rem;
|
|
867
|
+
font-weight: 600;
|
|
868
|
+
margin: 8px 0 4px;
|
|
869
|
+
line-height: 1.4;
|
|
870
|
+
color: inherit;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.fd-ai-bubble-ai strong {
|
|
874
|
+
font-weight: 600;
|
|
875
|
+
color: var(--color-fd-foreground, #e4e4e7);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.fd-ai-bubble-ai em {
|
|
879
|
+
font-style: italic;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.fd-ai-bubble-ai p {
|
|
883
|
+
margin: 0 0 6px;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.fd-ai-bubble-ai br {
|
|
887
|
+
content: "";
|
|
888
|
+
display: block;
|
|
889
|
+
margin-top: 2px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.fd-ai-bubble-ai pre {
|
|
893
|
+
margin: 8px 0;
|
|
894
|
+
border-radius: 0;
|
|
895
|
+
border: none;
|
|
896
|
+
background: transparent;
|
|
897
|
+
padding: 0;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.fd-ai-bubble-ai > div > div[style*="height:8px"] {
|
|
901
|
+
height: 6px;
|
|
902
|
+
}
|
|
903
|
+
|
|
843
904
|
/* ═══════════════════════════════════════════════════════════════════
|
|
844
905
|
* Code blocks in AI chat — fd-ai-code-*
|
|
845
906
|
* ═══════════════════════════════════════════════════════════════════ */
|
|
@@ -1063,6 +1124,8 @@
|
|
|
1063
1124
|
font-size: 14px;
|
|
1064
1125
|
line-height: 1.7;
|
|
1065
1126
|
color: var(--color-fd-foreground, #e4e4e7);
|
|
1127
|
+
word-break: break-word;
|
|
1128
|
+
overflow-wrap: break-word;
|
|
1066
1129
|
}
|
|
1067
1130
|
|
|
1068
1131
|
.fd-ai-fm-msg-content code {
|
|
@@ -1072,10 +1135,8 @@
|
|
|
1072
1135
|
font-size: 0.875em;
|
|
1073
1136
|
font-family: var(--fd-font-mono, ui-monospace, monospace);
|
|
1074
1137
|
}
|
|
1075
|
-
.fd-ai-code-block pre {
|
|
1076
|
-
padding-
|
|
1077
|
-
padding-right: -10px !important;
|
|
1078
|
-
padding-bottom: 2px !important;
|
|
1138
|
+
.fd-ai-fm-msg-content .fd-ai-code-block pre {
|
|
1139
|
+
padding-bottom: 2px;
|
|
1079
1140
|
}
|
|
1080
1141
|
|
|
1081
1142
|
.fd-ai-fm-msg-content .fd-ai-code-block code {
|
|
@@ -1110,6 +1171,63 @@
|
|
|
1110
1171
|
font-size: 12px;
|
|
1111
1172
|
}
|
|
1112
1173
|
|
|
1174
|
+
/* ─── Markdown prose inside full-modal messages ──────────────────── */
|
|
1175
|
+
|
|
1176
|
+
.fd-ai-fm-msg-content h2 {
|
|
1177
|
+
font-size: 1.25rem;
|
|
1178
|
+
font-weight: 600;
|
|
1179
|
+
margin: 16px 0 8px;
|
|
1180
|
+
line-height: 1.3;
|
|
1181
|
+
color: var(--color-fd-foreground, #e4e4e7);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.fd-ai-fm-msg-content h3 {
|
|
1185
|
+
font-size: 1.0625rem;
|
|
1186
|
+
font-weight: 600;
|
|
1187
|
+
margin: 12px 0 6px;
|
|
1188
|
+
line-height: 1.4;
|
|
1189
|
+
color: var(--color-fd-foreground, #e4e4e7);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.fd-ai-fm-msg-content h4 {
|
|
1193
|
+
font-size: 1rem;
|
|
1194
|
+
font-weight: 600;
|
|
1195
|
+
margin: 10px 0 4px;
|
|
1196
|
+
line-height: 1.4;
|
|
1197
|
+
color: var(--color-fd-foreground, #e4e4e7);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.fd-ai-fm-msg-content strong {
|
|
1201
|
+
font-weight: 600;
|
|
1202
|
+
color: var(--color-fd-foreground, #e4e4e7);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.fd-ai-fm-msg-content em {
|
|
1206
|
+
font-style: italic;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.fd-ai-fm-msg-content p {
|
|
1210
|
+
margin: 0 0 8px;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.fd-ai-fm-msg-content br {
|
|
1214
|
+
content: "";
|
|
1215
|
+
display: block;
|
|
1216
|
+
margin-top: 2px;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.fd-ai-fm-msg-content pre {
|
|
1220
|
+
margin: 8px 0;
|
|
1221
|
+
border-radius: 0;
|
|
1222
|
+
border: none;
|
|
1223
|
+
background: transparent;
|
|
1224
|
+
padding: 0;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.fd-ai-fm-msg-content > div > div[style*="height:8px"] {
|
|
1228
|
+
height: 6px;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1113
1231
|
/* ─── Thinking dots ──────────────────────────────────────────────── */
|
|
1114
1232
|
|
|
1115
1233
|
/* Full-modal now uses the shared .fd-ai-loader indicator */
|