@quilltap/theme-storybook 1.0.38 → 1.0.40
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 +5 -0
- package/dist/{chunk-7CI72GBQ.mjs → chunk-GXTUADEJ.mjs} +1387 -1220
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1388 -1220
- package/dist/index.mjs +3 -1
- package/dist/stories/index.d.mts +16 -1
- package/dist/stories/index.d.ts +16 -1
- package/dist/stories/index.js +1388 -1220
- package/dist/stories/index.mjs +3 -1
- package/package.json +5 -5
- package/src/stories/components/Icons.tsx +163 -0
- package/src/stories/index.ts +1 -0
|
@@ -72,157 +72,323 @@ var ColorPalette = () => {
|
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
// src/stories/components/
|
|
75
|
+
// src/stories/components/Icons.tsx
|
|
76
76
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
77
|
-
var
|
|
77
|
+
var ICON_GROUPS = [
|
|
78
|
+
{
|
|
79
|
+
category: "General UI",
|
|
80
|
+
names: [
|
|
81
|
+
"close",
|
|
82
|
+
"pencil",
|
|
83
|
+
"refresh",
|
|
84
|
+
"check",
|
|
85
|
+
"check-circle",
|
|
86
|
+
"chat",
|
|
87
|
+
"info",
|
|
88
|
+
"trash",
|
|
89
|
+
"copy",
|
|
90
|
+
"plus",
|
|
91
|
+
"search",
|
|
92
|
+
"download",
|
|
93
|
+
"upload",
|
|
94
|
+
"cloud-upload",
|
|
95
|
+
"external-link",
|
|
96
|
+
"link",
|
|
97
|
+
"send",
|
|
98
|
+
"paperclip",
|
|
99
|
+
"eye",
|
|
100
|
+
"eye-off",
|
|
101
|
+
"star",
|
|
102
|
+
"bookmark",
|
|
103
|
+
"expand",
|
|
104
|
+
"compress"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
category: "Navigation arrows",
|
|
109
|
+
names: [
|
|
110
|
+
"chevron-down",
|
|
111
|
+
"chevron-right",
|
|
112
|
+
"chevron-left",
|
|
113
|
+
"arrow-left",
|
|
114
|
+
"arrow-right",
|
|
115
|
+
"arrow-up",
|
|
116
|
+
"arrow-down"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
category: "Status & alerts",
|
|
121
|
+
names: ["alert-triangle", "alert-circle", "shield", "ban", "clock", "calendar"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
category: "Media",
|
|
125
|
+
names: ["image", "camera", "play", "pause", "stop", "zoom-in", "zoom-out"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
category: "Content & sidebar navigation",
|
|
129
|
+
names: [
|
|
130
|
+
"projects",
|
|
131
|
+
"files",
|
|
132
|
+
"file",
|
|
133
|
+
"file-plus",
|
|
134
|
+
"folder",
|
|
135
|
+
"folder-plus",
|
|
136
|
+
"book",
|
|
137
|
+
"characters",
|
|
138
|
+
"scriptorium",
|
|
139
|
+
"photos",
|
|
140
|
+
"scenarios"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
category: "People",
|
|
145
|
+
names: ["profile", "user", "user-plus", "users", "megaphone", "dice"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
category: "System & tooling",
|
|
149
|
+
names: ["sparkles", "wand", "wrench", "code", "cpu", "database", "layers", "zap", "swap", "log-out"]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
category: "Appearance & system",
|
|
153
|
+
names: ["settings", "themes", "wardrobe", "help", "sun", "moon", "monitor"]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
category: "Brand",
|
|
157
|
+
names: ["brand"]
|
|
158
|
+
}
|
|
159
|
+
];
|
|
160
|
+
var sectionHeading = {
|
|
161
|
+
fontSize: "1.125rem",
|
|
162
|
+
fontWeight: 700,
|
|
163
|
+
marginBottom: "1rem",
|
|
164
|
+
borderBottom: "1px solid var(--color-border)",
|
|
165
|
+
paddingBottom: "0.5rem"
|
|
166
|
+
};
|
|
167
|
+
var chip = {
|
|
168
|
+
fontFamily: "var(--theme-font-mono, ui-monospace, monospace)",
|
|
169
|
+
fontSize: "0.8125rem",
|
|
170
|
+
padding: "0.25rem 0.6rem",
|
|
171
|
+
borderRadius: "var(--radius-md, 0.375rem)",
|
|
172
|
+
border: "1px solid var(--color-border)",
|
|
173
|
+
background: "var(--color-muted)",
|
|
174
|
+
color: "var(--color-foreground)"
|
|
175
|
+
};
|
|
176
|
+
var codeBlock = {
|
|
177
|
+
fontFamily: "var(--theme-font-mono, ui-monospace, monospace)",
|
|
178
|
+
fontSize: "0.8125rem",
|
|
179
|
+
background: "var(--color-muted)",
|
|
180
|
+
color: "var(--color-foreground)",
|
|
181
|
+
border: "1px solid var(--color-border)",
|
|
182
|
+
borderRadius: "var(--radius-md, 0.375rem)",
|
|
183
|
+
padding: "1rem",
|
|
184
|
+
overflowX: "auto",
|
|
185
|
+
lineHeight: 1.6
|
|
186
|
+
};
|
|
187
|
+
var Icons = () => {
|
|
78
188
|
return /* @__PURE__ */ jsxs2("div", { style: { padding: "1.5rem" }, children: [
|
|
79
|
-
/* @__PURE__ */ jsx2("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
189
|
+
/* @__PURE__ */ jsx2("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "0.5rem" }, children: "Icons" }),
|
|
190
|
+
/* @__PURE__ */ jsx2("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "2rem", maxWidth: "46rem" }, children: "Quilltap renders its UI icons through a central registry, so a theme can replace any of them. The default icons are monochrome and follow the current text color; a theme overrides an icon by mapping its name to a bundled asset." }),
|
|
191
|
+
/* @__PURE__ */ jsxs2("section", { style: { marginBottom: "2.5rem" }, children: [
|
|
192
|
+
/* @__PURE__ */ jsx2("h3", { style: sectionHeading, children: "Overriding an icon" }),
|
|
193
|
+
/* @__PURE__ */ jsxs2("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem", maxWidth: "46rem" }, children: [
|
|
194
|
+
"Drop replacement assets into your bundle's ",
|
|
195
|
+
/* @__PURE__ */ jsx2("code", { children: "icons/" }),
|
|
196
|
+
" folder and add an",
|
|
197
|
+
" ",
|
|
198
|
+
/* @__PURE__ */ jsx2("code", { children: "icons" }),
|
|
199
|
+
" map to ",
|
|
200
|
+
/* @__PURE__ */ jsx2("code", { children: "theme.json" }),
|
|
201
|
+
", keyed by the built-in icon name:"
|
|
202
|
+
] }),
|
|
203
|
+
/* @__PURE__ */ jsx2("pre", { style: codeBlock, children: `{
|
|
204
|
+
"icons": {
|
|
205
|
+
"settings": "icons/settings.svg",
|
|
206
|
+
"brand": "icons/brand.webp"
|
|
207
|
+
}
|
|
208
|
+
}` }),
|
|
209
|
+
/* @__PURE__ */ jsxs2("ul", { style: { color: "var(--color-muted-foreground)", marginTop: "1rem", maxWidth: "46rem", lineHeight: 1.7 }, children: [
|
|
210
|
+
/* @__PURE__ */ jsxs2("li", { children: [
|
|
211
|
+
/* @__PURE__ */ jsx2("strong", { style: { color: "var(--color-foreground)" }, children: ".svg overrides" }),
|
|
212
|
+
" are tinted by the current text color, exactly like the built-in icons \u2014 best for monochrome glyphs that should follow the theme."
|
|
213
|
+
] }),
|
|
214
|
+
/* @__PURE__ */ jsxs2("li", { children: [
|
|
215
|
+
/* @__PURE__ */ jsx2("strong", { style: { color: "var(--color-foreground)" }, children: ".webp overrides" }),
|
|
216
|
+
" are drawn in full color \u2014 best for textured or multi-color marks."
|
|
217
|
+
] }),
|
|
218
|
+
/* @__PURE__ */ jsxs2("li", { children: [
|
|
219
|
+
"The ",
|
|
220
|
+
/* @__PURE__ */ jsx2("code", { children: "brand" }),
|
|
221
|
+
" mark is always drawn in full color, even when overridden with an SVG."
|
|
222
|
+
] }),
|
|
223
|
+
/* @__PURE__ */ jsxs2("li", { children: [
|
|
224
|
+
"Names must match the built-in names below; unknown names are ignored. Run",
|
|
225
|
+
" ",
|
|
226
|
+
/* @__PURE__ */ jsx2("code", { children: "quilltap themes validate" }),
|
|
227
|
+
" to catch typos and bad asset paths."
|
|
98
228
|
] })
|
|
99
229
|
] })
|
|
100
230
|
] }),
|
|
101
|
-
/* @__PURE__ */ jsxs2("section", {
|
|
102
|
-
/* @__PURE__ */ jsx2("h3", { style:
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
231
|
+
/* @__PURE__ */ jsxs2("section", { children: [
|
|
232
|
+
/* @__PURE__ */ jsx2("h3", { style: sectionHeading, children: "Override-able icon names" }),
|
|
233
|
+
/* @__PURE__ */ jsx2("div", { style: { display: "flex", flexDirection: "column", gap: "1.5rem" }, children: ICON_GROUPS.map((group) => /* @__PURE__ */ jsxs2("div", { children: [
|
|
234
|
+
/* @__PURE__ */ jsx2("p", { style: { fontWeight: 600, marginBottom: "0.6rem", fontSize: "0.9375rem" }, children: group.category }),
|
|
235
|
+
/* @__PURE__ */ jsx2("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: group.names.map((name) => /* @__PURE__ */ jsx2("code", { style: chip, children: name }, name)) })
|
|
236
|
+
] }, group.category)) })
|
|
237
|
+
] })
|
|
238
|
+
] });
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
// src/stories/components/Typography.tsx
|
|
242
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
243
|
+
var Typography = () => {
|
|
244
|
+
return /* @__PURE__ */ jsxs3("div", { style: { padding: "1.5rem" }, children: [
|
|
245
|
+
/* @__PURE__ */ jsx3("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Typography" }),
|
|
246
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
247
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Headings (qt-heading-*)" }),
|
|
248
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
249
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
250
|
+
/* @__PURE__ */ jsx3("h1", { className: "qt-heading-1", children: "Heading 1 - The quick brown fox" }),
|
|
251
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-heading-1" })
|
|
252
|
+
] }),
|
|
253
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
254
|
+
/* @__PURE__ */ jsx3("h2", { className: "qt-heading-2", children: "Heading 2 - The quick brown fox" }),
|
|
255
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-heading-2" })
|
|
256
|
+
] }),
|
|
257
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
258
|
+
/* @__PURE__ */ jsx3("h3", { className: "qt-heading-3", children: "Heading 3 - The quick brown fox" }),
|
|
259
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-heading-3" })
|
|
260
|
+
] }),
|
|
261
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
262
|
+
/* @__PURE__ */ jsx3("h4", { className: "qt-heading-4", children: "Heading 4 - The quick brown fox" }),
|
|
263
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-heading-4" })
|
|
123
264
|
] })
|
|
124
265
|
] })
|
|
125
266
|
] }),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
] }),
|
|
149
|
-
/* @__PURE__ */ jsxs2("div", { children: [
|
|
150
|
-
/* @__PURE__ */ jsx2("p", { className: "qt-text-destructive", children: "Destructive text - For error messages" }),
|
|
151
|
-
/* @__PURE__ */ jsx2("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-destructive" })
|
|
152
|
-
] }),
|
|
153
|
-
/* @__PURE__ */ jsxs2("div", { children: [
|
|
154
|
-
/* @__PURE__ */ jsx2("p", { className: "qt-text-info", children: "Info text - For informational messages" }),
|
|
155
|
-
/* @__PURE__ */ jsx2("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-info" })
|
|
267
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
268
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Body Text" }),
|
|
269
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "40rem" }, children: [
|
|
270
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
271
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-lead", children: "Lead text - Used for introductory paragraphs that need more emphasis. The quick brown fox jumps over the lazy dog." }),
|
|
272
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-lead" })
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
275
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-large", children: "Large text - Slightly larger than body text for emphasis. The quick brown fox jumps over the lazy dog." }),
|
|
276
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-large" })
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
279
|
+
/* @__PURE__ */ jsx3("p", { children: "Default body text - The standard text size for most content. The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs." }),
|
|
280
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "default / no class" })
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
283
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-small", children: "Small text - For less important or supplementary information. The quick brown fox jumps over the lazy dog." }),
|
|
284
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-small" })
|
|
285
|
+
] }),
|
|
286
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
287
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-xs", children: "Extra small text - For fine print, captions, or metadata. The quick brown fox jumps over the lazy dog." }),
|
|
288
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-xs" })
|
|
156
289
|
] })
|
|
157
290
|
] })
|
|
158
291
|
] }),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
] }),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
] }),
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
] }),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
293
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Text Colors" }),
|
|
294
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
295
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
296
|
+
/* @__PURE__ */ jsx3("p", { children: "Default text color" }),
|
|
297
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "default" })
|
|
298
|
+
] }),
|
|
299
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
300
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-muted", children: "Muted text - For secondary content" }),
|
|
301
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-muted" })
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
304
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-primary", children: "Primary text - For emphasis and links" }),
|
|
305
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-primary" })
|
|
306
|
+
] }),
|
|
307
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
308
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-success", children: "Success text - For positive messages" }),
|
|
309
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-success" })
|
|
310
|
+
] }),
|
|
311
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
312
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-warning", children: "Warning text - For caution messages" }),
|
|
313
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-warning" })
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
316
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-destructive", children: "Destructive text - For error messages" }),
|
|
317
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-destructive" })
|
|
318
|
+
] }),
|
|
319
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
320
|
+
/* @__PURE__ */ jsx3("p", { className: "qt-text-info", children: "Info text - For informational messages" }),
|
|
321
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-text-info" })
|
|
177
322
|
] })
|
|
178
323
|
] })
|
|
179
324
|
] }),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
] }),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
326
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Labels & UI Text" }),
|
|
327
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
328
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
329
|
+
/* @__PURE__ */ jsx3("span", { className: "qt-label", children: "Form Label" }),
|
|
330
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginLeft: "1rem" }, children: ".qt-label" })
|
|
331
|
+
] }),
|
|
332
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
333
|
+
/* @__PURE__ */ jsx3("span", { className: "qt-hint", children: "Hint text for form fields" }),
|
|
334
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginLeft: "1rem" }, children: ".qt-hint" })
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
337
|
+
/* @__PURE__ */ jsx3("span", { className: "qt-text-label", children: "UI Label Text" }),
|
|
338
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginLeft: "1rem" }, children: ".qt-text-label" })
|
|
339
|
+
] }),
|
|
340
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
341
|
+
/* @__PURE__ */ jsx3("span", { className: "qt-text-section", children: "Section Header" }),
|
|
342
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginLeft: "1rem" }, children: ".qt-text-section" })
|
|
343
|
+
] })
|
|
344
|
+
] })
|
|
345
|
+
] }),
|
|
346
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
347
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Code & Monospace" }),
|
|
348
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
349
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
350
|
+
/* @__PURE__ */ jsx3("code", { className: "qt-code-inline", children: "inline code example" }),
|
|
351
|
+
/* @__PURE__ */ jsx3("span", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginLeft: "1rem" }, children: ".qt-code-inline" })
|
|
352
|
+
] }),
|
|
353
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
354
|
+
/* @__PURE__ */ jsx3("pre", { className: "qt-code-block", children: `function greet(name: string): string {
|
|
189
355
|
return \`Hello, \${name}!\`;
|
|
190
356
|
}
|
|
191
357
|
|
|
192
358
|
console.log(greet('World'));` }),
|
|
193
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-code-block" })
|
|
194
360
|
] })
|
|
195
361
|
] })
|
|
196
362
|
] }),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
364
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Prose (Long-form Content)" }),
|
|
365
|
+
/* @__PURE__ */ jsxs3("div", { className: "qt-prose", style: { maxWidth: "40rem" }, children: [
|
|
366
|
+
/* @__PURE__ */ jsx3("h3", { children: "Article Title" }),
|
|
367
|
+
/* @__PURE__ */ jsxs3("p", { children: [
|
|
202
368
|
"This is an example of the ",
|
|
203
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ jsx3("code", { children: ".qt-prose" }),
|
|
204
370
|
" class applied to a container. It provides sensible defaults for long-form content like articles, documentation, and chat messages."
|
|
205
371
|
] }),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ jsx3("p", { children: "The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump! The five boxing wizards jump quickly." }),
|
|
373
|
+
/* @__PURE__ */ jsx3("h4", { children: "Subsection" }),
|
|
374
|
+
/* @__PURE__ */ jsx3("p", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris." })
|
|
209
375
|
] }),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
] }),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
] }),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: ".qt-prose" })
|
|
377
|
+
] }),
|
|
378
|
+
/* @__PURE__ */ jsxs3("section", { style: { marginBottom: "2rem" }, children: [
|
|
379
|
+
/* @__PURE__ */ jsx3("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Font Families" }),
|
|
380
|
+
/* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
381
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
382
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--font-sans" }),
|
|
383
|
+
/* @__PURE__ */ jsx3("p", { style: { fontFamily: "var(--font-sans)", fontSize: "1.125rem", marginTop: "0.25rem" }, children: "The quick brown fox jumps over the lazy dog." })
|
|
384
|
+
] }),
|
|
385
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
386
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--font-serif" }),
|
|
387
|
+
/* @__PURE__ */ jsx3("p", { style: { fontFamily: "var(--font-serif)", fontSize: "1.125rem", marginTop: "0.25rem" }, children: "The quick brown fox jumps over the lazy dog." })
|
|
388
|
+
] }),
|
|
389
|
+
/* @__PURE__ */ jsxs3("div", { children: [
|
|
390
|
+
/* @__PURE__ */ jsx3("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--font-mono" }),
|
|
391
|
+
/* @__PURE__ */ jsx3("p", { style: { fontFamily: "var(--font-mono)", fontSize: "1.125rem", marginTop: "0.25rem" }, children: "The quick brown fox jumps over the lazy dog." })
|
|
226
392
|
] })
|
|
227
393
|
] })
|
|
228
394
|
] })
|
|
@@ -230,7 +396,7 @@ console.log(greet('World'));` }),
|
|
|
230
396
|
};
|
|
231
397
|
|
|
232
398
|
// src/stories/components/Spacing.tsx
|
|
233
|
-
import { jsx as
|
|
399
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
234
400
|
var Spacing = () => {
|
|
235
401
|
const radiusTokens = [
|
|
236
402
|
{ name: "None", variable: "0", value: "0" },
|
|
@@ -258,12 +424,12 @@ var Spacing = () => {
|
|
|
258
424
|
{ name: "Button Primary Shadow", variable: "--qt-button-primary-shadow" },
|
|
259
425
|
{ name: "Chat Message Shadow", variable: "--qt-chat-message-shadow" }
|
|
260
426
|
];
|
|
261
|
-
return /* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ jsxs4("div", { style: { padding: "1.5rem" }, children: [
|
|
428
|
+
/* @__PURE__ */ jsx4("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Spacing & Borders" }),
|
|
429
|
+
/* @__PURE__ */ jsxs4("section", { style: { marginBottom: "2rem" }, children: [
|
|
430
|
+
/* @__PURE__ */ jsx4("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Border Radius Scale" }),
|
|
431
|
+
/* @__PURE__ */ jsx4("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(6rem, 1fr))", gap: "1.5rem" }, children: radiusTokens.map(({ name, variable, value }) => /* @__PURE__ */ jsxs4("div", { style: { textAlign: "center" }, children: [
|
|
432
|
+
/* @__PURE__ */ jsx4(
|
|
267
433
|
"div",
|
|
268
434
|
{
|
|
269
435
|
style: {
|
|
@@ -275,14 +441,14 @@ var Spacing = () => {
|
|
|
275
441
|
}
|
|
276
442
|
}
|
|
277
443
|
),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ jsx4("div", { style: { fontWeight: 500, fontSize: "0.875rem" }, children: name }),
|
|
445
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: variable })
|
|
280
446
|
] }, variable)) })
|
|
281
447
|
] }),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ jsxs4("section", { style: { marginBottom: "2rem" }, children: [
|
|
449
|
+
/* @__PURE__ */ jsx4("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Component Border Radii" }),
|
|
450
|
+
/* @__PURE__ */ jsx4("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(8rem, 1fr))", gap: "1.5rem" }, children: componentRadii.map(({ name, variable }) => /* @__PURE__ */ jsxs4("div", { style: { textAlign: "center" }, children: [
|
|
451
|
+
/* @__PURE__ */ jsx4(
|
|
286
452
|
"div",
|
|
287
453
|
{
|
|
288
454
|
style: {
|
|
@@ -295,14 +461,14 @@ var Spacing = () => {
|
|
|
295
461
|
}
|
|
296
462
|
}
|
|
297
463
|
),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ jsx4("div", { style: { fontWeight: 500, fontSize: "0.875rem" }, children: name }),
|
|
465
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: variable })
|
|
300
466
|
] }, variable)) })
|
|
301
467
|
] }),
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ jsxs4("section", { style: { marginBottom: "2rem" }, children: [
|
|
469
|
+
/* @__PURE__ */ jsx4("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Shadows" }),
|
|
470
|
+
/* @__PURE__ */ jsx4("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(10rem, 1fr))", gap: "1.5rem" }, children: shadowTokens.map(({ name, variable }) => /* @__PURE__ */ jsxs4("div", { style: { padding: "1rem" }, children: [
|
|
471
|
+
/* @__PURE__ */ jsx4(
|
|
306
472
|
"div",
|
|
307
473
|
{
|
|
308
474
|
style: {
|
|
@@ -315,15 +481,15 @@ var Spacing = () => {
|
|
|
315
481
|
}
|
|
316
482
|
}
|
|
317
483
|
),
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ jsx4("div", { style: { fontWeight: 500, fontSize: "0.875rem" }, children: name }),
|
|
485
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: variable })
|
|
320
486
|
] }, variable)) })
|
|
321
487
|
] }),
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ jsxs4("section", { style: { marginBottom: "2rem" }, children: [
|
|
489
|
+
/* @__PURE__ */ jsx4("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Padding Tokens" }),
|
|
490
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
491
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
492
|
+
/* @__PURE__ */ jsx4(
|
|
327
493
|
"div",
|
|
328
494
|
{
|
|
329
495
|
style: {
|
|
@@ -335,10 +501,10 @@ var Spacing = () => {
|
|
|
335
501
|
children: "Button padding"
|
|
336
502
|
}
|
|
337
503
|
),
|
|
338
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-button-padding-x, --qt-button-padding-y" })
|
|
339
505
|
] }),
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
507
|
+
/* @__PURE__ */ jsx4(
|
|
342
508
|
"div",
|
|
343
509
|
{
|
|
344
510
|
style: {
|
|
@@ -350,10 +516,10 @@ var Spacing = () => {
|
|
|
350
516
|
children: "Card padding"
|
|
351
517
|
}
|
|
352
518
|
),
|
|
353
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-card-padding" })
|
|
354
520
|
] }),
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
522
|
+
/* @__PURE__ */ jsx4(
|
|
357
523
|
"div",
|
|
358
524
|
{
|
|
359
525
|
style: {
|
|
@@ -365,10 +531,10 @@ var Spacing = () => {
|
|
|
365
531
|
children: "Input padding"
|
|
366
532
|
}
|
|
367
533
|
),
|
|
368
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-input-padding-x, --qt-input-padding-y" })
|
|
369
535
|
] }),
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
537
|
+
/* @__PURE__ */ jsx4(
|
|
372
538
|
"div",
|
|
373
539
|
{
|
|
374
540
|
style: {
|
|
@@ -380,15 +546,15 @@ var Spacing = () => {
|
|
|
380
546
|
children: "Chat message padding"
|
|
381
547
|
}
|
|
382
548
|
),
|
|
383
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-chat-message-padding" })
|
|
384
550
|
] })
|
|
385
551
|
] })
|
|
386
552
|
] }),
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ jsxs4("section", { children: [
|
|
554
|
+
/* @__PURE__ */ jsx4("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Layout Dimensions" }),
|
|
555
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
556
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
557
|
+
/* @__PURE__ */ jsx4(
|
|
392
558
|
"div",
|
|
393
559
|
{
|
|
394
560
|
style: {
|
|
@@ -403,10 +569,10 @@ var Spacing = () => {
|
|
|
403
569
|
children: "Navbar height"
|
|
404
570
|
}
|
|
405
571
|
),
|
|
406
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-navbar-height" })
|
|
407
573
|
] }),
|
|
408
|
-
/* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
575
|
+
/* @__PURE__ */ jsx4(
|
|
410
576
|
"div",
|
|
411
577
|
{
|
|
412
578
|
style: {
|
|
@@ -421,10 +587,10 @@ var Spacing = () => {
|
|
|
421
587
|
children: "Sidebar width"
|
|
422
588
|
}
|
|
423
589
|
),
|
|
424
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-sidebar-width" })
|
|
425
591
|
] }),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ jsxs4("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
593
|
+
/* @__PURE__ */ jsx4(
|
|
428
594
|
"div",
|
|
429
595
|
{
|
|
430
596
|
style: {
|
|
@@ -439,7 +605,7 @@ var Spacing = () => {
|
|
|
439
605
|
children: "Chat sidebar width"
|
|
440
606
|
}
|
|
441
607
|
),
|
|
442
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ jsx4("code", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "--qt-chat-sidebar-width" })
|
|
443
609
|
] })
|
|
444
610
|
] })
|
|
445
611
|
] })
|
|
@@ -447,145 +613,145 @@ var Spacing = () => {
|
|
|
447
613
|
};
|
|
448
614
|
|
|
449
615
|
// src/stories/components/Buttons.tsx
|
|
450
|
-
import { jsx as
|
|
616
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
451
617
|
var Buttons = () => {
|
|
452
|
-
return /* @__PURE__ */
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
/* @__PURE__ */
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
/* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ jsxs5("div", { style: { padding: "1.5rem" }, children: [
|
|
619
|
+
/* @__PURE__ */ jsx5("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Buttons" }),
|
|
620
|
+
/* @__PURE__ */ jsxs5("section", { style: { marginBottom: "2rem" }, children: [
|
|
621
|
+
/* @__PURE__ */ jsx5("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Button Variants" }),
|
|
622
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem" }, children: [
|
|
623
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary", children: "Primary" }),
|
|
624
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-secondary", children: "Secondary" }),
|
|
625
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-ghost", children: "Ghost" }),
|
|
626
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-destructive", children: "Destructive" })
|
|
461
627
|
] })
|
|
462
628
|
] }),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ jsxs5("section", { style: { marginBottom: "2rem" }, children: [
|
|
630
|
+
/* @__PURE__ */ jsx5("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Button Sizes" }),
|
|
631
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", flexWrap: "wrap", alignItems: "center", gap: "1rem" }, children: [
|
|
632
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary qt-button-sm", children: "Small" }),
|
|
633
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary", children: "Default" }),
|
|
634
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary qt-button-lg", children: "Large" })
|
|
469
635
|
] })
|
|
470
636
|
] }),
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
637
|
+
/* @__PURE__ */ jsxs5("section", { style: { marginBottom: "2rem" }, children: [
|
|
638
|
+
/* @__PURE__ */ jsx5("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Disabled States" }),
|
|
639
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem" }, children: [
|
|
640
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary", disabled: true, children: "Primary" }),
|
|
641
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-secondary", disabled: true, children: "Secondary" }),
|
|
642
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-ghost", disabled: true, children: "Ghost" }),
|
|
643
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-destructive", disabled: true, children: "Destructive" })
|
|
478
644
|
] })
|
|
479
645
|
] }),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ jsxs5("section", { style: { marginBottom: "2rem" }, children: [
|
|
647
|
+
/* @__PURE__ */ jsx5("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Icon Buttons" }),
|
|
648
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
649
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button-icon", "aria-label": "Settings", children: /* @__PURE__ */ jsxs5("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
650
|
+
/* @__PURE__ */ jsx5("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" }),
|
|
651
|
+
/* @__PURE__ */ jsx5("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
486
652
|
] }) }),
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
-
/* @__PURE__ */
|
|
489
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button-icon", "aria-label": "Close", children: /* @__PURE__ */ jsx5("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }),
|
|
654
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button-icon", "aria-label": "Add", children: /* @__PURE__ */ jsx5("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" }) }) }),
|
|
655
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button-icon", "aria-label": "More", children: /* @__PURE__ */ jsx5("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" }) }) })
|
|
490
656
|
] })
|
|
491
657
|
] }),
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
/* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ jsxs5("section", { children: [
|
|
659
|
+
/* @__PURE__ */ jsx5("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Button Groups" }),
|
|
660
|
+
/* @__PURE__ */ jsxs5("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
661
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-ghost", children: "Cancel" }),
|
|
662
|
+
/* @__PURE__ */ jsx5("button", { className: "qt-button qt-button-primary", children: "Save Changes" })
|
|
497
663
|
] })
|
|
498
664
|
] })
|
|
499
665
|
] });
|
|
500
666
|
};
|
|
501
667
|
|
|
502
668
|
// src/stories/components/Cards.tsx
|
|
503
|
-
import { jsx as
|
|
669
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
504
670
|
var Cards = () => {
|
|
505
|
-
return /* @__PURE__ */
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
] }),
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
/* @__PURE__ */
|
|
671
|
+
return /* @__PURE__ */ jsxs6("div", { style: { padding: "1.5rem" }, children: [
|
|
672
|
+
/* @__PURE__ */ jsx6("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Cards" }),
|
|
673
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
674
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Basic Card" }),
|
|
675
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card", style: { maxWidth: "24rem" }, children: [
|
|
676
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card-header", children: [
|
|
677
|
+
/* @__PURE__ */ jsx6("h4", { className: "qt-card-title", children: "Card Title" }),
|
|
678
|
+
/* @__PURE__ */ jsx6("p", { className: "qt-card-description", children: "Card description goes here." })
|
|
679
|
+
] }),
|
|
680
|
+
/* @__PURE__ */ jsx6("div", { className: "qt-card-body", children: /* @__PURE__ */ jsx6("p", { children: "This is the card body content. It can contain any content you want." }) }),
|
|
681
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card-footer", children: [
|
|
682
|
+
/* @__PURE__ */ jsx6("button", { className: "qt-button qt-button-ghost", children: "Cancel" }),
|
|
683
|
+
/* @__PURE__ */ jsx6("button", { className: "qt-button qt-button-primary", children: "Save" })
|
|
518
684
|
] })
|
|
519
685
|
] })
|
|
520
686
|
] }),
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
687
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
688
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Interactive Card" }),
|
|
689
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card qt-card-interactive", style: { maxWidth: "24rem", cursor: "pointer" }, children: [
|
|
690
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card-header", children: [
|
|
691
|
+
/* @__PURE__ */ jsx6("h4", { className: "qt-card-title", children: "Clickable Card" }),
|
|
692
|
+
/* @__PURE__ */ jsx6("p", { className: "qt-card-description", children: "Hover over me to see the effect." })
|
|
527
693
|
] }),
|
|
528
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ jsx6("div", { className: "qt-card-body", children: /* @__PURE__ */ jsx6("p", { children: "This card has hover states and can be clicked." }) })
|
|
529
695
|
] })
|
|
530
696
|
] }),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
698
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Entity Cards" }),
|
|
699
|
+
/* @__PURE__ */ jsx6("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Used for characters, chats, and other list items." }),
|
|
700
|
+
/* @__PURE__ */ jsx6("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "1rem" }, children: ["Alice", "Bob", "Carol"].map((name) => /* @__PURE__ */ jsx6("div", { className: "qt-entity-card", children: /* @__PURE__ */ jsxs6("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem", padding: "1rem" }, children: [
|
|
701
|
+
/* @__PURE__ */ jsx6("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx6("div", { className: "qt-avatar-fallback", children: name[0] }) }),
|
|
702
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
703
|
+
/* @__PURE__ */ jsxs6("h4", { style: { fontWeight: 600 }, children: [
|
|
538
704
|
name,
|
|
539
705
|
" Character"
|
|
540
706
|
] }),
|
|
541
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ jsx6("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "A friendly character" })
|
|
542
708
|
] })
|
|
543
709
|
] }) }, name)) })
|
|
544
710
|
] }),
|
|
545
|
-
/* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
712
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Character Cards" }),
|
|
713
|
+
/* @__PURE__ */ jsx6("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Compact cards used on the homepage grid. Centered layout with avatar, name, title, provider badge, and action." }),
|
|
714
|
+
/* @__PURE__ */ jsx6("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, minmax(0, 140px))", gap: "0.75rem" }, children: [
|
|
549
715
|
{ name: "Alice", title: "The Adventurer", provider: "Claude Sonnet" },
|
|
550
716
|
{ name: "Bob", title: "The Keeper of Many Long Titles", provider: "GPT-4o" },
|
|
551
717
|
{ name: "Carol", title: "Scribe", provider: "Gemini Pro" }
|
|
552
|
-
].map((char) => /* @__PURE__ */
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
] }),
|
|
559
|
-
/* @__PURE__ */
|
|
718
|
+
].map((char) => /* @__PURE__ */ jsxs6("div", { className: "qt-character-card", children: [
|
|
719
|
+
/* @__PURE__ */ jsx6("div", { className: "qt-avatar", style: { width: "3rem", height: "3rem" }, children: /* @__PURE__ */ jsx6("div", { className: "qt-avatar-fallback", children: char.name[0] }) }),
|
|
720
|
+
/* @__PURE__ */ jsxs6("div", { style: { textAlign: "center", width: "100%", minWidth: 0 }, children: [
|
|
721
|
+
/* @__PURE__ */ jsx6("p", { className: "qt-card-title", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: char.name }),
|
|
722
|
+
/* @__PURE__ */ jsx6("p", { className: "qt-card-subtitle", style: { fontStyle: "italic", minHeight: "2.5rem" }, children: char.title }),
|
|
723
|
+
/* @__PURE__ */ jsx6("span", { style: { fontSize: "0.75rem", opacity: 0.6 }, children: char.provider })
|
|
724
|
+
] }),
|
|
725
|
+
/* @__PURE__ */ jsx6("button", { className: "qt-button-success qt-button-sm", style: { marginTop: "auto", width: "100%" }, children: "Chat" })
|
|
560
726
|
] }, char.name)) })
|
|
561
727
|
] }),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
/* @__PURE__ */
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
567
|
-
/* @__PURE__ */
|
|
568
|
-
] }),
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
] }),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
729
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Card Grid" }),
|
|
730
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card-grid-3", children: [
|
|
731
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card", style: { padding: "1rem" }, children: [
|
|
732
|
+
/* @__PURE__ */ jsx6("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Card 1" }),
|
|
733
|
+
/* @__PURE__ */ jsx6("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "Grid card content" })
|
|
734
|
+
] }),
|
|
735
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card", style: { padding: "1rem" }, children: [
|
|
736
|
+
/* @__PURE__ */ jsx6("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Card 2" }),
|
|
737
|
+
/* @__PURE__ */ jsx6("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "Grid card content" })
|
|
738
|
+
] }),
|
|
739
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-card", style: { padding: "1rem" }, children: [
|
|
740
|
+
/* @__PURE__ */ jsx6("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Card 3" }),
|
|
741
|
+
/* @__PURE__ */ jsx6("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "Grid card content" })
|
|
576
742
|
] })
|
|
577
743
|
] })
|
|
578
744
|
] }),
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
584
|
-
/* @__PURE__ */
|
|
585
|
-
] }),
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
745
|
+
/* @__PURE__ */ jsxs6("section", { style: { marginBottom: "2rem" }, children: [
|
|
746
|
+
/* @__PURE__ */ jsx6("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Panels" }),
|
|
747
|
+
/* @__PURE__ */ jsxs6("div", { style: { display: "flex", gap: "1rem", flexWrap: "wrap" }, children: [
|
|
748
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-panel", style: { padding: "1.5rem", maxWidth: "20rem" }, children: [
|
|
749
|
+
/* @__PURE__ */ jsx6("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Basic Panel" }),
|
|
750
|
+
/* @__PURE__ */ jsx6("p", { style: { color: "var(--color-muted-foreground)" }, children: "Panels are similar to cards but often used for larger content areas." })
|
|
751
|
+
] }),
|
|
752
|
+
/* @__PURE__ */ jsxs6("div", { className: "qt-panel qt-panel-elevated", style: { padding: "1.5rem", maxWidth: "20rem" }, children: [
|
|
753
|
+
/* @__PURE__ */ jsx6("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Elevated Panel" }),
|
|
754
|
+
/* @__PURE__ */ jsx6("p", { style: { color: "var(--color-muted-foreground)" }, children: "This panel has additional shadow for emphasis." })
|
|
589
755
|
] })
|
|
590
756
|
] })
|
|
591
757
|
] })
|
|
@@ -593,42 +759,42 @@ var Cards = () => {
|
|
|
593
759
|
};
|
|
594
760
|
|
|
595
761
|
// src/stories/components/Inputs.tsx
|
|
596
|
-
import { jsx as
|
|
762
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
597
763
|
var Inputs = () => {
|
|
598
|
-
return /* @__PURE__ */
|
|
599
|
-
/* @__PURE__ */
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */
|
|
606
|
-
] }),
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
] }),
|
|
612
|
-
/* @__PURE__ */
|
|
613
|
-
/* @__PURE__ */
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
] }),
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__PURE__ */
|
|
619
|
-
] }),
|
|
620
|
-
/* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
764
|
+
return /* @__PURE__ */ jsxs7("div", { style: { padding: "1.5rem" }, children: [
|
|
765
|
+
/* @__PURE__ */ jsx7("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Inputs" }),
|
|
766
|
+
/* @__PURE__ */ jsxs7("section", { style: { marginBottom: "2rem" }, children: [
|
|
767
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Text Inputs" }),
|
|
768
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "24rem" }, children: [
|
|
769
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
770
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Default" }),
|
|
771
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "text", placeholder: "Enter text..." })
|
|
772
|
+
] }),
|
|
773
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
774
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "With Hint" }),
|
|
775
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "text", placeholder: "Enter email..." }),
|
|
776
|
+
/* @__PURE__ */ jsx7("span", { className: "qt-hint", children: "We'll never share your email." })
|
|
777
|
+
] }),
|
|
778
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
779
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "With Value" }),
|
|
780
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "text", defaultValue: "Sample text" })
|
|
781
|
+
] }),
|
|
782
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
783
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Disabled" }),
|
|
784
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "text", placeholder: "Disabled input", disabled: true })
|
|
785
|
+
] }),
|
|
786
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
787
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "With Error" }),
|
|
788
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input qt-input-error", type: "text", placeholder: "Invalid input" }),
|
|
789
|
+
/* @__PURE__ */ jsx7("span", { className: "qt-hint", style: { color: "var(--color-destructive)" }, children: "This field is required." })
|
|
624
790
|
] })
|
|
625
791
|
] })
|
|
626
792
|
] }),
|
|
627
|
-
/* @__PURE__ */
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ jsxs7("section", { style: { marginBottom: "2rem" }, children: [
|
|
794
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Textarea" }),
|
|
795
|
+
/* @__PURE__ */ jsxs7("div", { style: { maxWidth: "24rem" }, children: [
|
|
796
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Message" }),
|
|
797
|
+
/* @__PURE__ */ jsx7(
|
|
632
798
|
"textarea",
|
|
633
799
|
{
|
|
634
800
|
className: "qt-input qt-textarea",
|
|
@@ -638,74 +804,74 @@ var Inputs = () => {
|
|
|
638
804
|
)
|
|
639
805
|
] })
|
|
640
806
|
] }),
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ jsxs7("section", { style: { marginBottom: "2rem" }, children: [
|
|
808
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Select" }),
|
|
809
|
+
/* @__PURE__ */ jsxs7("div", { style: { maxWidth: "24rem" }, children: [
|
|
810
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Choose an option" }),
|
|
811
|
+
/* @__PURE__ */ jsxs7("select", { className: "qt-input qt-select", children: [
|
|
812
|
+
/* @__PURE__ */ jsx7("option", { value: "", children: "Select an option..." }),
|
|
813
|
+
/* @__PURE__ */ jsx7("option", { value: "1", children: "Option 1" }),
|
|
814
|
+
/* @__PURE__ */ jsx7("option", { value: "2", children: "Option 2" }),
|
|
815
|
+
/* @__PURE__ */ jsx7("option", { value: "3", children: "Option 3" })
|
|
650
816
|
] })
|
|
651
817
|
] })
|
|
652
818
|
] }),
|
|
653
|
-
/* @__PURE__ */
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
/* @__PURE__ */
|
|
657
|
-
/* @__PURE__ */
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
-
] }),
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
] }),
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
] }),
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
] }),
|
|
672
|
-
/* @__PURE__ */
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ jsxs7("section", { style: { marginBottom: "2rem" }, children: [
|
|
820
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Checkboxes & Radios" }),
|
|
821
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem", maxWidth: "24rem" }, children: [
|
|
822
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
823
|
+
/* @__PURE__ */ jsx7("input", { type: "checkbox", id: "check1", className: "qt-checkbox" }),
|
|
824
|
+
/* @__PURE__ */ jsx7("label", { htmlFor: "check1", style: { margin: 0 }, children: "Checkbox option" })
|
|
825
|
+
] }),
|
|
826
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
827
|
+
/* @__PURE__ */ jsx7("input", { type: "checkbox", id: "check2", className: "qt-checkbox", defaultChecked: true }),
|
|
828
|
+
/* @__PURE__ */ jsx7("label", { htmlFor: "check2", style: { margin: 0 }, children: "Checked checkbox" })
|
|
829
|
+
] }),
|
|
830
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
831
|
+
/* @__PURE__ */ jsx7("input", { type: "checkbox", id: "check3", className: "qt-checkbox", disabled: true }),
|
|
832
|
+
/* @__PURE__ */ jsx7("label", { htmlFor: "check3", style: { margin: 0, color: "var(--color-muted-foreground)" }, children: "Disabled checkbox" })
|
|
833
|
+
] }),
|
|
834
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginTop: "0.5rem" }, children: [
|
|
835
|
+
/* @__PURE__ */ jsx7("input", { type: "radio", name: "radio", id: "radio1", className: "qt-radio" }),
|
|
836
|
+
/* @__PURE__ */ jsx7("label", { htmlFor: "radio1", style: { margin: 0 }, children: "Radio option 1" })
|
|
837
|
+
] }),
|
|
838
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
839
|
+
/* @__PURE__ */ jsx7("input", { type: "radio", name: "radio", id: "radio2", className: "qt-radio", defaultChecked: true }),
|
|
840
|
+
/* @__PURE__ */ jsx7("label", { htmlFor: "radio2", style: { margin: 0 }, children: "Radio option 2" })
|
|
675
841
|
] })
|
|
676
842
|
] })
|
|
677
843
|
] }),
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ jsxs7("section", { style: { marginBottom: "2rem" }, children: [
|
|
845
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Links" }),
|
|
846
|
+
/* @__PURE__ */ jsxs7("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
847
|
+
/* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7("a", { href: "#", className: "qt-link", children: "Default link" }) }),
|
|
848
|
+
/* @__PURE__ */ jsx7("div", { children: /* @__PURE__ */ jsx7("a", { href: "#", className: "qt-link-subtle", children: "Subtle link" }) })
|
|
683
849
|
] })
|
|
684
850
|
] }),
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
688
|
-
/* @__PURE__ */
|
|
689
|
-
/* @__PURE__ */
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
] }),
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ jsxs7("section", { children: [
|
|
852
|
+
/* @__PURE__ */ jsx7("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Form Example" }),
|
|
853
|
+
/* @__PURE__ */ jsxs7("div", { className: "qt-card", style: { maxWidth: "24rem" }, children: [
|
|
854
|
+
/* @__PURE__ */ jsxs7("div", { className: "qt-card-header", children: [
|
|
855
|
+
/* @__PURE__ */ jsx7("h4", { className: "qt-card-title", children: "Contact Form" }),
|
|
856
|
+
/* @__PURE__ */ jsx7("p", { className: "qt-card-description", children: "Fill out the form below." })
|
|
857
|
+
] }),
|
|
858
|
+
/* @__PURE__ */ jsxs7("div", { className: "qt-card-body", style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
859
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
860
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Name" }),
|
|
861
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "text", placeholder: "Your name" })
|
|
696
862
|
] }),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
864
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Email" }),
|
|
865
|
+
/* @__PURE__ */ jsx7("input", { className: "qt-input", type: "email", placeholder: "you@example.com" })
|
|
700
866
|
] }),
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
868
|
+
/* @__PURE__ */ jsx7("label", { className: "qt-label", children: "Message" }),
|
|
869
|
+
/* @__PURE__ */ jsx7("textarea", { className: "qt-input qt-textarea", placeholder: "Your message...", style: { minHeight: "5rem" } })
|
|
704
870
|
] })
|
|
705
871
|
] }),
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ jsxs7("div", { className: "qt-card-footer", children: [
|
|
873
|
+
/* @__PURE__ */ jsx7("button", { className: "qt-button qt-button-ghost", children: "Cancel" }),
|
|
874
|
+
/* @__PURE__ */ jsx7("button", { className: "qt-button qt-button-primary", children: "Send" })
|
|
709
875
|
] })
|
|
710
876
|
] })
|
|
711
877
|
] })
|
|
@@ -713,141 +879,141 @@ var Inputs = () => {
|
|
|
713
879
|
};
|
|
714
880
|
|
|
715
881
|
// src/stories/components/Badges.tsx
|
|
716
|
-
import { jsx as
|
|
882
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
717
883
|
var Badges = () => {
|
|
718
|
-
return /* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
-
/* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
-
/* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ jsxs8("div", { style: { padding: "1.5rem" }, children: [
|
|
885
|
+
/* @__PURE__ */ jsx8("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Badges" }),
|
|
886
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
887
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Badge Variants" }),
|
|
888
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
889
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-default", children: "Default" }),
|
|
890
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-primary", children: "Primary" }),
|
|
891
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-secondary", children: "Secondary" }),
|
|
892
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-success", children: "Success" }),
|
|
893
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-warning", children: "Warning" }),
|
|
894
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-destructive", children: "Destructive" })
|
|
729
895
|
] })
|
|
730
896
|
] }),
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
/* @__PURE__ */
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
-
/* @__PURE__ */
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
897
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
898
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Outline Badges" }),
|
|
899
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
900
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline", children: "Outline" }),
|
|
901
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline-primary", children: "Primary" }),
|
|
902
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline-success", children: "Success" }),
|
|
903
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline-warning", children: "Warning" }),
|
|
904
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline-destructive", children: "Destructive" })
|
|
739
905
|
] })
|
|
740
906
|
] }),
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
908
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Provider Badges" }),
|
|
909
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Used to identify AI provider sources." }),
|
|
910
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
911
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-provider-openai", children: "OpenAI" }),
|
|
912
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-provider-anthropic", children: "Anthropic" }),
|
|
913
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-provider-google", children: "Google" }),
|
|
914
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-provider-openrouter", children: "OpenRouter" })
|
|
749
915
|
] })
|
|
750
916
|
] }),
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
918
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Badges with Icons" }),
|
|
919
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
920
|
+
/* @__PURE__ */ jsxs8("span", { className: "qt-badge qt-badge-success", style: { display: "inline-flex", alignItems: "center", gap: "0.25rem" }, children: [
|
|
921
|
+
/* @__PURE__ */ jsx8("svg", { width: "12", height: "12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }),
|
|
756
922
|
"Complete"
|
|
757
923
|
] }),
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ jsxs8("span", { className: "qt-badge qt-badge-warning", style: { display: "inline-flex", alignItems: "center", gap: "0.25rem" }, children: [
|
|
925
|
+
/* @__PURE__ */ jsx8("svg", { width: "12", height: "12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, 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" }) }),
|
|
760
926
|
"Warning"
|
|
761
927
|
] }),
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ jsxs8("span", { className: "qt-badge qt-badge-destructive", style: { display: "inline-flex", alignItems: "center", gap: "0.25rem" }, children: [
|
|
929
|
+
/* @__PURE__ */ jsx8("svg", { width: "12", height: "12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }),
|
|
764
930
|
"Error"
|
|
765
931
|
] })
|
|
766
932
|
] })
|
|
767
933
|
] }),
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
/* @__PURE__ */
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
/* @__PURE__ */
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
935
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Entity Type Badges" }),
|
|
936
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
937
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-character", children: "Character" }),
|
|
938
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-user-character", children: "User Character" }),
|
|
939
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-chat", children: "Chat" }),
|
|
940
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-tag", children: "Tag" }),
|
|
941
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-memory", children: "Memory" })
|
|
776
942
|
] })
|
|
777
943
|
] }),
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
945
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "State Badges" }),
|
|
946
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
947
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-enabled", children: "Enabled" }),
|
|
948
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-disabled", children: "Disabled" }),
|
|
949
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-related", children: "Related" }),
|
|
950
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-manual", children: "Manual" }),
|
|
951
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-auto", children: "Auto" })
|
|
786
952
|
] })
|
|
787
953
|
] }),
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
955
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Plugin Source Badges" }),
|
|
956
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
957
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-source-included", children: "Included" }),
|
|
958
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-source-npm", children: "NPM" }),
|
|
959
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-source-git", children: "Git" }),
|
|
960
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-source-manual", children: "Manual" })
|
|
795
961
|
] })
|
|
796
962
|
] }),
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
/* @__PURE__ */
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
/* @__PURE__ */
|
|
963
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
964
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Tag Badges" }),
|
|
965
|
+
/* @__PURE__ */ jsxs8("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
966
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "0.75rem", fontSize: "0.875rem" }, children: "Basic tags" }),
|
|
967
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
968
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-tag-badge", children: "Fantasy" }),
|
|
969
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-tag-badge", children: "Sci-Fi" }),
|
|
970
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-tag-badge", children: "Romance" })
|
|
805
971
|
] })
|
|
806
972
|
] }),
|
|
807
|
-
/* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
973
|
+
/* @__PURE__ */ jsxs8("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
974
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "0.75rem", fontSize: "0.875rem" }, children: "Emoji tag" }),
|
|
975
|
+
/* @__PURE__ */ jsx8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: /* @__PURE__ */ jsx8("span", { className: "qt-tag-badge qt-tag-badge-emoji", children: "Adventure" }) })
|
|
810
976
|
] }),
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */
|
|
813
|
-
/* @__PURE__ */
|
|
977
|
+
/* @__PURE__ */ jsxs8("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
978
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "0.75rem", fontSize: "0.875rem" }, children: "Removable tag" }),
|
|
979
|
+
/* @__PURE__ */ jsx8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: /* @__PURE__ */ jsxs8("span", { className: "qt-tag-badge", children: [
|
|
814
980
|
"Fantasy",
|
|
815
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ jsx8("button", { className: "qt-tag-badge-remove", children: "\xD7" })
|
|
816
982
|
] }) })
|
|
817
983
|
] }),
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ jsxs8("div", { children: [
|
|
985
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "0.75rem", fontSize: "0.875rem" }, children: "Small tags in card context" }),
|
|
986
|
+
/* @__PURE__ */ jsx8("div", { className: "qt-card", style: { maxWidth: "24rem" }, children: /* @__PURE__ */ jsx8("div", { className: "qt-card-body", children: /* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
|
|
987
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-tag-badge qt-tag-badge-sm", children: "Fantasy" }),
|
|
988
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-tag-badge qt-tag-badge-sm", children: "Sci-Fi" })
|
|
823
989
|
] }) }) })
|
|
824
990
|
] })
|
|
825
991
|
] }),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ jsxs8("section", { style: { marginBottom: "2rem" }, children: [
|
|
993
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Participant Status Badges" }),
|
|
994
|
+
/* @__PURE__ */ jsx8("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "0.75rem", fontSize: "0.875rem" }, children: "Status indicators shown on participant cards for silent and absent characters." }),
|
|
995
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", alignItems: "center" }, children: [
|
|
996
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge-silent", children: "Silent" }),
|
|
997
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge-absent", children: "Absent" })
|
|
832
998
|
] })
|
|
833
999
|
] }),
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ jsxs8("section", { children: [
|
|
1001
|
+
/* @__PURE__ */ jsx8("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Usage Examples" }),
|
|
1002
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1003
|
+
/* @__PURE__ */ jsx8("div", { className: "qt-card", style: { maxWidth: "24rem" }, children: /* @__PURE__ */ jsxs8("div", { className: "qt-card-header", children: [
|
|
1004
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1005
|
+
/* @__PURE__ */ jsx8("h4", { className: "qt-card-title", children: "Feature Name" }),
|
|
1006
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-success", children: "Active" })
|
|
841
1007
|
] }),
|
|
842
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ jsx8("p", { className: "qt-card-description", children: "With status badge" })
|
|
843
1009
|
] }) }),
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1011
|
+
/* @__PURE__ */ jsx8("span", { style: { fontWeight: 500 }, children: "Notifications" }),
|
|
1012
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-primary", style: { borderRadius: "9999px", minWidth: "1.25rem", textAlign: "center" }, children: "5" })
|
|
847
1013
|
] }),
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */
|
|
1014
|
+
/* @__PURE__ */ jsxs8("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1015
|
+
/* @__PURE__ */ jsx8("span", { style: { fontWeight: 500 }, children: "Version" }),
|
|
1016
|
+
/* @__PURE__ */ jsx8("span", { className: "qt-badge qt-badge-outline", children: "v2.5.0" })
|
|
851
1017
|
] })
|
|
852
1018
|
] })
|
|
853
1019
|
] })
|
|
@@ -855,74 +1021,74 @@ var Badges = () => {
|
|
|
855
1021
|
};
|
|
856
1022
|
|
|
857
1023
|
// src/stories/components/Avatars.tsx
|
|
858
|
-
import { jsx as
|
|
1024
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
859
1025
|
var Avatars = () => {
|
|
860
|
-
return /* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ jsxs9("div", { style: { padding: "1.5rem" }, children: [
|
|
1027
|
+
/* @__PURE__ */ jsx9("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Avatars" }),
|
|
1028
|
+
/* @__PURE__ */ jsxs9("section", { style: { marginBottom: "2rem" }, children: [
|
|
1029
|
+
/* @__PURE__ */ jsx9("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Sizes" }),
|
|
1030
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1031
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "SM" }) }),
|
|
1032
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "MD" }) }),
|
|
1033
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar qt-avatar-lg", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "LG" }) }),
|
|
1034
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar qt-avatar-xl", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "XL" }) })
|
|
869
1035
|
] })
|
|
870
1036
|
] }),
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ jsxs9("section", { style: { marginBottom: "2rem" }, children: [
|
|
1038
|
+
/* @__PURE__ */ jsx9("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar with Images" }),
|
|
1039
|
+
/* @__PURE__ */ jsx9("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Avatars gracefully fall back to initials when image is unavailable." }),
|
|
1040
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1041
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "AB" }) }),
|
|
1042
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "CD" }) }),
|
|
1043
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "EF" }) })
|
|
878
1044
|
] })
|
|
879
1045
|
] }),
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
/* @__PURE__ */
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
/* @__PURE__ */
|
|
886
|
-
] }),
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
889
|
-
/* @__PURE__ */
|
|
890
|
-
] }),
|
|
891
|
-
/* @__PURE__ */
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ jsxs9("section", { style: { marginBottom: "2rem" }, children: [
|
|
1047
|
+
/* @__PURE__ */ jsx9("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Shapes" }),
|
|
1048
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1049
|
+
/* @__PURE__ */ jsxs9("div", { children: [
|
|
1050
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", style: { borderRadius: "9999px" }, children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "CR" }) }),
|
|
1051
|
+
/* @__PURE__ */ jsx9("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Circle" })
|
|
1052
|
+
] }),
|
|
1053
|
+
/* @__PURE__ */ jsxs9("div", { children: [
|
|
1054
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", style: { borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "RD" }) }),
|
|
1055
|
+
/* @__PURE__ */ jsx9("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Rounded" })
|
|
1056
|
+
] }),
|
|
1057
|
+
/* @__PURE__ */ jsxs9("div", { children: [
|
|
1058
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", style: { borderRadius: "var(--radius-sm)" }, children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "SQ" }) }),
|
|
1059
|
+
/* @__PURE__ */ jsx9("p", { style: { marginTop: "0.5rem", fontSize: "0.75rem", color: "var(--color-muted-foreground)", textAlign: "center" }, children: "Square" })
|
|
894
1060
|
] })
|
|
895
1061
|
] })
|
|
896
1062
|
] }),
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
-
/* @__PURE__ */
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */
|
|
1063
|
+
/* @__PURE__ */ jsxs9("section", { style: { marginBottom: "2rem" }, children: [
|
|
1064
|
+
/* @__PURE__ */ jsx9("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Avatar Groups" }),
|
|
1065
|
+
/* @__PURE__ */ jsxs9("div", { className: "qt-avatar-group", children: [
|
|
1066
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1067
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "B" }) }),
|
|
1068
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "C" }) }),
|
|
1069
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "D" }) }),
|
|
1070
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "+3" }) })
|
|
905
1071
|
] })
|
|
906
1072
|
] }),
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
/* @__PURE__ */
|
|
910
|
-
/* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ jsxs9("section", { children: [
|
|
1074
|
+
/* @__PURE__ */ jsx9("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Usage in Context" }),
|
|
1075
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1076
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem", padding: "0.75rem", backgroundColor: "var(--color-muted)", borderRadius: "var(--radius-lg)" }, children: [
|
|
1077
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "JD" }) }),
|
|
1078
|
+
/* @__PURE__ */ jsxs9("div", { style: { flex: 1 }, children: [
|
|
1079
|
+
/* @__PURE__ */ jsx9("div", { style: { fontWeight: 600 }, children: "John Doe" }),
|
|
1080
|
+
/* @__PURE__ */ jsx9("div", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "john@example.com" })
|
|
915
1081
|
] }),
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
] }),
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
/* @__PURE__ */
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */
|
|
1082
|
+
/* @__PURE__ */ jsx9("span", { className: "qt-badge qt-badge-success", children: "Active" })
|
|
1083
|
+
] }),
|
|
1084
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", gap: "0.75rem" }, children: [
|
|
1085
|
+
/* @__PURE__ */ jsx9("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx9("div", { className: "qt-avatar-fallback", children: "SM" }) }),
|
|
1086
|
+
/* @__PURE__ */ jsxs9("div", { style: { flex: 1 }, children: [
|
|
1087
|
+
/* @__PURE__ */ jsxs9("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1088
|
+
/* @__PURE__ */ jsx9("span", { style: { fontWeight: 600, fontSize: "0.875rem" }, children: "Sarah Miller" }),
|
|
1089
|
+
/* @__PURE__ */ jsx9("span", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "2 hours ago" })
|
|
924
1090
|
] }),
|
|
925
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ jsx9("p", { style: { fontSize: "0.875rem", marginTop: "0.25rem" }, children: "This is a sample comment with an avatar." })
|
|
926
1092
|
] })
|
|
927
1093
|
] })
|
|
928
1094
|
] })
|
|
@@ -932,131 +1098,131 @@ var Avatars = () => {
|
|
|
932
1098
|
|
|
933
1099
|
// src/stories/components/Dialogs.tsx
|
|
934
1100
|
import { useState } from "react";
|
|
935
|
-
import { jsx as
|
|
1101
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
936
1102
|
var Dialogs = () => {
|
|
937
1103
|
const [basicOpen, setBasicOpen] = useState(false);
|
|
938
1104
|
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
939
1105
|
const [formOpen, setFormOpen] = useState(false);
|
|
940
|
-
return /* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
/* @__PURE__ */
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
949
|
-
] })
|
|
950
|
-
] }),
|
|
951
|
-
basicOpen && /* @__PURE__ */
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
/* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ jsxs10("div", { style: { padding: "1.5rem" }, children: [
|
|
1107
|
+
/* @__PURE__ */ jsx10("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Dialogs & Modals" }),
|
|
1108
|
+
/* @__PURE__ */ jsxs10("section", { style: { marginBottom: "2rem" }, children: [
|
|
1109
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Examples" }),
|
|
1110
|
+
/* @__PURE__ */ jsx10("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Click the buttons below to open different dialog types." }),
|
|
1111
|
+
/* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem" }, children: [
|
|
1112
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-secondary", onClick: () => setBasicOpen(true), children: "Basic Dialog" }),
|
|
1113
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-destructive", onClick: () => setConfirmOpen(true), children: "Confirmation Dialog" }),
|
|
1114
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-primary", onClick: () => setFormOpen(true), children: "Form Dialog" })
|
|
1115
|
+
] })
|
|
1116
|
+
] }),
|
|
1117
|
+
basicOpen && /* @__PURE__ */ jsx10("div", { className: "qt-dialog-overlay", onClick: () => setBasicOpen(false), children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), children: [
|
|
1118
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-header", children: [
|
|
1119
|
+
/* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Basic Dialog" }),
|
|
1120
|
+
/* @__PURE__ */ jsx10("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." }),
|
|
1121
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button-icon", onClick: () => setBasicOpen(false), "aria-label": "Close", children: /* @__PURE__ */ jsx10("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx10("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
956
1122
|
] }),
|
|
957
|
-
/* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsx10("p", { children: "Dialog content area with additional details and information." }) }),
|
|
1124
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-footer", children: /* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-primary", onClick: () => setBasicOpen(false), children: "Got it" }) })
|
|
959
1125
|
] }) }),
|
|
960
|
-
confirmOpen && /* @__PURE__ */
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
/* @__PURE__ */
|
|
1126
|
+
confirmOpen && /* @__PURE__ */ jsx10("div", { className: "qt-dialog-overlay", onClick: () => setConfirmOpen(false), children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), children: [
|
|
1127
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-header", children: [
|
|
1128
|
+
/* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Delete Item?" }),
|
|
1129
|
+
/* @__PURE__ */ jsx10("p", { className: "qt-dialog-description", children: "Are you sure you want to delete this item? This action cannot be undone." }),
|
|
1130
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button-icon", onClick: () => setConfirmOpen(false), "aria-label": "Close", children: /* @__PURE__ */ jsx10("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx10("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
965
1131
|
] }),
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsx10("p", { children: "This will remove the item from your collection permanently." }) }),
|
|
1133
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-footer", children: [
|
|
1134
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-ghost", onClick: () => setConfirmOpen(false), children: "Cancel" }),
|
|
1135
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-destructive", onClick: () => setConfirmOpen(false), children: "Delete" })
|
|
970
1136
|
] })
|
|
971
1137
|
] }) }),
|
|
972
|
-
formOpen && /* @__PURE__ */
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
-
/* @__PURE__ */
|
|
975
|
-
/* @__PURE__ */
|
|
976
|
-
/* @__PURE__ */
|
|
1138
|
+
formOpen && /* @__PURE__ */ jsx10("div", { className: "qt-dialog-overlay", onClick: () => setFormOpen(false), children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog", onClick: (e) => e.stopPropagation(), style: { maxWidth: "28rem" }, children: [
|
|
1139
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-header", children: [
|
|
1140
|
+
/* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Create New Item" }),
|
|
1141
|
+
/* @__PURE__ */ jsx10("p", { className: "qt-dialog-description", children: "Fill in the details below to create a new item." }),
|
|
1142
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button-icon", onClick: () => setFormOpen(false), "aria-label": "Close", children: /* @__PURE__ */ jsx10("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx10("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
977
1143
|
] }),
|
|
978
|
-
/* @__PURE__ */
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
] }),
|
|
983
|
-
/* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
] }),
|
|
987
|
-
/* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
/* @__PURE__ */
|
|
993
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1145
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1146
|
+
/* @__PURE__ */ jsx10("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Name" }),
|
|
1147
|
+
/* @__PURE__ */ jsx10("input", { className: "qt-input", type: "text", placeholder: "Enter name..." })
|
|
1148
|
+
] }),
|
|
1149
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1150
|
+
/* @__PURE__ */ jsx10("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Description" }),
|
|
1151
|
+
/* @__PURE__ */ jsx10("textarea", { className: "qt-input qt-textarea", placeholder: "Enter description...", style: { minHeight: "5rem" } })
|
|
1152
|
+
] }),
|
|
1153
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1154
|
+
/* @__PURE__ */ jsx10("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Category" }),
|
|
1155
|
+
/* @__PURE__ */ jsxs10("select", { className: "qt-input qt-select", children: [
|
|
1156
|
+
/* @__PURE__ */ jsx10("option", { value: "", children: "Select category..." }),
|
|
1157
|
+
/* @__PURE__ */ jsx10("option", { value: "1", children: "Category 1" }),
|
|
1158
|
+
/* @__PURE__ */ jsx10("option", { value: "2", children: "Category 2" }),
|
|
1159
|
+
/* @__PURE__ */ jsx10("option", { value: "3", children: "Category 3" })
|
|
994
1160
|
] })
|
|
995
1161
|
] })
|
|
996
1162
|
] }) }),
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
1163
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-footer", children: [
|
|
1164
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-ghost", onClick: () => setFormOpen(false), children: "Cancel" }),
|
|
1165
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-primary", onClick: () => setFormOpen(false), children: "Create" })
|
|
1000
1166
|
] })
|
|
1001
1167
|
] }) }),
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
/* @__PURE__ */
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
/* @__PURE__ */
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
] }),
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ jsxs10("section", { style: { marginBottom: "2rem" }, children: [
|
|
1169
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Structure (Static Preview)" }),
|
|
1170
|
+
/* @__PURE__ */ jsx10("div", { style: { backgroundColor: "var(--color-muted)", padding: "2rem", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog", style: { position: "relative", transform: "none", margin: "0 auto" }, children: [
|
|
1171
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-header", children: [
|
|
1172
|
+
/* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Dialog Title" }),
|
|
1173
|
+
/* @__PURE__ */ jsx10("p", { className: "qt-dialog-description", children: "This is a dialog with a title and description." }),
|
|
1174
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button-icon", "aria-label": "Close", children: /* @__PURE__ */ jsx10("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx10("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
1175
|
+
] }),
|
|
1176
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsx10("p", { children: "Dialog content area. This can contain text, forms, or any other content." }) }),
|
|
1177
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dialog-footer", children: [
|
|
1178
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-ghost", children: "Secondary Action" }),
|
|
1179
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-primary", children: "Primary Action" })
|
|
1014
1180
|
] })
|
|
1015
1181
|
] }) })
|
|
1016
1182
|
] }),
|
|
1017
|
-
/* @__PURE__ */
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ jsxs10("section", { children: [
|
|
1184
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dialog Sizes" }),
|
|
1185
|
+
/* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
1186
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1187
|
+
/* @__PURE__ */ jsx10("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--color-muted-foreground)" }, children: "Small (max-width: 24rem)" }),
|
|
1188
|
+
/* @__PURE__ */ jsx10("div", { style: { backgroundColor: "var(--color-muted)", padding: "1rem", borderRadius: "var(--radius-lg)", marginTop: "0.5rem" }, children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog", style: { position: "relative", transform: "none", margin: 0, maxWidth: "24rem" }, children: [
|
|
1189
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-header", children: /* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Small Dialog" }) }),
|
|
1190
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsx10("p", { children: "Compact dialog for simple confirmations." }) })
|
|
1025
1191
|
] }) })
|
|
1026
1192
|
] }),
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
1194
|
+
/* @__PURE__ */ jsx10("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--color-muted-foreground)" }, children: "Large (max-width: 42rem)" }),
|
|
1195
|
+
/* @__PURE__ */ jsx10("div", { style: { backgroundColor: "var(--color-muted)", padding: "1rem", borderRadius: "var(--radius-lg)", marginTop: "0.5rem" }, children: /* @__PURE__ */ jsxs10("div", { className: "qt-dialog qt-dialog-wide", style: { position: "relative", transform: "none", margin: 0, maxWidth: "42rem" }, children: [
|
|
1196
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-header", children: /* @__PURE__ */ jsx10("h3", { className: "qt-dialog-title", children: "Large Dialog" }) }),
|
|
1197
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dialog-body", children: /* @__PURE__ */ jsx10("p", { children: "Larger dialog for complex forms or detailed content that needs more space." }) })
|
|
1032
1198
|
] }) })
|
|
1033
1199
|
] })
|
|
1034
1200
|
] })
|
|
1035
1201
|
] }),
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1202
|
+
/* @__PURE__ */ jsxs10("section", { style: { marginBottom: "2rem" }, children: [
|
|
1203
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Popover" }),
|
|
1204
|
+
/* @__PURE__ */ jsxs10("div", { style: { position: "relative", display: "inline-block", marginTop: "2rem" }, children: [
|
|
1205
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-secondary", children: "Hover for popover" }),
|
|
1206
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-popover", style: { position: "absolute", left: 0, top: "100%", marginTop: "0.5rem", display: "block" }, children: /* @__PURE__ */ jsxs10("div", { style: { padding: "0.75rem" }, children: [
|
|
1207
|
+
/* @__PURE__ */ jsx10("p", { style: { fontWeight: 600, marginBottom: "0.25rem" }, children: "Popover Title" }),
|
|
1208
|
+
/* @__PURE__ */ jsx10("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: "This is popover content that provides additional context." })
|
|
1043
1209
|
] }) })
|
|
1044
1210
|
] })
|
|
1045
1211
|
] }),
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ jsxs10("section", { style: { marginBottom: "2rem" }, children: [
|
|
1213
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Dropdown Menu" }),
|
|
1214
|
+
/* @__PURE__ */ jsxs10("div", { className: "qt-dropdown", style: { display: "inline-block", position: "relative" }, children: [
|
|
1215
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dropdown-item", children: "Profile" }),
|
|
1216
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dropdown-item", children: "Settings" }),
|
|
1217
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dropdown-separator" }),
|
|
1218
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-dropdown-item", style: { color: "var(--color-destructive)" }, children: "Sign Out" })
|
|
1053
1219
|
] })
|
|
1054
1220
|
] }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ jsxs10("section", { children: [
|
|
1222
|
+
/* @__PURE__ */ jsx10("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Tooltip" }),
|
|
1223
|
+
/* @__PURE__ */ jsx10("div", { style: { display: "flex", alignItems: "center", gap: "2rem" }, children: /* @__PURE__ */ jsxs10("div", { style: { position: "relative", display: "inline-block", marginTop: "2rem" }, children: [
|
|
1224
|
+
/* @__PURE__ */ jsx10("button", { className: "qt-button qt-button-secondary", children: "Hover me" }),
|
|
1225
|
+
/* @__PURE__ */ jsx10("div", { className: "qt-tooltip", style: { position: "absolute", left: "50%", transform: "translateX(-50%)", bottom: "100%", marginBottom: "0.5rem", display: "block" }, children: "Helpful tooltip text" })
|
|
1060
1226
|
] }) })
|
|
1061
1227
|
] })
|
|
1062
1228
|
] });
|
|
@@ -1064,15 +1230,15 @@ var Dialogs = () => {
|
|
|
1064
1230
|
|
|
1065
1231
|
// src/stories/components/Tabs.tsx
|
|
1066
1232
|
import { useState as useState2 } from "react";
|
|
1067
|
-
import { jsx as
|
|
1233
|
+
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1068
1234
|
var Tabs = () => {
|
|
1069
1235
|
const [activeTab, setActiveTab] = useState2("tab1");
|
|
1070
|
-
return /* @__PURE__ */
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */
|
|
1075
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ jsxs11("div", { style: { padding: "1.5rem" }, children: [
|
|
1237
|
+
/* @__PURE__ */ jsx11("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Tabs & Navigation" }),
|
|
1238
|
+
/* @__PURE__ */ jsxs11("section", { style: { marginBottom: "2rem" }, children: [
|
|
1239
|
+
/* @__PURE__ */ jsx11("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Basic Tabs" }),
|
|
1240
|
+
/* @__PURE__ */ jsxs11("div", { className: "qt-tab-group", children: [
|
|
1241
|
+
/* @__PURE__ */ jsx11(
|
|
1076
1242
|
"button",
|
|
1077
1243
|
{
|
|
1078
1244
|
className: `qt-tab ${activeTab === "tab1" ? "qt-tab-active" : ""}`,
|
|
@@ -1080,7 +1246,7 @@ var Tabs = () => {
|
|
|
1080
1246
|
children: "Account"
|
|
1081
1247
|
}
|
|
1082
1248
|
),
|
|
1083
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ jsx11(
|
|
1084
1250
|
"button",
|
|
1085
1251
|
{
|
|
1086
1252
|
className: `qt-tab ${activeTab === "tab2" ? "qt-tab-active" : ""}`,
|
|
@@ -1088,7 +1254,7 @@ var Tabs = () => {
|
|
|
1088
1254
|
children: "Settings"
|
|
1089
1255
|
}
|
|
1090
1256
|
),
|
|
1091
|
-
/* @__PURE__ */
|
|
1257
|
+
/* @__PURE__ */ jsx11(
|
|
1092
1258
|
"button",
|
|
1093
1259
|
{
|
|
1094
1260
|
className: `qt-tab ${activeTab === "tab3" ? "qt-tab-active" : ""}`,
|
|
@@ -1097,56 +1263,56 @@ var Tabs = () => {
|
|
|
1097
1263
|
}
|
|
1098
1264
|
)
|
|
1099
1265
|
] }),
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
activeTab === "tab1" && /* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
] }),
|
|
1105
|
-
activeTab === "tab2" && /* @__PURE__ */
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
] }),
|
|
1109
|
-
activeTab === "tab3" && /* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ jsxs11("div", { children: [
|
|
1267
|
+
activeTab === "tab1" && /* @__PURE__ */ jsxs11("div", { className: "qt-tab-content", children: [
|
|
1268
|
+
/* @__PURE__ */ jsx11("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Account Settings" }),
|
|
1269
|
+
/* @__PURE__ */ jsx11("p", { style: { color: "var(--color-muted-foreground)" }, children: "Manage your account settings and preferences." })
|
|
1270
|
+
] }),
|
|
1271
|
+
activeTab === "tab2" && /* @__PURE__ */ jsxs11("div", { className: "qt-tab-content", children: [
|
|
1272
|
+
/* @__PURE__ */ jsx11("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "General Settings" }),
|
|
1273
|
+
/* @__PURE__ */ jsx11("p", { style: { color: "var(--color-muted-foreground)" }, children: "Configure general application settings." })
|
|
1274
|
+
] }),
|
|
1275
|
+
activeTab === "tab3" && /* @__PURE__ */ jsxs11("div", { className: "qt-tab-content", children: [
|
|
1276
|
+
/* @__PURE__ */ jsx11("h4", { style: { fontWeight: 600, marginBottom: "0.5rem" }, children: "Notification Preferences" }),
|
|
1277
|
+
/* @__PURE__ */ jsx11("p", { style: { color: "var(--color-muted-foreground)" }, children: "Choose how you want to receive notifications." })
|
|
1112
1278
|
] })
|
|
1113
1279
|
] })
|
|
1114
1280
|
] }),
|
|
1115
|
-
/* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1119
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ jsxs11("section", { style: { marginBottom: "2rem" }, children: [
|
|
1282
|
+
/* @__PURE__ */ jsx11("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Tabs with Icons" }),
|
|
1283
|
+
/* @__PURE__ */ jsxs11("div", { className: "qt-tab-group", children: [
|
|
1284
|
+
/* @__PURE__ */ jsxs11("button", { className: "qt-tab qt-tab-active", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1285
|
+
/* @__PURE__ */ jsx11("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx11("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" }) }),
|
|
1120
1286
|
"Home"
|
|
1121
1287
|
] }),
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
1288
|
+
/* @__PURE__ */ jsxs11("button", { className: "qt-tab", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1289
|
+
/* @__PURE__ */ jsx11("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx11("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" }) }),
|
|
1124
1290
|
"Profile"
|
|
1125
1291
|
] }),
|
|
1126
|
-
/* @__PURE__ */
|
|
1127
|
-
/* @__PURE__ */
|
|
1128
|
-
/* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsxs11("button", { className: "qt-tab", style: { display: "inline-flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1293
|
+
/* @__PURE__ */ jsxs11("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1294
|
+
/* @__PURE__ */ jsx11("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" }),
|
|
1295
|
+
/* @__PURE__ */ jsx11("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1130
1296
|
] }),
|
|
1131
1297
|
"Settings"
|
|
1132
1298
|
] })
|
|
1133
1299
|
] })
|
|
1134
1300
|
] }),
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
/* @__PURE__ */
|
|
1142
|
-
/* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ jsxs11("section", { children: [
|
|
1302
|
+
/* @__PURE__ */ jsx11("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Navigation Bar" }),
|
|
1303
|
+
/* @__PURE__ */ jsxs11("div", { className: "qt-navbar", children: [
|
|
1304
|
+
/* @__PURE__ */ jsxs11("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1305
|
+
/* @__PURE__ */ jsx11("div", { style: { fontWeight: 700, fontSize: "1.125rem" }, children: "Quilltap" }),
|
|
1306
|
+
/* @__PURE__ */ jsxs11("nav", { style: { display: "flex", gap: "0.25rem" }, children: [
|
|
1307
|
+
/* @__PURE__ */ jsx11("a", { href: "#", className: "qt-navbar-link qt-navbar-link-active", children: "Dashboard" }),
|
|
1308
|
+
/* @__PURE__ */ jsx11("a", { href: "#", className: "qt-navbar-link", children: "Characters" }),
|
|
1309
|
+
/* @__PURE__ */ jsx11("a", { href: "#", className: "qt-navbar-link", children: "Chats" }),
|
|
1310
|
+
/* @__PURE__ */ jsx11("a", { href: "#", className: "qt-navbar-link", children: "Settings" })
|
|
1145
1311
|
] })
|
|
1146
1312
|
] }),
|
|
1147
|
-
/* @__PURE__ */
|
|
1148
|
-
/* @__PURE__ */
|
|
1149
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ jsxs11("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
1314
|
+
/* @__PURE__ */ jsx11("button", { className: "qt-button-icon", "aria-label": "Notifications", children: /* @__PURE__ */ jsx11("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx11("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" }) }) }),
|
|
1315
|
+
/* @__PURE__ */ jsx11("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx11("div", { className: "qt-avatar-fallback", children: "U" }) })
|
|
1150
1316
|
] })
|
|
1151
1317
|
] })
|
|
1152
1318
|
] })
|
|
@@ -1154,215 +1320,215 @@ var Tabs = () => {
|
|
|
1154
1320
|
};
|
|
1155
1321
|
|
|
1156
1322
|
// src/stories/components/Chat.tsx
|
|
1157
|
-
import { jsx as
|
|
1323
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1158
1324
|
var Chat = () => {
|
|
1159
|
-
return /* @__PURE__ */
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1325
|
+
return /* @__PURE__ */ jsxs12("div", { style: { padding: "1.5rem" }, children: [
|
|
1326
|
+
/* @__PURE__ */ jsx12("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Chat Components" }),
|
|
1327
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1328
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Message Bubbles" }),
|
|
1329
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1330
|
+
/* @__PURE__ */ jsx12("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-user", children: [
|
|
1331
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-header", children: [
|
|
1332
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "You" }),
|
|
1333
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-time", children: "2:30 PM" })
|
|
1168
1334
|
] }),
|
|
1169
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsx12("p", { children: "Hello! How are you today?" }) })
|
|
1170
1336
|
] }) }),
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
1337
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1338
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1339
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1340
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-header", children: [
|
|
1341
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "Assistant" }),
|
|
1342
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-time", children: "2:30 PM" })
|
|
1177
1343
|
] }),
|
|
1178
|
-
/* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsx12("p", { children: "Hello! I'm doing well, thank you for asking. How can I help you today?" }) })
|
|
1179
1345
|
] })
|
|
1180
1346
|
] }),
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1348
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1349
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1350
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-header", children: [
|
|
1351
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "Assistant" }),
|
|
1352
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-message-time", children: "2:31 PM" })
|
|
1187
1353
|
] }),
|
|
1188
|
-
/* @__PURE__ */
|
|
1189
|
-
/* @__PURE__ */
|
|
1190
|
-
/* @__PURE__ */
|
|
1191
|
-
/* @__PURE__ */
|
|
1192
|
-
/* @__PURE__ */
|
|
1193
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-content", children: [
|
|
1355
|
+
/* @__PURE__ */ jsx12("p", { children: "Here's some information you might find helpful:" }),
|
|
1356
|
+
/* @__PURE__ */ jsxs12("ul", { style: { marginTop: "0.5rem", paddingLeft: "1.25rem" }, children: [
|
|
1357
|
+
/* @__PURE__ */ jsx12("li", { children: "First point of interest" }),
|
|
1358
|
+
/* @__PURE__ */ jsx12("li", { children: "Second important detail" }),
|
|
1359
|
+
/* @__PURE__ */ jsx12("li", { children: "Third relevant fact" })
|
|
1194
1360
|
] }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1361
|
+
/* @__PURE__ */ jsx12("p", { style: { marginTop: "0.5rem" }, children: "Let me know if you'd like more details about any of these!" })
|
|
1196
1362
|
] }),
|
|
1197
|
-
/* @__PURE__ */
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1363
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-actions", children: [
|
|
1364
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button-icon", title: "Edit", children: /* @__PURE__ */ jsx12("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("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" }) }) }),
|
|
1365
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button-icon", title: "Copy", children: /* @__PURE__ */ jsx12("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("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" }) }) })
|
|
1200
1366
|
] })
|
|
1201
1367
|
] })
|
|
1202
1368
|
] }),
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1206
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-system", children: /* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsx12("p", { children: "Alice has joined the conversation." }) }) }),
|
|
1370
|
+
/* @__PURE__ */ jsx12("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-user", children: [
|
|
1371
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "You" }) }),
|
|
1372
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsx12("p", { children: "That's exactly what I needed, thanks!" }) })
|
|
1207
1373
|
] }) })
|
|
1208
1374
|
] })
|
|
1209
1375
|
] }),
|
|
1210
|
-
/* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1377
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Character Messages" }),
|
|
1378
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Messages from different characters with their avatars." }),
|
|
1379
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1380
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1381
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1382
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1383
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-author", style: { fontSize: "0.75rem", fontWeight: 600, marginBottom: "0.25rem" }, children: "Alice" }),
|
|
1384
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ jsx12("p", { children: "*waves cheerfully* Hi there! I'm so glad to meet you!" }) })
|
|
1219
1385
|
] })
|
|
1220
1386
|
] }),
|
|
1221
|
-
/* @__PURE__ */
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1388
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "B" }) }),
|
|
1389
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1390
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-author", style: { fontSize: "0.75rem", fontWeight: 600, marginBottom: "0.25rem" }, children: "Bob" }),
|
|
1391
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ jsx12("p", { children: "*nods thoughtfully* Interesting point. Let me think about that..." }) })
|
|
1226
1392
|
] })
|
|
1227
1393
|
] })
|
|
1228
1394
|
] })
|
|
1229
1395
|
] }),
|
|
1230
|
-
/* @__PURE__ */
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
/* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1397
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Roleplay Annotations" }),
|
|
1398
|
+
/* @__PURE__ */ jsx12("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." }),
|
|
1399
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1400
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1401
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1402
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1403
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1404
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsxs12("p", { children: [
|
|
1239
1405
|
'"Hello there!" ',
|
|
1240
|
-
/* @__PURE__ */
|
|
1406
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-narration", children: "she said with a warm smile, stepping forward to greet you." })
|
|
1241
1407
|
] }) })
|
|
1242
1408
|
] })
|
|
1243
1409
|
] }),
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1411
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1412
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1413
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1414
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsxs12("p", { children: [
|
|
1415
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-narration", children: "She paused for a moment, considering her words carefully." }),
|
|
1250
1416
|
" ",
|
|
1251
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ jsx12("span", { className: "qt-chat-inner-monologue", children: "I wonder if they noticed..." })
|
|
1252
1418
|
] }) })
|
|
1253
1419
|
] })
|
|
1254
1420
|
] }),
|
|
1255
|
-
/* @__PURE__ */
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1258
|
-
/* @__PURE__ */
|
|
1259
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1422
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1423
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-message qt-chat-message-assistant", children: [
|
|
1424
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-header", children: /* @__PURE__ */ jsx12("span", { className: "qt-chat-message-author", children: "Alice" }) }),
|
|
1425
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-content", children: /* @__PURE__ */ jsx12("p", { children: /* @__PURE__ */ jsx12("span", { className: "qt-chat-ooc", children: "((OOC: Should we continue the scene or take a break?))" }) }) })
|
|
1260
1426
|
] })
|
|
1261
1427
|
] })
|
|
1262
1428
|
] })
|
|
1263
1429
|
] }),
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
/* @__PURE__ */
|
|
1266
|
-
/* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
/* @__PURE__ */
|
|
1270
|
-
/* @__PURE__ */
|
|
1430
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1431
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Whisper Messages" }),
|
|
1432
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Private messages visible only to sender and recipient. Overheard whispers have a faded style." }),
|
|
1433
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1434
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-whisper", children: [
|
|
1435
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-whisper-label", children: "whispered to Elena" }),
|
|
1436
|
+
/* @__PURE__ */ jsx12("p", { children: "I don't trust the merchant. Meet me at the tavern tonight\u2014alone." })
|
|
1271
1437
|
] }) }),
|
|
1272
|
-
/* @__PURE__ */
|
|
1273
|
-
/* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-whisper qt-chat-message-whisper-overheard", children: [
|
|
1439
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-whisper-label", children: "whispered to Marcus" }),
|
|
1440
|
+
/* @__PURE__ */ jsx12("p", { children: "Keep an eye on the door. We may need a quick exit." })
|
|
1275
1441
|
] }) })
|
|
1276
1442
|
] })
|
|
1277
1443
|
] }),
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
/* @__PURE__ */
|
|
1283
|
-
/* @__PURE__ */
|
|
1284
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1445
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Silent Messages" }),
|
|
1446
|
+
/* @__PURE__ */ jsx12("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." }),
|
|
1447
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1448
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-silent", children: [
|
|
1449
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-silent-label", children: "silent \u2014 inner thoughts and actions only" }),
|
|
1450
|
+
/* @__PURE__ */ jsx12("p", { children: "*glances at the door, weighing whether to follow or stay behind*" })
|
|
1285
1451
|
] }) }),
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message-row qt-chat-message-row-assistant", style: { marginBottom: "0.5rem" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-message-body qt-chat-message-assistant qt-chat-message-silent", children: [
|
|
1453
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-silent-label", children: "silent \u2014 inner thoughts and actions only" }),
|
|
1454
|
+
/* @__PURE__ */ jsx12("p", { children: "*quietly pockets the letter before anyone notices, mind racing with questions about its contents*" })
|
|
1289
1455
|
] }) })
|
|
1290
1456
|
] })
|
|
1291
1457
|
] }),
|
|
1292
|
-
/* @__PURE__ */
|
|
1293
|
-
/* @__PURE__ */
|
|
1294
|
-
/* @__PURE__ */
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
/* @__PURE__ */
|
|
1297
|
-
/* @__PURE__ */
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
/* @__PURE__ */
|
|
1300
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1459
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Wardrobe Action Notices" }),
|
|
1460
|
+
/* @__PURE__ */ jsx12("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." }),
|
|
1461
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", flexDirection: "column", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1462
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1463
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1464
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1465
|
+
/* @__PURE__ */ jsx12("div", { children: "Equipped \u201CCrimson Evening Gown\u201D in the top slot." }),
|
|
1466
|
+
/* @__PURE__ */ jsx12("div", { children: "Wearing: Crimson Evening Gown (top, bottom), Glass Slippers (footwear)" })
|
|
1301
1467
|
] })
|
|
1302
1468
|
] }),
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1306
|
-
/* @__PURE__ */
|
|
1307
|
-
/* @__PURE__ */
|
|
1469
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1470
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1471
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1472
|
+
/* @__PURE__ */ jsx12("div", { children: "Removed item from the footwear slot." }),
|
|
1473
|
+
/* @__PURE__ */ jsx12("div", { children: "Wearing: Crimson Evening Gown (top, bottom), barefoot" })
|
|
1308
1474
|
] })
|
|
1309
1475
|
] }),
|
|
1310
|
-
/* @__PURE__ */
|
|
1311
|
-
/* @__PURE__ */
|
|
1312
|
-
/* @__PURE__ */
|
|
1313
|
-
/* @__PURE__ */
|
|
1314
|
-
/* @__PURE__ */
|
|
1476
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-notice", children: [
|
|
1477
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-wardrobe-label", children: "Wardrobe" }),
|
|
1478
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-wardrobe-summary", children: [
|
|
1479
|
+
/* @__PURE__ */ jsx12("div", { children: "Gifted \u201CSilver Pocket Watch\u201D to Marcus." }),
|
|
1480
|
+
/* @__PURE__ */ jsx12("div", { children: "Marcus put it on immediately." })
|
|
1315
1481
|
] })
|
|
1316
1482
|
] })
|
|
1317
1483
|
] })
|
|
1318
1484
|
] }),
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1328
|
-
/* @__PURE__ */
|
|
1329
|
-
/* @__PURE__ */
|
|
1485
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1486
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Toolbar" }),
|
|
1487
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Formatting and action buttons for chat composition." }),
|
|
1488
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-toolbar", style: { maxWidth: "32rem", display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
1489
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-chat-toolbar-button", title: "Bold", children: /* @__PURE__ */ jsx12("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 4h8a4 4 0 014 4v2M6 4v16M6 4h8a2 2 0 012 2v2M6 12h12" }) }) }),
|
|
1490
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-chat-toolbar-button", title: "Italic", children: /* @__PURE__ */ jsx12("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 5h4m-4 14h4M9 5h6M9 19H3" }) }) }),
|
|
1491
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-chat-toolbar-button", title: "Underline", children: /* @__PURE__ */ jsx12("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 5v10a4 4 0 008 0V5m0 14H7" }) }) }),
|
|
1492
|
+
/* @__PURE__ */ jsx12("div", { style: { flex: 1 } }),
|
|
1493
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-chat-toolbar-button", title: "Settings", children: /* @__PURE__ */ jsxs12("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1494
|
+
/* @__PURE__ */ jsx12("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" }),
|
|
1495
|
+
/* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1330
1496
|
] }) })
|
|
1331
1497
|
] })
|
|
1332
1498
|
] }),
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
/* @__PURE__ */
|
|
1338
|
-
/* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1500
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "RP Annotation Buttons" }),
|
|
1501
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Quick-insert buttons for roleplay annotation types." }),
|
|
1502
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-rp-annotation-toolbar", style: { maxWidth: "32rem", display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
1503
|
+
/* @__PURE__ */ jsxs12("button", { className: "qt-rp-annotation-button-narration", title: "Narration", children: [
|
|
1504
|
+
/* @__PURE__ */ jsx12("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h7" }) }),
|
|
1339
1505
|
"Narration"
|
|
1340
1506
|
] }),
|
|
1341
|
-
/* @__PURE__ */
|
|
1342
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ jsxs12("button", { className: "qt-rp-annotation-button-internal", title: "Inner Monologue", children: [
|
|
1508
|
+
/* @__PURE__ */ jsx12("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("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" }) }),
|
|
1343
1509
|
"Internal"
|
|
1344
1510
|
] }),
|
|
1345
|
-
/* @__PURE__ */
|
|
1346
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ jsxs12("button", { className: "qt-rp-annotation-button-ooc", title: "Out of Character", children: [
|
|
1512
|
+
/* @__PURE__ */ jsx12("svg", { className: "w-4 h-4 mr-1", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("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" }) }),
|
|
1347
1513
|
"OOC"
|
|
1348
1514
|
] })
|
|
1349
1515
|
] })
|
|
1350
1516
|
] }),
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1517
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1518
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Attachments" }),
|
|
1519
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "File attachment chips and attachment button." }),
|
|
1520
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-composer", style: { maxWidth: "32rem" }, children: [
|
|
1521
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-attachment-list", style: { display: "flex", gap: "0.5rem", marginBottom: "0.75rem", flexWrap: "wrap" }, children: [
|
|
1522
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-attachment-chip", children: [
|
|
1523
|
+
/* @__PURE__ */ jsx12("span", { children: "document.pdf" }),
|
|
1524
|
+
/* @__PURE__ */ jsx12("button", { className: "ml-2 text-gray-400 hover:text-gray-600", style: { marginLeft: "0.5rem" }, children: "\xD7" })
|
|
1359
1525
|
] }),
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1362
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-attachment-chip", children: [
|
|
1527
|
+
/* @__PURE__ */ jsx12("span", { children: "image.png" }),
|
|
1528
|
+
/* @__PURE__ */ jsx12("button", { className: "ml-2 text-gray-400 hover:text-gray-600", style: { marginLeft: "0.5rem" }, children: "\xD7" })
|
|
1363
1529
|
] })
|
|
1364
1530
|
] }),
|
|
1365
|
-
/* @__PURE__ */
|
|
1531
|
+
/* @__PURE__ */ jsx12(
|
|
1366
1532
|
"textarea",
|
|
1367
1533
|
{
|
|
1368
1534
|
className: "qt-chat-composer-input",
|
|
@@ -1371,17 +1537,17 @@ var Chat = () => {
|
|
|
1371
1537
|
style: { width: "100%", padding: "0.5rem", marginBottom: "0.5rem" }
|
|
1372
1538
|
}
|
|
1373
1539
|
),
|
|
1374
|
-
/* @__PURE__ */
|
|
1375
|
-
/* @__PURE__ */
|
|
1376
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-composer-actions", style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1541
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-chat-attachment-button", children: /* @__PURE__ */ jsx12("svg", { width: "18", height: "18", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" }) }) }),
|
|
1542
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button qt-button-primary", children: "Send" })
|
|
1377
1543
|
] })
|
|
1378
1544
|
] })
|
|
1379
1545
|
] }),
|
|
1380
|
-
/* @__PURE__ */
|
|
1381
|
-
/* @__PURE__ */
|
|
1382
|
-
/* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1547
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Input" }),
|
|
1548
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-composer", style: { maxWidth: "32rem" }, children: /* @__PURE__ */ jsxs12("div", { className: "qt-chat-composer-inner", style: { display: "flex", alignItems: "flex-end", gap: "0.5rem", flex: 1 }, children: [
|
|
1549
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button-icon", "aria-label": "Attach file", children: /* @__PURE__ */ jsx12("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("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" }) }) }),
|
|
1550
|
+
/* @__PURE__ */ jsx12(
|
|
1385
1551
|
"textarea",
|
|
1386
1552
|
{
|
|
1387
1553
|
className: "qt-chat-composer-input qt-input",
|
|
@@ -1389,65 +1555,65 @@ var Chat = () => {
|
|
|
1389
1555
|
rows: 1
|
|
1390
1556
|
}
|
|
1391
1557
|
),
|
|
1392
|
-
/* @__PURE__ */
|
|
1558
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button qt-button-primary qt-chat-composer-send", style: { height: "auto", padding: "0.5rem 1rem" }, children: /* @__PURE__ */ jsx12("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 19l9 2-9-18-9 18 9-2zm0 0v-8" }) }) })
|
|
1393
1559
|
] }) })
|
|
1394
1560
|
] }),
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1397
|
-
/* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1562
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Typing Indicator" }),
|
|
1563
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem", maxWidth: "32rem" }, children: [
|
|
1564
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1565
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ jsxs12("div", { className: "qt-typing-indicator", children: [
|
|
1566
|
+
/* @__PURE__ */ jsx12("span", {}),
|
|
1567
|
+
/* @__PURE__ */ jsx12("span", {}),
|
|
1568
|
+
/* @__PURE__ */ jsx12("span", {})
|
|
1403
1569
|
] }) })
|
|
1404
1570
|
] })
|
|
1405
1571
|
] }),
|
|
1406
|
-
/* @__PURE__ */
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
/* @__PURE__ */
|
|
1410
|
-
/* @__PURE__ */
|
|
1411
|
-
/* @__PURE__ */
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ jsxs12("section", { style: { marginBottom: "2rem" }, children: [
|
|
1573
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Control Buttons" }),
|
|
1574
|
+
/* @__PURE__ */ jsx12("p", { style: { color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: "Continue and stop buttons for controlling AI response generation." }),
|
|
1575
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "1rem", maxWidth: "32rem" }, children: [
|
|
1576
|
+
/* @__PURE__ */ jsxs12("button", { className: "qt-chat-continue-button", children: [
|
|
1577
|
+
/* @__PURE__ */ jsxs12("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1578
|
+
/* @__PURE__ */ jsx12("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" }),
|
|
1579
|
+
/* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })
|
|
1414
1580
|
] }),
|
|
1415
1581
|
"Continue"
|
|
1416
1582
|
] }),
|
|
1417
|
-
/* @__PURE__ */
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */
|
|
1583
|
+
/* @__PURE__ */ jsxs12("button", { className: "qt-chat-stop-button", children: [
|
|
1584
|
+
/* @__PURE__ */ jsxs12("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1585
|
+
/* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }),
|
|
1586
|
+
/* @__PURE__ */ jsx12("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" })
|
|
1421
1587
|
] }),
|
|
1422
1588
|
"Stop"
|
|
1423
1589
|
] })
|
|
1424
1590
|
] })
|
|
1425
1591
|
] }),
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1429
|
-
/* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
/* @__PURE__ */
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
1592
|
+
/* @__PURE__ */ jsxs12("section", { children: [
|
|
1593
|
+
/* @__PURE__ */ jsx12("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Full Chat Layout" }),
|
|
1594
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-layout", style: { height: "24rem", border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)", display: "flex", flexDirection: "column" }, children: [
|
|
1595
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", padding: "0.75rem 1rem", borderBottom: "1px solid var(--color-border)" }, children: [
|
|
1596
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1597
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1598
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1599
|
+
/* @__PURE__ */ jsx12("div", { style: { fontWeight: 600 }, children: "Assistant" }),
|
|
1600
|
+
/* @__PURE__ */ jsx12("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Online" })
|
|
1435
1601
|
] })
|
|
1436
1602
|
] }),
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
1439
|
-
/* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ jsx12("div", { style: { display: "flex", gap: "0.5rem" }, children: /* @__PURE__ */ jsx12("button", { className: "qt-button-icon", "aria-label": "Settings", children: /* @__PURE__ */ jsxs12("svg", { width: "20", height: "20", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
|
|
1604
|
+
/* @__PURE__ */ jsx12("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" }),
|
|
1605
|
+
/* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1440
1606
|
] }) }) })
|
|
1441
1607
|
] }),
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
1608
|
+
/* @__PURE__ */ jsxs12("div", { style: { flex: 1, overflow: "auto", padding: "1rem", display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
1609
|
+
/* @__PURE__ */ jsxs12("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1610
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx12("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1611
|
+
/* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-assistant", children: /* @__PURE__ */ jsx12("p", { children: "Hello! How can I help you today?" }) })
|
|
1446
1612
|
] }),
|
|
1447
|
-
/* @__PURE__ */
|
|
1613
|
+
/* @__PURE__ */ jsx12("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx12("div", { className: "qt-chat-message qt-chat-message-user", children: /* @__PURE__ */ jsx12("p", { children: "I'd like to know more about theming." }) }) })
|
|
1448
1614
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ jsxs12("div", { className: "qt-chat-composer", style: { margin: "0.5rem", borderRadius: "var(--radius-lg)" }, children: [
|
|
1616
|
+
/* @__PURE__ */ jsx12(
|
|
1451
1617
|
"textarea",
|
|
1452
1618
|
{
|
|
1453
1619
|
className: "qt-chat-composer-input qt-input",
|
|
@@ -1455,7 +1621,7 @@ var Chat = () => {
|
|
|
1455
1621
|
rows: 1
|
|
1456
1622
|
}
|
|
1457
1623
|
),
|
|
1458
|
-
/* @__PURE__ */
|
|
1624
|
+
/* @__PURE__ */ jsx12("button", { className: "qt-button qt-button-primary qt-button-sm", children: "Send" })
|
|
1459
1625
|
] })
|
|
1460
1626
|
] })
|
|
1461
1627
|
] })
|
|
@@ -1463,7 +1629,7 @@ var Chat = () => {
|
|
|
1463
1629
|
};
|
|
1464
1630
|
|
|
1465
1631
|
// src/stories/components/Terminal.tsx
|
|
1466
|
-
import { jsx as
|
|
1632
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1467
1633
|
var sampleOutput = `$ git status
|
|
1468
1634
|
On branch main
|
|
1469
1635
|
Your branch is up to date with 'origin/main'.
|
|
@@ -1475,117 +1641,117 @@ $ npm run dev
|
|
|
1475
1641
|
- Local: http://localhost:3000
|
|
1476
1642
|
- ready started server on 0.0.0.0:3000`;
|
|
1477
1643
|
var Terminal = () => {
|
|
1478
|
-
return /* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1644
|
+
return /* @__PURE__ */ jsxs13("div", { style: { padding: "1.5rem" }, children: [
|
|
1645
|
+
/* @__PURE__ */ jsx13("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Terminal Components" }),
|
|
1646
|
+
/* @__PURE__ */ jsxs13("p", { style: { marginBottom: "1.5rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1481
1647
|
"The terminal carries its own identity. By default it stays dark in both light and dark themes \u2014 but a theme can override",
|
|
1482
1648
|
" ",
|
|
1483
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ jsx13("code", { children: "--qt-terminal-bg" }),
|
|
1484
1650
|
", ",
|
|
1485
|
-
/* @__PURE__ */
|
|
1651
|
+
/* @__PURE__ */ jsx13("code", { children: "--qt-terminal-fg" }),
|
|
1486
1652
|
", and the",
|
|
1487
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx13("code", { children: "--qt-terminal-chrome-*" }),
|
|
1488
1654
|
" tokens to reskin every surface below."
|
|
1489
1655
|
] }),
|
|
1490
|
-
/* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ jsxs13("section", { style: { marginBottom: "2rem" }, children: [
|
|
1657
|
+
/* @__PURE__ */ jsx13("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "In-chat embed" }),
|
|
1658
|
+
/* @__PURE__ */ jsxs13("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1659
|
+
/* @__PURE__ */ jsx13("code", { children: ".qt-terminal-embed" }),
|
|
1494
1660
|
" wraps the embed card; the header and footer strips inherit the surrounding theme so they nest cleanly with chat bubbles."
|
|
1495
1661
|
] }),
|
|
1496
|
-
/* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
/* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
/* @__PURE__ */
|
|
1662
|
+
/* @__PURE__ */ jsxs13("div", { className: "qt-terminal-embed", style: { maxWidth: "36rem" }, children: [
|
|
1663
|
+
/* @__PURE__ */ jsxs13("div", { className: "qt-terminal-embed-header", children: [
|
|
1664
|
+
/* @__PURE__ */ jsx13("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: /* @__PURE__ */ jsx13("h4", { style: { fontSize: "0.875rem", fontWeight: 500, margin: 0 }, children: "Terminal \u2014 zsh" }) }),
|
|
1665
|
+
/* @__PURE__ */ jsxs13("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1666
|
+
/* @__PURE__ */ jsx13("button", { className: "qt-button-icon", type: "button", children: "Pop out" }),
|
|
1667
|
+
/* @__PURE__ */ jsx13("button", { className: "qt-button-icon qt-text-destructive", type: "button", children: "Kill" })
|
|
1502
1668
|
] })
|
|
1503
1669
|
] }),
|
|
1504
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ jsx13("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 })
|
|
1505
1671
|
] })
|
|
1506
1672
|
] }),
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
/* @__PURE__ */
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ jsxs13("section", { style: { marginBottom: "2rem" }, children: [
|
|
1674
|
+
/* @__PURE__ */ jsx13("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)" }),
|
|
1675
|
+
/* @__PURE__ */ jsxs13("div", { className: "qt-terminal-embed", style: { maxWidth: "36rem" }, children: [
|
|
1676
|
+
/* @__PURE__ */ jsx13("div", { className: "qt-terminal-embed-header", children: /* @__PURE__ */ jsx13("h4", { style: { fontSize: "0.875rem", fontWeight: 500, margin: 0 }, children: "Terminal \u2014 zsh" }) }),
|
|
1677
|
+
/* @__PURE__ */ jsxs13("div", { className: "qt-terminal-embed-footer", children: [
|
|
1678
|
+
/* @__PURE__ */ jsx13("span", { className: "qt-text-secondary", children: "Showing in Terminal Mode pane." }),
|
|
1679
|
+
/* @__PURE__ */ jsx13("button", { className: "qt-button-secondary", type: "button", style: { fontSize: "0.75rem", padding: "0.25rem 0.5rem" }, children: "Go to pane \u2192" })
|
|
1514
1680
|
] })
|
|
1515
1681
|
] })
|
|
1516
1682
|
] }),
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
/* @__PURE__ */
|
|
1519
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ jsxs13("section", { style: { marginBottom: "2rem" }, children: [
|
|
1684
|
+
/* @__PURE__ */ jsx13("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Pop-out page chrome" }),
|
|
1685
|
+
/* @__PURE__ */ jsxs13("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1520
1686
|
"The full-screen pop-out page uses",
|
|
1521
1687
|
" ",
|
|
1522
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx13("code", { children: ".qt-terminal-popout-page" }),
|
|
1523
1689
|
" as the outer canvas and",
|
|
1524
1690
|
" ",
|
|
1525
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ jsx13("code", { children: ".qt-terminal-popout-header" }),
|
|
1526
1692
|
" for the breadcrumb bar."
|
|
1527
1693
|
] }),
|
|
1528
|
-
/* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
/* @__PURE__ */
|
|
1534
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ jsxs13("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: [
|
|
1695
|
+
/* @__PURE__ */ jsxs13("div", { className: "qt-terminal-popout-header", children: [
|
|
1696
|
+
/* @__PURE__ */ jsxs13("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1697
|
+
/* @__PURE__ */ jsx13("button", { className: "qt-button-icon", type: "button", style: { color: "inherit" }, children: "\u2190" }),
|
|
1698
|
+
/* @__PURE__ */ jsx13("a", { href: "#", className: "qt-terminal-popout-link", style: { fontSize: "0.875rem" }, children: "Chat" }),
|
|
1699
|
+
/* @__PURE__ */ jsx13("span", { className: "qt-terminal-popout-separator", children: "/" }),
|
|
1700
|
+
/* @__PURE__ */ jsx13("h1", { className: "qt-terminal-popout-title", style: { fontSize: "1rem", margin: 0 }, children: "Terminal \u2014 zsh" })
|
|
1535
1701
|
] }),
|
|
1536
|
-
/* @__PURE__ */
|
|
1702
|
+
/* @__PURE__ */ jsx13("button", { className: "qt-button-destructive", type: "button", style: { fontSize: "0.875rem" }, children: "Kill Session" })
|
|
1537
1703
|
] }),
|
|
1538
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsx13("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 })
|
|
1539
1705
|
] })
|
|
1540
1706
|
] }),
|
|
1541
|
-
/* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ jsxs13("section", { children: [
|
|
1708
|
+
/* @__PURE__ */ jsx13("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Session-exited overlay" }),
|
|
1709
|
+
/* @__PURE__ */ jsxs13("p", { style: { marginBottom: "0.75rem", fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: [
|
|
1544
1710
|
"When the PTY exits but the terminal stays mounted, the",
|
|
1545
1711
|
" ",
|
|
1546
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ jsx13("code", { children: ".qt-terminal-closed-badge" }),
|
|
1547
1713
|
" overlay marks it."
|
|
1548
1714
|
] }),
|
|
1549
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ jsx13("div", { className: "qt-terminal-surface", style: { position: "relative", height: "120px", borderRadius: "0.5rem" }, children: /* @__PURE__ */ jsx13("span", { className: "qt-terminal-closed-badge", children: "Closed" }) })
|
|
1550
1716
|
] })
|
|
1551
1717
|
] });
|
|
1552
1718
|
};
|
|
1553
1719
|
|
|
1554
1720
|
// src/stories/components/FilePreview.tsx
|
|
1555
|
-
import { jsx as
|
|
1721
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1556
1722
|
var FilePreview = () => {
|
|
1557
|
-
return /* @__PURE__ */
|
|
1558
|
-
/* @__PURE__ */
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
/* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ jsxs14("div", { style: { padding: "1.5rem" }, children: [
|
|
1724
|
+
/* @__PURE__ */ jsx14("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "File Preview Components" }),
|
|
1725
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1726
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Scroll Container" }),
|
|
1727
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1728
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-scroll" }),
|
|
1563
1729
|
" - Scrollable container for file content with configurable max height."
|
|
1564
1730
|
] }),
|
|
1565
|
-
/* @__PURE__ */
|
|
1731
|
+
/* @__PURE__ */ jsx14("div", { className: "qt-file-preview-scroll", style: { height: "150px", border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsx14("div", { style: { padding: "1rem" }, children: Array.from({ length: 20 }, (_, i) => /* @__PURE__ */ jsxs14("p", { style: { margin: "0.5rem 0" }, children: [
|
|
1566
1732
|
"Line ",
|
|
1567
1733
|
i + 1,
|
|
1568
1734
|
": Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
1569
1735
|
] }, i)) }) })
|
|
1570
1736
|
] }),
|
|
1571
|
-
/* @__PURE__ */
|
|
1572
|
-
/* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1574
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1738
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Content Panel" }),
|
|
1739
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1740
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-panel" }),
|
|
1575
1741
|
" - Background panel for rendered markdown content."
|
|
1576
1742
|
] }),
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ jsxs14("div", { className: "qt-file-preview-panel", children: [
|
|
1744
|
+
/* @__PURE__ */ jsx14("h4", { style: { margin: "0 0 0.5rem 0" }, children: "Document Title" }),
|
|
1745
|
+
/* @__PURE__ */ jsx14("p", { style: { margin: 0 }, children: "This is a content panel used for displaying rendered markdown files with a subtle background." })
|
|
1580
1746
|
] })
|
|
1581
1747
|
] }),
|
|
1582
|
-
/* @__PURE__ */
|
|
1583
|
-
/* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */
|
|
1585
|
-
/* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1749
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Code Block" }),
|
|
1750
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1751
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-code" }),
|
|
1586
1752
|
" - Styled code block for plain text and source files with word wrap."
|
|
1587
1753
|
] }),
|
|
1588
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx14("pre", { className: "qt-file-preview-code", children: `function greet(name: string): string {
|
|
1589
1755
|
return \`Hello, \${name}!\`;
|
|
1590
1756
|
}
|
|
1591
1757
|
|
|
@@ -1593,133 +1759,133 @@ var FilePreview = () => {
|
|
|
1593
1759
|
const message = greet("World");
|
|
1594
1760
|
console.log(message);` })
|
|
1595
1761
|
] }),
|
|
1596
|
-
/* @__PURE__ */
|
|
1597
|
-
/* @__PURE__ */
|
|
1598
|
-
/* @__PURE__ */
|
|
1599
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1763
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Loading State" }),
|
|
1764
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1765
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-loading" }),
|
|
1600
1766
|
" + ",
|
|
1601
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-loading-text" }),
|
|
1602
1768
|
" - Loading indicator."
|
|
1603
1769
|
] }),
|
|
1604
|
-
/* @__PURE__ */
|
|
1770
|
+
/* @__PURE__ */ jsx14("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsx14("div", { className: "qt-file-preview-loading", style: { minHeight: "150px" }, children: /* @__PURE__ */ jsx14("div", { className: "qt-file-preview-loading-text", children: "Loading file..." }) }) })
|
|
1605
1771
|
] }),
|
|
1606
|
-
/* @__PURE__ */
|
|
1607
|
-
/* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1609
|
-
/* @__PURE__ */
|
|
1772
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1773
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Empty / Error State" }),
|
|
1774
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1775
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-empty" }),
|
|
1610
1776
|
" + ",
|
|
1611
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-file-preview-empty-icon" }),
|
|
1612
1778
|
" - Empty or error state display."
|
|
1613
1779
|
] }),
|
|
1614
|
-
/* @__PURE__ */
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
/* @__PURE__ */
|
|
1617
|
-
/* @__PURE__ */
|
|
1780
|
+
/* @__PURE__ */ jsxs14("div", { style: { display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: "1rem" }, children: [
|
|
1781
|
+
/* @__PURE__ */ jsx14("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsxs14("div", { className: "qt-file-preview-empty", style: { minHeight: "150px" }, children: [
|
|
1782
|
+
/* @__PURE__ */ jsx14("div", { className: "qt-file-preview-empty-icon", children: "\u{1F4C4}" }),
|
|
1783
|
+
/* @__PURE__ */ jsx14("p", { children: "No content available" })
|
|
1618
1784
|
] }) }),
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */
|
|
1621
|
-
/* @__PURE__ */
|
|
1785
|
+
/* @__PURE__ */ jsx14("div", { style: { border: "1px solid var(--color-border)", borderRadius: "var(--radius-lg)" }, children: /* @__PURE__ */ jsxs14("div", { className: "qt-file-preview-empty", style: { minHeight: "150px" }, children: [
|
|
1786
|
+
/* @__PURE__ */ jsx14("div", { className: "qt-file-preview-empty-icon", children: "\u26A0\uFE0F" }),
|
|
1787
|
+
/* @__PURE__ */ jsx14("p", { children: "Failed to load file" })
|
|
1622
1788
|
] }) })
|
|
1623
1789
|
] })
|
|
1624
1790
|
] }),
|
|
1625
|
-
/* @__PURE__ */
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
/* @__PURE__ */
|
|
1628
|
-
/* @__PURE__ */
|
|
1791
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1792
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Wikilinks" }),
|
|
1793
|
+
/* @__PURE__ */ jsxs14("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)", marginBottom: "1rem" }, children: [
|
|
1794
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-wikilink" }),
|
|
1629
1795
|
" + ",
|
|
1630
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ jsx14("code", { children: ".qt-wikilink-broken" }),
|
|
1631
1797
|
" - Internal document links in markdown."
|
|
1632
1798
|
] }),
|
|
1633
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ jsx14("div", { className: "qt-file-preview-panel", children: /* @__PURE__ */ jsxs14("p", { style: { margin: 0, lineHeight: 2 }, children: [
|
|
1634
1800
|
"This document references ",
|
|
1635
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ jsx14("button", { type: "button", className: "qt-wikilink", children: "Character Profile" }),
|
|
1636
1802
|
" and links to ",
|
|
1637
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx14("button", { type: "button", className: "qt-wikilink", children: "World Building \u2192 Geography" }),
|
|
1638
1804
|
". There's also a ",
|
|
1639
|
-
/* @__PURE__ */
|
|
1805
|
+
/* @__PURE__ */ jsx14("button", { type: "button", className: "qt-wikilink-broken", children: "Missing Document" }),
|
|
1640
1806
|
" that doesn't exist yet."
|
|
1641
1807
|
] }) })
|
|
1642
1808
|
] }),
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
/* @__PURE__ */
|
|
1645
|
-
/* @__PURE__ */
|
|
1809
|
+
/* @__PURE__ */ jsxs14("section", { style: { marginBottom: "2rem" }, children: [
|
|
1810
|
+
/* @__PURE__ */ jsx14("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "CSS Variables" }),
|
|
1811
|
+
/* @__PURE__ */ jsx14("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))", gap: "0.5rem" }, children: [
|
|
1646
1812
|
{ name: "--qt-file-preview-max-height", value: "70vh", desc: "Max height of scroll container" },
|
|
1647
1813
|
{ name: "--qt-file-preview-min-height", value: "300px", desc: "Min height of loading/empty states" },
|
|
1648
1814
|
{ name: "--qt-file-preview-panel-bg", value: "muted/30%", desc: "Content panel background" },
|
|
1649
1815
|
{ name: "--qt-code-bg", value: "muted", desc: "Code block background" },
|
|
1650
1816
|
{ name: "--qt-code-fg", value: "foreground", desc: "Code block text color" },
|
|
1651
1817
|
{ name: "--qt-code-font", value: "monospace", desc: "Code block font family" }
|
|
1652
|
-
].map(({ name, value, desc }) => /* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1818
|
+
].map(({ name, value, desc }) => /* @__PURE__ */ jsxs14("div", { style: { padding: "0.75rem", background: "var(--color-muted)", borderRadius: "var(--radius-md)" }, children: [
|
|
1819
|
+
/* @__PURE__ */ jsx14("code", { style: { fontSize: "0.75rem", fontWeight: 600 }, children: name }),
|
|
1820
|
+
/* @__PURE__ */ jsxs14("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)", marginTop: "0.25rem" }, children: [
|
|
1655
1821
|
"Default: ",
|
|
1656
1822
|
value
|
|
1657
1823
|
] }),
|
|
1658
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ jsx14("div", { style: { fontSize: "0.75rem", color: "var(--color-muted-foreground)" }, children: desc })
|
|
1659
1825
|
] }, name)) })
|
|
1660
1826
|
] })
|
|
1661
1827
|
] });
|
|
1662
1828
|
};
|
|
1663
1829
|
|
|
1664
1830
|
// src/stories/components/ThemeComparison.tsx
|
|
1665
|
-
import { jsx as
|
|
1831
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1666
1832
|
var ThemePanel = ({ title, description }) => {
|
|
1667
|
-
return /* @__PURE__ */
|
|
1668
|
-
/* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
/* @__PURE__ */
|
|
1671
|
-
] }),
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
1674
|
-
/* @__PURE__ */
|
|
1675
|
-
/* @__PURE__ */
|
|
1833
|
+
return /* @__PURE__ */ jsxs15("div", { style: { flex: 1, minWidth: "20rem" }, children: [
|
|
1834
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "1rem" }, children: [
|
|
1835
|
+
/* @__PURE__ */ jsx15("h4", { style: { fontWeight: 600 }, children: title }),
|
|
1836
|
+
/* @__PURE__ */ jsx15("p", { style: { fontSize: "0.875rem", color: "var(--color-muted-foreground)" }, children: description })
|
|
1837
|
+
] }),
|
|
1838
|
+
/* @__PURE__ */ jsxs15("div", { className: "qt-card", style: { marginBottom: "1rem" }, children: [
|
|
1839
|
+
/* @__PURE__ */ jsxs15("div", { className: "qt-card-header", children: [
|
|
1840
|
+
/* @__PURE__ */ jsx15("h5", { className: "qt-card-title", children: "Sample Card" }),
|
|
1841
|
+
/* @__PURE__ */ jsx15("p", { className: "qt-card-description", children: "This is how cards look in this theme." })
|
|
1676
1842
|
] }),
|
|
1677
|
-
/* @__PURE__ */
|
|
1678
|
-
/* @__PURE__ */
|
|
1679
|
-
/* @__PURE__ */
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ jsxs15("div", { className: "qt-card-body", children: [
|
|
1844
|
+
/* @__PURE__ */ jsx15("p", { style: { marginBottom: "1rem" }, children: "Cards are used throughout the application for grouping content." }),
|
|
1845
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", gap: "0.5rem", flexWrap: "wrap" }, children: [
|
|
1846
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-primary", children: "Primary" }),
|
|
1847
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-secondary", children: "Secondary" }),
|
|
1848
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-success", children: "Success" })
|
|
1683
1849
|
] })
|
|
1684
1850
|
] }),
|
|
1685
|
-
/* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1851
|
+
/* @__PURE__ */ jsxs15("div", { className: "qt-card-footer", children: [
|
|
1852
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-ghost", children: "Cancel" }),
|
|
1853
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-primary", children: "Save" })
|
|
1688
1854
|
] })
|
|
1689
1855
|
] }),
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
/* @__PURE__ */
|
|
1693
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ jsxs15("div", { className: "qt-panel", style: { padding: "1rem", marginBottom: "1rem" }, children: [
|
|
1857
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "0.75rem" }, children: [
|
|
1858
|
+
/* @__PURE__ */ jsx15("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Text Input" }),
|
|
1859
|
+
/* @__PURE__ */ jsx15("input", { className: "qt-input", type: "text", placeholder: "Enter text..." })
|
|
1694
1860
|
] }),
|
|
1695
|
-
/* @__PURE__ */
|
|
1696
|
-
/* @__PURE__ */
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "0.75rem" }, children: [
|
|
1862
|
+
/* @__PURE__ */ jsx15("label", { style: { display: "block", marginBottom: "0.25rem", fontSize: "0.875rem", fontWeight: 500 }, children: "Select" }),
|
|
1863
|
+
/* @__PURE__ */ jsxs15("select", { className: "qt-input qt-select", children: [
|
|
1864
|
+
/* @__PURE__ */ jsx15("option", { children: "Option 1" }),
|
|
1865
|
+
/* @__PURE__ */ jsx15("option", { children: "Option 2" })
|
|
1700
1866
|
] })
|
|
1701
1867
|
] }),
|
|
1702
|
-
/* @__PURE__ */
|
|
1703
|
-
/* @__PURE__ */
|
|
1704
|
-
/* @__PURE__ */
|
|
1868
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1869
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-secondary qt-button-sm", children: "Secondary" }),
|
|
1870
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-primary qt-button-sm", children: "Primary" })
|
|
1705
1871
|
] })
|
|
1706
1872
|
] }),
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
1874
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", gap: "0.5rem" }, children: [
|
|
1875
|
+
/* @__PURE__ */ jsx15("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx15("div", { className: "qt-avatar-fallback", children: "AI" }) }),
|
|
1876
|
+
/* @__PURE__ */ jsx15("div", { className: "qt-chat-message qt-chat-message-assistant", style: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx15("p", { style: { fontSize: "0.875rem" }, children: "Hello! This is a chat message." }) })
|
|
1711
1877
|
] }),
|
|
1712
|
-
/* @__PURE__ */
|
|
1878
|
+
/* @__PURE__ */ jsx15("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx15("div", { className: "qt-chat-message qt-chat-message-user", style: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx15("p", { style: { fontSize: "0.875rem" }, children: "Great, thanks!" }) }) })
|
|
1713
1879
|
] })
|
|
1714
1880
|
] });
|
|
1715
1881
|
};
|
|
1716
1882
|
var ThemeComparison = () => {
|
|
1717
|
-
return /* @__PURE__ */
|
|
1718
|
-
/* @__PURE__ */
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1722
|
-
/* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsxs15("div", { style: { padding: "1.5rem" }, children: [
|
|
1884
|
+
/* @__PURE__ */ jsx15("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "0.5rem" }, children: "Theme Comparison" }),
|
|
1885
|
+
/* @__PURE__ */ jsx15("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." }),
|
|
1886
|
+
/* @__PURE__ */ jsxs15("section", { style: { marginBottom: "2rem" }, children: [
|
|
1887
|
+
/* @__PURE__ */ jsx15("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Current Theme Preview" }),
|
|
1888
|
+
/* @__PURE__ */ jsx15(
|
|
1723
1889
|
ThemePanel,
|
|
1724
1890
|
{
|
|
1725
1891
|
title: "Active Theme",
|
|
@@ -1727,9 +1893,9 @@ var ThemeComparison = () => {
|
|
|
1727
1893
|
}
|
|
1728
1894
|
)
|
|
1729
1895
|
] }),
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1732
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ jsxs15("section", { style: { marginBottom: "2rem" }, children: [
|
|
1897
|
+
/* @__PURE__ */ jsx15("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Key Theme Colors" }),
|
|
1898
|
+
/* @__PURE__ */ jsx15("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(8rem, 1fr))", gap: "0.75rem" }, children: [
|
|
1733
1899
|
{ name: "Background", var: "--color-background" },
|
|
1734
1900
|
{ name: "Foreground", var: "--color-foreground" },
|
|
1735
1901
|
{ name: "Card", var: "--color-card" },
|
|
@@ -1738,8 +1904,8 @@ var ThemeComparison = () => {
|
|
|
1738
1904
|
{ name: "Muted", var: "--color-muted" },
|
|
1739
1905
|
{ name: "Accent", var: "--color-accent" },
|
|
1740
1906
|
{ name: "Border", var: "--color-border" }
|
|
1741
|
-
].map(({ name, var: cssVar }) => /* @__PURE__ */
|
|
1742
|
-
/* @__PURE__ */
|
|
1907
|
+
].map(({ name, var: cssVar }) => /* @__PURE__ */ jsxs15("div", { style: { textAlign: "center" }, children: [
|
|
1908
|
+
/* @__PURE__ */ jsx15(
|
|
1743
1909
|
"div",
|
|
1744
1910
|
{
|
|
1745
1911
|
style: {
|
|
@@ -1751,17 +1917,17 @@ var ThemeComparison = () => {
|
|
|
1751
1917
|
}
|
|
1752
1918
|
}
|
|
1753
1919
|
),
|
|
1754
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ jsx15("div", { style: { marginTop: "0.25rem", fontSize: "0.75rem", fontWeight: 500 }, children: name })
|
|
1755
1921
|
] }, cssVar)) })
|
|
1756
1922
|
] }),
|
|
1757
|
-
/* @__PURE__ */
|
|
1758
|
-
/* @__PURE__ */
|
|
1759
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ jsxs15("section", { style: { marginBottom: "2rem" }, children: [
|
|
1924
|
+
/* @__PURE__ */ jsx15("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Semantic Colors" }),
|
|
1925
|
+
/* @__PURE__ */ jsx15("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(8rem, 1fr))", gap: "0.75rem" }, children: [
|
|
1760
1926
|
{ name: "Destructive", var: "--color-destructive" },
|
|
1761
1927
|
{ name: "Success", var: "--color-success" },
|
|
1762
1928
|
{ name: "Warning", var: "--color-warning" }
|
|
1763
|
-
].map(({ name, var: cssVar }) => /* @__PURE__ */
|
|
1764
|
-
/* @__PURE__ */
|
|
1929
|
+
].map(({ name, var: cssVar }) => /* @__PURE__ */ jsxs15("div", { style: { textAlign: "center" }, children: [
|
|
1930
|
+
/* @__PURE__ */ jsx15(
|
|
1765
1931
|
"div",
|
|
1766
1932
|
{
|
|
1767
1933
|
style: {
|
|
@@ -1773,50 +1939,50 @@ var ThemeComparison = () => {
|
|
|
1773
1939
|
}
|
|
1774
1940
|
}
|
|
1775
1941
|
),
|
|
1776
|
-
/* @__PURE__ */
|
|
1942
|
+
/* @__PURE__ */ jsx15("div", { style: { marginTop: "0.25rem", fontSize: "0.75rem", fontWeight: 500 }, children: name })
|
|
1777
1943
|
] }, cssVar)) })
|
|
1778
1944
|
] }),
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ jsxs15("section", { children: [
|
|
1946
|
+
/* @__PURE__ */ jsx15("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Component Showcase" }),
|
|
1947
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
1948
|
+
/* @__PURE__ */ jsx15("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Buttons" }),
|
|
1949
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
|
|
1950
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-primary", children: "Primary" }),
|
|
1951
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-secondary", children: "Secondary" }),
|
|
1952
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-ghost", children: "Ghost" }),
|
|
1953
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-destructive", children: "Destructive" }),
|
|
1954
|
+
/* @__PURE__ */ jsx15("button", { className: "qt-button qt-button-primary", disabled: true, children: "Disabled" })
|
|
1789
1955
|
] })
|
|
1790
1956
|
] }),
|
|
1791
|
-
/* @__PURE__ */
|
|
1792
|
-
/* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */
|
|
1794
|
-
/* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
1796
|
-
/* @__PURE__ */
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
1958
|
+
/* @__PURE__ */ jsx15("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Badges" }),
|
|
1959
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
|
|
1960
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-default", children: "Default" }),
|
|
1961
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-primary", children: "Primary" }),
|
|
1962
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-secondary", children: "Secondary" }),
|
|
1963
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-success", children: "Success" }),
|
|
1964
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-warning", children: "Warning" }),
|
|
1965
|
+
/* @__PURE__ */ jsx15("span", { className: "qt-badge qt-badge-destructive", children: "Destructive" })
|
|
1800
1966
|
] })
|
|
1801
1967
|
] }),
|
|
1802
|
-
/* @__PURE__ */
|
|
1803
|
-
/* @__PURE__ */
|
|
1804
|
-
/* @__PURE__ */
|
|
1805
|
-
/* @__PURE__ */
|
|
1806
|
-
/* @__PURE__ */
|
|
1807
|
-
/* @__PURE__ */
|
|
1808
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsxs15("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
1969
|
+
/* @__PURE__ */ jsx15("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Interactive Card" }),
|
|
1970
|
+
/* @__PURE__ */ jsx15("div", { className: "qt-card qt-card-interactive", style: { maxWidth: "20rem", cursor: "pointer" }, children: /* @__PURE__ */ jsx15("div", { className: "qt-card-header", children: /* @__PURE__ */ jsxs15("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1971
|
+
/* @__PURE__ */ jsx15("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx15("div", { className: "qt-avatar-fallback", children: "A" }) }),
|
|
1972
|
+
/* @__PURE__ */ jsxs15("div", { children: [
|
|
1973
|
+
/* @__PURE__ */ jsx15("h5", { className: "qt-card-title", children: "Character Name" }),
|
|
1974
|
+
/* @__PURE__ */ jsx15("p", { className: "qt-card-description", children: "Click to interact" })
|
|
1809
1975
|
] })
|
|
1810
1976
|
] }) }) })
|
|
1811
1977
|
] }),
|
|
1812
|
-
/* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsxs15("div", { children: [
|
|
1979
|
+
/* @__PURE__ */ jsx15("h4", { style: { fontSize: "0.875rem", fontWeight: 600, marginBottom: "0.75rem", color: "var(--color-muted-foreground)" }, children: "Form Elements" }),
|
|
1980
|
+
/* @__PURE__ */ jsxs15("div", { style: { display: "flex", gap: "1rem", flexWrap: "wrap", maxWidth: "32rem" }, children: [
|
|
1981
|
+
/* @__PURE__ */ jsx15("input", { className: "qt-input", type: "text", placeholder: "Text input", style: { flex: "1 1 10rem" } }),
|
|
1982
|
+
/* @__PURE__ */ jsxs15("select", { className: "qt-input qt-select", style: { flex: "1 1 10rem" }, children: [
|
|
1983
|
+
/* @__PURE__ */ jsx15("option", { children: "Select option" }),
|
|
1984
|
+
/* @__PURE__ */ jsx15("option", { children: "Option 1" }),
|
|
1985
|
+
/* @__PURE__ */ jsx15("option", { children: "Option 2" })
|
|
1820
1986
|
] })
|
|
1821
1987
|
] })
|
|
1822
1988
|
] })
|
|
@@ -1825,125 +1991,125 @@ var ThemeComparison = () => {
|
|
|
1825
1991
|
};
|
|
1826
1992
|
|
|
1827
1993
|
// src/stories/components/EmptyState.tsx
|
|
1828
|
-
import { jsx as
|
|
1994
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1829
1995
|
var EmptyState = () => {
|
|
1830
|
-
return /* @__PURE__ */
|
|
1831
|
-
/* @__PURE__ */
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
/* @__PURE__ */
|
|
1996
|
+
return /* @__PURE__ */ jsxs16("div", { style: { padding: "1.5rem" }, children: [
|
|
1997
|
+
/* @__PURE__ */ jsx16("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Empty States" }),
|
|
1998
|
+
/* @__PURE__ */ jsxs16("section", { style: { marginBottom: "2rem" }, children: [
|
|
1999
|
+
/* @__PURE__ */ jsx16("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Basic Empty State" }),
|
|
2000
|
+
/* @__PURE__ */ jsxs16("div", { className: "qt-empty-state", children: [
|
|
2001
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ jsx16("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("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" }) }) }),
|
|
2002
|
+
/* @__PURE__ */ jsx16("h4", { className: "qt-empty-state-title", children: "No messages yet" }),
|
|
2003
|
+
/* @__PURE__ */ jsx16("p", { className: "qt-empty-state-description", children: "Start a conversation to see messages appear here." })
|
|
1838
2004
|
] })
|
|
1839
2005
|
] }),
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1842
|
-
/* @__PURE__ */
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ jsxs16("section", { style: { marginBottom: "2rem" }, children: [
|
|
2007
|
+
/* @__PURE__ */ jsx16("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Empty State with Action" }),
|
|
2008
|
+
/* @__PURE__ */ jsxs16("div", { className: "qt-empty-state", children: [
|
|
2009
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ jsx16("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("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" }) }) }),
|
|
2010
|
+
/* @__PURE__ */ jsx16("h4", { className: "qt-empty-state-title", children: "No characters" }),
|
|
2011
|
+
/* @__PURE__ */ jsx16("p", { className: "qt-empty-state-description", children: "You haven't created any characters yet. Create your first character to get started." }),
|
|
2012
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ jsx16("button", { className: "qt-button qt-button-primary", children: "Create Character" }) })
|
|
1847
2013
|
] })
|
|
1848
2014
|
] }),
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
/* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
-
/* @__PURE__ */
|
|
1853
|
-
/* @__PURE__ */
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ jsxs16("section", { style: { marginBottom: "2rem" }, children: [
|
|
2016
|
+
/* @__PURE__ */ jsx16("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Search Empty State" }),
|
|
2017
|
+
/* @__PURE__ */ jsxs16("div", { className: "qt-empty-state", children: [
|
|
2018
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-icon", children: /* @__PURE__ */ jsx16("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
|
|
2019
|
+
/* @__PURE__ */ jsx16("h4", { className: "qt-empty-state-title", children: "No results found" }),
|
|
2020
|
+
/* @__PURE__ */ jsx16("p", { className: "qt-empty-state-description", children: "Try adjusting your search or filters to find what you're looking for." }),
|
|
2021
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ jsx16("button", { className: "qt-button qt-button-secondary", children: "Clear Filters" }) })
|
|
1856
2022
|
] })
|
|
1857
2023
|
] }),
|
|
1858
|
-
/* @__PURE__ */
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsxs16("section", { children: [
|
|
2025
|
+
/* @__PURE__ */ jsx16("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Error Empty State" }),
|
|
2026
|
+
/* @__PURE__ */ jsxs16("div", { className: "qt-empty-state", children: [
|
|
2027
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-icon text-red-500", children: /* @__PURE__ */ jsx16("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("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" }) }) }),
|
|
2028
|
+
/* @__PURE__ */ jsx16("h4", { className: "qt-empty-state-title", children: "Something went wrong" }),
|
|
2029
|
+
/* @__PURE__ */ jsx16("p", { className: "qt-empty-state-description", children: "We couldn't load the content. Please try again." }),
|
|
2030
|
+
/* @__PURE__ */ jsx16("div", { className: "qt-empty-state-action", children: /* @__PURE__ */ jsx16("button", { className: "qt-button qt-button-primary", children: "Try Again" }) })
|
|
1865
2031
|
] })
|
|
1866
2032
|
] })
|
|
1867
2033
|
] });
|
|
1868
2034
|
};
|
|
1869
2035
|
|
|
1870
2036
|
// src/stories/components/Loading.tsx
|
|
1871
|
-
import { jsx as
|
|
2037
|
+
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1872
2038
|
var Loading = () => {
|
|
1873
|
-
return /* @__PURE__ */
|
|
1874
|
-
/* @__PURE__ */
|
|
1875
|
-
/* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
] }),
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
] }),
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
2039
|
+
return /* @__PURE__ */ jsxs17("div", { style: { padding: "1.5rem" }, children: [
|
|
2040
|
+
/* @__PURE__ */ jsx17("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Loading States" }),
|
|
2041
|
+
/* @__PURE__ */ jsxs17("section", { style: { marginBottom: "2rem" }, children: [
|
|
2042
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Spinners" }),
|
|
2043
|
+
/* @__PURE__ */ jsxs17("div", { style: { display: "flex", gap: "2rem", alignItems: "center" }, children: [
|
|
2044
|
+
/* @__PURE__ */ jsxs17("div", { style: { textAlign: "center" }, children: [
|
|
2045
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-spinner qt-spinner-sm", style: { margin: "0 auto" } }),
|
|
2046
|
+
/* @__PURE__ */ jsx17("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Small" })
|
|
2047
|
+
] }),
|
|
2048
|
+
/* @__PURE__ */ jsxs17("div", { style: { textAlign: "center" }, children: [
|
|
2049
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-spinner", style: { margin: "0 auto" } }),
|
|
2050
|
+
/* @__PURE__ */ jsx17("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Default" })
|
|
2051
|
+
] }),
|
|
2052
|
+
/* @__PURE__ */ jsxs17("div", { style: { textAlign: "center" }, children: [
|
|
2053
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-spinner qt-spinner-lg", style: { margin: "0 auto" } }),
|
|
2054
|
+
/* @__PURE__ */ jsx17("p", { style: { fontSize: "0.75rem", marginTop: "0.5rem" }, children: "Large" })
|
|
1889
2055
|
] })
|
|
1890
2056
|
] })
|
|
1891
2057
|
] }),
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
/* @__PURE__ */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1897
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsxs17("section", { style: { marginBottom: "2rem" }, children: [
|
|
2059
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Text" }),
|
|
2060
|
+
/* @__PURE__ */ jsxs17("div", { style: { maxWidth: "28rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2061
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "100%" } }),
|
|
2062
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "80%" } }),
|
|
2063
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } })
|
|
1898
2064
|
] })
|
|
1899
2065
|
] }),
|
|
1900
|
-
/* @__PURE__ */
|
|
1901
|
-
/* @__PURE__ */
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
/* @__PURE__ */
|
|
1904
|
-
/* @__PURE__ */
|
|
1905
|
-
/* @__PURE__ */
|
|
1906
|
-
/* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ jsxs17("section", { style: { marginBottom: "2rem" }, children: [
|
|
2067
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Card" }),
|
|
2068
|
+
/* @__PURE__ */ jsxs17("div", { className: "qt-card", style: { maxWidth: "24rem", padding: "1rem" }, children: [
|
|
2069
|
+
/* @__PURE__ */ jsxs17("div", { style: { display: "flex", gap: "0.75rem", marginBottom: "1rem", alignItems: "flex-start" }, children: [
|
|
2070
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "40px", height: "40px", flexShrink: 0 } }),
|
|
2071
|
+
/* @__PURE__ */ jsxs17("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2072
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } }),
|
|
2073
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "40%" } })
|
|
1908
2074
|
] })
|
|
1909
2075
|
] }),
|
|
1910
|
-
/* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
/* @__PURE__ */
|
|
2076
|
+
/* @__PURE__ */ jsxs17("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2077
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2078
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2079
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "75%" } })
|
|
1914
2080
|
] })
|
|
1915
2081
|
] })
|
|
1916
2082
|
] }),
|
|
1917
|
-
/* @__PURE__ */
|
|
1918
|
-
/* @__PURE__ */
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
-
/* @__PURE__ */
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
/* @__PURE__ */
|
|
1926
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsxs17("section", { style: { marginBottom: "2rem" }, children: [
|
|
2084
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton Message" }),
|
|
2085
|
+
/* @__PURE__ */ jsx17("div", { style: { maxWidth: "42rem", display: "flex", flexDirection: "column", gap: "1rem" }, children: /* @__PURE__ */ jsxs17("div", { style: { display: "flex", gap: "0.75rem" }, children: [
|
|
2086
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "32px", height: "32px", flexShrink: 0 } }),
|
|
2087
|
+
/* @__PURE__ */ jsxs17("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2088
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "120px" } }),
|
|
2089
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-card", style: { padding: "1rem" }, children: /* @__PURE__ */ jsxs17("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2090
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2091
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text" }),
|
|
2092
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "60%" } })
|
|
1927
2093
|
] }) })
|
|
1928
2094
|
] })
|
|
1929
2095
|
] }) })
|
|
1930
2096
|
] }),
|
|
1931
|
-
/* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ jsxs17("section", { style: { marginBottom: "2rem" }, children: [
|
|
2098
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Skeleton List" }),
|
|
2099
|
+
/* @__PURE__ */ jsx17("div", { style: { maxWidth: "24rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs17("div", { className: "qt-card", style: { padding: "0.75rem", display: "flex", gap: "0.75rem", alignItems: "center" }, children: [
|
|
2100
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-circle", style: { width: "32px", height: "32px", flexShrink: 0 } }),
|
|
2101
|
+
/* @__PURE__ */ jsx17("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsx17("div", { className: "qt-skeleton qt-skeleton-text", style: { width: "70%" } }) })
|
|
1936
2102
|
] }, i)) })
|
|
1937
2103
|
] }),
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
/* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ jsxs17("section", { children: [
|
|
2105
|
+
/* @__PURE__ */ jsx17("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Loading Button" }),
|
|
2106
|
+
/* @__PURE__ */ jsxs17("div", { style: { display: "flex", gap: "1rem" }, children: [
|
|
2107
|
+
/* @__PURE__ */ jsxs17("button", { className: "qt-button qt-button-primary", disabled: true, style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2108
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-spinner qt-spinner-sm" }),
|
|
1943
2109
|
"Loading..."
|
|
1944
2110
|
] }),
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ jsxs17("button", { className: "qt-button qt-button-secondary", disabled: true, style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2112
|
+
/* @__PURE__ */ jsx17("div", { className: "qt-spinner qt-spinner-sm" }),
|
|
1947
2113
|
"Saving..."
|
|
1948
2114
|
] })
|
|
1949
2115
|
] })
|
|
@@ -1952,130 +2118,130 @@ var Loading = () => {
|
|
|
1952
2118
|
};
|
|
1953
2119
|
|
|
1954
2120
|
// src/stories/components/Participant.tsx
|
|
1955
|
-
import { jsx as
|
|
2121
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1956
2122
|
var Participant = () => {
|
|
1957
|
-
return /* @__PURE__ */
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
/* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ jsxs18("div", { style: { padding: "1.5rem" }, children: [
|
|
2124
|
+
/* @__PURE__ */ jsx18("h2", { style: { fontSize: "1.5rem", fontWeight: 700, marginBottom: "1.5rem" }, children: "Participants" }),
|
|
2125
|
+
/* @__PURE__ */ jsxs18("section", { style: { marginBottom: "2rem" }, children: [
|
|
2126
|
+
/* @__PURE__ */ jsx18("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Participant Cards" }),
|
|
2127
|
+
/* @__PURE__ */ jsxs18("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2128
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2129
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2130
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2131
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2132
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "AI Assistant" })
|
|
1967
2133
|
] })
|
|
1968
2134
|
] }) }),
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
/* @__PURE__ */
|
|
1971
|
-
/* @__PURE__ */
|
|
1972
|
-
/* @__PURE__ */
|
|
1973
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2136
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "BC" }) }) }),
|
|
2137
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2138
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2139
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Currently Speaking" })
|
|
1974
2140
|
] })
|
|
1975
2141
|
] }) }),
|
|
1976
|
-
/* @__PURE__ */
|
|
1977
|
-
/* @__PURE__ */
|
|
1978
|
-
/* @__PURE__ */
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
2142
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2143
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2144
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2145
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "You" }),
|
|
2146
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Human" })
|
|
1981
2147
|
] })
|
|
1982
2148
|
] }) })
|
|
1983
2149
|
] })
|
|
1984
2150
|
] }),
|
|
1985
|
-
/* @__PURE__ */
|
|
1986
|
-
/* @__PURE__ */
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
/* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
1991
|
-
/* @__PURE__ */
|
|
1992
|
-
/* @__PURE__ */
|
|
1993
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ jsxs18("section", { style: { marginBottom: "2rem" }, children: [
|
|
2152
|
+
/* @__PURE__ */ jsx18("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Participant Status States" }),
|
|
2153
|
+
/* @__PURE__ */ jsx18("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." }),
|
|
2154
|
+
/* @__PURE__ */ jsxs18("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2155
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2156
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2157
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2158
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2159
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Currently Speaking" })
|
|
1994
2160
|
] })
|
|
1995
2161
|
] }) }),
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1998
|
-
/* @__PURE__ */
|
|
1999
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card qt-participant-card-silent", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2163
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-avatar", style: { position: "relative" }, children: [
|
|
2164
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "BC" }) }),
|
|
2165
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-status-overlay qt-participant-status-overlay-silent", children: /* @__PURE__ */ jsx18("svg", { width: "10", height: "10", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx18("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" }) }) })
|
|
2000
2166
|
] }),
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2168
|
+
/* @__PURE__ */ jsxs18("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2169
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2170
|
+
/* @__PURE__ */ jsx18("span", { className: "qt-badge-silent", style: { fontSize: "0.625rem" }, children: "Silent" })
|
|
2005
2171
|
] }),
|
|
2006
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Inner thoughts only" })
|
|
2007
2173
|
] })
|
|
2008
2174
|
] }) }),
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2175
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", style: { opacity: 0.7 }, children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2176
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-avatar", style: { position: "relative" }, children: [
|
|
2177
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "CC" }) }),
|
|
2178
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-status-overlay qt-participant-status-overlay-absent", children: /* @__PURE__ */ jsx18("svg", { width: "10", height: "10", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx18("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) }) })
|
|
2013
2179
|
] }),
|
|
2014
|
-
/* @__PURE__ */
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2181
|
+
/* @__PURE__ */ jsxs18("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2182
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Clara Character" }),
|
|
2183
|
+
/* @__PURE__ */ jsx18("span", { className: "qt-badge-absent", style: { fontSize: "0.625rem" }, children: "Absent" })
|
|
2018
2184
|
] }),
|
|
2019
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Away from the scene" })
|
|
2020
2186
|
] })
|
|
2021
2187
|
] }) }),
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2189
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2190
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2191
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "You" }),
|
|
2192
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "Human" })
|
|
2027
2193
|
] })
|
|
2028
2194
|
] }) })
|
|
2029
2195
|
] })
|
|
2030
2196
|
] }),
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ jsxs18("section", { style: { marginBottom: "2rem" }, children: [
|
|
2198
|
+
/* @__PURE__ */ jsx18("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Chat Sidebar Layout" }),
|
|
2199
|
+
/* @__PURE__ */ jsxs18("div", { style: { display: "flex", gap: "1rem" }, children: [
|
|
2200
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-card", style: { flex: 1, padding: "1rem" }, children: /* @__PURE__ */ jsx18("p", { style: { color: "var(--color-text-muted)" }, children: "Chat messages area" }) }),
|
|
2201
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-chat-sidebar", style: { width: "16rem" }, children: [
|
|
2202
|
+
/* @__PURE__ */ jsx18("div", { style: { padding: "1rem", borderBottom: "1px solid var(--qt-chat-sidebar-header-border)" }, children: /* @__PURE__ */ jsx18("h4", { style: { fontWeight: 600, color: "var(--qt-chat-sidebar-heading)" }, children: "Participants" }) }),
|
|
2203
|
+
/* @__PURE__ */ jsxs18("div", { style: { padding: "0.5rem", display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
2204
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card qt-participant-card-active", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2205
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2206
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-info", children: /* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", style: { fontSize: "0.875rem" }, children: "Alice" }) })
|
|
2041
2207
|
] }) }),
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
/* @__PURE__ */
|
|
2208
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2209
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar qt-avatar-sm", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "YO" }) }) }),
|
|
2210
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-info", children: /* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", style: { fontSize: "0.875rem" }, children: "You" }) })
|
|
2045
2211
|
] }) })
|
|
2046
2212
|
] })
|
|
2047
2213
|
] })
|
|
2048
2214
|
] })
|
|
2049
2215
|
] }),
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2057
|
-
/* @__PURE__ */
|
|
2058
|
-
/* @__PURE__ */
|
|
2059
|
-
/* @__PURE__ */
|
|
2060
|
-
/* @__PURE__ */
|
|
2061
|
-
/* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ jsxs18("section", { children: [
|
|
2217
|
+
/* @__PURE__ */ jsx18("h3", { style: { fontSize: "1.125rem", fontWeight: 700, marginBottom: "1rem", borderBottom: "1px solid var(--color-border)", paddingBottom: "0.5rem" }, children: "Connection Profile Dropdown" }),
|
|
2218
|
+
/* @__PURE__ */ jsxs18("div", { style: { maxWidth: "20rem", display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
2219
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2220
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "AC" }) }) }),
|
|
2221
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2222
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Alice Character" }),
|
|
2223
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-status", children: "AI Assistant" }),
|
|
2224
|
+
/* @__PURE__ */ jsx18("div", { style: { marginTop: "0.25rem" }, children: /* @__PURE__ */ jsxs18("select", { className: "qt-select qt-select-sm", style: { width: "100%" }, defaultValue: "gpt-4", children: [
|
|
2225
|
+
/* @__PURE__ */ jsx18("option", { value: "", children: "Select a provider..." }),
|
|
2226
|
+
/* @__PURE__ */ jsx18("option", { value: "__user__", children: "User (you type)" }),
|
|
2227
|
+
/* @__PURE__ */ jsx18("option", { value: "gpt-4", children: "gpt-4-turbo" }),
|
|
2228
|
+
/* @__PURE__ */ jsx18("option", { value: "claude", children: "claude-3-opus" }),
|
|
2229
|
+
/* @__PURE__ */ jsx18("option", { value: "gemini", children: "gemini-pro" })
|
|
2064
2230
|
] }) })
|
|
2065
2231
|
] })
|
|
2066
2232
|
] }) }),
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
/* @__PURE__ */
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
/* @__PURE__ */
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card", children: /* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-header", children: [
|
|
2234
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar", children: /* @__PURE__ */ jsx18("div", { className: "qt-avatar-fallback", children: "BC" }) }) }),
|
|
2235
|
+
/* @__PURE__ */ jsxs18("div", { className: "qt-participant-card-info", children: [
|
|
2236
|
+
/* @__PURE__ */ jsxs18("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
2237
|
+
/* @__PURE__ */ jsx18("div", { className: "qt-participant-card-name", children: "Bob Character" }),
|
|
2238
|
+
/* @__PURE__ */ jsx18("span", { className: "qt-badge-secondary", style: { fontSize: "0.75rem" }, children: "You" })
|
|
2073
2239
|
] }),
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
/* @__PURE__ */
|
|
2240
|
+
/* @__PURE__ */ jsx18("div", { style: { marginTop: "0.25rem" }, children: /* @__PURE__ */ jsxs18("select", { className: "qt-select qt-select-sm", style: { width: "100%" }, defaultValue: "__user__", children: [
|
|
2241
|
+
/* @__PURE__ */ jsx18("option", { value: "", children: "Select a provider..." }),
|
|
2242
|
+
/* @__PURE__ */ jsx18("option", { value: "__user__", children: "User (you type)" }),
|
|
2243
|
+
/* @__PURE__ */ jsx18("option", { value: "gpt-4", children: "gpt-4-turbo" }),
|
|
2244
|
+
/* @__PURE__ */ jsx18("option", { value: "claude", children: "claude-3-opus" })
|
|
2079
2245
|
] }) })
|
|
2080
2246
|
] })
|
|
2081
2247
|
] }) })
|
|
@@ -2088,6 +2254,7 @@ export {
|
|
|
2088
2254
|
ColorSwatch,
|
|
2089
2255
|
ColorGroup,
|
|
2090
2256
|
ColorPalette,
|
|
2257
|
+
Icons,
|
|
2091
2258
|
Typography,
|
|
2092
2259
|
Spacing,
|
|
2093
2260
|
Buttons,
|