@astryxdesign/cli 0.7.11 → 0.7.12-canary.0840fcc

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 (160) hide show
  1. package/api/build/blocks/blocks.d.mts +41 -0
  2. package/api/build/blocks/blocks.mjs +118 -68
  3. package/api/build/kit/rank.mjs +21 -4
  4. package/api/build/kit/words.d.mts +1 -0
  5. package/api/build/kit/words.mjs +1 -1
  6. package/api/component/__fixtures__/resolutions/modules.txt +5 -5
  7. package/api/docs/_adapter.d.mts +22 -0
  8. package/api/docs/_adapter.mjs +81 -3
  9. package/api/docs/docs.doc.mjs +5 -5
  10. package/api/docs/docs.type.d.mts +21 -0
  11. package/api/docs/docs.type.mjs +11 -0
  12. package/api/docs/list/list.d.mts +5 -1
  13. package/api/docs/list/list.mjs +72 -6
  14. package/api/docs/node/node.mjs +2 -40
  15. package/api/icon/_adapter.d.mts +3 -2
  16. package/api/icon/_adapter.mjs +8 -2
  17. package/api/icon/_authoring.d.mts +1 -0
  18. package/api/icon/_authoring.mjs +594 -67
  19. package/api/icon/_default-look.d.mts +155 -0
  20. package/api/icon/_default-look.mjs +474 -0
  21. package/api/icon/_records.d.mts +1 -1
  22. package/api/icon/_records.mjs +1 -0
  23. package/api/icon/add/add.mjs +269 -43
  24. package/api/icon/icon.type.d.mts +46 -2
  25. package/api/icon/icon.type.mjs +12 -2
  26. package/api/icon/iconAdd.doc.mjs +2 -2
  27. package/api/icon/iconNewDefinition.doc.mjs +3 -2
  28. package/api/icon/iconNewSet.doc.mjs +4 -4
  29. package/api/icon/map/map.mjs +11 -4
  30. package/api/icon/search/search.mjs +10 -9
  31. package/api/index.d.mts +1 -0
  32. package/api/index.mjs +1 -0
  33. package/api/integration/add-helpers.d.mts +15 -1
  34. package/api/integration/add-helpers.mjs +5 -2
  35. package/api/integration/authoring-checks.d.mts +0 -2
  36. package/api/integration/authoring-checks.mjs +1 -6
  37. package/api/logger.mjs +2 -1
  38. package/api/render/_adapter.mjs +9 -0
  39. package/api/render/render.doc.mjs +3 -3
  40. package/api/render/render.type.d.mts +1 -1
  41. package/api/render/render.type.mjs +1 -1
  42. package/api/search/ORDERING.md +3 -0
  43. package/api/search/_adapter.d.mts +32 -3
  44. package/api/search/_adapter.mjs +50 -22
  45. package/api/search/_fit-order.d.mts +47 -0
  46. package/api/search/_fit-order.mjs +257 -0
  47. package/api/search/_main-searcher.mjs +15 -5
  48. package/api/search/exportSearchIndex.doc.d.mts +10 -0
  49. package/api/search/exportSearchIndex.doc.mjs +58 -0
  50. package/api/search/rankSearchIndex.doc.d.mts +10 -0
  51. package/api/search/rankSearchIndex.doc.mjs +79 -0
  52. package/api/search/search-index.d.mts +44 -0
  53. package/api/search/search-index.mjs +270 -0
  54. package/api/search/search.type.d.mts +28 -0
  55. package/api/search/search.type.mjs +17 -0
  56. package/api/swizzle/_adapter.d.mts +1 -0
  57. package/api/swizzle/_adapter.mjs +4 -1
  58. package/api/swizzle/_moduleGraph.d.mts +178 -0
  59. package/api/swizzle/_moduleGraph.mjs +903 -0
  60. package/api/swizzle/copy/copy.d.mts +2 -43
  61. package/api/swizzle/copy/copy.mjs +287 -315
  62. package/api/swizzle/swizzle.d.mts +0 -2
  63. package/api/swizzle/swizzle.doc.mjs +13 -4
  64. package/api/swizzle/swizzle.mjs +3 -7
  65. package/api/swizzle/swizzle.type.d.mts +7 -1
  66. package/api/swizzle/swizzle.type.mjs +4 -2
  67. package/api/template/template.mjs +1 -0
  68. package/assets/discover/official-packages.json +36 -0
  69. package/assets/docs/browser-support.doc.mjs +2 -2
  70. package/assets/docs/styling-overview.doc.mjs +6 -2
  71. package/assets/docs/tree/icon-sets.doc.mjs +13 -7
  72. package/assets/docs/tree/render-pages.doc.mjs +3 -3
  73. package/assets/docs/tree/tailwind.doc.mjs +41 -1
  74. package/assets/docs/tree/type-scale.doc.mjs +19 -2
  75. package/assets/templates/blocks/components/Calendar/useCalendarConstraintsHookUsage.doc.mjs +14 -0
  76. package/assets/templates/blocks/components/Calendar/useCalendarConstraintsHookUsage.tsx +146 -0
  77. package/assets/templates/blocks/components/Calendar/useCalendarNavigationHookUsage.doc.mjs +14 -0
  78. package/assets/templates/blocks/components/Calendar/useCalendarNavigationHookUsage.tsx +173 -0
  79. package/assets/templates/blocks/components/Hooks/useInputStatusIconHookUsage.tsx +1 -0
  80. package/assets/templates/blocks/components/Hooks/useInteractiveRoleHookUsage.doc.mjs +14 -0
  81. package/assets/templates/blocks/components/Hooks/useInteractiveRoleHookUsage.tsx +56 -0
  82. package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs +2 -2
  83. package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx +66 -10
  84. package/assets/templates/blocks/components/Link/useLinkifyHookUsage.doc.mjs +14 -0
  85. package/assets/templates/blocks/components/Link/useLinkifyHookUsage.tsx +39 -0
  86. package/assets/templates/blocks/components/PowerSearch/usePowerSearchConfigHookUsage.doc.mjs +14 -0
  87. package/assets/templates/blocks/components/PowerSearch/usePowerSearchConfigHookUsage.tsx +83 -0
  88. package/assets/templates/blocks/components/Table/RowsVirtualizationHookUsage.doc.mjs +14 -0
  89. package/assets/templates/blocks/components/Table/RowsVirtualizationHookUsage.tsx +41 -0
  90. package/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjs +1 -1
  91. package/assets/templates/blocks/components/Table/TableRowIndexTable.tsx +2 -2
  92. package/assets/templates/blocks/components/Table/useTableColumnSettingsStateHookUsage.doc.mjs +14 -0
  93. package/assets/templates/blocks/components/Table/useTableColumnSettingsStateHookUsage.tsx +97 -0
  94. package/assets/templates/pages/course-detail/page.tsx +699 -0
  95. package/assets/templates/pages/course-detail/template.doc.mjs +37 -0
  96. package/assets/templates/pages/file-explorer/page.tsx +103 -79
  97. package/assets/templates/pages/table-filter/page.tsx +15 -23
  98. package/assets/templates/pages/table-grouped/page.tsx +160 -232
  99. package/assets/templates/pages/table-grouped/template.doc.mjs +0 -2
  100. package/assets/templates/pages/table-inbox/page.tsx +3 -6
  101. package/assets/templates/pages/theme-showcase/page.tsx +724 -792
  102. package/assets/templates/pages/theme-showcase/template.doc.mjs +4 -5
  103. package/assets/templates/themes/butter/butterTheme.ts +2 -2
  104. package/assets/templates/themes/gothic/gothicTheme.ts +16 -0
  105. package/assets/templates/themes/matcha/matchaTheme.ts +1 -1
  106. package/assets/templates/themes/neutral/neutralTheme.ts +6 -0
  107. package/assets/templates/themes/stone/stoneTheme.ts +1 -1
  108. package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +1 -1
  109. package/assets/templates/themes/y2k/y2kTheme.ts +2 -2
  110. package/authoring/doctypes/template/type.ts +1 -0
  111. package/clients/cli/commands/docs.doc.mjs +5 -1
  112. package/clients/cli/commands/docs.mjs +30 -2
  113. package/clients/cli/commands/experimental/icon.mjs +56 -14
  114. package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
  115. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +2 -1
  116. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +2 -2
  117. package/clients/cli/commands/experimental-render.doc.mjs +1 -1
  118. package/clients/cli/commands/swizzle.doc.mjs +12 -3
  119. package/clients/cli/commands/swizzle.mjs +33 -9
  120. package/clients/cli/lib/resolve-theme.mjs +16 -7
  121. package/foundation/discovery/component-loader.d.mts +1 -1
  122. package/foundation/discovery/doc-types.mjs +9 -2
  123. package/foundation/discovery/hook-discovery.mjs +31 -8
  124. package/foundation/discovery/icon-ranking.d.mts +27 -3
  125. package/foundation/discovery/icon-ranking.mjs +125 -8
  126. package/foundation/discovery/icon-set-checks.mjs +44 -35
  127. package/foundation/discovery/icon-set-discovery.d.mts +13 -0
  128. package/foundation/discovery/icon-set-discovery.mjs +25 -0
  129. package/foundation/discovery/icon-set-writer.d.mts +258 -20
  130. package/foundation/discovery/icon-set-writer.mjs +785 -87
  131. package/foundation/discovery/module-exports.d.mts +3 -2
  132. package/foundation/discovery/module-exports.mjs +167 -37
  133. package/foundation/doc-compiler/import.d.mts +5 -1
  134. package/foundation/doc-compiler/import.mjs +40 -6
  135. package/foundation/fs/import-url.d.mts +20 -0
  136. package/foundation/fs/import-url.mjs +22 -0
  137. package/foundation/fs/module-loader.d.mts +24 -3
  138. package/foundation/fs/module-loader.mjs +69 -47
  139. package/foundation/fs/paths.d.mts +2 -1
  140. package/foundation/fs/paths.mjs +3 -4
  141. package/foundation/render/charts.d.mts +59 -0
  142. package/foundation/render/charts.mjs +216 -0
  143. package/foundation/render/embedded-imports.d.mts +7 -7
  144. package/foundation/render/embedded-imports.mjs +63 -54
  145. package/foundation/render/page-host.d.mts +4 -0
  146. package/foundation/render/page-host.mjs +45 -0
  147. package/foundation/render/page-worker.mjs +350 -57
  148. package/foundation/render/render-page.d.mts +11 -6
  149. package/foundation/render/render-page.mjs +164 -54
  150. package/foundation/render/ts-paths.d.mts +63 -0
  151. package/foundation/render/ts-paths.mjs +138 -0
  152. package/foundation/response/error-codes.doc.mjs +3 -3
  153. package/foundation/response/error-codes.mjs +3 -2
  154. package/foundation/text/levenshtein.d.mts +6 -1
  155. package/foundation/text/levenshtein.mjs +25 -9
  156. package/foundation/text/shell-arg.d.mts +14 -0
  157. package/foundation/text/shell-arg.mjs +17 -0
  158. package/foundation/text/suggest-order.d.mts +8 -1
  159. package/foundation/text/suggest-order.mjs +72 -6
  160. package/package.json +7 -6
@@ -0,0 +1,37 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'page',
6
+ name: 'Course Detail',
7
+ displayName: 'Course Detail',
8
+ description:
9
+ 'Long-form sales page for a single offering, in two columns — read the pitch, then enroll from a sticky rail. The main column holds a preview poster with a fact row, an about block with skill chips, a module syllabus whose sections collapse module by module, an instructor card, reviews with a scored-aspects panel, and a FAQ; the rail holds the price, a self-paced or cohort start picker, and a weekly-pace slider that computes a finish date. The shape for any offering with a curriculum and a purchase panel — a course, class, masterclass, bootcamp, workshop, or training.',
10
+ keywords: [
11
+ 'course',
12
+ 'class',
13
+ 'lesson',
14
+ 'curriculum',
15
+ 'syllabus',
16
+ 'e-learning',
17
+ 'enroll',
18
+ 'cohort',
19
+ 'masterclass',
20
+ 'bootcamp',
21
+ 'training',
22
+ 'education',
23
+ ],
24
+ isReady: true,
25
+ category: 'Content - Course Detail',
26
+ icons: {
27
+ PlayIcon: 'play',
28
+ CheckIcon: 'check',
29
+ StarIcon: 'star',
30
+ ClockIcon: 'clock',
31
+ UsersIcon: 'users',
32
+ GlobeAltIcon: 'globe',
33
+ BoltIcon: 'bolt',
34
+ ArrowRightIcon: 'arrowRight',
35
+ BookOpenIcon: 'book',
36
+ },
37
+ };
@@ -7,6 +7,8 @@ import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
7
7
  import {Toolbar} from '@astryxdesign/core/Toolbar';
8
8
  import {List, ListItem} from '@astryxdesign/core/List';
9
9
  import {HStack, VStack} from '@astryxdesign/core/Layout';
10
+ import {StackItem} from '@astryxdesign/core/Stack';
11
+ import {rtlStyles} from '@astryxdesign/core/utils';
10
12
  import {Text} from '@astryxdesign/core/Text';
11
13
  import {Icon} from '@astryxdesign/core/Icon';
12
14
  import {IconButton} from '@astryxdesign/core/IconButton';
@@ -260,14 +262,9 @@ const FILESYSTEM: FileSystemItem[] = [
260
262
  ];
261
263
 
262
264
  const page: CSSProperties = {height: '100dvh'};
263
- const columnRow: CSSProperties = {overflowX: 'auto', overflowY: 'hidden'};
264
- const scrollable: CSSProperties = {overflowY: 'auto'};
265
- const fixedColumn: CSSProperties = {flexShrink: 0};
266
- const detailColumn: CSSProperties = {
267
- flexGrow: 1,
268
- flexShrink: 0,
269
- flexBasis: 320,
270
- };
265
+ // The detail column fills the rest of the row but never narrows below 320px;
266
+ // past that, the row scrolls sideways.
267
+ const detailFloor: CSSProperties = {flexShrink: 0, flexBasis: 320};
271
268
 
272
269
  function findItem(items: FileSystemItem[], id: string): FileSystemItem | null {
273
270
  for (const item of items) {
@@ -361,7 +358,13 @@ export default function FileExplorerPage() {
361
358
  <IconButton
362
359
  variant="ghost"
363
360
  size="sm"
364
- icon={<Icon icon={ChevronLeftIcon} size="sm" />}
361
+ icon={
362
+ <Icon
363
+ icon={ChevronLeftIcon}
364
+ size="sm"
365
+ xstyle={rtlStyles.mirror}
366
+ />
367
+ }
365
368
  onClick={() => {
366
369
  if (selectedPath.length > 0) {
367
370
  setSelectedPath(selectedPath.slice(0, -1));
@@ -373,7 +376,13 @@ export default function FileExplorerPage() {
373
376
  <IconButton
374
377
  variant="ghost"
375
378
  size="sm"
376
- icon={<Icon icon={ChevronRightIcon} size="sm" />}
379
+ icon={
380
+ <Icon
381
+ icon={ChevronRightIcon}
382
+ size="sm"
383
+ xstyle={rtlStyles.mirror}
384
+ />
385
+ }
377
386
  isDisabled
378
387
  label="Go forward"
379
388
  />
@@ -449,86 +458,101 @@ export default function FileExplorerPage() {
449
458
  }
450
459
  content={
451
460
  <LayoutContent padding={0} isScrollable={false}>
452
- <HStack height="100%" style={columnRow}>
461
+ <HStack height="100%" isScrollable>
453
462
  {columns.map((col, colIndex) => {
454
463
  const showDivider =
455
464
  colIndex < columns.length - 1 || selectedFile != null;
456
465
  return (
457
- <Section
466
+ <StackItem
458
467
  key={colIndex}
459
- width={240}
460
- padding={2}
461
- variant="transparent"
462
- dividers={showDivider ? ['end'] : undefined}
463
- style={{...scrollable, ...fixedColumn}}>
464
- <List density="compact" hasDividers={false}>
465
- {col.items.map(item => {
466
- const isSelected = col.selectedId === item.id;
467
- const hasChildren =
468
- item.type === 'folder' &&
469
- item.children != null &&
470
- item.children.length > 0;
471
- return (
472
- <ListItem
473
- key={item.id}
474
- label={item.name}
475
- startContent={
476
- <Icon
477
- icon={
478
- item.type === 'folder'
479
- ? FolderIcon
480
- : DocumentIcon
481
- }
482
- color={
483
- item.type === 'folder' ? 'accent' : 'secondary'
484
- }
485
- size="sm"
486
- />
487
- }
488
- endContent={
489
- hasChildren ? (
468
+ size="static"
469
+ isScrollable
470
+ aria-label={
471
+ colIndex === 0
472
+ ? 'Home'
473
+ : findItem(FILESYSTEM, selectedPath[colIndex - 1])?.name
474
+ }>
475
+ <Section
476
+ width={240}
477
+ height="100%"
478
+ padding={2}
479
+ variant="transparent"
480
+ dividers={showDivider ? ['end'] : undefined}>
481
+ <List density="compact" hasDividers={false}>
482
+ {col.items.map(item => {
483
+ const isSelected = col.selectedId === item.id;
484
+ const hasChildren =
485
+ item.type === 'folder' &&
486
+ item.children != null &&
487
+ item.children.length > 0;
488
+ return (
489
+ <ListItem
490
+ key={item.id}
491
+ label={item.name}
492
+ startContent={
490
493
  <Icon
491
- icon={ChevronRightIcon}
492
- size="xsm"
493
- color="secondary"
494
+ icon={
495
+ item.type === 'folder'
496
+ ? FolderIcon
497
+ : DocumentIcon
498
+ }
499
+ color={
500
+ item.type === 'folder'
501
+ ? 'accent'
502
+ : 'secondary'
503
+ }
504
+ size="sm"
494
505
  />
495
- ) : undefined
496
- }
497
- onClick={() => handleSelect(colIndex, item.id)}
498
- isSelected={isSelected}
499
- />
500
- );
501
- })}
502
- </List>
503
- </Section>
506
+ }
507
+ endContent={
508
+ hasChildren ? (
509
+ <Icon
510
+ icon={ChevronRightIcon}
511
+ size="xsm"
512
+ color="secondary"
513
+ xstyle={rtlStyles.mirror}
514
+ />
515
+ ) : undefined
516
+ }
517
+ onClick={() => handleSelect(colIndex, item.id)}
518
+ isSelected={isSelected}
519
+ />
520
+ );
521
+ })}
522
+ </List>
523
+ </Section>
524
+ </StackItem>
504
525
  );
505
526
  })}
506
527
  {selectedFile && (
507
- <Section
508
- padding={6}
509
- variant="transparent"
510
- style={{...scrollable, ...detailColumn}}>
511
- <VStack gap={4} hAlign="center">
512
- <Avatar name={selectedFile.name} size={96} />
513
- <VStack gap={1} hAlign="center">
514
- <Text type="label">{selectedFile.name}</Text>
515
- <Text type="supporting">
516
- {getFileExtension(selectedFile.name)} Document
517
- </Text>
528
+ <StackItem
529
+ size="fill"
530
+ isScrollable
531
+ aria-label={selectedFile.name}
532
+ style={detailFloor}>
533
+ <Section padding={6} variant="transparent">
534
+ <VStack gap={4} hAlign="center">
535
+ <Avatar name={selectedFile.name} size={96} />
536
+ <VStack gap={1} hAlign="center">
537
+ <Text type="label">{selectedFile.name}</Text>
538
+ <Text type="supporting">
539
+ {getFileExtension(selectedFile.name)} Document
540
+ </Text>
541
+ </VStack>
542
+ <MetadataList title="Information">
543
+ <MetadataListItem label="Created">
544
+ March 28, 2026 at 2:15 PM
545
+ </MetadataListItem>
546
+ <MetadataListItem label="Modified">
547
+ Yesterday, 10:27 PM
548
+ </MetadataListItem>
549
+ <MetadataListItem label="Kind">
550
+ {getFileExtension(selectedFile.name)} Document
551
+ </MetadataListItem>
552
+ </MetadataList>
518
553
  </VStack>
519
- <MetadataList title="Information">
520
- <MetadataListItem label="Created">
521
- March 28, 2026 at 2:15 PM
522
- </MetadataListItem>
523
- <MetadataListItem label="Modified">
524
- Yesterday, 10:27 PM
525
- </MetadataListItem>
526
- <MetadataListItem label="Kind">
527
- {getFileExtension(selectedFile.name)} Document
528
- </MetadataListItem>
529
- </MetadataList>
530
- </VStack>
531
- </Section>
554
+ </Section>
555
+ </StackItem>
532
556
  )}
533
557
  </HStack>
534
558
  </LayoutContent>
@@ -1129,18 +1129,6 @@ const INITIAL_SAVED_VIEWS: SavedView[] = [
1129
1129
  const COMPACT_SURFACE_QUERY =
1130
1130
  '(max-width: 768px), (max-width: 1024px) and (pointer: coarse) and (hover: none)';
1131
1131
 
1132
- /**
1133
- * Top padding for whatever opens a BottomSheet, on the spacing scale.
1134
- *
1135
- * The panel's grab pill floats over the content instead of reserving layout
1136
- * space for itself: it is 4px centered in a 24px band, so it covers the top
1137
- * 10-14px of the sheet. Content that starts at the usual 16px gutter clears it
1138
- * by 2px, which does not read as a gap — it reads as the sheet being cut off.
1139
- * Opening at the full 24px band puts real space under the pill, and every
1140
- * sheet here uses this one value so they all start on the same line.
1141
- */
1142
- const SHEET_TOP_INSET = 6;
1143
-
1144
1132
  /**
1145
1133
  * Width the filter row holds back, in px, for the readout that trails the
1146
1134
  * clauses — the density toggle, the result count and Clear all.
@@ -1698,6 +1686,7 @@ const styles = stylex.create({
1698
1686
  fontSize: typeScaleVars['--text-body-size'],
1699
1687
  fontWeight: typeScaleVars['--text-body-weight'],
1700
1688
  height: 'auto',
1689
+ minHeight: 0,
1701
1690
  lineHeight: typeScaleVars['--text-body-leading'],
1702
1691
  paddingBlock: 0,
1703
1692
  paddingInline: 0,
@@ -2052,7 +2041,8 @@ function FilterOverflow({
2052
2041
  <VStack
2053
2042
  gap={2}
2054
2043
  padding={isCompactSurface ? 4 : 0}
2055
- paddingBlockStart={isCompactSurface ? SHEET_TOP_INSET : 0}>
2044
+ // In a sheet the sheet's band under its grab bar is the top inset.
2045
+ paddingBlockStart={0}>
2056
2046
  {items.map(({child, index}) => (
2057
2047
  <StackItem key={index} xstyle={styles.overflowItem}>
2058
2048
  {child}
@@ -2145,7 +2135,8 @@ function AdaptiveSavedViewForm({
2145
2135
  <Section
2146
2136
  variant="transparent"
2147
2137
  padding={4}
2148
- paddingBlockStart={SHEET_TOP_INSET}>
2138
+ // The sheet's band under its grab bar is the top inset.
2139
+ paddingBlockStart={0}>
2149
2140
  <VStack gap={4}>
2150
2141
  <HStack gap={2}>
2151
2142
  <StackItem size="fill">
@@ -4090,11 +4081,11 @@ export default function TableFilterTemplate() {
4090
4081
  label="View options"
4091
4082
  height="tall"
4092
4083
  // The tab strip compensates against a container inset, so the sheet
4093
- // publishes none and the wrapper below owns the top band.
4084
+ // publishes none; its band under the grab bar is the only top inset,
4085
+ // so the strip's own box starts at the tab row and its scroll arrow
4086
+ // lands on the tabs rather than above them.
4094
4087
  padding={0}>
4095
- {/* The inset is the wrapper's, so the strip's own box starts at the tab
4096
- row and its scroll arrow lands on the tabs rather than above them. */}
4097
- <VStack gap={0} paddingBlockStart={SHEET_TOP_INSET}>
4088
+ <VStack gap={0}>
4098
4089
  {/* The heading the popover puts above the pane is dropped here: it
4099
4090
  restates the selected tab word for word, and the strip already
4100
4091
  marks which one that is. On a phone that is a line of vertical
@@ -4148,14 +4139,15 @@ export default function TableFilterTemplate() {
4148
4139
  const detailBody =
4149
4140
  activeJob == null ? null : (
4150
4141
  <VStack gap={0} xstyle={styles.detailPanel}>
4151
- {/* The only part of the body that knows which host it is in: the sheet
4152
- needs the pill cleared, the docked panel has no pill and would just
4153
- sit 8px lower than the panels beside it. The two never coexist —
4154
- Layout drops the panel entirely on a compact surface. */}
4142
+ {/* The only part of the body that knows which host it is in: in the
4143
+ sheet, the sheet's band under its grab bar is the top inset; the
4144
+ docked panel has no pill and keeps the 16px gutter of the panels
4145
+ beside it. The two never coexist — Layout drops the panel entirely
4146
+ on a compact surface. */}
4155
4147
  <Section
4156
4148
  variant="transparent"
4157
4149
  padding={4}
4158
- paddingBlockStart={isCompactSurface ? SHEET_TOP_INSET : 4}>
4150
+ paddingBlockStart={isCompactSurface ? 0 : 4}>
4159
4151
  <VStack gap={4}>
4160
4152
  <HStack gap={2}>
4161
4153
  <StackItem size="fill">