@quilltap/theme-storybook 1.0.41 → 1.0.43
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 +6 -0
- package/dist/{chunk-U2PTQQL5.mjs → chunk-MKFVWQPL.mjs} +858 -755
- package/dist/index.css +10 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +859 -755
- package/dist/index.mjs +3 -1
- package/dist/stories/index.d.mts +13 -1
- package/dist/stories/index.d.ts +13 -1
- package/dist/stories/index.js +859 -755
- package/dist/stories/index.mjs +3 -1
- package/package.json +1 -1
- package/src/css/qt-components.css +20 -0
- package/src/stories/components/Icons.tsx +2 -2
- package/src/stories/components/Surfaces.tsx +107 -0
- package/src/stories/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
Loading: () => Loading,
|
|
37
37
|
Participant: () => Participant,
|
|
38
38
|
Spacing: () => Spacing,
|
|
39
|
+
Surfaces: () => Surfaces,
|
|
39
40
|
Tabs: () => Tabs,
|
|
40
41
|
Terminal: () => Terminal,
|
|
41
42
|
ThemeComparison: () => ThemeComparison,
|
|
@@ -196,6 +197,7 @@ var ICON_GROUPS = [
|
|
|
196
197
|
"trash",
|
|
197
198
|
"copy",
|
|
198
199
|
"plus",
|
|
200
|
+
"minus",
|
|
199
201
|
"search",
|
|
200
202
|
"download",
|
|
201
203
|
"upload",
|
|
@@ -222,7 +224,8 @@ var ICON_GROUPS = [
|
|
|
222
224
|
"arrow-left",
|
|
223
225
|
"arrow-right",
|
|
224
226
|
"arrow-up",
|
|
225
|
-
"arrow-down"
|
|
227
|
+
"arrow-down",
|
|
228
|
+
"sort"
|
|
226
229
|
]
|
|
227
230
|
},
|
|
228
231
|
{
|
|
@@ -1133,75 +1136,175 @@ var Badges = () => {
|
|
|
1133
1136
|
] });
|
|
1134
1137
|
};
|
|
1135
1138
|
|
|
1136
|
-
// src/stories/components/
|
|
1139
|
+
// src/stories/components/Surfaces.tsx
|
|
1137
1140
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1138
|
-
var
|
|
1141
|
+
var sectionHeading2 = {
|
|
1142
|
+
fontSize: "1.125rem",
|
|
1143
|
+
fontWeight: 700,
|
|
1144
|
+
marginBottom: "1rem",
|
|
1145
|
+
borderBottom: "1px solid var(--color-border)",
|
|
1146
|
+
paddingBottom: "0.5rem"
|
|
1147
|
+
};
|
|
1148
|
+
var note = {
|
|
1149
|
+
color: "var(--color-muted-foreground)",
|
|
1150
|
+
marginBottom: "1rem",
|
|
1151
|
+
fontSize: "0.875rem"
|
|
1152
|
+
};
|
|
1153
|
+
var Surfaces = () => {
|
|
1139
1154
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1140
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "
|
|
1155
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "0.5rem" }, children: "Surfaces" }),
|
|
1156
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { style: { ...note, maxWidth: "44rem" }, children: [
|
|
1157
|
+
"How accent-coloured surfaces stay legible no matter how bold a theme makes its ",
|
|
1158
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "accent" }),
|
|
1159
|
+
" token. Filled surfaces pair the background with",
|
|
1160
|
+
" ",
|
|
1161
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-text-on-accent" }),
|
|
1162
|
+
"; hover rows use ",
|
|
1163
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-hover-accent" }),
|
|
1164
|
+
"; quiet selected/panel surfaces lean on ",
|
|
1165
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "muted" }),
|
|
1166
|
+
" and faint",
|
|
1167
|
+
" ",
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "primary" }),
|
|
1169
|
+
" instead of the accent."
|
|
1170
|
+
] }),
|
|
1141
1171
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1142
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { style:
|
|
1143
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("
|
|
1144
|
-
|
|
1145
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("
|
|
1146
|
-
|
|
1147
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { style: sectionHeading2, children: "Filled accent surfaces" }),
|
|
1173
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { style: note, children: [
|
|
1174
|
+
"A solid ",
|
|
1175
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-bg-accent" }),
|
|
1176
|
+
" fill ",
|
|
1177
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("strong", { children: "must" }),
|
|
1178
|
+
" be paired with",
|
|
1179
|
+
" ",
|
|
1180
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-text-on-accent" }),
|
|
1181
|
+
" (the theme's ",
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "accentForeground" }),
|
|
1183
|
+
"). A fill without it falls back to the page foreground and washes out on bold accents."
|
|
1184
|
+
] }),
|
|
1185
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
1186
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-bg-accent qt-text-on-accent", style: { padding: "0.125rem 0.5rem", borderRadius: "0.25rem", fontSize: "0.75rem" }, children: "keyword" }),
|
|
1187
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-bg-accent qt-text-on-accent", style: { padding: "0.125rem 0.5rem", borderRadius: "0.25rem", fontSize: "0.75rem" }, children: "another keyword" }),
|
|
1188
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("kbd", { className: "qt-bg-accent qt-text-on-accent", style: { padding: "0.125rem 0.375rem", borderRadius: "0.25rem", fontSize: "0.75rem" }, children: "\u21B5" })
|
|
1148
1189
|
] })
|
|
1149
1190
|
] }),
|
|
1150
1191
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1151
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("h3", { style: sectionHeading2, children: [
|
|
1193
|
+
"Hover-highlight rows \u2014 ",
|
|
1194
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-hover-accent" })
|
|
1195
|
+
] }),
|
|
1196
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { style: note, children: [
|
|
1197
|
+
"For list rows, menu items, and option cards. On hover it paints the accent background and forces the accent foreground onto the row ",
|
|
1198
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("em", { children: "and every descendant" }),
|
|
1199
|
+
" \u2014 so children that carry their own colour (the title and the muted subtitle below) flip too, instead of washing out (or, when their colour matches the accent, vanishing). Hover the rows to see it."
|
|
1200
|
+
] }),
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "0.25rem", maxWidth: "24rem", border: "1px solid var(--color-border)", borderRadius: "0.5rem", padding: "0.375rem" }, children: [
|
|
1202
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "qt-hover-accent", style: { display: "flex", flexDirection: "column", padding: "0.5rem 0.75rem", borderRadius: "0.375rem", cursor: "pointer" }, children: [
|
|
1203
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-primary", children: "Compose a reply" }),
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-secondary", style: { fontSize: "0.8125rem" }, children: "Draft a response in this thread" })
|
|
1205
|
+
] }),
|
|
1206
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "qt-hover-accent", style: { display: "flex", flexDirection: "column", padding: "0.5rem 0.75rem", borderRadius: "0.375rem", cursor: "pointer" }, children: [
|
|
1207
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-primary", children: "Mark as resolved" }),
|
|
1208
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-secondary", style: { fontSize: "0.8125rem" }, children: "Close and archive this item" })
|
|
1209
|
+
] }),
|
|
1210
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "qt-hover-accent", style: { display: "flex", flexDirection: "column", padding: "0.5rem 0.75rem", borderRadius: "0.375rem", cursor: "pointer" }, children: [
|
|
1211
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-primary", children: "Delete" }),
|
|
1212
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "qt-text-secondary", style: { fontSize: "0.8125rem" }, children: "Remove permanently" })
|
|
1213
|
+
] })
|
|
1157
1214
|
] })
|
|
1158
1215
|
] }),
|
|
1159
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", {
|
|
1160
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { style:
|
|
1161
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-
|
|
1172
|
-
|
|
1216
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { children: [
|
|
1217
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { style: sectionHeading2, children: "Quiet selected & panel surfaces" }),
|
|
1218
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { style: note, children: [
|
|
1219
|
+
"Persistent surfaces (selected cards, informational panels) deliberately avoid the bold accent. Selected states use a faint ",
|
|
1220
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-bg-primary/10" }),
|
|
1221
|
+
" tint; informational panels use the neutral ",
|
|
1222
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("code", { children: "qt-bg-muted" }),
|
|
1223
|
+
" surface."
|
|
1224
|
+
] }),
|
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem" }, children: [
|
|
1226
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "qt-bg-primary/10", style: { padding: "0.75rem 1rem", borderRadius: "0.5rem", border: "1px solid var(--color-primary)", maxWidth: "16rem" }, children: [
|
|
1227
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-text-primary", style: { fontWeight: 600 }, children: "Selected option" }),
|
|
1228
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-text-secondary", style: { fontSize: "0.8125rem" }, children: "Faint primary tint marks the choice." })
|
|
1229
|
+
] }),
|
|
1230
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "qt-bg-muted", style: { padding: "0.75rem 1rem", borderRadius: "0.5rem", border: "1px solid var(--color-border)", maxWidth: "16rem" }, children: [
|
|
1231
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { fontWeight: 600 }, children: "Informational panel" }),
|
|
1232
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-text-secondary", style: { fontSize: "0.8125rem" }, children: "Neutral muted surface, never the accent." })
|
|
1173
1233
|
] })
|
|
1174
1234
|
] })
|
|
1235
|
+
] })
|
|
1236
|
+
] });
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
// src/stories/components/Avatars.tsx
|
|
1240
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1241
|
+
var Avatars = () => {
|
|
1242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1243
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Avatars" }),
|
|
1244
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1245
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Sizes" }),
|
|
1246
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1247
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "SM" }) }),
|
|
1248
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "MD" }) }),
|
|
1249
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar qt-avatar-lg", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "LG" }) }),
|
|
1250
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar qt-avatar-xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "XL" }) })
|
|
1251
|
+
] })
|
|
1175
1252
|
] }),
|
|
1176
|
-
/* @__PURE__ */ (0,
|
|
1177
|
-
/* @__PURE__ */ (0,
|
|
1178
|
-
/* @__PURE__ */ (0,
|
|
1179
|
-
|
|
1180
|
-
/* @__PURE__ */ (0,
|
|
1181
|
-
/* @__PURE__ */ (0,
|
|
1182
|
-
/* @__PURE__ */ (0,
|
|
1183
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "qt-avatar-fallback", children: "+3" }) })
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1254
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar with Images" }),
|
|
1255
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Avatars gracefully fall back to initials when image is unavailable." }),
|
|
1256
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1257
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "AB" }) }),
|
|
1258
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "CD" }) }),
|
|
1259
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "EF" }) })
|
|
1184
1260
|
] })
|
|
1185
1261
|
] }),
|
|
1186
|
-
/* @__PURE__ */ (0,
|
|
1187
|
-
/* @__PURE__ */ (0,
|
|
1188
|
-
/* @__PURE__ */ (0,
|
|
1189
|
-
/* @__PURE__ */ (0,
|
|
1190
|
-
/* @__PURE__ */ (0,
|
|
1191
|
-
/* @__PURE__ */ (0,
|
|
1192
|
-
|
|
1193
|
-
|
|
1262
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1263
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Shapes" }),
|
|
1264
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1265
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
|
|
1266
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", style: { borderRadius: "9999px" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "CR" }) }),
|
|
1267
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Circle" })
|
|
1268
|
+
] }),
|
|
1269
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
|
|
1270
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", style: { borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "RD" }) }),
|
|
1271
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Rounded" })
|
|
1272
|
+
] }),
|
|
1273
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
|
|
1274
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", style: { borderRadius: "var(--radius-sm)" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "SQ" }) }),
|
|
1275
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Square" })
|
|
1276
|
+
] })
|
|
1277
|
+
] })
|
|
1278
|
+
] }),
|
|
1279
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1280
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Groups" }),
|
|
1281
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "qt-avatar-group", children: [
|
|
1282
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1283
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "B" }) }),
|
|
1284
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "C" }) }),
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "D" }) }),
|
|
1286
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "+3" }) })
|
|
1287
|
+
] })
|
|
1288
|
+
] }),
|
|
1289
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { children: [
|
|
1290
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Usage in Context" }),
|
|
1291
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1292
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem", padding: "0.75rem", backgroundColor: "var(--color-muted)", borderRadius: "var(--radius-lg)" }, children: [
|
|
1293
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "JD" }) }),
|
|
1294
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { flex: 1 }, children: [
|
|
1295
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: { fontWeight: 600 }, children: "John Doe" }),
|
|
1296
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "john@example.com" })
|
|
1194
1297
|
] }),
|
|
1195
|
-
/* @__PURE__ */ (0,
|
|
1196
|
-
] }),
|
|
1197
|
-
/* @__PURE__ */ (0,
|
|
1198
|
-
/* @__PURE__ */ (0,
|
|
1199
|
-
/* @__PURE__ */ (0,
|
|
1200
|
-
/* @__PURE__ */ (0,
|
|
1201
|
-
/* @__PURE__ */ (0,
|
|
1202
|
-
/* @__PURE__ */ (0,
|
|
1298
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "qt-badge qt-badge-success", children: "Active" })
|
|
1299
|
+
] }),
|
|
1300
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", gap: "0.75rem" }, children: [
|
|
1301
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "qt-avatar-fallback", children: "SM" }) }),
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { flex: 1 }, children: [
|
|
1303
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1304
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: { fontWeight: 600, fontSize: "0.875rem" }, children: "Sarah Miller" }),
|
|
1305
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "2 hours ago" })
|
|
1203
1306
|
] }),
|
|
1204
|
-
/* @__PURE__ */ (0,
|
|
1307
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { style: { fontSize: "0.875rem", marginTop: "0.25rem" }, children: "This is a sample comment with an avatar." })
|
|
1205
1308
|
] })
|
|
1206
1309
|
] })
|
|
1207
1310
|
] })
|
|
@@ -1211,131 +1314,131 @@ var Avatars = () => {
|
|
|
1211
1314
|
|
|
1212
1315
|
// src/stories/components/Dialogs.tsx
|
|
1213
1316
|
var import_react = require("react");
|
|
1214
|
-
var
|
|
1317
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1215
1318
|
var Dialogs = () => {
|
|
1216
1319
|
const [basicOpen, setBasicOpen] = (0, import_react.useState)(false);
|
|
1217
1320
|
const [confirmOpen, setConfirmOpen] = (0, import_react.useState)(false);
|
|
1218
1321
|
const [formOpen, setFormOpen] = (0, import_react.useState)(false);
|
|
1219
|
-
return /* @__PURE__ */ (0,
|
|
1220
|
-
/* @__PURE__ */ (0,
|
|
1221
|
-
/* @__PURE__ */ (0,
|
|
1222
|
-
/* @__PURE__ */ (0,
|
|
1223
|
-
/* @__PURE__ */ (0,
|
|
1224
|
-
/* @__PURE__ */ (0,
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1226
|
-
/* @__PURE__ */ (0,
|
|
1227
|
-
/* @__PURE__ */ (0,
|
|
1228
|
-
] })
|
|
1229
|
-
] }),
|
|
1230
|
-
basicOpen && /* @__PURE__ */ (0,
|
|
1231
|
-
/* @__PURE__ */ (0,
|
|
1232
|
-
/* @__PURE__ */ (0,
|
|
1233
|
-
/* @__PURE__ */ (0,
|
|
1234
|
-
/* @__PURE__ */ (0,
|
|
1322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1323
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Dialogs & Modals" }),
|
|
1324
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1325
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Examples" }),
|
|
1326
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Click the buttons below to open different dialog types." }),
|
|
1327
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem" }, children: [
|
|
1328
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-secondary", onClick: () => setBasicOpen(true), children: "Basic Dialog" }),
|
|
1329
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-destructive", onClick: () => setConfirmOpen(true), children: "Confirmation Dialog" }),
|
|
1330
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-primary", onClick: () => setFormOpen(true), children: "Form Dialog" })
|
|
1331
|
+
] })
|
|
1332
|
+
] }),
|
|
1333
|
+
basicOpen && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-overlay", onClick: () => setBasicOpen(false), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), children: [
|
|
1334
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-header", children: [
|
|
1335
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Basic Dialog" }),
|
|
1336
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "qt-dialog-description", children: "This is a basic dialog with some content. Dialogs are used to show important information or gather user input." }),
|
|
1337
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button-icon", onClick: () => setBasicOpen(false), "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
1235
1338
|
] }),
|
|
1236
|
-
/* @__PURE__ */ (0,
|
|
1237
|
-
/* @__PURE__ */ (0,
|
|
1339
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Dialog content area with additional details and information." }) }),
|
|
1340
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-footer", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-primary", onClick: () => setBasicOpen(false), children: "Got it" }) })
|
|
1238
1341
|
] }) }),
|
|
1239
|
-
confirmOpen && /* @__PURE__ */ (0,
|
|
1240
|
-
/* @__PURE__ */ (0,
|
|
1241
|
-
/* @__PURE__ */ (0,
|
|
1242
|
-
/* @__PURE__ */ (0,
|
|
1243
|
-
/* @__PURE__ */ (0,
|
|
1342
|
+
confirmOpen && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-overlay", onClick: () => setConfirmOpen(false), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), children: [
|
|
1343
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-header", children: [
|
|
1344
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Delete Item?" }),
|
|
1345
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "qt-dialog-description", children: "Are you sure you want to delete this item? This action cannot be undone." }),
|
|
1346
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button-icon", onClick: () => setConfirmOpen(false), "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
1244
1347
|
] }),
|
|
1245
|
-
/* @__PURE__ */ (0,
|
|
1246
|
-
/* @__PURE__ */ (0,
|
|
1247
|
-
/* @__PURE__ */ (0,
|
|
1248
|
-
/* @__PURE__ */ (0,
|
|
1348
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "This will remove the item from your collection permanently." }) }),
|
|
1349
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-footer", children: [
|
|
1350
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-ghost", onClick: () => setConfirmOpen(false), children: "Cancel" }),
|
|
1351
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-destructive", onClick: () => setConfirmOpen(false), children: "Delete" })
|
|
1249
1352
|
] })
|
|
1250
1353
|
] }) }),
|
|
1251
|
-
formOpen && /* @__PURE__ */ (0,
|
|
1252
|
-
/* @__PURE__ */ (0,
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1254
|
-
/* @__PURE__ */ (0,
|
|
1255
|
-
/* @__PURE__ */ (0,
|
|
1354
|
+
formOpen && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-overlay", onClick: () => setFormOpen(false), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), style: { maxWidth: "28rem" }, children: [
|
|
1355
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-header", children: [
|
|
1356
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Create New Item" }),
|
|
1357
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "qt-dialog-description", children: "Fill in the details below to create a new item." }),
|
|
1358
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button-icon", onClick: () => setFormOpen(false), "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
1256
1359
|
] }),
|
|
1257
|
-
/* @__PURE__ */ (0,
|
|
1258
|
-
/* @__PURE__ */ (0,
|
|
1259
|
-
/* @__PURE__ */ (0,
|
|
1260
|
-
/* @__PURE__ */ (0,
|
|
1261
|
-
] }),
|
|
1262
|
-
/* @__PURE__ */ (0,
|
|
1263
|
-
/* @__PURE__ */ (0,
|
|
1264
|
-
/* @__PURE__ */ (0,
|
|
1265
|
-
] }),
|
|
1266
|
-
/* @__PURE__ */ (0,
|
|
1267
|
-
/* @__PURE__ */ (0,
|
|
1268
|
-
/* @__PURE__ */ (0,
|
|
1269
|
-
/* @__PURE__ */ (0,
|
|
1270
|
-
/* @__PURE__ */ (0,
|
|
1271
|
-
/* @__PURE__ */ (0,
|
|
1272
|
-
/* @__PURE__ */ (0,
|
|
1360
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
1362
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Name" }),
|
|
1363
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("input", { className: "qt-input", type: "text", placeholder: "Enter name..." })
|
|
1364
|
+
] }),
|
|
1365
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
1366
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Description" }),
|
|
1367
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("textarea", { className: "qt-input qt-textarea", placeholder: "Enter description...", style: { minHeight: "5rem" } })
|
|
1368
|
+
] }),
|
|
1369
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
1370
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Category" }),
|
|
1371
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("select", { className: "qt-input qt-select", children: [
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "", children: "Select category..." }),
|
|
1373
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "1", children: "Category 1" }),
|
|
1374
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "2", children: "Category 2" }),
|
|
1375
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "3", children: "Category 3" })
|
|
1273
1376
|
] })
|
|
1274
1377
|
] })
|
|
1275
1378
|
] }) }),
|
|
1276
|
-
/* @__PURE__ */ (0,
|
|
1277
|
-
/* @__PURE__ */ (0,
|
|
1278
|
-
/* @__PURE__ */ (0,
|
|
1379
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-footer", children: [
|
|
1380
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-ghost", onClick: () => setFormOpen(false), children: "Cancel" }),
|
|
1381
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-primary", onClick: () => setFormOpen(false), children: "Create" })
|
|
1279
1382
|
] })
|
|
1280
1383
|
] }) }),
|
|
1281
|
-
/* @__PURE__ */ (0,
|
|
1282
|
-
/* @__PURE__ */ (0,
|
|
1283
|
-
/* @__PURE__ */ (0,
|
|
1284
|
-
/* @__PURE__ */ (0,
|
|
1285
|
-
/* @__PURE__ */ (0,
|
|
1286
|
-
/* @__PURE__ */ (0,
|
|
1287
|
-
/* @__PURE__ */ (0,
|
|
1288
|
-
] }),
|
|
1289
|
-
/* @__PURE__ */ (0,
|
|
1290
|
-
/* @__PURE__ */ (0,
|
|
1291
|
-
/* @__PURE__ */ (0,
|
|
1292
|
-
/* @__PURE__ */ (0,
|
|
1384
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1385
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Structure (Static Preview)" }),
|
|
1386
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { backgroundColor: "var(--color-muted)", padding: "2rem", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog", style: { position: "relative", transform: "none", margin: "0 auto" }, children: [
|
|
1387
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-header", children: [
|
|
1388
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Dialog Title" }),
|
|
1389
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "qt-dialog-description", children: "This is a dialog with a title and description." }),
|
|
1390
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button-icon", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
1391
|
+
] }),
|
|
1392
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Dialog content area. This can contain text, forms, or any other content." }) }),
|
|
1393
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog-footer", children: [
|
|
1394
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-ghost", children: "Secondary Action" }),
|
|
1395
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-primary", children: "Primary Action" })
|
|
1293
1396
|
] })
|
|
1294
1397
|
] }) })
|
|
1295
1398
|
] }),
|
|
1296
|
-
/* @__PURE__ */ (0,
|
|
1297
|
-
/* @__PURE__ */ (0,
|
|
1298
|
-
/* @__PURE__ */ (0,
|
|
1299
|
-
/* @__PURE__ */ (0,
|
|
1300
|
-
/* @__PURE__ */ (0,
|
|
1301
|
-
/* @__PURE__ */ (0,
|
|
1302
|
-
/* @__PURE__ */ (0,
|
|
1303
|
-
/* @__PURE__ */ (0,
|
|
1399
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { children: [
|
|
1400
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Sizes" }),
|
|
1401
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1402
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--color-muted-foreground)" }, children: "Small (max-width: 24rem)" }),
|
|
1404
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { backgroundColor: "var(--color-muted)", padding: "1rem", borderRadius: "var(--radius-lg)", marginTop: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog", style: { position: "relative", transform: "none", margin: 0, maxWidth: "24rem" }, children: [
|
|
1405
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-header", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Small Dialog" }) }),
|
|
1406
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Compact dialog for simple confirmations." }) })
|
|
1304
1407
|
] }) })
|
|
1305
1408
|
] }),
|
|
1306
|
-
/* @__PURE__ */ (0,
|
|
1307
|
-
/* @__PURE__ */ (0,
|
|
1308
|
-
/* @__PURE__ */ (0,
|
|
1309
|
-
/* @__PURE__ */ (0,
|
|
1310
|
-
/* @__PURE__ */ (0,
|
|
1409
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
1410
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--color-muted-foreground)" }, children: "Large (max-width: 42rem)" }),
|
|
1411
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { backgroundColor: "var(--color-muted)", padding: "1rem", borderRadius: "var(--radius-lg)", marginTop: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dialog qt-dialog-wide", style: { position: "relative", transform: "none", margin: 0, maxWidth: "42rem" }, children: [
|
|
1412
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-header", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "qt-dialog-title", children: "Large Dialog" }) }),
|
|
1413
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dialog-body", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Larger dialog for complex forms or detailed content that needs more space." }) })
|
|
1311
1414
|
] }) })
|
|
1312
1415
|
] })
|
|
1313
1416
|
] })
|
|
1314
1417
|
] }),
|
|
1315
|
-
/* @__PURE__ */ (0,
|
|
1316
|
-
/* @__PURE__ */ (0,
|
|
1317
|
-
/* @__PURE__ */ (0,
|
|
1318
|
-
/* @__PURE__ */ (0,
|
|
1319
|
-
/* @__PURE__ */ (0,
|
|
1320
|
-
/* @__PURE__ */ (0,
|
|
1321
|
-
/* @__PURE__ */ (0,
|
|
1418
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1419
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Popover" }),
|
|
1420
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { position: "relative", display: "inline-block", marginTop: "2rem" }, children: [
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-secondary", children: "Hover for popover" }),
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-popover", style: { position: "absolute", left: 0, top: "100%", marginTop: "0.5rem", display: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { padding: "0.75rem" }, children: [
|
|
1423
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: { fontWeight: 600, marginBottom: "0.25rem" }, children: "Popover Title" }),
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "This is popover content that provides additional context." })
|
|
1322
1425
|
] }) })
|
|
1323
1426
|
] })
|
|
1324
1427
|
] }),
|
|
1325
|
-
/* @__PURE__ */ (0,
|
|
1326
|
-
/* @__PURE__ */ (0,
|
|
1327
|
-
/* @__PURE__ */ (0,
|
|
1328
|
-
/* @__PURE__ */ (0,
|
|
1329
|
-
/* @__PURE__ */ (0,
|
|
1330
|
-
/* @__PURE__ */ (0,
|
|
1331
|
-
/* @__PURE__ */ (0,
|
|
1428
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1429
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dropdown Menu" }),
|
|
1430
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "qt-dropdown", style: { display: "inline-block", position: "relative" }, children: [
|
|
1431
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dropdown-item", children: "Profile" }),
|
|
1432
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dropdown-item", children: "Settings" }),
|
|
1433
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dropdown-separator" }),
|
|
1434
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-dropdown-item", style: { color: "var(--color-destructive)" }, children: "Sign Out" })
|
|
1332
1435
|
] })
|
|
1333
1436
|
] }),
|
|
1334
|
-
/* @__PURE__ */ (0,
|
|
1335
|
-
/* @__PURE__ */ (0,
|
|
1336
|
-
/* @__PURE__ */ (0,
|
|
1337
|
-
/* @__PURE__ */ (0,
|
|
1338
|
-
/* @__PURE__ */ (0,
|
|
1437
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { children: [
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Tooltip" }),
|
|
1439
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { display: "flex", alignItems: "center", gap: "2rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { style: { position: "relative", display: "inline-block", marginTop: "2rem" }, children: [
|
|
1440
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "qt-button qt-button-secondary", children: "Hover me" }),
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "qt-tooltip", style: { position: "absolute", left: "50%", transform: "translateX(-50%)", bottom: "100%", marginBottom: "0.5rem", display: "block" }, children: "Helpful tooltip text" })
|
|
1339
1442
|
] }) })
|
|
1340
1443
|
] })
|
|
1341
1444
|
] });
|
|
@@ -1343,15 +1446,15 @@ var Dialogs = () => {
|
|
|
1343
1446
|
|
|
1344
1447
|
// src/stories/components/Tabs.tsx
|
|
1345
1448
|
var import_react2 = require("react");
|
|
1346
|
-
var
|
|
1449
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1347
1450
|
var Tabs = () => {
|
|
1348
1451
|
const [activeTab, setActiveTab] = (0, import_react2.useState)("tab1");
|
|
1349
|
-
return /* @__PURE__ */ (0,
|
|
1350
|
-
/* @__PURE__ */ (0,
|
|
1351
|
-
/* @__PURE__ */ (0,
|
|
1352
|
-
/* @__PURE__ */ (0,
|
|
1353
|
-
/* @__PURE__ */ (0,
|
|
1354
|
-
/* @__PURE__ */ (0,
|
|
1452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1453
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Tabs & Navigation" }),
|
|
1454
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1455
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Basic Tabs" }),
|
|
1456
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-tab-group", children: [
|
|
1457
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1355
1458
|
"button",
|
|
1356
1459
|
{
|
|
1357
1460
|
className: `qt-tab ${activeTab === "tab1" ? "qt-tab-active" : ""}`,
|
|
@@ -1359,7 +1462,7 @@ var Tabs = () => {
|
|
|
1359
1462
|
children: "Account"
|
|
1360
1463
|
}
|
|
1361
1464
|
),
|
|
1362
|
-
/* @__PURE__ */ (0,
|
|
1465
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1363
1466
|
"button",
|
|
1364
1467
|
{
|
|
1365
1468
|
className: `qt-tab ${activeTab === "tab2" ? "qt-tab-active" : ""}`,
|
|
@@ -1367,7 +1470,7 @@ var Tabs = () => {
|
|
|
1367
1470
|
children: "Settings"
|
|
1368
1471
|
}
|
|
1369
1472
|
),
|
|
1370
|
-
/* @__PURE__ */ (0,
|
|
1473
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1371
1474
|
"button",
|
|
1372
1475
|
{
|
|
1373
1476
|
className: `qt-tab ${activeTab === "tab3" ? "qt-tab-active" : ""}`,
|
|
@@ -1376,56 +1479,56 @@ var Tabs = () => {
|
|
|
1376
1479
|
}
|
|
1377
1480
|
)
|
|
1378
1481
|
] }),
|
|
1379
|
-
/* @__PURE__ */ (0,
|
|
1380
|
-
activeTab === "tab1" && /* @__PURE__ */ (0,
|
|
1381
|
-
/* @__PURE__ */ (0,
|
|
1382
|
-
/* @__PURE__ */ (0,
|
|
1383
|
-
] }),
|
|
1384
|
-
activeTab === "tab2" && /* @__PURE__ */ (0,
|
|
1385
|
-
/* @__PURE__ */ (0,
|
|
1386
|
-
/* @__PURE__ */ (0,
|
|
1387
|
-
] }),
|
|
1388
|
-
activeTab === "tab3" && /* @__PURE__ */ (0,
|
|
1389
|
-
/* @__PURE__ */ (0,
|
|
1390
|
-
/* @__PURE__ */ (0,
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
|
|
1483
|
+
activeTab === "tab1" && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-tab-content", children: [
|
|
1484
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Account Settings" }),
|
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: { color: "var(--color-muted-foreground)" }, children: "Manage your account settings and preferences." })
|
|
1486
|
+
] }),
|
|
1487
|
+
activeTab === "tab2" && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-tab-content", children: [
|
|
1488
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "General Settings" }),
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: { color: "var(--color-muted-foreground)" }, children: "Configure general application settings." })
|
|
1490
|
+
] }),
|
|
1491
|
+
activeTab === "tab3" && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-tab-content", children: [
|
|
1492
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Notification Preferences" }),
|
|
1493
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: { color: "var(--color-muted-foreground)" }, children: "Choose how you want to receive notifications." })
|
|
1391
1494
|
] })
|
|
1392
1495
|
] })
|
|
1393
1496
|
] }),
|
|
1394
|
-
/* @__PURE__ */ (0,
|
|
1395
|
-
/* @__PURE__ */ (0,
|
|
1396
|
-
/* @__PURE__ */ (0,
|
|
1397
|
-
/* @__PURE__ */ (0,
|
|
1398
|
-
/* @__PURE__ */ (0,
|
|
1497
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1498
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Tabs with Icons" }),
|
|
1499
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-tab-group", children: [
|
|
1500
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("button", { className: "qt-tab qt-tab-active", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1501
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" }) }),
|
|
1399
1502
|
"Home"
|
|
1400
1503
|
] }),
|
|
1401
|
-
/* @__PURE__ */ (0,
|
|
1402
|
-
/* @__PURE__ */ (0,
|
|
1504
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("button", { className: "qt-tab", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1505
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" }) }),
|
|
1403
1506
|
"Profile"
|
|
1404
1507
|
] }),
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1406
|
-
/* @__PURE__ */ (0,
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1408
|
-
/* @__PURE__ */ (0,
|
|
1508
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("button", { className: "qt-tab", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1509
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1510
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" }),
|
|
1511
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1409
1512
|
] }),
|
|
1410
1513
|
"Settings"
|
|
1411
1514
|
] })
|
|
1412
1515
|
] })
|
|
1413
1516
|
] }),
|
|
1414
|
-
/* @__PURE__ */ (0,
|
|
1415
|
-
/* @__PURE__ */ (0,
|
|
1416
|
-
/* @__PURE__ */ (0,
|
|
1417
|
-
/* @__PURE__ */ (0,
|
|
1418
|
-
/* @__PURE__ */ (0,
|
|
1419
|
-
/* @__PURE__ */ (0,
|
|
1420
|
-
/* @__PURE__ */ (0,
|
|
1421
|
-
/* @__PURE__ */ (0,
|
|
1422
|
-
/* @__PURE__ */ (0,
|
|
1423
|
-
/* @__PURE__ */ (0,
|
|
1517
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { children: [
|
|
1518
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Navigation Bar" }),
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "qt-navbar", children: [
|
|
1520
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1521
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { fontWeight: 700, fontSize: "1.125rem" }, children: "Quilltap" }),
|
|
1522
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("nav", { style: { display: "flex", gap: "0.25rem" }, children: [
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("a", { href: "#", className: "qt-navbar-link qt-navbar-link-active", children: "Dashboard" }),
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("a", { href: "#", className: "qt-navbar-link", children: "Characters" }),
|
|
1525
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("a", { href: "#", className: "qt-navbar-link", children: "Chats" }),
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("a", { href: "#", className: "qt-navbar-link", children: "Settings" })
|
|
1424
1527
|
] })
|
|
1425
1528
|
] }),
|
|
1426
|
-
/* @__PURE__ */ (0,
|
|
1427
|
-
/* @__PURE__ */ (0,
|
|
1428
|
-
/* @__PURE__ */ (0,
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { className: "qt-button-icon", "aria-label": "Notifications", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" }) }) }),
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "qt-avatar-fallback", children: "U" }) })
|
|
1429
1532
|
] })
|
|
1430
1533
|
] })
|
|
1431
1534
|
] })
|
|
@@ -1433,215 +1536,215 @@ var Tabs = () => {
|
|
|
1433
1536
|
};
|
|
1434
1537
|
|
|
1435
1538
|
// src/stories/components/Chat.tsx
|
|
1436
|
-
var
|
|
1539
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1437
1540
|
var Chat = () => {
|
|
1438
|
-
return /* @__PURE__ */ (0,
|
|
1439
|
-
/* @__PURE__ */ (0,
|
|
1440
|
-
/* @__PURE__ */ (0,
|
|
1441
|
-
/* @__PURE__ */ (0,
|
|
1442
|
-
/* @__PURE__ */ (0,
|
|
1443
|
-
/* @__PURE__ */ (0,
|
|
1444
|
-
/* @__PURE__ */ (0,
|
|
1445
|
-
/* @__PURE__ */ (0,
|
|
1446
|
-
/* @__PURE__ */ (0,
|
|
1541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1542
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Chat Components" }),
|
|
1543
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1544
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Message Bubbles" }),
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1546
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-user", children: [
|
|
1547
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-header", children: [
|
|
1548
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "You" }),
|
|
1549
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-time", children: "2:30 PM" })
|
|
1447
1550
|
] }),
|
|
1448
|
-
/* @__PURE__ */ (0,
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Hello! How are you today?" }) })
|
|
1449
1552
|
] }) }),
|
|
1450
|
-
/* @__PURE__ */ (0,
|
|
1451
|
-
/* @__PURE__ */ (0,
|
|
1452
|
-
/* @__PURE__ */ (0,
|
|
1453
|
-
/* @__PURE__ */ (0,
|
|
1454
|
-
/* @__PURE__ */ (0,
|
|
1455
|
-
/* @__PURE__ */ (0,
|
|
1553
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1554
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1556
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-header", children: [
|
|
1557
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "Assistant" }),
|
|
1558
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-time", children: "2:30 PM" })
|
|
1456
1559
|
] }),
|
|
1457
|
-
/* @__PURE__ */ (0,
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Hello! I'm doing well, thank you for asking. How can I help you today?" }) })
|
|
1458
1561
|
] })
|
|
1459
1562
|
] }),
|
|
1460
|
-
/* @__PURE__ */ (0,
|
|
1461
|
-
/* @__PURE__ */ (0,
|
|
1462
|
-
/* @__PURE__ */ (0,
|
|
1463
|
-
/* @__PURE__ */ (0,
|
|
1464
|
-
/* @__PURE__ */ (0,
|
|
1465
|
-
/* @__PURE__ */ (0,
|
|
1563
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1564
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1566
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-header", children: [
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "Assistant" }),
|
|
1568
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-time", children: "2:31 PM" })
|
|
1466
1569
|
] }),
|
|
1467
|
-
/* @__PURE__ */ (0,
|
|
1468
|
-
/* @__PURE__ */ (0,
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1470
|
-
/* @__PURE__ */ (0,
|
|
1471
|
-
/* @__PURE__ */ (0,
|
|
1472
|
-
/* @__PURE__ */ (0,
|
|
1570
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-content", children: [
|
|
1571
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Here's some information you might find helpful:" }),
|
|
1572
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("ul", { style: { marginTop: "0.5rem", paddingLeft: "1.25rem" }, children: [
|
|
1573
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("li", { children: "First point of interest" }),
|
|
1574
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("li", { children: "Second important detail" }),
|
|
1575
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("li", { children: "Third relevant fact" })
|
|
1473
1576
|
] }),
|
|
1474
|
-
/* @__PURE__ */ (0,
|
|
1577
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { marginTop: "0.5rem" }, children: "Let me know if you'd like more details about any of these!" })
|
|
1475
1578
|
] }),
|
|
1476
|
-
/* @__PURE__ */ (0,
|
|
1477
|
-
/* @__PURE__ */ (0,
|
|
1478
|
-
/* @__PURE__ */ (0,
|
|
1579
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-actions", children: [
|
|
1580
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button-icon", title: "Edit", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) }) }),
|
|
1581
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button-icon", title: "Copy", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" }) }) })
|
|
1479
1582
|
] })
|
|
1480
1583
|
] })
|
|
1481
1584
|
] }),
|
|
1482
|
-
/* @__PURE__ */ (0,
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1484
|
-
/* @__PURE__ */ (0,
|
|
1485
|
-
/* @__PURE__ */ (0,
|
|
1585
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-system", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Alice has joined the conversation." }) }) }),
|
|
1586
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-user", children: [
|
|
1587
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "You" }) }),
|
|
1588
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "That's exactly what I needed, thanks!" }) })
|
|
1486
1589
|
] }) })
|
|
1487
1590
|
] })
|
|
1488
1591
|
] }),
|
|
1489
|
-
/* @__PURE__ */ (0,
|
|
1490
|
-
/* @__PURE__ */ (0,
|
|
1491
|
-
/* @__PURE__ */ (0,
|
|
1492
|
-
/* @__PURE__ */ (0,
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1494
|
-
/* @__PURE__ */ (0,
|
|
1495
|
-
/* @__PURE__ */ (0,
|
|
1496
|
-
/* @__PURE__ */ (0,
|
|
1497
|
-
/* @__PURE__ */ (0,
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1593
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Character Messages" }),
|
|
1594
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Messages from different characters with their avatars." }),
|
|
1595
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1597
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1598
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1599
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-author", style: { fontSize: "0.75rem", fontWeight: 600, marginBottom: "0.25rem" }, children: "Alice" }),
|
|
1600
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "*waves cheerfully* Hi there! I'm so glad to meet you!" }) })
|
|
1498
1601
|
] })
|
|
1499
1602
|
] }),
|
|
1500
|
-
/* @__PURE__ */ (0,
|
|
1501
|
-
/* @__PURE__ */ (0,
|
|
1502
|
-
/* @__PURE__ */ (0,
|
|
1503
|
-
/* @__PURE__ */ (0,
|
|
1504
|
-
/* @__PURE__ */ (0,
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1604
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "B" }) }),
|
|
1605
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1606
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-author", style: { fontSize: "0.75rem", fontWeight: 600, marginBottom: "0.25rem" }, children: "Bob" }),
|
|
1607
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "*nods thoughtfully* Interesting point. Let me think about that..." }) })
|
|
1505
1608
|
] })
|
|
1506
1609
|
] })
|
|
1507
1610
|
] })
|
|
1508
1611
|
] }),
|
|
1509
|
-
/* @__PURE__ */ (0,
|
|
1510
|
-
/* @__PURE__ */ (0,
|
|
1511
|
-
/* @__PURE__ */ (0,
|
|
1512
|
-
/* @__PURE__ */ (0,
|
|
1513
|
-
/* @__PURE__ */ (0,
|
|
1514
|
-
/* @__PURE__ */ (0,
|
|
1515
|
-
/* @__PURE__ */ (0,
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1612
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1613
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Roleplay Annotations" }),
|
|
1614
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Special text formatting for roleplay-style messages with narration, inner thoughts, and out-of-character text." }),
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1616
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1617
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1618
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1619
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1620
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("p", { children: [
|
|
1518
1621
|
'"Hello there!" ',
|
|
1519
|
-
/* @__PURE__ */ (0,
|
|
1622
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-narration", children: "she said with a warm smile, stepping forward to greet you." })
|
|
1520
1623
|
] }) })
|
|
1521
1624
|
] })
|
|
1522
1625
|
] }),
|
|
1523
|
-
/* @__PURE__ */ (0,
|
|
1524
|
-
/* @__PURE__ */ (0,
|
|
1525
|
-
/* @__PURE__ */ (0,
|
|
1526
|
-
/* @__PURE__ */ (0,
|
|
1527
|
-
/* @__PURE__ */ (0,
|
|
1528
|
-
/* @__PURE__ */ (0,
|
|
1626
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1627
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1628
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1630
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("p", { children: [
|
|
1631
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-narration", children: "She paused for a moment, considering her words carefully." }),
|
|
1529
1632
|
" ",
|
|
1530
|
-
/* @__PURE__ */ (0,
|
|
1633
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-inner-monologue", children: "I wonder if they noticed..." })
|
|
1531
1634
|
] }) })
|
|
1532
1635
|
] })
|
|
1533
1636
|
] }),
|
|
1534
|
-
/* @__PURE__ */ (0,
|
|
1535
|
-
/* @__PURE__ */ (0,
|
|
1536
|
-
/* @__PURE__ */ (0,
|
|
1537
|
-
/* @__PURE__ */ (0,
|
|
1538
|
-
/* @__PURE__ */ (0,
|
|
1637
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1638
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1639
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1641
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "qt-chat-ooc", children: "((OOC: Should we continue the scene or take a break?))" }) }) })
|
|
1539
1642
|
] })
|
|
1540
1643
|
] })
|
|
1541
1644
|
] })
|
|
1542
1645
|
] }),
|
|
1543
|
-
/* @__PURE__ */ (0,
|
|
1544
|
-
/* @__PURE__ */ (0,
|
|
1545
|
-
/* @__PURE__ */ (0,
|
|
1546
|
-
/* @__PURE__ */ (0,
|
|
1547
|
-
/* @__PURE__ */ (0,
|
|
1548
|
-
/* @__PURE__ */ (0,
|
|
1549
|
-
/* @__PURE__ */ (0,
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1647
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Whisper Messages" }),
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Private messages visible only to sender and recipient. Overheard whispers have a faded style." }),
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-whisper", children: [
|
|
1651
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-whisper-label", children: "whispered to Elena" }),
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "I don't trust the merchant. Meet me at the tavern tonight\u2014alone." })
|
|
1550
1653
|
] }) }),
|
|
1551
|
-
/* @__PURE__ */ (0,
|
|
1552
|
-
/* @__PURE__ */ (0,
|
|
1553
|
-
/* @__PURE__ */ (0,
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-whisper qt-chat-message-whisper-overheard", children: [
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-whisper-label", children: "whispered to Marcus" }),
|
|
1656
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Keep an eye on the door. We may need a quick exit." })
|
|
1554
1657
|
] }) })
|
|
1555
1658
|
] })
|
|
1556
1659
|
] }),
|
|
1557
|
-
/* @__PURE__ */ (0,
|
|
1558
|
-
/* @__PURE__ */ (0,
|
|
1559
|
-
/* @__PURE__ */ (0,
|
|
1560
|
-
/* @__PURE__ */ (0,
|
|
1561
|
-
/* @__PURE__ */ (0,
|
|
1562
|
-
/* @__PURE__ */ (0,
|
|
1563
|
-
/* @__PURE__ */ (0,
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1661
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Silent Messages" }),
|
|
1662
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Inner thoughts and actions from characters in silent mode. They can think and act physically, but cannot speak aloud. Distinguished from whispers by dotted borders and sage/teal tones." }),
|
|
1663
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1664
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-silent", children: [
|
|
1665
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-silent-label", children: "silent \u2014 inner thoughts and actions only" }),
|
|
1666
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "*glances at the door, weighing whether to follow or stay behind*" })
|
|
1564
1667
|
] }) }),
|
|
1565
|
-
/* @__PURE__ */ (0,
|
|
1566
|
-
/* @__PURE__ */ (0,
|
|
1567
|
-
/* @__PURE__ */ (0,
|
|
1668
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-silent", children: [
|
|
1669
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-silent-label", children: "silent \u2014 inner thoughts and actions only" }),
|
|
1670
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "*quietly pockets the letter before anyone notices, mind racing with questions about its contents*" })
|
|
1568
1671
|
] }) })
|
|
1569
1672
|
] })
|
|
1570
1673
|
] }),
|
|
1571
|
-
/* @__PURE__ */ (0,
|
|
1572
|
-
/* @__PURE__ */ (0,
|
|
1573
|
-
/* @__PURE__ */ (0,
|
|
1574
|
-
/* @__PURE__ */ (0,
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1577
|
-
/* @__PURE__ */ (0,
|
|
1578
|
-
/* @__PURE__ */ (0,
|
|
1579
|
-
/* @__PURE__ */ (0,
|
|
1674
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Wardrobe Action Notices" }),
|
|
1676
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Inline summaries of outfit changes (equip, unequip, gift). Distinguished from whispers (dashed purple) and silent messages (dotted teal) by a double border and warm amber/gold tones." }),
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1678
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1679
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1680
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1681
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Equipped \u201CCrimson Evening Gown\u201D in the top slot." }),
|
|
1682
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Wearing: Crimson Evening Gown (top, bottom), Glass Slippers (footwear)" })
|
|
1580
1683
|
] })
|
|
1581
1684
|
] }),
|
|
1582
|
-
/* @__PURE__ */ (0,
|
|
1583
|
-
/* @__PURE__ */ (0,
|
|
1584
|
-
/* @__PURE__ */ (0,
|
|
1585
|
-
/* @__PURE__ */ (0,
|
|
1586
|
-
/* @__PURE__ */ (0,
|
|
1685
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1686
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1688
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Removed item from the footwear slot." }),
|
|
1689
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Wearing: Crimson Evening Gown (top, bottom), barefoot" })
|
|
1587
1690
|
] })
|
|
1588
1691
|
] }),
|
|
1589
|
-
/* @__PURE__ */ (0,
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1591
|
-
/* @__PURE__ */ (0,
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1593
|
-
/* @__PURE__ */ (0,
|
|
1692
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1693
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1695
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Gifted \u201CSilver Pocket Watch\u201D to Marcus." }),
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: "Marcus put it on immediately." })
|
|
1594
1697
|
] })
|
|
1595
1698
|
] })
|
|
1596
1699
|
] })
|
|
1597
1700
|
] }),
|
|
1598
|
-
/* @__PURE__ */ (0,
|
|
1599
|
-
/* @__PURE__ */ (0,
|
|
1600
|
-
/* @__PURE__ */ (0,
|
|
1601
|
-
/* @__PURE__ */ (0,
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1603
|
-
/* @__PURE__ */ (0,
|
|
1604
|
-
/* @__PURE__ */ (0,
|
|
1605
|
-
/* @__PURE__ */ (0,
|
|
1606
|
-
/* @__PURE__ */ (0,
|
|
1607
|
-
/* @__PURE__ */ (0,
|
|
1608
|
-
/* @__PURE__ */ (0,
|
|
1701
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1702
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Toolbar" }),
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Formatting and action buttons for chat composition." }),
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-toolbar", style: { maxWidth: "32rem", display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
1705
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-chat-toolbar-button", title: "Bold", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 4h8a4 4 0 014 4v2M6 4v16M6 4h8a2 2 0 012 2v2M6 12h12" }) }) }),
|
|
1706
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-chat-toolbar-button", title: "Italic", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 5h4m-4 14h4M9 5h6M9 19H3" }) }) }),
|
|
1707
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-chat-toolbar-button", title: "Underline", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 5v10a4 4 0 008 0V5m0 14H7" }) }) }),
|
|
1708
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { flex: 1 } }),
|
|
1709
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-chat-toolbar-button", title: "Settings", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1710
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" }),
|
|
1711
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1609
1712
|
] }) })
|
|
1610
1713
|
] })
|
|
1611
1714
|
] }),
|
|
1612
|
-
/* @__PURE__ */ (0,
|
|
1613
|
-
/* @__PURE__ */ (0,
|
|
1614
|
-
/* @__PURE__ */ (0,
|
|
1615
|
-
/* @__PURE__ */ (0,
|
|
1616
|
-
/* @__PURE__ */ (0,
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1716
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "RP Annotation Buttons" }),
|
|
1717
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Quick-insert buttons for roleplay annotation types." }),
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-rp-annotation-toolbar", style: { maxWidth: "32rem", display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
1719
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { className: "qt-rp-annotation-button-narration", title: "Narration", children: [
|
|
1720
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h7" }) }),
|
|
1618
1721
|
"Narration"
|
|
1619
1722
|
] }),
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1621
|
-
/* @__PURE__ */ (0,
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { className: "qt-rp-annotation-button-internal", title: "Inner Monologue", children: [
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" }) }),
|
|
1622
1725
|
"Internal"
|
|
1623
1726
|
] }),
|
|
1624
|
-
/* @__PURE__ */ (0,
|
|
1625
|
-
/* @__PURE__ */ (0,
|
|
1727
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { className: "qt-rp-annotation-button-ooc", title: "Out of Character", children: [
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" }) }),
|
|
1626
1729
|
"OOC"
|
|
1627
1730
|
] })
|
|
1628
1731
|
] })
|
|
1629
1732
|
] }),
|
|
1630
|
-
/* @__PURE__ */ (0,
|
|
1631
|
-
/* @__PURE__ */ (0,
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1633
|
-
/* @__PURE__ */ (0,
|
|
1634
|
-
/* @__PURE__ */ (0,
|
|
1635
|
-
/* @__PURE__ */ (0,
|
|
1636
|
-
/* @__PURE__ */ (0,
|
|
1637
|
-
/* @__PURE__ */ (0,
|
|
1733
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1734
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Attachments" }),
|
|
1735
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "File attachment chips and attachment button." }),
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-composer", style: { maxWidth: "32rem" }, children: [
|
|
1737
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-attachment-list", style: { display: "flex", gap: "0.5rem", marginBottom: "0.75rem", flexWrap: "wrap" }, children: [
|
|
1738
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-attachment-chip", children: [
|
|
1739
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "document.pdf" }),
|
|
1740
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "ml-2 text-gray-400 hover:text-gray-600", style: { marginLeft: "0.5rem" }, children: "\xD7" })
|
|
1638
1741
|
] }),
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1640
|
-
/* @__PURE__ */ (0,
|
|
1641
|
-
/* @__PURE__ */ (0,
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-attachment-chip", children: [
|
|
1743
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "image.png" }),
|
|
1744
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "ml-2 text-gray-400 hover:text-gray-600", style: { marginLeft: "0.5rem" }, children: "\xD7" })
|
|
1642
1745
|
] })
|
|
1643
1746
|
] }),
|
|
1644
|
-
/* @__PURE__ */ (0,
|
|
1747
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1645
1748
|
"textarea",
|
|
1646
1749
|
{
|
|
1647
1750
|
className: "qt-chat-composer-input",
|
|
@@ -1650,17 +1753,17 @@ var Chat = () => {
|
|
|
1650
1753
|
style: { width: "100%", padding: "0.5rem", marginBottom: "0.5rem" }
|
|
1651
1754
|
}
|
|
1652
1755
|
),
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-composer-actions", style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1757
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-chat-attachment-button", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" }) }) }),
|
|
1758
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button qt-button-primary", children: "Send" })
|
|
1656
1759
|
] })
|
|
1657
1760
|
] })
|
|
1658
1761
|
] }),
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1660
|
-
/* @__PURE__ */ (0,
|
|
1661
|
-
/* @__PURE__ */ (0,
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1663
|
-
/* @__PURE__ */ (0,
|
|
1762
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1763
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Input" }),
|
|
1764
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-composer", style: { maxWidth: "32rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-composer-inner", style: { display: "flex", alignItems: "flex-end", gap: "0.5rem", flex: 1 }, children: [
|
|
1765
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button-icon", "aria-label": "Attach file", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" }) }) }),
|
|
1766
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1664
1767
|
"textarea",
|
|
1665
1768
|
{
|
|
1666
1769
|
className: "qt-chat-composer-input qt-input",
|
|
@@ -1668,65 +1771,65 @@ var Chat = () => {
|
|
|
1668
1771
|
rows: 1
|
|
1669
1772
|
}
|
|
1670
1773
|
),
|
|
1671
|
-
/* @__PURE__ */ (0,
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button qt-button-primary qt-chat-composer-send", style: { height: "auto", padding: "0.5rem 1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 19l9 2-9-18-9 18 9-2zm0 0v-8" }) }) })
|
|
1672
1775
|
] }) })
|
|
1673
1776
|
] }),
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1675
|
-
/* @__PURE__ */ (0,
|
|
1676
|
-
/* @__PURE__ */ (0,
|
|
1677
|
-
/* @__PURE__ */ (0,
|
|
1678
|
-
/* @__PURE__ */ (0,
|
|
1679
|
-
/* @__PURE__ */ (0,
|
|
1680
|
-
/* @__PURE__ */ (0,
|
|
1681
|
-
/* @__PURE__ */ (0,
|
|
1777
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1778
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Typing Indicator" }),
|
|
1779
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem", maxWidth: "32rem" }, children: [
|
|
1780
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1781
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-typing-indicator", children: [
|
|
1782
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", {}),
|
|
1783
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", {}),
|
|
1784
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", {})
|
|
1682
1785
|
] }) })
|
|
1683
1786
|
] })
|
|
1684
1787
|
] }),
|
|
1685
|
-
/* @__PURE__ */ (0,
|
|
1686
|
-
/* @__PURE__ */ (0,
|
|
1687
|
-
/* @__PURE__ */ (0,
|
|
1688
|
-
/* @__PURE__ */ (0,
|
|
1689
|
-
/* @__PURE__ */ (0,
|
|
1690
|
-
/* @__PURE__ */ (0,
|
|
1691
|
-
/* @__PURE__ */ (0,
|
|
1692
|
-
/* @__PURE__ */ (0,
|
|
1788
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1789
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Control Buttons" }),
|
|
1790
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Continue and stop buttons for controlling AI response generation." }),
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1792
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { className: "qt-chat-continue-button", children: [
|
|
1793
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" }),
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })
|
|
1693
1796
|
] }),
|
|
1694
1797
|
"Continue"
|
|
1695
1798
|
] }),
|
|
1696
|
-
/* @__PURE__ */ (0,
|
|
1697
|
-
/* @__PURE__ */ (0,
|
|
1698
|
-
/* @__PURE__ */ (0,
|
|
1699
|
-
/* @__PURE__ */ (0,
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", { className: "qt-chat-stop-button", children: [
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }),
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z" })
|
|
1700
1803
|
] }),
|
|
1701
1804
|
"Stop"
|
|
1702
1805
|
] })
|
|
1703
1806
|
] })
|
|
1704
1807
|
] }),
|
|
1705
|
-
/* @__PURE__ */ (0,
|
|
1706
|
-
/* @__PURE__ */ (0,
|
|
1707
|
-
/* @__PURE__ */ (0,
|
|
1708
|
-
/* @__PURE__ */ (0,
|
|
1709
|
-
/* @__PURE__ */ (0,
|
|
1710
|
-
/* @__PURE__ */ (0,
|
|
1711
|
-
/* @__PURE__ */ (0,
|
|
1712
|
-
/* @__PURE__ */ (0,
|
|
1713
|
-
/* @__PURE__ */ (0,
|
|
1808
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { children: [
|
|
1809
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Full Chat Layout" }),
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-layout", style: { height: "24rem", border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)", display: "flex", flexDirection: "column" }, children: [
|
|
1811
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", padding: "0.75rem 1rem", borderBottom: "1px solid var(--color-border)" }, children: [
|
|
1812
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1813
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1814
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
|
|
1815
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontWeight: 600 }, children: "Assistant" }),
|
|
1816
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Online" })
|
|
1714
1817
|
] })
|
|
1715
1818
|
] }),
|
|
1716
|
-
/* @__PURE__ */ (0,
|
|
1717
|
-
/* @__PURE__ */ (0,
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "flex", gap: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button-icon", "aria-label": "Settings", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1820
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" }),
|
|
1821
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1719
1822
|
] }) }) })
|
|
1720
1823
|
] }),
|
|
1721
|
-
/* @__PURE__ */ (0,
|
|
1722
|
-
/* @__PURE__ */ (0,
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1824
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { flex: 1, overflow: "auto", padding: "1rem", display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
1825
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1826
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1827
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "Hello! How can I help you today?" }) })
|
|
1725
1828
|
] }),
|
|
1726
|
-
/* @__PURE__ */ (0,
|
|
1829
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "qt-chat-message qt-chat-message-user", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: "I'd like to know more about theming." }) }) })
|
|
1727
1830
|
] }),
|
|
1728
|
-
/* @__PURE__ */ (0,
|
|
1729
|
-
/* @__PURE__ */ (0,
|
|
1831
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "qt-chat-composer", style: { margin: "0.5rem", borderRadius: "var(--radius-lg)" }, children: [
|
|
1832
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1730
1833
|
"textarea",
|
|
1731
1834
|
{
|
|
1732
1835
|
className: "qt-chat-composer-input qt-input",
|
|
@@ -1734,7 +1837,7 @@ var Chat = () => {
|
|
|
1734
1837
|
rows: 1
|
|
1735
1838
|
}
|
|
1736
1839
|
),
|
|
1737
|
-
/* @__PURE__ */ (0,
|
|
1840
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "qt-button qt-button-primary qt-button-sm", children: "Send" })
|
|
1738
1841
|
] })
|
|
1739
1842
|
] })
|
|
1740
1843
|
] })
|
|
@@ -1742,7 +1845,7 @@ var Chat = () => {
|
|
|
1742
1845
|
};
|
|
1743
1846
|
|
|
1744
1847
|
// src/stories/components/Terminal.tsx
|
|
1745
|
-
var
|
|
1848
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1746
1849
|
var sampleOutput = `$ git status
|
|
1747
1850
|
On branch main
|
|
1748
1851
|
Your branch is up to date with 'origin/main'.
|
|
@@ -1754,117 +1857,117 @@ $ npm run dev
|
|
|
1754
1857
|
- Local: http://localhost:3000
|
|
1755
1858
|
- ready started server on 0.0.0.0:3000`;
|
|
1756
1859
|
var Terminal = () => {
|
|
1757
|
-
return /* @__PURE__ */ (0,
|
|
1758
|
-
/* @__PURE__ */ (0,
|
|
1759
|
-
/* @__PURE__ */ (0,
|
|
1860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1861
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Terminal Components" }),
|
|
1862
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("p", { style: { marginBottom: "1.5rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1760
1863
|
"The terminal carries its own identity. By default it stays dark in both light and dark themes \u2014 but a theme can override",
|
|
1761
1864
|
" ",
|
|
1762
|
-
/* @__PURE__ */ (0,
|
|
1865
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: "--qt-terminal-bg" }),
|
|
1763
1866
|
", ",
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: "--qt-terminal-fg" }),
|
|
1765
1868
|
", and the",
|
|
1766
|
-
/* @__PURE__ */ (0,
|
|
1869
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: "--qt-terminal-chrome-*" }),
|
|
1767
1870
|
" tokens to reskin every surface below."
|
|
1768
1871
|
] }),
|
|
1769
|
-
/* @__PURE__ */ (0,
|
|
1770
|
-
/* @__PURE__ */ (0,
|
|
1771
|
-
/* @__PURE__ */ (0,
|
|
1772
|
-
/* @__PURE__ */ (0,
|
|
1872
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1873
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "In-chat embed" }),
|
|
1874
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1875
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: ".qt-terminal-embed" }),
|
|
1773
1876
|
" wraps the embed card; the header and footer strips inherit the surrounding theme so they nest cleanly with chat bubbles."
|
|
1774
1877
|
] }),
|
|
1775
|
-
/* @__PURE__ */ (0,
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1777
|
-
/* @__PURE__ */ (0,
|
|
1778
|
-
/* @__PURE__ */ (0,
|
|
1779
|
-
/* @__PURE__ */ (0,
|
|
1780
|
-
/* @__PURE__ */ (0,
|
|
1878
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-embed", style: { maxWidth: "36rem" }, children: [
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-embed-header", children: [
|
|
1880
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 500, margin: 0 }, children: "Terminal \u2014 zsh" }) }),
|
|
1881
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1882
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "qt-button-icon", type: "button", children: "Pop out" }),
|
|
1883
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "qt-button-icon qt-text-destructive", type: "button", children: "Kill" })
|
|
1781
1884
|
] })
|
|
1782
1885
|
] }),
|
|
1783
|
-
/* @__PURE__ */ (0,
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "qt-terminal-surface", style: { padding: "0.75rem", fontFamily: "var(--qt-font-mono, monospace)", color: "var(--qt-terminal-fg)", fontSize: "0.8125rem", whiteSpace: "pre-wrap" }, children: sampleOutput })
|
|
1784
1887
|
] })
|
|
1785
1888
|
] }),
|
|
1786
|
-
/* @__PURE__ */ (0,
|
|
1787
|
-
/* @__PURE__ */ (0,
|
|
1788
|
-
/* @__PURE__ */ (0,
|
|
1789
|
-
/* @__PURE__ */ (0,
|
|
1790
|
-
/* @__PURE__ */ (0,
|
|
1791
|
-
/* @__PURE__ */ (0,
|
|
1792
|
-
/* @__PURE__ */ (0,
|
|
1889
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1890
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Embed footer (handed off to Terminal Mode pane)" }),
|
|
1891
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-embed", style: { maxWidth: "36rem" }, children: [
|
|
1892
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "qt-terminal-embed-header", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 500, margin: 0 }, children: "Terminal \u2014 zsh" }) }),
|
|
1893
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-embed-footer", children: [
|
|
1894
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "qt-text-secondary", children: "Showing in Terminal Mode pane." }),
|
|
1895
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "qt-button-secondary", type: "button", style: { fontSize: "0.75rem", padding: "0.25rem 0.5rem" }, children: "Go to pane \u2192" })
|
|
1793
1896
|
] })
|
|
1794
1897
|
] })
|
|
1795
1898
|
] }),
|
|
1796
|
-
/* @__PURE__ */ (0,
|
|
1797
|
-
/* @__PURE__ */ (0,
|
|
1798
|
-
/* @__PURE__ */ (0,
|
|
1899
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1900
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Pop-out page chrome" }),
|
|
1901
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1799
1902
|
"The full-screen pop-out page uses",
|
|
1800
1903
|
" ",
|
|
1801
|
-
/* @__PURE__ */ (0,
|
|
1904
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: ".qt-terminal-popout-page" }),
|
|
1802
1905
|
" as the outer canvas and",
|
|
1803
1906
|
" ",
|
|
1804
|
-
/* @__PURE__ */ (0,
|
|
1907
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: ".qt-terminal-popout-header" }),
|
|
1805
1908
|
" for the breadcrumb bar."
|
|
1806
1909
|
] }),
|
|
1807
|
-
/* @__PURE__ */ (0,
|
|
1808
|
-
/* @__PURE__ */ (0,
|
|
1809
|
-
/* @__PURE__ */ (0,
|
|
1810
|
-
/* @__PURE__ */ (0,
|
|
1811
|
-
/* @__PURE__ */ (0,
|
|
1812
|
-
/* @__PURE__ */ (0,
|
|
1813
|
-
/* @__PURE__ */ (0,
|
|
1910
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-popout-page", style: { borderRadius: "0.5rem", overflow: "hidden", border: "1px solid var(--color-border)", height: "240px", display: "flex", flexDirection: "column" }, children: [
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "qt-terminal-popout-header", children: [
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "qt-button-icon", type: "button", style: { color: "inherit" }, children: "\u2190" }),
|
|
1914
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("a", { href: "#", className: "qt-terminal-popout-link", style: { fontSize: "0.875rem" }, children: "Chat" }),
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "qt-terminal-popout-separator", children: "/" }),
|
|
1916
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h1", { className: "qt-terminal-popout-title", style: { fontSize: "1rem", margin: 0 }, children: "Terminal \u2014 zsh" })
|
|
1814
1917
|
] }),
|
|
1815
|
-
/* @__PURE__ */ (0,
|
|
1918
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "qt-button-destructive", type: "button", style: { fontSize: "0.875rem" }, children: "Kill Session" })
|
|
1816
1919
|
] }),
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1920
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { flex: 1, padding: "0.75rem", fontFamily: "var(--qt-font-mono, monospace)", color: "var(--qt-terminal-fg)", fontSize: "0.8125rem", whiteSpace: "pre-wrap" }, children: sampleOutput })
|
|
1818
1921
|
] })
|
|
1819
1922
|
] }),
|
|
1820
|
-
/* @__PURE__ */ (0,
|
|
1821
|
-
/* @__PURE__ */ (0,
|
|
1822
|
-
/* @__PURE__ */ (0,
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("section", { children: [
|
|
1924
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Session-exited overlay" }),
|
|
1925
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1823
1926
|
"When the PTY exits but the terminal stays mounted, the",
|
|
1824
1927
|
" ",
|
|
1825
|
-
/* @__PURE__ */ (0,
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("code", { children: ".qt-terminal-closed-badge" }),
|
|
1826
1929
|
" overlay marks it."
|
|
1827
1930
|
] }),
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "qt-terminal-surface", style: { position: "relative", height: "120px", borderRadius: "0.5rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "qt-terminal-closed-badge", children: "Closed" }) })
|
|
1829
1932
|
] })
|
|
1830
1933
|
] });
|
|
1831
1934
|
};
|
|
1832
1935
|
|
|
1833
1936
|
// src/stories/components/FilePreview.tsx
|
|
1834
|
-
var
|
|
1937
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1835
1938
|
var FilePreview = () => {
|
|
1836
|
-
return /* @__PURE__ */ (0,
|
|
1837
|
-
/* @__PURE__ */ (0,
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
1839
|
-
/* @__PURE__ */ (0,
|
|
1840
|
-
/* @__PURE__ */ (0,
|
|
1841
|
-
/* @__PURE__ */ (0,
|
|
1939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
1940
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "File Preview Components" }),
|
|
1941
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1942
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Scroll Container" }),
|
|
1943
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-scroll" }),
|
|
1842
1945
|
" - Scrollable container for file content with configurable max height."
|
|
1843
1946
|
] }),
|
|
1844
|
-
/* @__PURE__ */ (0,
|
|
1947
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-scroll", style: { height: "150px", border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { padding: "1rem" }, children: Array.from({ length: 20 }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { margin: "0.5rem 0" }, children: [
|
|
1845
1948
|
"Line ",
|
|
1846
1949
|
i + 1,
|
|
1847
1950
|
": Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
1848
1951
|
] }, i)) }) })
|
|
1849
1952
|
] }),
|
|
1850
|
-
/* @__PURE__ */ (0,
|
|
1851
|
-
/* @__PURE__ */ (0,
|
|
1852
|
-
/* @__PURE__ */ (0,
|
|
1853
|
-
/* @__PURE__ */ (0,
|
|
1953
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1954
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Content Panel" }),
|
|
1955
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1956
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-panel" }),
|
|
1854
1957
|
" - Background panel for rendered markdown content."
|
|
1855
1958
|
] }),
|
|
1856
|
-
/* @__PURE__ */ (0,
|
|
1857
|
-
/* @__PURE__ */ (0,
|
|
1858
|
-
/* @__PURE__ */ (0,
|
|
1959
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "qt-file-preview-panel", children: [
|
|
1960
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h4", { style: { margin: "0 0 0.5rem 0" }, children: "Document Title" }),
|
|
1961
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { style: { margin: 0 }, children: "This is a content panel used for displaying rendered markdown files with a subtle background." })
|
|
1859
1962
|
] })
|
|
1860
1963
|
] }),
|
|
1861
|
-
/* @__PURE__ */ (0,
|
|
1862
|
-
/* @__PURE__ */ (0,
|
|
1863
|
-
/* @__PURE__ */ (0,
|
|
1864
|
-
/* @__PURE__ */ (0,
|
|
1964
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1965
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Code Block" }),
|
|
1966
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-code" }),
|
|
1865
1968
|
" - Styled code block for plain text and source files with word wrap."
|
|
1866
1969
|
] }),
|
|
1867
|
-
/* @__PURE__ */ (0,
|
|
1970
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("pre", { className: "qt-file-preview-code", children: `function greet(name: string): string {
|
|
1868
1971
|
return \`Hello, \${name}!\`;
|
|
1869
1972
|
}
|
|
1870
1973
|
|
|
@@ -1872,133 +1975,133 @@ var FilePreview = () => {
|
|
|
1872
1975
|
const message = greet("World");
|
|
1873
1976
|
console.log(message);` })
|
|
1874
1977
|
] }),
|
|
1875
|
-
/* @__PURE__ */ (0,
|
|
1876
|
-
/* @__PURE__ */ (0,
|
|
1877
|
-
/* @__PURE__ */ (0,
|
|
1878
|
-
/* @__PURE__ */ (0,
|
|
1978
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1979
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Loading State" }),
|
|
1980
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1981
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-loading" }),
|
|
1879
1982
|
" + ",
|
|
1880
|
-
/* @__PURE__ */ (0,
|
|
1983
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-loading-text" }),
|
|
1881
1984
|
" - Loading indicator."
|
|
1882
1985
|
] }),
|
|
1883
|
-
/* @__PURE__ */ (0,
|
|
1986
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-loading", style: { minHeight: "150px" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-loading-text", children: "Loading file..." }) }) })
|
|
1884
1987
|
] }),
|
|
1885
|
-
/* @__PURE__ */ (0,
|
|
1886
|
-
/* @__PURE__ */ (0,
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
1888
|
-
/* @__PURE__ */ (0,
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
1989
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Empty / Error State" }),
|
|
1990
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1991
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-empty" }),
|
|
1889
1992
|
" + ",
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
1993
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-file-preview-empty-icon" }),
|
|
1891
1994
|
" - Empty or error state display."
|
|
1892
1995
|
] }),
|
|
1893
|
-
/* @__PURE__ */ (0,
|
|
1894
|
-
/* @__PURE__ */ (0,
|
|
1895
|
-
/* @__PURE__ */ (0,
|
|
1896
|
-
/* @__PURE__ */ (0,
|
|
1996
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: "1rem" }, children: [
|
|
1997
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "qt-file-preview-empty", style: { minHeight: "150px" }, children: [
|
|
1998
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-empty-icon", children: "\u{1F4C4}" }),
|
|
1999
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { children: "No content available" })
|
|
1897
2000
|
] }) }),
|
|
1898
|
-
/* @__PURE__ */ (0,
|
|
1899
|
-
/* @__PURE__ */ (0,
|
|
1900
|
-
/* @__PURE__ */ (0,
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "qt-file-preview-empty", style: { minHeight: "150px" }, children: [
|
|
2002
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-empty-icon", children: "\u26A0\uFE0F" }),
|
|
2003
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { children: "Failed to load file" })
|
|
1901
2004
|
] }) })
|
|
1902
2005
|
] })
|
|
1903
2006
|
] }),
|
|
1904
|
-
/* @__PURE__ */ (0,
|
|
1905
|
-
/* @__PURE__ */ (0,
|
|
1906
|
-
/* @__PURE__ */ (0,
|
|
1907
|
-
/* @__PURE__ */ (0,
|
|
2007
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2008
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Wikilinks" }),
|
|
2009
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
2010
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-wikilink" }),
|
|
1908
2011
|
" + ",
|
|
1909
|
-
/* @__PURE__ */ (0,
|
|
2012
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { children: ".qt-wikilink-broken" }),
|
|
1910
2013
|
" - Internal document links in markdown."
|
|
1911
2014
|
] }),
|
|
1912
|
-
/* @__PURE__ */ (0,
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "qt-file-preview-panel", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { style: { margin: 0, lineHeight: 2 }, children: [
|
|
1913
2016
|
"This document references ",
|
|
1914
|
-
/* @__PURE__ */ (0,
|
|
2017
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", className: "qt-wikilink", children: "Character Profile" }),
|
|
1915
2018
|
" and links to ",
|
|
1916
|
-
/* @__PURE__ */ (0,
|
|
2019
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", className: "qt-wikilink", children: "World Building \u2192 Geography" }),
|
|
1917
2020
|
". There's also a ",
|
|
1918
|
-
/* @__PURE__ */ (0,
|
|
2021
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", className: "qt-wikilink-broken", children: "Missing Document" }),
|
|
1919
2022
|
" that doesn't exist yet."
|
|
1920
2023
|
] }) })
|
|
1921
2024
|
] }),
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
1923
|
-
/* @__PURE__ */ (0,
|
|
1924
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2026
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "CSS Variables" }),
|
|
2027
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))", gap: "0.5rem" }, children: [
|
|
1925
2028
|
{ name: "--qt-file-preview-max-height", value: "70vh", desc: "Max height of scroll container" },
|
|
1926
2029
|
{ name: "--qt-file-preview-min-height", value: "300px", desc: "Min height of loading/empty states" },
|
|
1927
2030
|
{ name: "--qt-file-preview-panel-bg", value: "muted/30%", desc: "Content panel background" },
|
|
1928
2031
|
{ name: "--qt-code-bg", value: "muted", desc: "Code block background" },
|
|
1929
2032
|
{ name: "--qt-code-fg", value: "foreground", desc: "Code block text color" },
|
|
1930
2033
|
{ name: "--qt-code-font", value: "monospace", desc: "Code block font family" }
|
|
1931
|
-
].map(({ name, value, desc }) => /* @__PURE__ */ (0,
|
|
1932
|
-
/* @__PURE__ */ (0,
|
|
1933
|
-
/* @__PURE__ */ (0,
|
|
2034
|
+
].map(({ name, value, desc }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { padding: "0.75rem", background: "var(--color-muted)", borderRadius: "var(--radius-md)" }, children: [
|
|
2035
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("code", { style: { fontSize: "0.75rem", fontWeight: 600 }, children: name }),
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginTop: "0.25rem" }, children: [
|
|
1934
2037
|
"Default: ",
|
|
1935
2038
|
value
|
|
1936
2039
|
] }),
|
|
1937
|
-
/* @__PURE__ */ (0,
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: desc })
|
|
1938
2041
|
] }, name)) })
|
|
1939
2042
|
] })
|
|
1940
2043
|
] });
|
|
1941
2044
|
};
|
|
1942
2045
|
|
|
1943
2046
|
// src/stories/components/ThemeComparison.tsx
|
|
1944
|
-
var
|
|
2047
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1945
2048
|
var ThemePanel = ({ title, description }) => {
|
|
1946
|
-
return /* @__PURE__ */ (0,
|
|
1947
|
-
/* @__PURE__ */ (0,
|
|
1948
|
-
/* @__PURE__ */ (0,
|
|
1949
|
-
/* @__PURE__ */ (0,
|
|
1950
|
-
] }),
|
|
1951
|
-
/* @__PURE__ */ (0,
|
|
1952
|
-
/* @__PURE__ */ (0,
|
|
1953
|
-
/* @__PURE__ */ (0,
|
|
1954
|
-
/* @__PURE__ */ (0,
|
|
2049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { flex: 1, minWidth: "20rem" }, children: [
|
|
2050
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "1rem" }, children: [
|
|
2051
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h4", { style: { fontWeight: 600 }, children: title }),
|
|
2052
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: description })
|
|
2053
|
+
] }),
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "qt-card", style: { marginBottom: "1rem" }, children: [
|
|
2055
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "qt-card-header", children: [
|
|
2056
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h5", { className: "qt-card-title", children: "Sample Card" }),
|
|
2057
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "qt-card-description", children: "This is how cards look in this theme." })
|
|
1955
2058
|
] }),
|
|
1956
|
-
/* @__PURE__ */ (0,
|
|
1957
|
-
/* @__PURE__ */ (0,
|
|
1958
|
-
/* @__PURE__ */ (0,
|
|
1959
|
-
/* @__PURE__ */ (0,
|
|
1960
|
-
/* @__PURE__ */ (0,
|
|
1961
|
-
/* @__PURE__ */ (0,
|
|
2059
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "qt-card-body", children: [
|
|
2060
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { marginBottom: "1rem" }, children: "Cards are used throughout the application for grouping content." }),
|
|
2061
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
2062
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-primary", children: "Primary" }),
|
|
2063
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-secondary", children: "Secondary" }),
|
|
2064
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-success", children: "Success" })
|
|
1962
2065
|
] })
|
|
1963
2066
|
] }),
|
|
1964
|
-
/* @__PURE__ */ (0,
|
|
1965
|
-
/* @__PURE__ */ (0,
|
|
1966
|
-
/* @__PURE__ */ (0,
|
|
2067
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "qt-card-footer", children: [
|
|
2068
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-ghost", children: "Cancel" }),
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-primary", children: "Save" })
|
|
1967
2070
|
] })
|
|
1968
2071
|
] }),
|
|
1969
|
-
/* @__PURE__ */ (0,
|
|
1970
|
-
/* @__PURE__ */ (0,
|
|
1971
|
-
/* @__PURE__ */ (0,
|
|
1972
|
-
/* @__PURE__ */ (0,
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "qt-panel", style: { padding: "1rem", marginBottom: "1rem" }, children: [
|
|
2073
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "0.75rem" }, children: [
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Text Input" }),
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { className: "qt-input", type: "text", placeholder: "Enter text..." })
|
|
1973
2076
|
] }),
|
|
1974
|
-
/* @__PURE__ */ (0,
|
|
1975
|
-
/* @__PURE__ */ (0,
|
|
1976
|
-
/* @__PURE__ */ (0,
|
|
1977
|
-
/* @__PURE__ */ (0,
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
2077
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "0.75rem" }, children: [
|
|
2078
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Select" }),
|
|
2079
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("select", { className: "qt-input qt-select", children: [
|
|
2080
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { children: "Option 1" }),
|
|
2081
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { children: "Option 2" })
|
|
1979
2082
|
] })
|
|
1980
2083
|
] }),
|
|
1981
|
-
/* @__PURE__ */ (0,
|
|
1982
|
-
/* @__PURE__ */ (0,
|
|
1983
|
-
/* @__PURE__ */ (0,
|
|
2084
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
2085
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-secondary qt-button-sm", children: "Secondary" }),
|
|
2086
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-primary qt-button-sm", children: "Primary" })
|
|
1984
2087
|
] })
|
|
1985
2088
|
] }),
|
|
1986
|
-
/* @__PURE__ */ (0,
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
1988
|
-
/* @__PURE__ */ (0,
|
|
1989
|
-
/* @__PURE__ */ (0,
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
2091
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-chat-message qt-chat-message-assistant", style: { maxWidth: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { fontSize: "0.875rem" }, children: "Hello! This is a chat message." }) })
|
|
1990
2093
|
] }),
|
|
1991
|
-
/* @__PURE__ */ (0,
|
|
2094
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-chat-message qt-chat-message-user", style: { maxWidth: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { fontSize: "0.875rem" }, children: "Great, thanks!" }) }) })
|
|
1992
2095
|
] })
|
|
1993
2096
|
] });
|
|
1994
2097
|
};
|
|
1995
2098
|
var ThemeComparison = () => {
|
|
1996
|
-
return /* @__PURE__ */ (0,
|
|
1997
|
-
/* @__PURE__ */ (0,
|
|
1998
|
-
/* @__PURE__ */ (0,
|
|
1999
|
-
/* @__PURE__ */ (0,
|
|
2000
|
-
/* @__PURE__ */ (0,
|
|
2001
|
-
/* @__PURE__ */ (0,
|
|
2099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
2100
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "0.5rem" }, children: "Theme Comparison" }),
|
|
2101
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1.5rem" }, children: "Compare your custom theme against the default Quilltap theme. Use the theme toggle above to switch between themes." }),
|
|
2102
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2103
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Current Theme Preview" }),
|
|
2104
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2002
2105
|
ThemePanel,
|
|
2003
2106
|
{
|
|
2004
2107
|
title: "Active Theme",
|
|
@@ -2006,9 +2109,9 @@ var ThemeComparison = () => {
|
|
|
2006
2109
|
}
|
|
2007
2110
|
)
|
|
2008
2111
|
] }),
|
|
2009
|
-
/* @__PURE__ */ (0,
|
|
2010
|
-
/* @__PURE__ */ (0,
|
|
2011
|
-
/* @__PURE__ */ (0,
|
|
2112
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2113
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Key Theme Colors" }),
|
|
2114
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(8rem, 1fr))", gap: "0.75rem" }, children: [
|
|
2012
2115
|
{ name: "Background", var: "--color-background" },
|
|
2013
2116
|
{ name: "Foreground", var: "--color-foreground" },
|
|
2014
2117
|
{ name: "Card", var: "--color-card" },
|
|
@@ -2017,8 +2120,8 @@ var ThemeComparison = () => {
|
|
|
2017
2120
|
{ name: "Muted", var: "--color-muted" },
|
|
2018
2121
|
{ name: "Accent", var: "--color-accent" },
|
|
2019
2122
|
{ name: "Border", var: "--color-border" }
|
|
2020
|
-
].map(({ name, var: cssVar }) => /* @__PURE__ */ (0,
|
|
2021
|
-
/* @__PURE__ */ (0,
|
|
2123
|
+
].map(({ name, var: cssVar }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { textAlign: "center" }, children: [
|
|
2124
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2022
2125
|
"div",
|
|
2023
2126
|
{
|
|
2024
2127
|
style: {
|
|
@@ -2030,17 +2133,17 @@ var ThemeComparison = () => {
|
|
|
2030
2133
|
}
|
|
2031
2134
|
}
|
|
2032
2135
|
),
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2136
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { marginTop: "0.25rem", fontSize: "0.75rem", fontWeight: 500 }, children: name })
|
|
2034
2137
|
] }, cssVar)) })
|
|
2035
2138
|
] }),
|
|
2036
|
-
/* @__PURE__ */ (0,
|
|
2037
|
-
/* @__PURE__ */ (0,
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Semantic Colors" }),
|
|
2141
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(8rem, 1fr))", gap: "0.75rem" }, children: [
|
|
2039
2142
|
{ name: "Destructive", var: "--color-destructive" },
|
|
2040
2143
|
{ name: "Success", var: "--color-success" },
|
|
2041
2144
|
{ name: "Warning", var: "--color-warning" }
|
|
2042
|
-
].map(({ name, var: cssVar }) => /* @__PURE__ */ (0,
|
|
2043
|
-
/* @__PURE__ */ (0,
|
|
2145
|
+
].map(({ name, var: cssVar }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { textAlign: "center" }, children: [
|
|
2146
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2044
2147
|
"div",
|
|
2045
2148
|
{
|
|
2046
2149
|
style: {
|
|
@@ -2052,50 +2155,50 @@ var ThemeComparison = () => {
|
|
|
2052
2155
|
}
|
|
2053
2156
|
}
|
|
2054
2157
|
),
|
|
2055
|
-
/* @__PURE__ */ (0,
|
|
2158
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { marginTop: "0.25rem", fontSize: "0.75rem", fontWeight: 500 }, children: name })
|
|
2056
2159
|
] }, cssVar)) })
|
|
2057
2160
|
] }),
|
|
2058
|
-
/* @__PURE__ */ (0,
|
|
2059
|
-
/* @__PURE__ */ (0,
|
|
2060
|
-
/* @__PURE__ */ (0,
|
|
2061
|
-
/* @__PURE__ */ (0,
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2063
|
-
/* @__PURE__ */ (0,
|
|
2064
|
-
/* @__PURE__ */ (0,
|
|
2065
|
-
/* @__PURE__ */ (0,
|
|
2066
|
-
/* @__PURE__ */ (0,
|
|
2067
|
-
/* @__PURE__ */ (0,
|
|
2161
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("section", { children: [
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Component Showcase" }),
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
2164
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Buttons" }),
|
|
2165
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
|
|
2166
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-primary", children: "Primary" }),
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-secondary", children: "Secondary" }),
|
|
2168
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-ghost", children: "Ghost" }),
|
|
2169
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-destructive", children: "Destructive" }),
|
|
2170
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", { className: "qt-button qt-button-primary", disabled: true, children: "Disabled" })
|
|
2068
2171
|
] })
|
|
2069
2172
|
] }),
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2071
|
-
/* @__PURE__ */ (0,
|
|
2072
|
-
/* @__PURE__ */ (0,
|
|
2073
|
-
/* @__PURE__ */ (0,
|
|
2074
|
-
/* @__PURE__ */ (0,
|
|
2075
|
-
/* @__PURE__ */ (0,
|
|
2076
|
-
/* @__PURE__ */ (0,
|
|
2077
|
-
/* @__PURE__ */ (0,
|
|
2078
|
-
/* @__PURE__ */ (0,
|
|
2173
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Badges" }),
|
|
2175
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
|
|
2176
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-default", children: "Default" }),
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-primary", children: "Primary" }),
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-secondary", children: "Secondary" }),
|
|
2179
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-success", children: "Success" }),
|
|
2180
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-warning", children: "Warning" }),
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "qt-badge qt-badge-destructive", children: "Destructive" })
|
|
2079
2182
|
] })
|
|
2080
2183
|
] }),
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2082
|
-
/* @__PURE__ */ (0,
|
|
2083
|
-
/* @__PURE__ */ (0,
|
|
2084
|
-
/* @__PURE__ */ (0,
|
|
2085
|
-
/* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
2185
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Interactive Card" }),
|
|
2186
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-card qt-card-interactive", style: { maxWidth: "20rem", cursor: "pointer" }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-card-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
2187
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
2188
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
|
|
2189
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h5", { className: "qt-card-title", children: "Character Name" }),
|
|
2190
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "qt-card-description", children: "Click to interact" })
|
|
2088
2191
|
] })
|
|
2089
2192
|
] }) }) })
|
|
2090
2193
|
] }),
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2092
|
-
/* @__PURE__ */ (0,
|
|
2093
|
-
/* @__PURE__ */ (0,
|
|
2094
|
-
/* @__PURE__ */ (0,
|
|
2095
|
-
/* @__PURE__ */ (0,
|
|
2096
|
-
/* @__PURE__ */ (0,
|
|
2097
|
-
/* @__PURE__ */ (0,
|
|
2098
|
-
/* @__PURE__ */ (0,
|
|
2194
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
|
|
2195
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Form Elements" }),
|
|
2196
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", gap: "1rem", flexWrap: "wrap", maxWidth: "32rem" }, children: [
|
|
2197
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { className: "qt-input", type: "text", placeholder: "Text input", style: { flex: "1 1 10rem" } }),
|
|
2198
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("select", { className: "qt-input qt-select", style: { flex: "1 1 10rem" }, children: [
|
|
2199
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { children: "Select option" }),
|
|
2200
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { children: "Option 1" }),
|
|
2201
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("option", { children: "Option 2" })
|
|
2099
2202
|
] })
|
|
2100
2203
|
] })
|
|
2101
2204
|
] })
|
|
@@ -2104,125 +2207,125 @@ var ThemeComparison = () => {
|
|
|
2104
2207
|
};
|
|
2105
2208
|
|
|
2106
2209
|
// src/stories/components/EmptyState.tsx
|
|
2107
|
-
var
|
|
2210
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2108
2211
|
var EmptyState = () => {
|
|
2109
|
-
return /* @__PURE__ */ (0,
|
|
2110
|
-
/* @__PURE__ */ (0,
|
|
2111
|
-
/* @__PURE__ */ (0,
|
|
2112
|
-
/* @__PURE__ */ (0,
|
|
2113
|
-
/* @__PURE__ */ (0,
|
|
2114
|
-
/* @__PURE__ */ (0,
|
|
2115
|
-
/* @__PURE__ */ (0,
|
|
2116
|
-
/* @__PURE__ */ (0,
|
|
2212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
2213
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Empty States" }),
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2215
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Basic Empty State" }),
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "qt-empty-state", children: [
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4" }) }) }),
|
|
2218
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h4", { className: "qt-empty-state-title", children: "No messages yet" }),
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "qt-empty-state-description", children: "Start a conversation to see messages appear here." })
|
|
2117
2220
|
] })
|
|
2118
2221
|
] }),
|
|
2119
|
-
/* @__PURE__ */ (0,
|
|
2120
|
-
/* @__PURE__ */ (0,
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2122
|
-
/* @__PURE__ */ (0,
|
|
2123
|
-
/* @__PURE__ */ (0,
|
|
2124
|
-
/* @__PURE__ */ (0,
|
|
2125
|
-
/* @__PURE__ */ (0,
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2223
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Empty State with Action" }),
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "qt-empty-state", children: [
|
|
2225
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" }) }) }),
|
|
2226
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h4", { className: "qt-empty-state-title", children: "No characters" }),
|
|
2227
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "qt-empty-state-description", children: "You haven't created any characters yet. Create your first character to get started." }),
|
|
2228
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { className: "qt-button qt-button-primary", children: "Create Character" }) })
|
|
2126
2229
|
] })
|
|
2127
2230
|
] }),
|
|
2128
|
-
/* @__PURE__ */ (0,
|
|
2129
|
-
/* @__PURE__ */ (0,
|
|
2130
|
-
/* @__PURE__ */ (0,
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2132
|
-
/* @__PURE__ */ (0,
|
|
2133
|
-
/* @__PURE__ */ (0,
|
|
2134
|
-
/* @__PURE__ */ (0,
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Search Empty State" }),
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "qt-empty-state", children: [
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
2235
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h4", { className: "qt-empty-state-title", children: "No results found" }),
|
|
2236
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "qt-empty-state-description", children: "Try adjusting your search or filters to find what you're looking for." }),
|
|
2237
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { className: "qt-button qt-button-secondary", children: "Clear Filters" }) })
|
|
2135
2238
|
] })
|
|
2136
2239
|
] }),
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2138
|
-
/* @__PURE__ */ (0,
|
|
2139
|
-
/* @__PURE__ */ (0,
|
|
2140
|
-
/* @__PURE__ */ (0,
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2240
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { children: [
|
|
2241
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Error Empty State" }),
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "qt-empty-state", children: [
|
|
2243
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-icon text-red-500", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
|
|
2244
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h4", { className: "qt-empty-state-title", children: "Something went wrong" }),
|
|
2245
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "qt-empty-state-description", children: "We couldn't load the content. Please try again." }),
|
|
2246
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", { className: "qt-button qt-button-primary", children: "Try Again" }) })
|
|
2144
2247
|
] })
|
|
2145
2248
|
] })
|
|
2146
2249
|
] });
|
|
2147
2250
|
};
|
|
2148
2251
|
|
|
2149
2252
|
// src/stories/components/Loading.tsx
|
|
2150
|
-
var
|
|
2253
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2151
2254
|
var Loading = () => {
|
|
2152
|
-
return /* @__PURE__ */ (0,
|
|
2153
|
-
/* @__PURE__ */ (0,
|
|
2154
|
-
/* @__PURE__ */ (0,
|
|
2155
|
-
/* @__PURE__ */ (0,
|
|
2156
|
-
/* @__PURE__ */ (0,
|
|
2157
|
-
/* @__PURE__ */ (0,
|
|
2158
|
-
/* @__PURE__ */ (0,
|
|
2159
|
-
/* @__PURE__ */ (0,
|
|
2160
|
-
] }),
|
|
2161
|
-
/* @__PURE__ */ (0,
|
|
2162
|
-
/* @__PURE__ */ (0,
|
|
2163
|
-
/* @__PURE__ */ (0,
|
|
2164
|
-
] }),
|
|
2165
|
-
/* @__PURE__ */ (0,
|
|
2166
|
-
/* @__PURE__ */ (0,
|
|
2167
|
-
/* @__PURE__ */ (0,
|
|
2255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Loading States" }),
|
|
2257
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2258
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Spinners" }),
|
|
2259
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", gap: "2rem", alignItems: "center" }, children: [
|
|
2260
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { textAlign: "center" }, children: [
|
|
2261
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-spinner qt-spinner-sm", style: { margin: "0 auto" } }),
|
|
2262
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Small" })
|
|
2263
|
+
] }),
|
|
2264
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { textAlign: "center" }, children: [
|
|
2265
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-spinner", style: { margin: "0 auto" } }),
|
|
2266
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Default" })
|
|
2267
|
+
] }),
|
|
2268
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { textAlign: "center" }, children: [
|
|
2269
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-spinner qt-spinner-lg", style: { margin: "0 auto" } }),
|
|
2270
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Large" })
|
|
2168
2271
|
] })
|
|
2169
2272
|
] })
|
|
2170
2273
|
] }),
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2172
|
-
/* @__PURE__ */ (0,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2175
|
-
/* @__PURE__ */ (0,
|
|
2176
|
-
/* @__PURE__ */ (0,
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Text" }),
|
|
2276
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { maxWidth: "28rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2277
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "100%" } }),
|
|
2278
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "80%" } }),
|
|
2279
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } })
|
|
2177
2280
|
] })
|
|
2178
2281
|
] }),
|
|
2179
|
-
/* @__PURE__ */ (0,
|
|
2180
|
-
/* @__PURE__ */ (0,
|
|
2181
|
-
/* @__PURE__ */ (0,
|
|
2182
|
-
/* @__PURE__ */ (0,
|
|
2183
|
-
/* @__PURE__ */ (0,
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2185
|
-
/* @__PURE__ */ (0,
|
|
2186
|
-
/* @__PURE__ */ (0,
|
|
2282
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2283
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Card" }),
|
|
2284
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "qt-card", style: { maxWidth: "24rem", padding: "1rem" }, children: [
|
|
2285
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", gap: "0.75rem", marginBottom: "1rem", alignItems: "flex-start" }, children: [
|
|
2286
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "40px", height: "40px", flexShrink: 0 } }),
|
|
2287
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2288
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } }),
|
|
2289
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "40%" } })
|
|
2187
2290
|
] })
|
|
2188
2291
|
] }),
|
|
2189
|
-
/* @__PURE__ */ (0,
|
|
2190
|
-
/* @__PURE__ */ (0,
|
|
2191
|
-
/* @__PURE__ */ (0,
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2292
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2294
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2295
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "75%" } })
|
|
2193
2296
|
] })
|
|
2194
2297
|
] })
|
|
2195
2298
|
] }),
|
|
2196
|
-
/* @__PURE__ */ (0,
|
|
2197
|
-
/* @__PURE__ */ (0,
|
|
2198
|
-
/* @__PURE__ */ (0,
|
|
2199
|
-
/* @__PURE__ */ (0,
|
|
2200
|
-
/* @__PURE__ */ (0,
|
|
2201
|
-
/* @__PURE__ */ (0,
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2203
|
-
/* @__PURE__ */ (0,
|
|
2204
|
-
/* @__PURE__ */ (0,
|
|
2205
|
-
/* @__PURE__ */ (0,
|
|
2299
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2300
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Message" }),
|
|
2301
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: { maxWidth: "42rem", display: "flex", flexDirection: "column", gap: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", gap: "0.75rem" }, children: [
|
|
2302
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "32px", height: "32px", flexShrink: 0 } }),
|
|
2303
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2304
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "120px" } }),
|
|
2305
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-card", style: { padding: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2306
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2307
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2308
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } })
|
|
2206
2309
|
] }) })
|
|
2207
2310
|
] })
|
|
2208
2311
|
] }) })
|
|
2209
2312
|
] }),
|
|
2210
|
-
/* @__PURE__ */ (0,
|
|
2211
|
-
/* @__PURE__ */ (0,
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2213
|
-
/* @__PURE__ */ (0,
|
|
2214
|
-
/* @__PURE__ */ (0,
|
|
2313
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2314
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton List" }),
|
|
2315
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: { maxWidth: "24rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [1, 2, 3].map((i) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "qt-card", style: { padding: "0.75rem", display: "flex", gap: "0.75rem", alignItems: "center" }, children: [
|
|
2316
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "32px", height: "32px", flexShrink: 0 } }),
|
|
2317
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: { flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "70%" } }) })
|
|
2215
2318
|
] }, i)) })
|
|
2216
2319
|
] }),
|
|
2217
|
-
/* @__PURE__ */ (0,
|
|
2218
|
-
/* @__PURE__ */ (0,
|
|
2219
|
-
/* @__PURE__ */ (0,
|
|
2220
|
-
/* @__PURE__ */ (0,
|
|
2221
|
-
/* @__PURE__ */ (0,
|
|
2320
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("section", { children: [
|
|
2321
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Loading Button" }),
|
|
2322
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: { display: "flex", gap: "1rem" }, children: [
|
|
2323
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("button", { className: "qt-button qt-button-primary", disabled: true, style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2324
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-spinner qt-spinner-sm" }),
|
|
2222
2325
|
"Loading..."
|
|
2223
2326
|
] }),
|
|
2224
|
-
/* @__PURE__ */ (0,
|
|
2225
|
-
/* @__PURE__ */ (0,
|
|
2327
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("button", { className: "qt-button qt-button-secondary", disabled: true, style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2328
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "qt-spinner qt-spinner-sm" }),
|
|
2226
2329
|
"Saving..."
|
|
2227
2330
|
] })
|
|
2228
2331
|
] })
|
|
@@ -2231,130 +2334,130 @@ var Loading = () => {
|
|
|
2231
2334
|
};
|
|
2232
2335
|
|
|
2233
2336
|
// src/stories/components/Participant.tsx
|
|
2234
|
-
var
|
|
2337
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2235
2338
|
var Participant = () => {
|
|
2236
|
-
return /* @__PURE__ */ (0,
|
|
2237
|
-
/* @__PURE__ */ (0,
|
|
2238
|
-
/* @__PURE__ */ (0,
|
|
2239
|
-
/* @__PURE__ */ (0,
|
|
2240
|
-
/* @__PURE__ */ (0,
|
|
2241
|
-
/* @__PURE__ */ (0,
|
|
2242
|
-
/* @__PURE__ */ (0,
|
|
2243
|
-
/* @__PURE__ */ (0,
|
|
2244
|
-
/* @__PURE__ */ (0,
|
|
2245
|
-
/* @__PURE__ */ (0,
|
|
2339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { padding: "1.5rem" }, children: [
|
|
2340
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Participants" }),
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2342
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Participant Cards" }),
|
|
2343
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2344
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2345
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2346
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2347
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "AI Assistant" })
|
|
2246
2349
|
] })
|
|
2247
2350
|
] }) }),
|
|
2248
|
-
/* @__PURE__ */ (0,
|
|
2249
|
-
/* @__PURE__ */ (0,
|
|
2250
|
-
/* @__PURE__ */ (0,
|
|
2251
|
-
/* @__PURE__ */ (0,
|
|
2252
|
-
/* @__PURE__ */ (0,
|
|
2351
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2352
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "BC" }) }) }),
|
|
2353
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2354
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Currently Speaking" })
|
|
2253
2356
|
] })
|
|
2254
2357
|
] }) }),
|
|
2255
|
-
/* @__PURE__ */ (0,
|
|
2256
|
-
/* @__PURE__ */ (0,
|
|
2257
|
-
/* @__PURE__ */ (0,
|
|
2258
|
-
/* @__PURE__ */ (0,
|
|
2259
|
-
/* @__PURE__ */ (0,
|
|
2358
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2359
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2360
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2361
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "You" }),
|
|
2362
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Human" })
|
|
2260
2363
|
] })
|
|
2261
2364
|
] }) })
|
|
2262
2365
|
] })
|
|
2263
2366
|
] }),
|
|
2264
|
-
/* @__PURE__ */ (0,
|
|
2265
|
-
/* @__PURE__ */ (0,
|
|
2266
|
-
/* @__PURE__ */ (0,
|
|
2267
|
-
/* @__PURE__ */ (0,
|
|
2268
|
-
/* @__PURE__ */ (0,
|
|
2269
|
-
/* @__PURE__ */ (0,
|
|
2270
|
-
/* @__PURE__ */ (0,
|
|
2271
|
-
/* @__PURE__ */ (0,
|
|
2272
|
-
/* @__PURE__ */ (0,
|
|
2367
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2368
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Participant Status States" }),
|
|
2369
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Characters can be active, silent (thinking but not speaking), absent (away from the scene), or removed." }),
|
|
2370
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2371
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2372
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Currently Speaking" })
|
|
2273
2376
|
] })
|
|
2274
2377
|
] }) }),
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
2276
|
-
/* @__PURE__ */ (0,
|
|
2277
|
-
/* @__PURE__ */ (0,
|
|
2278
|
-
/* @__PURE__ */ (0,
|
|
2378
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card qt-participant-card-silent", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2379
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-avatar", style: { position: "relative" }, children: [
|
|
2380
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "BC" }) }),
|
|
2381
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-status-overlay qt-participant-status-overlay-silent", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "10", height: "10", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M16.5 12A4.5 4.5 0 0 0 12 7.5v4.09l3.13 3.13A4.46 4.46 0 0 0 16.5 12ZM19 12c0 1.68-.59 3.22-1.57 4.43L21 20l-1.41 1.41-18-18L3 2l4.57 4.57A7.97 7.97 0 0 1 12 4c4.42 0 8 3.58 8 8Zm-7-8a6 6 0 0 0-6 6c0 1.33.44 2.56 1.17 3.56L5 11.44A7.94 7.94 0 0 1 4 8" }) }) })
|
|
2279
2382
|
] }),
|
|
2280
|
-
/* @__PURE__ */ (0,
|
|
2281
|
-
/* @__PURE__ */ (0,
|
|
2282
|
-
/* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2383
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2384
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2385
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2386
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "qt-badge-silent", style: { fontSize: "0.625rem" }, children: "Silent" })
|
|
2284
2387
|
] }),
|
|
2285
|
-
/* @__PURE__ */ (0,
|
|
2388
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Inner thoughts only" })
|
|
2286
2389
|
] })
|
|
2287
2390
|
] }) }),
|
|
2288
|
-
/* @__PURE__ */ (0,
|
|
2289
|
-
/* @__PURE__ */ (0,
|
|
2290
|
-
/* @__PURE__ */ (0,
|
|
2291
|
-
/* @__PURE__ */ (0,
|
|
2391
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", style: { opacity: 0.7 }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2392
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-avatar", style: { position: "relative" }, children: [
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "CC" }) }),
|
|
2394
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-status-overlay qt-participant-status-overlay-absent", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "10", height: "10", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) }) })
|
|
2292
2395
|
] }),
|
|
2293
|
-
/* @__PURE__ */ (0,
|
|
2294
|
-
/* @__PURE__ */ (0,
|
|
2295
|
-
/* @__PURE__ */ (0,
|
|
2296
|
-
/* @__PURE__ */ (0,
|
|
2396
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2397
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2398
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Clara Character" }),
|
|
2399
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "qt-badge-absent", style: { fontSize: "0.625rem" }, children: "Absent" })
|
|
2297
2400
|
] }),
|
|
2298
|
-
/* @__PURE__ */ (0,
|
|
2401
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Away from the scene" })
|
|
2299
2402
|
] })
|
|
2300
2403
|
] }) }),
|
|
2301
|
-
/* @__PURE__ */ (0,
|
|
2302
|
-
/* @__PURE__ */ (0,
|
|
2303
|
-
/* @__PURE__ */ (0,
|
|
2304
|
-
/* @__PURE__ */ (0,
|
|
2305
|
-
/* @__PURE__ */ (0,
|
|
2404
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2405
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2406
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2407
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "You" }),
|
|
2408
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "Human" })
|
|
2306
2409
|
] })
|
|
2307
2410
|
] }) })
|
|
2308
2411
|
] })
|
|
2309
2412
|
] }),
|
|
2310
|
-
/* @__PURE__ */ (0,
|
|
2311
|
-
/* @__PURE__ */ (0,
|
|
2312
|
-
/* @__PURE__ */ (0,
|
|
2313
|
-
/* @__PURE__ */ (0,
|
|
2314
|
-
/* @__PURE__ */ (0,
|
|
2315
|
-
/* @__PURE__ */ (0,
|
|
2316
|
-
/* @__PURE__ */ (0,
|
|
2317
|
-
/* @__PURE__ */ (0,
|
|
2318
|
-
/* @__PURE__ */ (0,
|
|
2319
|
-
/* @__PURE__ */ (0,
|
|
2413
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("section", { style: { marginBottom: "2rem" }, children: [
|
|
2414
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Sidebar Layout" }),
|
|
2415
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { display: "flex", gap: "1rem" }, children: [
|
|
2416
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-card", style: { flex: 1, padding: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: { color: "var(--color-text-muted)" }, children: "Chat messages area" }) }),
|
|
2417
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-chat-sidebar", style: { width: "16rem" }, children: [
|
|
2418
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { padding: "1rem", borderBottom: "1px solid var(--qt-chat-sidebar-header-border)" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h4", { style: { fontWeight: 600, color: "var(--qt-chat-sidebar-heading)" }, children: "Participants" }) }),
|
|
2419
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { padding: "0.5rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2421
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2422
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-info", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", style: { fontSize: "0.875rem" }, children: "Alice" }) })
|
|
2320
2423
|
] }) }),
|
|
2321
|
-
/* @__PURE__ */ (0,
|
|
2322
|
-
/* @__PURE__ */ (0,
|
|
2323
|
-
/* @__PURE__ */ (0,
|
|
2424
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2425
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2426
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-info", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", style: { fontSize: "0.875rem" }, children: "You" }) })
|
|
2324
2427
|
] }) })
|
|
2325
2428
|
] })
|
|
2326
2429
|
] })
|
|
2327
2430
|
] })
|
|
2328
2431
|
] }),
|
|
2329
|
-
/* @__PURE__ */ (0,
|
|
2330
|
-
/* @__PURE__ */ (0,
|
|
2331
|
-
/* @__PURE__ */ (0,
|
|
2332
|
-
/* @__PURE__ */ (0,
|
|
2333
|
-
/* @__PURE__ */ (0,
|
|
2334
|
-
/* @__PURE__ */ (0,
|
|
2335
|
-
/* @__PURE__ */ (0,
|
|
2336
|
-
/* @__PURE__ */ (0,
|
|
2337
|
-
/* @__PURE__ */ (0,
|
|
2338
|
-
/* @__PURE__ */ (0,
|
|
2339
|
-
/* @__PURE__ */ (0,
|
|
2340
|
-
/* @__PURE__ */ (0,
|
|
2341
|
-
/* @__PURE__ */ (0,
|
|
2342
|
-
/* @__PURE__ */ (0,
|
|
2432
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("section", { children: [
|
|
2433
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Connection Profile Dropdown" }),
|
|
2434
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
2435
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2436
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2437
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2439
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-status", children: "AI Assistant" }),
|
|
2440
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { marginTop: "0.25rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("select", { className: "qt-select qt-select-sm", style: { width: "100%" }, defaultValue: "gpt-4", children: [
|
|
2441
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "", children: "Select a provider..." }),
|
|
2442
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "__user__", children: "User (you type)" }),
|
|
2443
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "gpt-4", children: "gpt-4-turbo" }),
|
|
2444
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "claude", children: "claude-3-opus" }),
|
|
2445
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "gemini", children: "gemini-pro" })
|
|
2343
2446
|
] }) })
|
|
2344
2447
|
] })
|
|
2345
2448
|
] }) }),
|
|
2346
|
-
/* @__PURE__ */ (0,
|
|
2347
|
-
/* @__PURE__ */ (0,
|
|
2348
|
-
/* @__PURE__ */ (0,
|
|
2349
|
-
/* @__PURE__ */ (0,
|
|
2350
|
-
/* @__PURE__ */ (0,
|
|
2351
|
-
/* @__PURE__ */ (0,
|
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-header", children: [
|
|
2450
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-avatar-fallback", children: "BC" }) }) }),
|
|
2451
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "qt-participant-card-info", children: [
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2453
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2454
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "qt-badge-secondary", style: { fontSize: "0.75rem" }, children: "You" })
|
|
2352
2455
|
] }),
|
|
2353
|
-
/* @__PURE__ */ (0,
|
|
2354
|
-
/* @__PURE__ */ (0,
|
|
2355
|
-
/* @__PURE__ */ (0,
|
|
2356
|
-
/* @__PURE__ */ (0,
|
|
2357
|
-
/* @__PURE__ */ (0,
|
|
2456
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: { marginTop: "0.25rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("select", { className: "qt-select qt-select-sm", style: { width: "100%" }, defaultValue: "__user__", children: [
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "", children: "Select a provider..." }),
|
|
2458
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "__user__", children: "User (you type)" }),
|
|
2459
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "gpt-4", children: "gpt-4-turbo" }),
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("option", { value: "claude", children: "claude-3-opus" })
|
|
2358
2461
|
] }) })
|
|
2359
2462
|
] })
|
|
2360
2463
|
] }) })
|
|
@@ -2380,6 +2483,7 @@ var Participant = () => {
|
|
|
2380
2483
|
Loading,
|
|
2381
2484
|
Participant,
|
|
2382
2485
|
Spacing,
|
|
2486
|
+
Surfaces,
|
|
2383
2487
|
Tabs,
|
|
2384
2488
|
Terminal,
|
|
2385
2489
|
ThemeComparison,
|