@jaetask/toolkit 0.3.8 → 0.3.9

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.9
4
+
5
+ - Readable type: suite text is never under 13px, small Tailwind text (`text-xs`) is 13px and `text-sm` is 15px. Chat messages and the composer are 15px, the Trajectory 14px. A test holds the 13px floor.
6
+
3
7
  ## 0.3.8
4
8
 
5
9
  - `ModelSwitcher` works like Claude's own picker: the top models with number keys 1 to 4, an Effort submenu with only the efforts the chosen model supports (Low, Medium marked Recommended, High, Extra for `xhigh`, Max with its usage warning), and a More models submenu.
package/dist/styles.css CHANGED
@@ -273,6 +273,10 @@ body:has(.fixed.bottom-3.left-3) [data-sidebar-footer-actions] {
273
273
  }
274
274
 
275
275
  @theme inline {
276
+ --text-xs: 0.8125rem;
277
+ --text-xs--line-height: 1.25rem;
278
+ --text-sm: 0.9375rem;
279
+ --text-sm--line-height: 1.5rem;
276
280
  --color-border: hsl(var(--border));
277
281
  --color-input: hsl(var(--input));
278
282
  --color-ring: hsl(var(--ring));
@@ -612,7 +612,7 @@ export function EmojiPickerPanel({ onSelect, autoFocus = true, }) {
612
612
  requestAnimationFrame(() => searchRef.current?.focus());
613
613
  }, [autoFocus]);
614
614
  const filteredCategories = useMemo(() => filterEmojiCategories(search), [search]);
615
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: "p-2 border-b", children: _jsx("input", { ref: searchRef, type: "text", value: search, onChange: (e) => setSearch(e.target.value), placeholder: "Search emoji...", className: "w-full px-2.5 py-1.5 text-sm bg-accent/50 rounded-md outline-none placeholder:text-muted-foreground/50" }) }), _jsx("div", { className: "max-h-64 overflow-auto p-2", children: filteredCategories.length === 0 ? (_jsx("div", { className: "text-sm text-muted-foreground text-center py-4", children: "No emojis found" })) : (filteredCategories.map((category) => (_jsxs("div", { className: "mb-2 last:mb-0", children: [_jsx("div", { className: "text-[11px] font-medium text-muted-foreground/60 uppercase tracking-wider px-0.5 mb-1", children: category.name }), _jsx("div", { className: "grid grid-cols-7 gap-0 sm:grid-cols-8", children: category.emojis.map((emoji) => (_jsx("button", { type: "button", onClick: () => onSelect(emoji), className: "w-9 h-9 flex items-center justify-center text-lg rounded hover:bg-accent cursor-pointer", children: emoji }, emoji))) })] }, category.name)))) })] }));
615
+ return (_jsxs(_Fragment, { children: [_jsx("div", { className: "p-2 border-b", children: _jsx("input", { ref: searchRef, type: "text", value: search, onChange: (e) => setSearch(e.target.value), placeholder: "Search emoji...", className: "w-full px-2.5 py-1.5 text-sm bg-accent/50 rounded-md outline-none placeholder:text-muted-foreground/50" }) }), _jsx("div", { className: "max-h-64 overflow-auto p-2", children: filteredCategories.length === 0 ? (_jsx("div", { className: "text-sm text-muted-foreground text-center py-4", children: "No emojis found" })) : (filteredCategories.map((category) => (_jsxs("div", { className: "mb-2 last:mb-0", children: [_jsx("div", { className: "text-[13px] font-medium text-muted-foreground/60 uppercase tracking-wider px-0.5 mb-1", children: category.name }), _jsx("div", { className: "grid grid-cols-7 gap-0 sm:grid-cols-8", children: category.emojis.map((emoji) => (_jsx("button", { type: "button", onClick: () => onSelect(emoji), className: "w-9 h-9 flex items-center justify-center text-lg rounded hover:bg-accent cursor-pointer", children: emoji }, emoji))) })] }, category.name)))) })] }));
616
616
  }
617
617
  export const CommentIconButton = forwardRef(function CommentIconButton({ className, type = "button", ...props }, ref) {
618
618
  return (_jsx("button", { ref: ref, type: type, className: cn("inline-flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-40", className), ...props }));
@@ -86,7 +86,7 @@
86
86
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
87
87
  color: var(--tk-ink);
88
88
  background: var(--tk-page);
89
- font-size: 14px;
89
+ font-size: 15px;
90
90
  line-height: 1.5;
91
91
  }
92
92
  .tk-root *,
@@ -170,7 +170,7 @@
170
170
  border-radius: 6px;
171
171
  background: var(--tk-primary);
172
172
  color: var(--tk-on-primary);
173
- font-size: 12px;
173
+ font-size: 13px;
174
174
  font-weight: 800;
175
175
  }
176
176
  .tk-nav {
@@ -218,7 +218,7 @@
218
218
  .tk-group-label {
219
219
  display: block;
220
220
  padding: 14px 22px 6px;
221
- font-size: 11px;
221
+ font-size: 13px;
222
222
  font-weight: 800;
223
223
  letter-spacing: 0.08em;
224
224
  text-transform: uppercase;
@@ -249,7 +249,7 @@ a.tk-group-label:hover {
249
249
  overflow: hidden;
250
250
  background: var(--tk-line);
251
251
  color: var(--tk-ink);
252
- font-size: 11px;
252
+ font-size: 13px;
253
253
  font-weight: 700;
254
254
  }
255
255
  .tk-group-row {
@@ -288,14 +288,14 @@ a.tk-group-label:hover {
288
288
  }
289
289
  .tk-side-section > .tk-group-label {
290
290
  padding: 10px 18px 4px;
291
- font-size: 10.5px;
291
+ font-size: 13px;
292
292
  }
293
293
  .tk-side-link {
294
294
  justify-content: space-between;
295
295
  margin: 0 6px;
296
296
  padding: 5px 12px;
297
297
  color: var(--tk-ink);
298
- font-size: 13px;
298
+ font-size: 14px;
299
299
  }
300
300
  .tk-side-link[aria-current="page"] {
301
301
  background: var(--tk-card);
@@ -308,13 +308,13 @@ a.tk-group-label:hover {
308
308
  }
309
309
  .tk-side-link-line {
310
310
  color: var(--tk-side-text);
311
- font-size: 11px;
311
+ font-size: 13px;
312
312
  font-weight: 400;
313
313
  line-height: 1.3;
314
314
  }
315
315
  .tk-side-empty {
316
316
  padding: 6px 24px;
317
- font-size: 12px;
317
+ font-size: 13px;
318
318
  color: var(--tk-side-text);
319
319
  }
320
320
  .tk-nav-bottom {
@@ -328,7 +328,7 @@ a.tk-group-label:hover {
328
328
  padding: 10px 12px 10px 16px;
329
329
  border-top: 1px solid var(--tk-side-line);
330
330
  color: var(--tk-ink);
331
- font-size: 13px;
331
+ font-size: 14px;
332
332
  }
333
333
  .tk-side-foot > .tk-settings {
334
334
  flex: 1;
@@ -397,7 +397,7 @@ a.tk-group-label:hover {
397
397
  }
398
398
  .tk-top-app {
399
399
  color: var(--tk-muted);
400
- font-size: 13px;
400
+ font-size: 14px;
401
401
  }
402
402
  .tk-top-aside {
403
403
  margin-left: auto;
@@ -460,7 +460,7 @@ a.tk-group-label:hover {
460
460
  .tk-page-line {
461
461
  margin: 4px 0 0;
462
462
  color: var(--tk-muted);
463
- font-size: 14px;
463
+ font-size: 15px;
464
464
  }
465
465
  .tk-panel {
466
466
  display: flex;
@@ -487,7 +487,7 @@ a.tk-group-label:hover {
487
487
  .tk-panel-line {
488
488
  margin: 4px 0 0;
489
489
  color: var(--tk-muted);
490
- font-size: 14px;
490
+ font-size: 15px;
491
491
  line-height: 1.35;
492
492
  }
493
493
  .tk-card {
@@ -497,7 +497,7 @@ a.tk-group-label:hover {
497
497
  background: var(--tk-card);
498
498
  }
499
499
  .tk-kicker {
500
- font-size: 12px;
500
+ font-size: 13px;
501
501
  font-weight: 700;
502
502
  letter-spacing: 0.08em;
503
503
  text-transform: uppercase;
@@ -575,7 +575,7 @@ a.tk-list-body:hover {
575
575
  align-items: center;
576
576
  gap: 6px;
577
577
  color: var(--tk-muted);
578
- font-size: 13px;
578
+ font-size: 14px;
579
579
  }
580
580
  .tk-chip {
581
581
  display: inline-block;
@@ -583,7 +583,7 @@ a.tk-list-body:hover {
583
583
  border-radius: 999px;
584
584
  background: var(--tk-panel);
585
585
  color: var(--tk-ink);
586
- font-size: 13px;
586
+ font-size: 14px;
587
587
  }
588
588
  .tk-chips {
589
589
  display: flex;
@@ -710,7 +710,7 @@ a.tk-list-body:hover {
710
710
  }
711
711
  .tk-row-line {
712
712
  color: var(--tk-muted);
713
- font-size: 12px;
713
+ font-size: 13px;
714
714
  line-height: 1.35;
715
715
  }
716
716
  .tk-row-fields {
@@ -792,7 +792,7 @@ a.tk-list-body:hover {
792
792
  color: var(--tk-page);
793
793
  }
794
794
  .tk-avatar[data-emoji="true"] {
795
- font-size: 13px;
795
+ font-size: 14px;
796
796
  }
797
797
  .tk-avatar[data-emoji="true"][data-colour] {
798
798
  background: var(--tk-tint-soft);
@@ -810,7 +810,7 @@ a.tk-list-body:hover {
810
810
  border-radius: 999px;
811
811
  background: var(--tk-side-fill);
812
812
  color: var(--tk-muted);
813
- font-size: 12px;
813
+ font-size: 13px;
814
814
  font-weight: 600;
815
815
  text-align: center;
816
816
  font-variant-numeric: tabular-nums;
@@ -887,7 +887,7 @@ a.tk-list-body:hover {
887
887
  border: 1px dashed var(--tk-line-strong);
888
888
  border-radius: var(--tk-radius-card);
889
889
  color: var(--tk-muted);
890
- font-size: 13px;
890
+ font-size: 14px;
891
891
  }
892
892
 
893
893
  .tk-thread,
@@ -923,7 +923,7 @@ a.tk-list-body:hover {
923
923
  }
924
924
  .tk-comment-time {
925
925
  color: var(--tk-muted);
926
- font-size: 12px;
926
+ font-size: 13px;
927
927
  }
928
928
  .tk-comment-text {
929
929
  overflow-wrap: anywhere;
@@ -967,7 +967,7 @@ a.tk-list-body:hover {
967
967
  align-items: center;
968
968
  gap: 8px;
969
969
  color: var(--tk-muted);
970
- font-size: 13px;
970
+ font-size: 14px;
971
971
  }
972
972
  .tk-activity-dot {
973
973
  width: 6px;
@@ -1171,7 +1171,7 @@ a.tk-list-body:hover {
1171
1171
  gap: 8px;
1172
1172
  margin: 0;
1173
1173
  color: var(--tk-muted);
1174
- font-size: 12px;
1174
+ font-size: 13px;
1175
1175
  font-weight: 500;
1176
1176
  }
1177
1177
  .tk-group-list-count {
@@ -1220,7 +1220,7 @@ a.tk-list-body:hover {
1220
1220
  gap: 4px;
1221
1221
  padding: 0;
1222
1222
  color: var(--tk-muted);
1223
- font-size: 12px;
1223
+ font-size: 13px;
1224
1224
  font-weight: 500;
1225
1225
  }
1226
1226
  .tk-section-title:hover {
@@ -1235,7 +1235,7 @@ a.tk-list-body:hover {
1235
1235
  margin: 0;
1236
1236
  padding: 6px 0;
1237
1237
  color: var(--tk-muted);
1238
- font-size: 13px;
1238
+ font-size: 14px;
1239
1239
  }
1240
1240
  .tk-icon-avatar {
1241
1241
  display: inline-grid;
@@ -1257,7 +1257,7 @@ a.tk-list-body:hover {
1257
1257
  border: 1px solid var(--tk-line);
1258
1258
  border-radius: 999px;
1259
1259
  background: var(--tk-card);
1260
- font-size: 12px;
1260
+ font-size: 13px;
1261
1261
  }
1262
1262
 
1263
1263
  .tk-blocked {
@@ -1275,7 +1275,7 @@ a.tk-list-body:hover {
1275
1275
  .tk-item-avatar {
1276
1276
  width: 22px;
1277
1277
  height: 22px;
1278
- font-size: 11px;
1278
+ font-size: 13px;
1279
1279
  font-weight: 700;
1280
1280
  }
1281
1281
 
@@ -1322,13 +1322,13 @@ a.tk-list-body:hover {
1322
1322
  padding: 10px 14px;
1323
1323
  border-radius: var(--tk-radius-card);
1324
1324
  background: var(--tk-panel);
1325
- font-size: 0.875rem;
1325
+ font-size: 15px;
1326
1326
  line-height: 1.55;
1327
1327
  white-space: pre-wrap;
1328
1328
  }
1329
1329
  .tk-chat-reply {
1330
1330
  min-width: 0;
1331
- font-size: 0.875rem;
1331
+ font-size: 15px;
1332
1332
  line-height: 1.6;
1333
1333
  overflow-wrap: anywhere;
1334
1334
  }
@@ -1344,7 +1344,7 @@ a.tk-list-body:hover {
1344
1344
  .tk-chat-empty {
1345
1345
  margin: 0;
1346
1346
  color: var(--tk-muted);
1347
- font-size: 0.8125rem;
1347
+ font-size: 14px;
1348
1348
  }
1349
1349
  .tk-chat-empty {
1350
1350
  margin: auto;
@@ -1369,7 +1369,7 @@ a.tk-list-body:hover {
1369
1369
  margin: 0;
1370
1370
  padding: 0 12px 10px;
1371
1371
  color: var(--tk-muted);
1372
- font-size: 0.75rem;
1372
+ font-size: 14px;
1373
1373
  }
1374
1374
  .tk-chat-problem {
1375
1375
  color: var(--tk-danger);
@@ -1377,7 +1377,7 @@ a.tk-list-body:hover {
1377
1377
  .tk-model-button {
1378
1378
  gap: 6px;
1379
1379
  color: var(--tk-ink);
1380
- font-size: 0.8125rem;
1380
+ font-size: 14px;
1381
1381
  }
1382
1382
  .tk-model-effort {
1383
1383
  color: var(--tk-muted);
@@ -1392,12 +1392,12 @@ a.tk-list-body:hover {
1392
1392
  display: flex;
1393
1393
  align-items: center;
1394
1394
  gap: 8px;
1395
- font-size: 0.8125rem;
1395
+ font-size: 14px;
1396
1396
  }
1397
1397
  .tk-model-intro {
1398
1398
  margin: 4px 8px 6px;
1399
1399
  color: var(--tk-muted);
1400
- font-size: 0.75rem;
1400
+ font-size: 14px;
1401
1401
  line-height: 1.4;
1402
1402
  }
1403
1403
  .tk-effort-name {
@@ -1411,11 +1411,11 @@ a.tk-list-body:hover {
1411
1411
  border-radius: var(--tk-radius-row);
1412
1412
  background: var(--tk-panel);
1413
1413
  color: var(--tk-muted);
1414
- font-size: 0.6875rem;
1414
+ font-size: 13px;
1415
1415
  }
1416
1416
  .tk-model-warn {
1417
1417
  color: var(--tk-c-amber);
1418
- font-size: 0.6875rem;
1418
+ font-size: 13px;
1419
1419
  }
1420
1420
  .tk-models {
1421
1421
  display: grid;
@@ -1429,7 +1429,7 @@ a.tk-list-body:hover {
1429
1429
  }
1430
1430
  .tk-models-synced {
1431
1431
  color: var(--tk-muted);
1432
- font-size: 0.8125rem;
1432
+ font-size: 14px;
1433
1433
  }
1434
1434
  .tk-chat-layout {
1435
1435
  height: calc(100dvh - 64px);
@@ -1476,7 +1476,7 @@ a.tk-list-body:hover {
1476
1476
  gap: 8px;
1477
1477
  margin: 0;
1478
1478
  color: var(--tk-muted);
1479
- font-size: 0.75rem;
1479
+ font-size: 14px;
1480
1480
  }
1481
1481
  .tk-turn {
1482
1482
  display: grid;
@@ -1498,7 +1498,7 @@ a.tk-list-body:hover {
1498
1498
  }
1499
1499
  .tk-turn-lane-name {
1500
1500
  color: var(--tk-muted);
1501
- font-size: 0.6875rem;
1501
+ font-size: 13px;
1502
1502
  }
1503
1503
  .tk-turn-track {
1504
1504
  position: relative;
@@ -1544,7 +1544,7 @@ a.tk-list-body:hover {
1544
1544
  border-radius: var(--tk-radius-row);
1545
1545
  background: transparent;
1546
1546
  color: var(--tk-ink);
1547
- font-size: 0.75rem;
1547
+ font-size: 14px;
1548
1548
  text-align: left;
1549
1549
  cursor: pointer;
1550
1550
  }
@@ -1555,7 +1555,7 @@ a.tk-list-body:hover {
1555
1555
  padding: 1px 6px;
1556
1556
  border-radius: var(--tk-radius-row);
1557
1557
  color: var(--tk-on-primary);
1558
- font-size: 0.6875rem;
1558
+ font-size: 13px;
1559
1559
  }
1560
1560
  .tk-turn-label {
1561
1561
  overflow: hidden;
@@ -1570,7 +1570,7 @@ a.tk-list-body:hover {
1570
1570
  padding: 12px;
1571
1571
  border-radius: var(--tk-radius-row);
1572
1572
  background: var(--tk-panel);
1573
- font-size: 0.75rem;
1573
+ font-size: 14px;
1574
1574
  white-space: pre-wrap;
1575
1575
  word-break: break-word;
1576
1576
  }
@@ -11,7 +11,7 @@ function normalizeTooltipText(text) {
11
11
  }
12
12
  const TooltipContent = React.forwardRef(({ className, sideOffset = 6, children, container, ...props }, ref) => {
13
13
  const normalizedChildren = typeof children === "string" ? normalizeTooltipText(children) : children;
14
- return (_jsx(TooltipPrimitive.Portal, { container: container, children: _jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, "data-agent-native-tooltip": "true", className: cn("z-[500] overflow-hidden rounded-md border border-border bg-popover px-2 py-1 text-[11px] text-foreground shadow-md origin-[var(--radix-tooltip-content-transform-origin)] data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:duration-150 motion-reduce:data-[state=delayed-open]:zoom-in-100", className), ...props, children: normalizedChildren }) }));
14
+ return (_jsx(TooltipPrimitive.Portal, { container: container, children: _jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, "data-agent-native-tooltip": "true", className: cn("z-[500] overflow-hidden rounded-md border border-border bg-popover px-2 py-1 text-[13px] text-foreground shadow-md origin-[var(--radix-tooltip-content-transform-origin)] data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:duration-150 motion-reduce:data-[state=delayed-open]:zoom-in-100", className), ...props, children: normalizedChildren }) }));
15
15
  });
16
16
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
17
17
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, normalizeTooltipText, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaetask/toolkit",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "The agent-native toolkit's ui parts, ported with the suite's look, plus the suite's app shell and page kit.",
5
5
  "keywords": [
6
6
  "react",