@jaetask/toolkit 0.3.2 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +12 -10
  3. package/dist/guard.d.ts +1 -1
  4. package/dist/guard.d.ts.map +1 -1
  5. package/dist/guard.js +17 -6
  6. package/dist/guard.js.map +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +0 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/styles.css +0 -11
  11. package/dist/suite/chat.d.ts +65 -0
  12. package/dist/suite/chat.d.ts.map +1 -0
  13. package/dist/suite/chat.js +103 -0
  14. package/dist/suite/chat.js.map +1 -0
  15. package/dist/suite/controls.d.ts +0 -1
  16. package/dist/suite/controls.d.ts.map +1 -1
  17. package/dist/suite/controls.js +0 -2
  18. package/dist/suite/controls.js.map +1 -1
  19. package/dist/suite/due-picker.d.ts +0 -9
  20. package/dist/suite/due-picker.d.ts.map +1 -1
  21. package/dist/suite/due-picker.js +0 -8
  22. package/dist/suite/due-picker.js.map +1 -1
  23. package/dist/suite/due.d.ts +0 -2
  24. package/dist/suite/due.d.ts.map +1 -1
  25. package/dist/suite/due.js +0 -9
  26. package/dist/suite/due.js.map +1 -1
  27. package/dist/suite/emoji.d.ts +0 -7
  28. package/dist/suite/emoji.d.ts.map +1 -1
  29. package/dist/suite/emoji.js +0 -7
  30. package/dist/suite/emoji.js.map +1 -1
  31. package/dist/suite/entity-nav.d.ts +37 -0
  32. package/dist/suite/entity-nav.d.ts.map +1 -0
  33. package/dist/suite/entity-nav.js +125 -0
  34. package/dist/suite/entity-nav.js.map +1 -0
  35. package/dist/suite/files.d.ts +0 -8
  36. package/dist/suite/files.d.ts.map +1 -1
  37. package/dist/suite/files.js +0 -8
  38. package/dist/suite/files.js.map +1 -1
  39. package/dist/suite/filters.d.ts +18 -0
  40. package/dist/suite/filters.d.ts.map +1 -0
  41. package/dist/suite/filters.js +23 -0
  42. package/dist/suite/filters.js.map +1 -0
  43. package/dist/suite/forms.d.ts +0 -3
  44. package/dist/suite/forms.d.ts.map +1 -1
  45. package/dist/suite/forms.js +7 -7
  46. package/dist/suite/forms.js.map +1 -1
  47. package/dist/suite/index.d.ts +5 -1
  48. package/dist/suite/index.d.ts.map +1 -1
  49. package/dist/suite/index.js +5 -3
  50. package/dist/suite/index.js.map +1 -1
  51. package/dist/suite/link.d.ts +0 -6
  52. package/dist/suite/link.d.ts.map +1 -1
  53. package/dist/suite/link.js +0 -9
  54. package/dist/suite/link.js.map +1 -1
  55. package/dist/suite/links.d.ts +0 -9
  56. package/dist/suite/links.d.ts.map +1 -1
  57. package/dist/suite/links.js +0 -9
  58. package/dist/suite/links.js.map +1 -1
  59. package/dist/suite/markdown.d.ts +0 -1
  60. package/dist/suite/markdown.d.ts.map +1 -1
  61. package/dist/suite/markdown.js +1 -8
  62. package/dist/suite/markdown.js.map +1 -1
  63. package/dist/suite/page.d.ts +0 -23
  64. package/dist/suite/page.d.ts.map +1 -1
  65. package/dist/suite/page.js +0 -23
  66. package/dist/suite/page.js.map +1 -1
  67. package/dist/suite/parts.d.ts +0 -14
  68. package/dist/suite/parts.d.ts.map +1 -1
  69. package/dist/suite/parts.js +0 -16
  70. package/dist/suite/parts.js.map +1 -1
  71. package/dist/suite/pickers.d.ts +0 -10
  72. package/dist/suite/pickers.d.ts.map +1 -1
  73. package/dist/suite/pickers.js +1 -13
  74. package/dist/suite/pickers.js.map +1 -1
  75. package/dist/suite/project-appearance.d.ts.map +1 -1
  76. package/dist/suite/project-appearance.js +0 -1
  77. package/dist/suite/project-appearance.js.map +1 -1
  78. package/dist/suite/project-icon.d.ts +4 -5
  79. package/dist/suite/project-icon.d.ts.map +1 -1
  80. package/dist/suite/project-icon.js +2 -9
  81. package/dist/suite/project-icon.js.map +1 -1
  82. package/dist/suite/shell.d.ts +4 -27
  83. package/dist/suite/shell.d.ts.map +1 -1
  84. package/dist/suite/shell.js +63 -11
  85. package/dist/suite/shell.js.map +1 -1
  86. package/dist/suite/suite.css +375 -40
  87. package/dist/suite/views.d.ts +0 -7
  88. package/dist/suite/views.d.ts.map +1 -1
  89. package/dist/suite/views.js +1 -8
  90. package/dist/suite/views.js.map +1 -1
  91. package/dist/suite/work.d.ts +100 -0
  92. package/dist/suite/work.d.ts.map +1 -0
  93. package/dist/suite/work.js +160 -0
  94. package/dist/suite/work.js.map +1 -0
  95. package/dist/theme/suite-theme.css +0 -8
  96. package/package.json +2 -2
  97. package/skills/ux-flow/SKILL.md +12 -6
@@ -1,13 +1,9 @@
1
- /* @jaetask/toolkit: tokens and component styles. Import once at the app's root:
2
- import "@jaetask/toolkit/styles.css";
3
- Dark values apply under .dark or [data-theme="dark"] on any ancestor. */
4
-
5
1
  :root {
6
2
  --tk-ink: #1f2328;
7
- --tk-muted: #6b6a63;
8
- --tk-line: #e6e4dd;
9
- --tk-line-strong: #c9c7bf;
10
- --tk-panel: #f0efe9;
3
+ --tk-muted: #737373;
4
+ --tk-line: #e5e5e5;
5
+ --tk-line-strong: #d4d4d4;
6
+ --tk-panel: #f3f3f3;
11
7
  --tk-card: #ffffff;
12
8
  --tk-page: #f9f9f9;
13
9
  --tk-side: #f3f3f3;
@@ -16,13 +12,12 @@
16
12
  --tk-side-line: #e6e6e6;
17
13
  --tk-primary: #262626;
18
14
  --tk-on-primary: #ffffff;
19
- --tk-todo: #c9c7bf;
15
+ --tk-todo: #d4d4d4;
20
16
  --tk-doing: #d97706;
21
17
  --tk-done: #1a7f37;
22
18
  --tk-danger: #b42318;
23
19
  --tk-focus: #1f2328;
24
20
 
25
- /* The six named colours: labels, project colours, avatars. */
26
21
  --tk-c-blue: #0b5cad;
27
22
  --tk-c-blue-soft: #e3eefb;
28
23
  --tk-c-teal: #0f766e;
@@ -54,11 +49,11 @@
54
49
  .dark,
55
50
  [data-theme="dark"] {
56
51
  --tk-ink: #e6edf3;
57
- --tk-muted: #9a9890;
58
- --tk-line: #3a3935;
59
- --tk-line-strong: #5a5952;
60
- --tk-panel: #222220;
61
- --tk-card: #2d2d2b;
52
+ --tk-muted: #999999;
53
+ --tk-line: #333333;
54
+ --tk-line-strong: #525252;
55
+ --tk-panel: #222222;
56
+ --tk-card: #2a2a2a;
62
57
  --tk-page: #181818;
63
58
  --tk-side: #222222;
64
59
  --tk-side-fill: #292929;
@@ -66,7 +61,7 @@
66
61
  --tk-side-line: #333333;
67
62
  --tk-primary: #bfbfbf;
68
63
  --tk-on-primary: #1a1a1a;
69
- --tk-todo: #5a5952;
64
+ --tk-todo: #525252;
70
65
  --tk-doing: #d97706;
71
66
  --tk-done: #3fb950;
72
67
  --tk-danger: #f97066;
@@ -86,7 +81,6 @@
86
81
  --tk-c-pink-soft: #3d1630;
87
82
  }
88
83
 
89
- /* ---------- Base ---------- */
90
84
  .tk-root {
91
85
  font-family: var(--tk-font);
92
86
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
@@ -100,7 +94,6 @@
100
94
  .tk-root *::after {
101
95
  box-sizing: border-box;
102
96
  }
103
- /* No ring is drawn round a focused part. A focused field shows a darker border. */
104
97
  .tk-root :focus-visible {
105
98
  outline: none;
106
99
  }
@@ -108,7 +101,6 @@
108
101
  color: var(--tk-muted);
109
102
  }
110
103
 
111
- /* ---------- Shell ---------- */
112
104
  .tk-shell {
113
105
  display: grid;
114
106
  grid-template-columns: var(--tk-sidebar-width) minmax(0, 1fr);
@@ -128,6 +120,31 @@
128
120
  border-right: 1px solid var(--tk-side-line);
129
121
  color: var(--tk-side-text);
130
122
  }
123
+ .tk-side-resize {
124
+ position: absolute;
125
+ top: 0;
126
+ right: -3px;
127
+ bottom: 0;
128
+ width: 6px;
129
+ cursor: col-resize;
130
+ touch-action: none;
131
+ z-index: 5;
132
+ }
133
+ .tk-side-resize::after {
134
+ content: "";
135
+ position: absolute;
136
+ top: 0;
137
+ bottom: 0;
138
+ left: 2px;
139
+ width: 2px;
140
+ background: transparent;
141
+ transition: background 120ms ease;
142
+ }
143
+ .tk-side-resize:hover::after,
144
+ .tk-side-resize:focus-visible::after,
145
+ .tk-side-resize[data-dragging="true"]::after {
146
+ background: var(--tk-line-strong);
147
+ }
131
148
  .tk-side-scroll {
132
149
  flex: 1;
133
150
  min-height: 0;
@@ -395,6 +412,9 @@ a.tk-group-label:hover {
395
412
  }
396
413
 
397
414
  @media (max-width: 760px) {
415
+ .tk-side-resize {
416
+ display: none;
417
+ }
398
418
  .tk-shell,
399
419
  .tk-shell[data-collapsed="true"] {
400
420
  grid-template-columns: 1fr;
@@ -414,7 +434,6 @@ a.tk-group-label:hover {
414
434
  }
415
435
  }
416
436
 
417
- /* ---------- Page kit ---------- */
418
437
  .tk-page {
419
438
  display: flex;
420
439
  flex-direction: column;
@@ -572,7 +591,6 @@ a.tk-list-body:hover {
572
591
  gap: 6px;
573
592
  }
574
593
 
575
- /* ---------- Buttons and inputs ---------- */
576
594
  .tk-button {
577
595
  display: inline-flex;
578
596
  align-items: center;
@@ -649,7 +667,6 @@ a.tk-list-body:hover {
649
667
  color: var(--tk-page);
650
668
  }
651
669
 
652
- /* ---------- Edit page ---------- */
653
670
  .tk-edit {
654
671
  display: flex;
655
672
  flex-direction: column;
@@ -712,7 +729,6 @@ a.tk-list-body:hover {
712
729
  }
713
730
  }
714
731
 
715
- /* ---------- Confirm delete ---------- */
716
732
  .tk-dialog {
717
733
  max-width: 28rem;
718
734
  padding: 24px;
@@ -742,7 +758,6 @@ a.tk-list-body:hover {
742
758
  }
743
759
  }
744
760
 
745
- /* ---------- Named colours ---------- */
746
761
  [data-colour="blue"] {
747
762
  --tk-tint: var(--tk-c-blue);
748
763
  --tk-tint-soft: var(--tk-c-blue-soft);
@@ -788,7 +803,6 @@ a.tk-list-body:hover {
788
803
  object-fit: cover;
789
804
  }
790
805
 
791
- /* ---------- Counts ---------- */
792
806
  .tk-count {
793
807
  margin-left: auto;
794
808
  min-width: 20px;
@@ -807,7 +821,6 @@ a.tk-list-body:hover {
807
821
  background: var(--tk-panel);
808
822
  }
809
823
 
810
- /* ---------- Rows: drag, blocked ---------- */
811
824
  .tk-list-row[draggable="true"] {
812
825
  cursor: grab;
813
826
  }
@@ -827,7 +840,6 @@ a.tk-list-body:hover {
827
840
  cursor: grab;
828
841
  }
829
842
 
830
- /* ---------- Board ---------- */
831
843
  .tk-board {
832
844
  display: grid;
833
845
  grid-auto-flow: column;
@@ -878,7 +890,6 @@ a.tk-list-body:hover {
878
890
  font-size: 13px;
879
891
  }
880
892
 
881
- /* ---------- Thread ---------- */
882
893
  .tk-thread,
883
894
  .tk-replies {
884
895
  margin: 0;
@@ -969,7 +980,6 @@ a.tk-list-body:hover {
969
980
  margin-left: auto;
970
981
  }
971
982
 
972
- /* ---------- Facts, notices, inline ---------- */
973
983
  .tk-facts {
974
984
  display: grid;
975
985
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
@@ -1025,7 +1035,6 @@ a.tk-list-body:hover {
1025
1035
  flex: 1 1 10rem;
1026
1036
  }
1027
1037
 
1028
- /* ---------- Centred page ---------- */
1029
1038
  .tk-centered {
1030
1039
  display: grid;
1031
1040
  place-items: center;
@@ -1036,7 +1045,6 @@ a.tk-list-body:hover {
1036
1045
  width: min(100%, 30rem);
1037
1046
  }
1038
1047
 
1039
- /* ---------- Tabs, composer, filters ---------- */
1040
1048
  .tk-tabs {
1041
1049
  display: flex;
1042
1050
  flex-wrap: wrap;
@@ -1089,7 +1097,6 @@ a.tk-list-body:hover {
1089
1097
  color: var(--tk-page);
1090
1098
  }
1091
1099
 
1092
- /* ---------- Thumbnails ---------- */
1093
1100
  .tk-thumbs {
1094
1101
  display: grid;
1095
1102
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
@@ -1112,20 +1119,147 @@ a.tk-list-body:hover {
1112
1119
  height: 100%;
1113
1120
  object-fit: cover;
1114
1121
  }
1122
+ .tk-thumb-open {
1123
+ width: 100%;
1124
+ height: 100%;
1125
+ padding: 0;
1126
+ border-radius: 0;
1127
+ cursor: zoom-in;
1128
+ }
1129
+ .tk-thumb-open > img {
1130
+ width: 100%;
1131
+ height: 100%;
1132
+ object-fit: cover;
1133
+ }
1115
1134
  .tk-thumb-remove {
1116
1135
  position: absolute;
1136
+ top: 6px;
1117
1137
  right: 6px;
1118
- bottom: 6px;
1119
- padding: 4px 8px;
1120
- border: 0;
1121
- border-radius: 8px;
1122
- background: var(--tk-card);
1138
+ border-radius: 50%;
1139
+ opacity: 0;
1140
+ }
1141
+ .tk-thumb:hover > .tk-thumb-remove,
1142
+ .tk-thumb-remove:focus-visible {
1143
+ opacity: 1;
1144
+ }
1145
+
1146
+ .tk-content[data-bar="none"] {
1147
+ padding-top: 24px;
1148
+ }
1149
+ .tk-work {
1150
+ gap: 24px;
1151
+ }
1152
+ .tk-controls {
1153
+ display: flex;
1154
+ flex-wrap: wrap;
1155
+ align-items: center;
1156
+ gap: 8px;
1157
+ margin-bottom: 8px;
1158
+ }
1159
+ .tk-groups {
1160
+ display: grid;
1161
+ gap: 28px;
1162
+ }
1163
+ .tk-group-list {
1164
+ display: grid;
1165
+ gap: 10px;
1166
+ min-width: 0;
1167
+ }
1168
+ .tk-group-list-head {
1169
+ display: flex;
1170
+ align-items: center;
1171
+ gap: 8px;
1172
+ margin: 0;
1173
+ color: var(--tk-muted);
1174
+ font-size: 12px;
1175
+ font-weight: 500;
1176
+ }
1177
+ .tk-group-list-count {
1178
+ font-weight: 400;
1179
+ }
1180
+ .tk-work-head {
1181
+ display: flex;
1182
+ flex-wrap: wrap;
1183
+ align-items: center;
1184
+ justify-content: space-between;
1185
+ gap: 8px 16px;
1186
+ min-height: 32px;
1187
+ }
1188
+ .tk-work-title-row {
1189
+ display: flex;
1190
+ align-items: center;
1191
+ gap: 8px;
1192
+ min-width: 0;
1193
+ }
1194
+ .tk-work-title {
1195
+ margin: 0;
1196
+ font-size: 15px;
1197
+ font-weight: 500;
1198
+ line-height: 1.3;
1199
+ }
1200
+ .tk-work-actions {
1201
+ display: flex;
1202
+ flex-wrap: wrap;
1203
+ align-items: center;
1204
+ gap: 8px;
1205
+ }
1206
+ .tk-section {
1207
+ display: grid;
1208
+ gap: 8px;
1209
+ min-width: 0;
1210
+ }
1211
+ .tk-section-head {
1212
+ display: flex;
1213
+ align-items: center;
1214
+ justify-content: space-between;
1215
+ min-height: 24px;
1216
+ }
1217
+ .tk-section-title {
1218
+ height: auto;
1219
+ justify-content: flex-start;
1220
+ gap: 4px;
1221
+ padding: 0;
1222
+ color: var(--tk-muted);
1223
+ font-size: 12px;
1224
+ font-weight: 500;
1225
+ }
1226
+ .tk-section-title:hover {
1227
+ background: transparent;
1123
1228
  color: var(--tk-ink);
1124
- font: 600 12px / 1.25 var(--tk-font);
1125
- cursor: pointer;
1229
+ }
1230
+ .tk-section-count {
1231
+ margin-left: 4px;
1232
+ font-weight: 400;
1233
+ }
1234
+ .tk-empty-line {
1235
+ margin: 0;
1236
+ padding: 6px 0;
1237
+ color: var(--tk-muted);
1238
+ font-size: 13px;
1239
+ }
1240
+ .tk-icon-avatar {
1241
+ display: inline-grid;
1242
+ flex: none;
1243
+ place-items: center;
1244
+ border-radius: 50%;
1245
+ background: var(--tk-side-fill);
1246
+ color: var(--tk-ink);
1247
+ font-weight: 600;
1248
+ line-height: 1;
1249
+ }
1250
+ .tk-filter-chip {
1251
+ display: inline-flex;
1252
+ align-items: center;
1253
+ gap: 6px;
1254
+ max-width: 20rem;
1255
+ height: 28px;
1256
+ padding: 0 4px 0 10px;
1257
+ border: 1px solid var(--tk-line);
1258
+ border-radius: 999px;
1259
+ background: var(--tk-card);
1260
+ font-size: 12px;
1126
1261
  }
1127
1262
 
1128
- /* Suite parts on ported ui parts */
1129
1263
  .tk-blocked {
1130
1264
  border-color: transparent;
1131
1265
  background: var(--tk-c-amber-soft, #fdf0dc);
@@ -1144,3 +1278,204 @@ a.tk-list-body:hover {
1144
1278
  font-size: 11px;
1145
1279
  font-weight: 700;
1146
1280
  }
1281
+
1282
+ .tk-chat {
1283
+ display: flex;
1284
+ flex-direction: column;
1285
+ min-height: 0;
1286
+ height: 100%;
1287
+ gap: 0;
1288
+ }
1289
+ .tk-chat-head {
1290
+ display: flex;
1291
+ flex-wrap: wrap;
1292
+ align-items: center;
1293
+ justify-content: space-between;
1294
+ gap: 8px;
1295
+ padding: 10px 12px;
1296
+ border-bottom: 1px solid var(--tk-line);
1297
+ }
1298
+ .tk-chat-body {
1299
+ display: flex;
1300
+ flex: 1 1 auto;
1301
+ flex-direction: column;
1302
+ min-height: 0;
1303
+ margin: 0;
1304
+ }
1305
+ .tk-chat-lines {
1306
+ display: flex;
1307
+ flex: 1 1 auto;
1308
+ flex-direction: column;
1309
+ gap: 16px;
1310
+ min-height: 0;
1311
+ overflow-y: auto;
1312
+ padding: 16px;
1313
+ }
1314
+ .tk-chat-person {
1315
+ align-self: flex-end;
1316
+ max-width: 85%;
1317
+ margin: 0;
1318
+ padding: 10px 14px;
1319
+ border-radius: var(--tk-radius-card);
1320
+ background: var(--tk-panel);
1321
+ font-size: 0.875rem;
1322
+ line-height: 1.55;
1323
+ white-space: pre-wrap;
1324
+ }
1325
+ .tk-chat-reply {
1326
+ font-size: 0.875rem;
1327
+ line-height: 1.6;
1328
+ }
1329
+ .tk-chat-failed {
1330
+ color: var(--tk-danger);
1331
+ }
1332
+ .tk-chat-note,
1333
+ .tk-chat-empty {
1334
+ margin: 0;
1335
+ color: var(--tk-muted);
1336
+ font-size: 0.8125rem;
1337
+ }
1338
+ .tk-chat-empty {
1339
+ margin: auto;
1340
+ max-width: 22rem;
1341
+ text-align: center;
1342
+ }
1343
+ .tk-chat-composer {
1344
+ margin: 0 12px 10px;
1345
+ padding: 10px;
1346
+ border: 1px solid var(--tk-line);
1347
+ border-radius: var(--tk-radius-card);
1348
+ background: var(--tk-card);
1349
+ }
1350
+ .tk-chat-send {
1351
+ display: flex;
1352
+ justify-content: flex-end;
1353
+ }
1354
+ .tk-chat-foot,
1355
+ .tk-chat-problem {
1356
+ margin: 0;
1357
+ padding: 0 12px 10px;
1358
+ color: var(--tk-muted);
1359
+ font-size: 0.75rem;
1360
+ }
1361
+ .tk-chat-problem {
1362
+ color: var(--tk-danger);
1363
+ }
1364
+ .tk-model-switcher {
1365
+ display: flex;
1366
+ gap: 6px;
1367
+ }
1368
+ .tk-trajectory {
1369
+ display: flex;
1370
+ flex: 1 1 auto;
1371
+ flex-direction: column;
1372
+ gap: 18px;
1373
+ min-height: 0;
1374
+ overflow-y: auto;
1375
+ padding: 16px;
1376
+ }
1377
+ .tk-trajectory-usage,
1378
+ .tk-turn-head {
1379
+ display: flex;
1380
+ justify-content: space-between;
1381
+ gap: 8px;
1382
+ margin: 0;
1383
+ color: var(--tk-muted);
1384
+ font-size: 0.75rem;
1385
+ }
1386
+ .tk-turn {
1387
+ display: grid;
1388
+ gap: 8px;
1389
+ }
1390
+ .tk-turn-head {
1391
+ color: var(--tk-ink);
1392
+ font-weight: 600;
1393
+ }
1394
+ .tk-turn-plot {
1395
+ display: grid;
1396
+ gap: 6px;
1397
+ }
1398
+ .tk-turn-lane {
1399
+ display: grid;
1400
+ grid-template-columns: 3.5rem 1fr;
1401
+ align-items: center;
1402
+ gap: 8px;
1403
+ }
1404
+ .tk-turn-lane-name {
1405
+ color: var(--tk-muted);
1406
+ font-size: 0.6875rem;
1407
+ }
1408
+ .tk-turn-track {
1409
+ position: relative;
1410
+ height: 10px;
1411
+ border-radius: var(--tk-radius-row);
1412
+ background: var(--tk-panel);
1413
+ }
1414
+ .tk-turn-bar {
1415
+ position: absolute;
1416
+ top: 0;
1417
+ height: 10px;
1418
+ border: 0;
1419
+ border-radius: var(--tk-radius-row);
1420
+ cursor: pointer;
1421
+ }
1422
+ .tk-turn-bar.model,
1423
+ .tk-turn-tag.model {
1424
+ background: var(--tk-c-purple);
1425
+ }
1426
+ .tk-turn-bar.tool,
1427
+ .tk-turn-tag.tool {
1428
+ background: var(--tk-c-teal);
1429
+ }
1430
+ .tk-turn-bar.bad,
1431
+ .tk-turn-tag.bad {
1432
+ background: var(--tk-danger);
1433
+ }
1434
+ .tk-turn-steps {
1435
+ display: grid;
1436
+ gap: 2px;
1437
+ margin: 0;
1438
+ padding: 0;
1439
+ list-style: none;
1440
+ }
1441
+ .tk-turn-steps button {
1442
+ display: grid;
1443
+ grid-template-columns: auto 1fr auto;
1444
+ align-items: center;
1445
+ gap: 8px;
1446
+ width: 100%;
1447
+ padding: 4px 6px;
1448
+ border: 0;
1449
+ border-radius: var(--tk-radius-row);
1450
+ background: transparent;
1451
+ color: var(--tk-ink);
1452
+ font-size: 0.75rem;
1453
+ text-align: left;
1454
+ cursor: pointer;
1455
+ }
1456
+ .tk-turn-steps button:hover {
1457
+ background: var(--tk-panel);
1458
+ }
1459
+ .tk-turn-tag {
1460
+ padding: 1px 6px;
1461
+ border-radius: var(--tk-radius-row);
1462
+ color: var(--tk-on-primary);
1463
+ font-size: 0.6875rem;
1464
+ }
1465
+ .tk-turn-label {
1466
+ overflow: hidden;
1467
+ text-overflow: ellipsis;
1468
+ white-space: nowrap;
1469
+ }
1470
+ .tk-turn-meta {
1471
+ color: var(--tk-muted);
1472
+ }
1473
+ .tk-turn-pre {
1474
+ margin: 4px 0;
1475
+ padding: 12px;
1476
+ border-radius: var(--tk-radius-row);
1477
+ background: var(--tk-panel);
1478
+ font-size: 0.75rem;
1479
+ white-space: pre-wrap;
1480
+ word-break: break-word;
1481
+ }
@@ -1,5 +1,4 @@
1
1
  import type { ComponentType } from "react";
2
- /** One way to group a board: its id, the name its button is known by, and the button's icon. */
3
2
  export type ViewChoice<Id extends string = string> = {
4
3
  id: Id;
5
4
  label: string;
@@ -7,20 +6,14 @@ export type ViewChoice<Id extends string = string> = {
7
6
  size?: number;
8
7
  "aria-hidden"?: boolean;
9
8
  }>;
10
- /** The heading shown above the board in this view, where an app shows one. */
11
9
  heading?: string;
12
10
  };
13
- /** The buttons that choose how a board groups its tickets. */
14
11
  export declare function ViewToggle<Id extends string>({ views, value, onChange, label, }: {
15
12
  label?: string;
16
13
  views: readonly ViewChoice<Id>[];
17
14
  value: Id;
18
15
  onChange: (view: Id) => void;
19
16
  }): import("react").JSX.Element;
20
- /**
21
- * Pills that are each on or off, such as the properties a card shows. `value` holds the ids
22
- * that are on.
23
- */
24
17
  export declare function PropertyPills({ label, options, value, onChange, }: {
25
18
  label: string;
26
19
  options: readonly (readonly [id: string, name: string])[];
@@ -1 +1 @@
1
- {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/suite/views.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,gGAAgG;AAChG,MAAM,MAAM,UAAU,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,IAAI;IACnD,EAAE,EAAE,EAAE,CAAC;IACP,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAChE,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC5C,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAoB,GACrB,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;IACjC,KAAK,EAAE,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,IAAI,CAAC;CAC9B,+BA8BA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;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sx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ToggleGroup, ToggleGroupItem } from "../ui/toggle-group.js";
3
3
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip.js";
4
- /** The buttons that choose how a board groups its tickets. */
5
4
  export function ViewToggle({ views, value, onChange, label = "Board view", }) {
6
5
  return (_jsx(TooltipProvider, { children: _jsx(ToggleGroup, { type: "single", "aria-label": label, className: "gap-1 rounded-lg border p-1", value: value, onValueChange: (v) => {
7
6
  if (v)
8
7
  onChange(v);
9
- }, children: views.map(({ id, label, Icon }) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(ToggleGroupItem, { value: id, "aria-label": `${label} view`,
10
- // The tooltip takes over data-state, so the chosen view is marked by class.
11
- className: `size-8 p-0 ${value === id ? "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground" : ""}`, children: _jsx(Icon, { size: 18, "aria-hidden": true }) }) }), _jsx(TooltipContent, { children: label })] }, id))) }) }));
8
+ }, children: views.map(({ id, label, Icon }) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(ToggleGroupItem, { value: id, "aria-label": `${label} view`, className: `size-8 p-0 ${value === id ? "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground" : ""}`, children: _jsx(Icon, { size: 18, "aria-hidden": true }) }) }), _jsx(TooltipContent, { children: label })] }, id))) }) }));
12
9
  }
13
- /**
14
- * Pills that are each on or off, such as the properties a card shows. `value` holds the ids
15
- * that are on.
16
- */
17
10
  export function PropertyPills({ label, options, value, onChange, }) {
18
11
  return (_jsx(ToggleGroup, { type: "multiple", "aria-label": label, className: "flex-wrap justify-start gap-1.5", value: [...value], onValueChange: onChange, children: options.map(([id, name]) => (_jsx(ToggleGroupItem, { value: id, className: "h-7 rounded-full border px-3 text-xs font-normal text-muted-foreground data-[state=on]:border-transparent data-[state=on]:bg-muted data-[state=on]:text-foreground", children: name }, id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