@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.
- package/api/build/blocks/blocks.d.mts +41 -0
- package/api/build/blocks/blocks.mjs +118 -68
- package/api/build/kit/rank.mjs +21 -4
- package/api/build/kit/words.d.mts +1 -0
- package/api/build/kit/words.mjs +1 -1
- package/api/component/__fixtures__/resolutions/modules.txt +5 -5
- package/api/docs/_adapter.d.mts +22 -0
- package/api/docs/_adapter.mjs +81 -3
- package/api/docs/docs.doc.mjs +5 -5
- package/api/docs/docs.type.d.mts +21 -0
- package/api/docs/docs.type.mjs +11 -0
- package/api/docs/list/list.d.mts +5 -1
- package/api/docs/list/list.mjs +72 -6
- package/api/docs/node/node.mjs +2 -40
- package/api/icon/_adapter.d.mts +3 -2
- package/api/icon/_adapter.mjs +8 -2
- package/api/icon/_authoring.d.mts +1 -0
- package/api/icon/_authoring.mjs +594 -67
- package/api/icon/_default-look.d.mts +155 -0
- package/api/icon/_default-look.mjs +474 -0
- package/api/icon/_records.d.mts +1 -1
- package/api/icon/_records.mjs +1 -0
- package/api/icon/add/add.mjs +269 -43
- package/api/icon/icon.type.d.mts +46 -2
- package/api/icon/icon.type.mjs +12 -2
- package/api/icon/iconAdd.doc.mjs +2 -2
- package/api/icon/iconNewDefinition.doc.mjs +3 -2
- package/api/icon/iconNewSet.doc.mjs +4 -4
- package/api/icon/map/map.mjs +11 -4
- package/api/icon/search/search.mjs +10 -9
- package/api/index.d.mts +1 -0
- package/api/index.mjs +1 -0
- package/api/integration/add-helpers.d.mts +15 -1
- package/api/integration/add-helpers.mjs +5 -2
- package/api/integration/authoring-checks.d.mts +0 -2
- package/api/integration/authoring-checks.mjs +1 -6
- package/api/logger.mjs +2 -1
- package/api/render/_adapter.mjs +9 -0
- package/api/render/render.doc.mjs +3 -3
- package/api/render/render.type.d.mts +1 -1
- package/api/render/render.type.mjs +1 -1
- package/api/search/ORDERING.md +3 -0
- package/api/search/_adapter.d.mts +32 -3
- package/api/search/_adapter.mjs +50 -22
- package/api/search/_fit-order.d.mts +47 -0
- package/api/search/_fit-order.mjs +257 -0
- package/api/search/_main-searcher.mjs +15 -5
- package/api/search/exportSearchIndex.doc.d.mts +10 -0
- package/api/search/exportSearchIndex.doc.mjs +58 -0
- package/api/search/rankSearchIndex.doc.d.mts +10 -0
- package/api/search/rankSearchIndex.doc.mjs +79 -0
- package/api/search/search-index.d.mts +44 -0
- package/api/search/search-index.mjs +270 -0
- package/api/search/search.type.d.mts +28 -0
- package/api/search/search.type.mjs +17 -0
- package/api/swizzle/_adapter.d.mts +1 -0
- package/api/swizzle/_adapter.mjs +4 -1
- package/api/swizzle/_moduleGraph.d.mts +178 -0
- package/api/swizzle/_moduleGraph.mjs +903 -0
- package/api/swizzle/copy/copy.d.mts +2 -43
- package/api/swizzle/copy/copy.mjs +287 -315
- package/api/swizzle/swizzle.d.mts +0 -2
- package/api/swizzle/swizzle.doc.mjs +13 -4
- package/api/swizzle/swizzle.mjs +3 -7
- package/api/swizzle/swizzle.type.d.mts +7 -1
- package/api/swizzle/swizzle.type.mjs +4 -2
- package/api/template/template.mjs +1 -0
- package/assets/discover/official-packages.json +36 -0
- package/assets/docs/browser-support.doc.mjs +2 -2
- package/assets/docs/styling-overview.doc.mjs +6 -2
- package/assets/docs/tree/icon-sets.doc.mjs +13 -7
- package/assets/docs/tree/render-pages.doc.mjs +3 -3
- package/assets/docs/tree/tailwind.doc.mjs +41 -1
- package/assets/docs/tree/type-scale.doc.mjs +19 -2
- package/assets/templates/blocks/components/Calendar/useCalendarConstraintsHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Calendar/useCalendarConstraintsHookUsage.tsx +146 -0
- package/assets/templates/blocks/components/Calendar/useCalendarNavigationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Calendar/useCalendarNavigationHookUsage.tsx +173 -0
- package/assets/templates/blocks/components/Hooks/useInputStatusIconHookUsage.tsx +1 -0
- package/assets/templates/blocks/components/Hooks/useInteractiveRoleHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Hooks/useInteractiveRoleHookUsage.tsx +56 -0
- package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs +2 -2
- package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx +66 -10
- package/assets/templates/blocks/components/Link/useLinkifyHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Link/useLinkifyHookUsage.tsx +39 -0
- package/assets/templates/blocks/components/PowerSearch/usePowerSearchConfigHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/PowerSearch/usePowerSearchConfigHookUsage.tsx +83 -0
- package/assets/templates/blocks/components/Table/RowsVirtualizationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Table/RowsVirtualizationHookUsage.tsx +41 -0
- package/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjs +1 -1
- package/assets/templates/blocks/components/Table/TableRowIndexTable.tsx +2 -2
- package/assets/templates/blocks/components/Table/useTableColumnSettingsStateHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Table/useTableColumnSettingsStateHookUsage.tsx +97 -0
- package/assets/templates/pages/course-detail/page.tsx +699 -0
- package/assets/templates/pages/course-detail/template.doc.mjs +37 -0
- package/assets/templates/pages/file-explorer/page.tsx +103 -79
- package/assets/templates/pages/table-filter/page.tsx +15 -23
- package/assets/templates/pages/table-grouped/page.tsx +160 -232
- package/assets/templates/pages/table-grouped/template.doc.mjs +0 -2
- package/assets/templates/pages/table-inbox/page.tsx +3 -6
- package/assets/templates/pages/theme-showcase/page.tsx +724 -792
- package/assets/templates/pages/theme-showcase/template.doc.mjs +4 -5
- package/assets/templates/themes/butter/butterTheme.ts +2 -2
- package/assets/templates/themes/gothic/gothicTheme.ts +16 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +1 -1
- package/assets/templates/themes/neutral/neutralTheme.ts +6 -0
- package/assets/templates/themes/stone/stoneTheme.ts +1 -1
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/y2k/y2kTheme.ts +2 -2
- package/authoring/doctypes/template/type.ts +1 -0
- package/clients/cli/commands/docs.doc.mjs +5 -1
- package/clients/cli/commands/docs.mjs +30 -2
- package/clients/cli/commands/experimental/icon.mjs +56 -14
- package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +2 -1
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +2 -2
- package/clients/cli/commands/experimental-render.doc.mjs +1 -1
- package/clients/cli/commands/swizzle.doc.mjs +12 -3
- package/clients/cli/commands/swizzle.mjs +33 -9
- package/clients/cli/lib/resolve-theme.mjs +16 -7
- package/foundation/discovery/component-loader.d.mts +1 -1
- package/foundation/discovery/doc-types.mjs +9 -2
- package/foundation/discovery/hook-discovery.mjs +31 -8
- package/foundation/discovery/icon-ranking.d.mts +27 -3
- package/foundation/discovery/icon-ranking.mjs +125 -8
- package/foundation/discovery/icon-set-checks.mjs +44 -35
- package/foundation/discovery/icon-set-discovery.d.mts +13 -0
- package/foundation/discovery/icon-set-discovery.mjs +25 -0
- package/foundation/discovery/icon-set-writer.d.mts +258 -20
- package/foundation/discovery/icon-set-writer.mjs +785 -87
- package/foundation/discovery/module-exports.d.mts +3 -2
- package/foundation/discovery/module-exports.mjs +167 -37
- package/foundation/doc-compiler/import.d.mts +5 -1
- package/foundation/doc-compiler/import.mjs +40 -6
- package/foundation/fs/import-url.d.mts +20 -0
- package/foundation/fs/import-url.mjs +22 -0
- package/foundation/fs/module-loader.d.mts +24 -3
- package/foundation/fs/module-loader.mjs +69 -47
- package/foundation/fs/paths.d.mts +2 -1
- package/foundation/fs/paths.mjs +3 -4
- package/foundation/render/charts.d.mts +59 -0
- package/foundation/render/charts.mjs +216 -0
- package/foundation/render/embedded-imports.d.mts +7 -7
- package/foundation/render/embedded-imports.mjs +63 -54
- package/foundation/render/page-host.d.mts +4 -0
- package/foundation/render/page-host.mjs +45 -0
- package/foundation/render/page-worker.mjs +350 -57
- package/foundation/render/render-page.d.mts +11 -6
- package/foundation/render/render-page.mjs +164 -54
- package/foundation/render/ts-paths.d.mts +63 -0
- package/foundation/render/ts-paths.mjs +138 -0
- package/foundation/response/error-codes.doc.mjs +3 -3
- package/foundation/response/error-codes.mjs +3 -2
- package/foundation/text/levenshtein.d.mts +6 -1
- package/foundation/text/levenshtein.mjs +25 -9
- package/foundation/text/shell-arg.d.mts +14 -0
- package/foundation/text/shell-arg.mjs +17 -0
- package/foundation/text/suggest-order.d.mts +8 -1
- package/foundation/text/suggest-order.mjs +72 -6
- 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
|
-
|
|
264
|
-
|
|
265
|
-
const
|
|
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={
|
|
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={
|
|
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%"
|
|
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
|
-
<
|
|
466
|
+
<StackItem
|
|
458
467
|
key={colIndex}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
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={
|
|
492
|
-
|
|
493
|
-
|
|
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
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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
|
-
<
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
<VStack gap={
|
|
514
|
-
<
|
|
515
|
-
<
|
|
516
|
-
{
|
|
517
|
-
|
|
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
|
-
|
|
520
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
{
|
|
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
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
Layout drops the panel entirely
|
|
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 ?
|
|
4150
|
+
paddingBlockStart={isCompactSurface ? 0 : 4}>
|
|
4159
4151
|
<VStack gap={4}>
|
|
4160
4152
|
<HStack gap={2}>
|
|
4161
4153
|
<StackItem size="fill">
|