@quilltap/theme-storybook 1.0.32 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1106,9 +1106,175 @@ body {
1106
1106
  line-height: 1.5;
1107
1107
  color: var(--color-foreground);
1108
1108
  }
1109
- .qt-chat-composer-input:focus {
1109
+ .qt-chat-composer-input:focus,
1110
+ .qt-chat-composer-input:focus-within {
1110
1111
  outline: none;
1111
1112
  }
1113
+ .qt-lexical-contenteditable {
1114
+ overflow-y: auto;
1115
+ position: relative;
1116
+ }
1117
+ .qt-lexical-contenteditable [contenteditable] {
1118
+ outline: none;
1119
+ min-height: 1.5em;
1120
+ }
1121
+ .qt-lexical-placeholder {
1122
+ color: var(--color-muted-foreground);
1123
+ font-size: 0.875rem;
1124
+ pointer-events: none;
1125
+ position: absolute;
1126
+ top: 0;
1127
+ left: 0;
1128
+ padding: var(--qt-input-padding-y, 0.5rem) var(--qt-input-padding-x, 0.75rem);
1129
+ overflow: hidden;
1130
+ text-overflow: ellipsis;
1131
+ white-space: nowrap;
1132
+ }
1133
+ .qt-lexical-root {
1134
+ outline: none;
1135
+ min-height: 1.5em;
1136
+ }
1137
+ .qt-lexical-paragraph {
1138
+ margin: 0;
1139
+ }
1140
+ .qt-lexical-bold {
1141
+ font-weight: 700;
1142
+ }
1143
+ .qt-lexical-italic {
1144
+ font-style: italic;
1145
+ }
1146
+ .qt-lexical-underline {
1147
+ text-decoration: underline;
1148
+ }
1149
+ .qt-lexical-strikethrough {
1150
+ text-decoration: line-through;
1151
+ }
1152
+ .qt-lexical-code {
1153
+ font-family: monospace;
1154
+ font-size: 0.75rem;
1155
+ background: rgba(0, 0, 0, 0.1);
1156
+ padding: 0.1em 0.3em;
1157
+ border-radius: 0.2em;
1158
+ }
1159
+ .qt-lexical-h1 {
1160
+ font-size: 1.25rem;
1161
+ font-weight: bold;
1162
+ margin: 0.5em 0 0.25em;
1163
+ }
1164
+ .qt-lexical-h2 {
1165
+ font-size: 1.125rem;
1166
+ font-weight: bold;
1167
+ margin: 0.4em 0 0.2em;
1168
+ }
1169
+ .qt-lexical-h3 {
1170
+ font-size: 1rem;
1171
+ font-weight: 600;
1172
+ margin: 0.3em 0 0.15em;
1173
+ }
1174
+ .qt-lexical-h4 {
1175
+ font-size: 0.875rem;
1176
+ font-weight: 600;
1177
+ margin: 0.25em 0 0.1em;
1178
+ }
1179
+ .qt-lexical-h5 {
1180
+ font-size: 0.75rem;
1181
+ font-weight: 600;
1182
+ margin: 0.2em 0 0.1em;
1183
+ }
1184
+ .qt-lexical-h6 {
1185
+ font-size: 0.75rem;
1186
+ font-weight: 500;
1187
+ margin: 0.2em 0 0.1em;
1188
+ }
1189
+ .qt-lexical-ul {
1190
+ list-style-type: disc;
1191
+ padding-left: 1.5rem;
1192
+ margin: 0.25em 0;
1193
+ }
1194
+ .qt-lexical-ol {
1195
+ list-style-type: decimal;
1196
+ padding-left: 1.5rem;
1197
+ margin: 0.25em 0;
1198
+ }
1199
+ .qt-lexical-li {
1200
+ margin: 0.1em 0;
1201
+ }
1202
+ .qt-lexical-checklist {
1203
+ list-style: none;
1204
+ padding-left: 0;
1205
+ }
1206
+ .qt-lexical-li-checked,
1207
+ .qt-lexical-li-unchecked {
1208
+ position: relative;
1209
+ padding-left: 1.5rem;
1210
+ list-style: none;
1211
+ margin: 0.15em 0;
1212
+ }
1213
+ .qt-lexical-li-checked::before,
1214
+ .qt-lexical-li-unchecked::before {
1215
+ content: "";
1216
+ position: absolute;
1217
+ left: 0;
1218
+ top: 0.25rem;
1219
+ width: 1rem;
1220
+ height: 1rem;
1221
+ border-radius: 0.25rem;
1222
+ border: 1px solid var(--qt-border-color, rgba(0, 0, 0, 0.3));
1223
+ cursor: pointer;
1224
+ }
1225
+ .qt-lexical-li-checked::before {
1226
+ background: hsl(var(--primary, 220 90% 56%));
1227
+ border-color: hsl(var(--primary, 220 90% 56%));
1228
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
1229
+ background-size: 12px 12px;
1230
+ background-position: center;
1231
+ background-repeat: no-repeat;
1232
+ }
1233
+ .qt-lexical-li-checked {
1234
+ opacity: 0.6;
1235
+ text-decoration: line-through;
1236
+ }
1237
+ .qt-lexical-blockquote {
1238
+ border-left: 4px solid rgba(0, 0, 0, 0.2);
1239
+ padding-left: 0.75rem;
1240
+ font-style: italic;
1241
+ margin: 0.25em 0;
1242
+ }
1243
+ .qt-lexical-link {
1244
+ text-decoration: underline;
1245
+ color: hsl(var(--primary, 220 90% 56%));
1246
+ }
1247
+ .qt-lexical-code-block {
1248
+ font-family: monospace;
1249
+ font-size: 0.75rem;
1250
+ background: rgba(0, 0, 0, 0.15);
1251
+ padding: 0.5em 0.75em;
1252
+ border-radius: 0.3em;
1253
+ margin: 0.25em 0;
1254
+ overflow-x: auto;
1255
+ -moz-tab-size: 2;
1256
+ -o-tab-size: 2;
1257
+ tab-size: 2;
1258
+ }
1259
+ .qt-lexical-contenteditable table {
1260
+ width: 100%;
1261
+ border-collapse: collapse;
1262
+ margin: 0.5rem 0;
1263
+ }
1264
+ .qt-lexical-contenteditable th,
1265
+ .qt-lexical-contenteditable td {
1266
+ border: 1px solid var(--qt-border-color, rgba(0, 0, 0, 0.2));
1267
+ padding: 0.375rem 0.75rem;
1268
+ text-align: left;
1269
+ min-width: 60px;
1270
+ }
1271
+ .qt-lexical-contenteditable th {
1272
+ font-weight: 600;
1273
+ background: var(--color-muted, rgba(0, 0, 0, 0.05));
1274
+ }
1275
+ .qt-lexical-contenteditable tr:nth-child(even) td {
1276
+ background: rgba(0, 0, 0, 0.02);
1277
+ }
1112
1278
  .qt-chat-composer-input::-moz-placeholder {
1113
1279
  color: var(--color-muted-foreground);
1114
1280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/theme-storybook",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Storybook preset and stories for developing Quilltap theme plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,10 +43,10 @@
43
43
  "storybook": ">=8.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@storybook/react": "^10.3.5",
46
+ "@storybook/react": "^10.3.6",
47
47
  "@types/react": "^19.2.14",
48
48
  "react": "^19.2.5",
49
- "storybook": "^10.3.5",
49
+ "storybook": "^10.3.6",
50
50
  "tsup": "^8.5.1",
51
51
  "typescript": "^5.9.3"
52
52
  },
@@ -1183,10 +1183,208 @@
1183
1183
  color: var(--color-foreground);
1184
1184
  }
1185
1185
 
1186
- .qt-chat-composer-input:focus {
1186
+ .qt-chat-composer-input:focus,
1187
+ .qt-chat-composer-input:focus-within {
1187
1188
  outline: none;
1188
1189
  }
1189
1190
 
1191
+ /* Lexical editor rich text node styles */
1192
+ .qt-lexical-contenteditable {
1193
+ overflow-y: auto;
1194
+ position: relative;
1195
+ }
1196
+
1197
+ .qt-lexical-contenteditable [contenteditable] {
1198
+ outline: none;
1199
+ min-height: 1.5em;
1200
+ }
1201
+
1202
+ .qt-lexical-placeholder {
1203
+ color: var(--color-muted-foreground);
1204
+ font-size: 0.875rem;
1205
+ pointer-events: none;
1206
+ position: absolute;
1207
+ top: 0;
1208
+ left: 0;
1209
+ padding: var(--qt-input-padding-y, 0.5rem) var(--qt-input-padding-x, 0.75rem);
1210
+ overflow: hidden;
1211
+ text-overflow: ellipsis;
1212
+ white-space: nowrap;
1213
+ }
1214
+
1215
+ .qt-lexical-root {
1216
+ outline: none;
1217
+ min-height: 1.5em;
1218
+ }
1219
+
1220
+ .qt-lexical-paragraph {
1221
+ margin: 0;
1222
+ }
1223
+
1224
+ .qt-lexical-bold {
1225
+ font-weight: 700;
1226
+ }
1227
+
1228
+ .qt-lexical-italic {
1229
+ font-style: italic;
1230
+ }
1231
+
1232
+ .qt-lexical-underline {
1233
+ text-decoration: underline;
1234
+ }
1235
+
1236
+ .qt-lexical-strikethrough {
1237
+ text-decoration: line-through;
1238
+ }
1239
+
1240
+ .qt-lexical-code {
1241
+ font-family: monospace;
1242
+ font-size: 0.75rem;
1243
+ background: rgba(0, 0, 0, 0.1);
1244
+ padding: 0.1em 0.3em;
1245
+ border-radius: 0.2em;
1246
+ }
1247
+
1248
+ .qt-lexical-h1 {
1249
+ font-size: 1.25rem;
1250
+ font-weight: bold;
1251
+ margin: 0.5em 0 0.25em;
1252
+ }
1253
+
1254
+ .qt-lexical-h2 {
1255
+ font-size: 1.125rem;
1256
+ font-weight: bold;
1257
+ margin: 0.4em 0 0.2em;
1258
+ }
1259
+
1260
+ .qt-lexical-h3 {
1261
+ font-size: 1rem;
1262
+ font-weight: 600;
1263
+ margin: 0.3em 0 0.15em;
1264
+ }
1265
+
1266
+ .qt-lexical-h4 {
1267
+ font-size: 0.875rem;
1268
+ font-weight: 600;
1269
+ margin: 0.25em 0 0.1em;
1270
+ }
1271
+
1272
+ .qt-lexical-h5 {
1273
+ font-size: 0.75rem;
1274
+ font-weight: 600;
1275
+ margin: 0.2em 0 0.1em;
1276
+ }
1277
+
1278
+ .qt-lexical-h6 {
1279
+ font-size: 0.75rem;
1280
+ font-weight: 500;
1281
+ margin: 0.2em 0 0.1em;
1282
+ }
1283
+
1284
+ .qt-lexical-ul {
1285
+ list-style-type: disc;
1286
+ padding-left: 1.5rem;
1287
+ margin: 0.25em 0;
1288
+ }
1289
+
1290
+ .qt-lexical-ol {
1291
+ list-style-type: decimal;
1292
+ padding-left: 1.5rem;
1293
+ margin: 0.25em 0;
1294
+ }
1295
+
1296
+ .qt-lexical-li {
1297
+ margin: 0.1em 0;
1298
+ }
1299
+
1300
+ /* Checklist items */
1301
+ .qt-lexical-checklist {
1302
+ list-style: none;
1303
+ padding-left: 0;
1304
+ }
1305
+
1306
+ .qt-lexical-li-checked,
1307
+ .qt-lexical-li-unchecked {
1308
+ position: relative;
1309
+ padding-left: 1.5rem;
1310
+ list-style: none;
1311
+ margin: 0.15em 0;
1312
+ }
1313
+
1314
+ .qt-lexical-li-checked::before,
1315
+ .qt-lexical-li-unchecked::before {
1316
+ content: '';
1317
+ position: absolute;
1318
+ left: 0;
1319
+ top: 0.25rem;
1320
+ width: 1rem;
1321
+ height: 1rem;
1322
+ border-radius: 0.25rem;
1323
+ border: 1px solid var(--qt-border-color, rgba(0, 0, 0, 0.3));
1324
+ cursor: pointer;
1325
+ }
1326
+
1327
+ .qt-lexical-li-checked::before {
1328
+ background: hsl(var(--primary, 220 90% 56%));
1329
+ border-color: hsl(var(--primary, 220 90% 56%));
1330
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
1331
+ background-size: 12px 12px;
1332
+ background-position: center;
1333
+ background-repeat: no-repeat;
1334
+ }
1335
+
1336
+ .qt-lexical-li-checked {
1337
+ opacity: 0.6;
1338
+ text-decoration: line-through;
1339
+ }
1340
+
1341
+ .qt-lexical-blockquote {
1342
+ border-left: 4px solid rgba(0, 0, 0, 0.2);
1343
+ padding-left: 0.75rem;
1344
+ font-style: italic;
1345
+ margin: 0.25em 0;
1346
+ }
1347
+
1348
+ .qt-lexical-link {
1349
+ text-decoration: underline;
1350
+ color: hsl(var(--primary, 220 90% 56%));
1351
+ }
1352
+
1353
+ .qt-lexical-code-block {
1354
+ font-family: monospace;
1355
+ font-size: 0.75rem;
1356
+ background: rgba(0, 0, 0, 0.15);
1357
+ padding: 0.5em 0.75em;
1358
+ border-radius: 0.3em;
1359
+ margin: 0.25em 0;
1360
+ overflow-x: auto;
1361
+ tab-size: 2;
1362
+ }
1363
+
1364
+ /* Lexical table styling */
1365
+ .qt-lexical-contenteditable table {
1366
+ width: 100%;
1367
+ border-collapse: collapse;
1368
+ margin: 0.5rem 0;
1369
+ }
1370
+
1371
+ .qt-lexical-contenteditable th,
1372
+ .qt-lexical-contenteditable td {
1373
+ border: 1px solid var(--qt-border-color, rgba(0, 0, 0, 0.2));
1374
+ padding: 0.375rem 0.75rem;
1375
+ text-align: left;
1376
+ min-width: 60px;
1377
+ }
1378
+
1379
+ .qt-lexical-contenteditable th {
1380
+ font-weight: 600;
1381
+ background: var(--color-muted, rgba(0, 0, 0, 0.05));
1382
+ }
1383
+
1384
+ .qt-lexical-contenteditable tr:nth-child(even) td {
1385
+ background: rgba(0, 0, 0, 0.02);
1386
+ }
1387
+
1190
1388
  .qt-chat-composer-input::placeholder {
1191
1389
  color: var(--color-muted-foreground);
1192
1390
  }