@astryxdesign/cli 0.1.4-canary.12abceb → 0.1.4-canary.188a3dc

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 (31) hide show
  1. package/docs/styling.doc.mjs +0 -53
  2. package/docs/working-with-ai.doc.mjs +1 -1
  3. package/package.json +10 -10
  4. package/src/codemods/__tests__/registry.test.mjs +0 -1
  5. package/src/codemods/registry.mjs +0 -1
  6. package/src/commands/build-theme.mjs +1 -8
  7. package/src/commands/build-theme.variants.test.mjs +18 -7
  8. package/src/commands/swizzle.mjs +0 -34
  9. package/src/commands/swizzle.routing.test.mjs +0 -67
  10. package/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx +23 -25
  11. package/templates/pages/classic-gallery/page.tsx +1 -1
  12. package/templates/pages/dashboard/page.tsx +1 -1
  13. package/templates/pages/documentation/page.tsx +1 -1
  14. package/templates/pages/mixed-gallery/page.tsx +1 -1
  15. package/templates/pages/payment-form/page.tsx +6 -2
  16. package/templates/pages/product-detail/page.tsx +11 -3
  17. package/templates/pages/product-gallery/page.tsx +1 -1
  18. package/templates/pages/settings/page.tsx +1 -1
  19. package/templates/pages/side-gallery/page.tsx +1 -1
  20. package/templates/pages/table-page/page.tsx +1 -1
  21. package/templates/pages/table-page-chart/page.tsx +1 -1
  22. package/templates/pages/table-page-heatmap-status/page.tsx +1 -1
  23. package/templates/pages/table-page-shoe-store-heatmap/page.tsx +1 -1
  24. package/src/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjs +0 -93
  25. package/src/codemods/transforms/v0.1.5/index.mjs +0 -19
  26. package/src/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjs +0 -140
  27. package/src/commands/build-theme.color-scheme.test.mjs +0 -153
  28. package/templates/pages/incident-console/page.tsx +0 -580
  29. package/templates/pages/incident-console/template.doc.mjs +0 -12
  30. package/templates/pages/messaging-shell/page.tsx +0 -676
  31. package/templates/pages/messaging-shell/template.doc.mjs +0 -12
@@ -338,59 +338,6 @@ const styles = stylex.create({
338
338
  },
339
339
  ],
340
340
  },
341
- {
342
- title: 'StyleX Build Setup (required for swizzled components)',
343
- category: 'guide',
344
- content: [
345
- {
346
- type: 'prose',
347
- text: 'Astryx components ship pre-compiled, so consuming the published package needs no StyleX setup. But `astryx swizzle <Component>` copies the raw StyleX *source* into your app, and StyleX source requires a build-time StyleX compiler to produce atomic CSS. Without one the component compiles but renders completely unstyled: no error, no warning. If a swizzled component looks unstyled, a missing StyleX compiler is almost always why. The same applies if you author your own StyleX with `stylex.create()`.',
348
- },
349
- {
350
- type: 'table',
351
- headers: ['Bundler', 'StyleX plugin'],
352
- rows: [
353
- ['Webpack', '@stylexjs/webpack-plugin'],
354
- ['Vite / Rollup', '@stylexjs/rollup-plugin (or a community Vite plugin)'],
355
- ['Babel (any bundler)', '@stylexjs/babel-plugin + @stylexjs/postcss-plugin'],
356
- ['Next.js (App Router, SWC)', 'An SWC-based transform; see the Next.js note below'],
357
- ],
358
- },
359
- {
360
- type: 'prose',
361
- text: 'Next.js (App Router) is the sharp edge. StyleX\'s canonical compiler is a Babel plugin, but introducing a Babel config in Next.js disables the SWC compiler, which in turn breaks SWC-dependent features like `next/font`. So the "obvious" Babel setup is actively incompatible with a standard Next 15 App Router app.',
362
- },
363
- {
364
- type: 'prose',
365
- text: 'The working path on Next.js is an SWC-based StyleX transform (e.g. the community `@stylexswc/nextjs-plugin`) wired into `next.config`, which keeps SWC and `next/font` intact. See the example app `apps/example-nextjs-stylex` in the repo for a complete, working Next.js + StyleX + SWC configuration.',
366
- },
367
- {
368
- type: 'code',
369
- lang: 'js',
370
- label: 'next.config.mjs: SWC-based StyleX transform (keeps next/font working)',
371
- code: `import stylexPlugin from '@stylexswc/nextjs-plugin';
372
-
373
- export default stylexPlugin({
374
- rsOptions: {
375
- // Resolve @astryxdesign/core's StyleX so swizzled component source compiles.
376
- aliases: {'@/*': ['./src/*']},
377
- unstable_moduleResolution: {type: 'commonJS'},
378
- },
379
- })({
380
- // your existing Next.js config
381
- });`,
382
- },
383
- {
384
- type: 'list',
385
- style: 'unordered',
386
- items: [
387
- 'Symptom of a missing compiler: swizzled component renders with no styles, but no build or runtime error.',
388
- 'Do NOT add @stylexjs/babel-plugin to a Next.js App Router app; it disables SWC and breaks next/font.',
389
- 'Pure theming (defineTheme + astryx theme build) needs NO StyleX compiler; only swizzled/authored StyleX source does.',
390
- ],
391
- },
392
- ],
393
- },
394
341
  {
395
342
  title: 'What NOT to Do',
396
343
  category: 'guide',
@@ -125,7 +125,7 @@ If you don't know all three, run \`npx astryx init --features agents\` to genera
125
125
  lang: 'json',
126
126
  label: 'package.json',
127
127
  code: `"scripts": {
128
- "astryx": "node node_modules/@astryxdesign/cli/bin/astryx.mjs"
128
+ "xds": "node node_modules/@astryxdesign/cli/bin/astryx.mjs"
129
129
  }`,
130
130
  },
131
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.1.4-canary.12abceb",
3
+ "version": "0.1.4-canary.188a3dc",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -68,17 +68,17 @@
68
68
  "CHANGELOG.md"
69
69
  ],
70
70
  "dependencies": {
71
- "@clack/prompts": "^1.7.0",
71
+ "@clack/prompts": "^1.5.1",
72
72
  "commander": "^12.1.0",
73
73
  "jiti": "^2.7.0",
74
74
  "jscodeshift": "^17.3.0",
75
75
  "zod": "^4.4.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@astryxdesign/charts": "0.1.4-canary.12abceb",
79
- "@astryxdesign/core": "0.1.4-canary.12abceb",
80
- "@astryxdesign/lab": "0.1.4-canary.12abceb",
81
- "@astryxdesign/theme-neutral": "0.1.4-canary.12abceb",
78
+ "@astryxdesign/charts": "0.1.4-canary.188a3dc",
79
+ "@astryxdesign/core": "0.1.4-canary.188a3dc",
80
+ "@astryxdesign/lab": "0.1.4-canary.188a3dc",
81
+ "@astryxdesign/theme-neutral": "0.1.4-canary.188a3dc",
82
82
  "gpt-tokenizer": "^3.4.0"
83
83
  },
84
84
  "peerDependenciesMeta": {
@@ -96,10 +96,10 @@
96
96
  }
97
97
  },
98
98
  "devDependencies": {
99
- "@astryxdesign/charts": "0.1.4-canary.12abceb",
100
- "@astryxdesign/core": "0.1.4-canary.12abceb",
101
- "@astryxdesign/lab": "0.1.4-canary.12abceb",
102
- "@astryxdesign/theme-neutral": "0.1.4-canary.12abceb",
99
+ "@astryxdesign/charts": "0.1.4-canary.188a3dc",
100
+ "@astryxdesign/core": "0.1.4-canary.188a3dc",
101
+ "@astryxdesign/lab": "0.1.4-canary.188a3dc",
102
+ "@astryxdesign/theme-neutral": "0.1.4-canary.188a3dc",
103
103
  "gpt-tokenizer": "^3.4.0"
104
104
  },
105
105
  "scripts": {
@@ -19,7 +19,6 @@ describe('registry', () => {
19
19
  '0.1.0',
20
20
  '0.1.2',
21
21
  '0.1.3',
22
- '0.1.5',
23
22
  ]);
24
23
  });
25
24
  });
@@ -20,7 +20,6 @@ const registry = new Map([
20
20
  ['0.1.0', () => import('./transforms/v0.1.0/index.mjs')],
21
21
  ['0.1.2', () => import('./transforms/v0.1.2/index.mjs')],
22
22
  ['0.1.3', () => import('./transforms/v0.1.3/index.mjs')],
23
- ['0.1.5', () => import('./transforms/v0.1.5/index.mjs')],
24
23
  ]);
25
24
 
26
25
  // Re-export from the shared utility so registry callers and other consumers
@@ -939,15 +939,8 @@ export function registerTheme(program) {
939
939
  if (component.length > 0) {
940
940
  const componentInner = component.join('\n\n');
941
941
  const componentScope = `@scope (${scopeSelector}) to (${scopeTo}) {\n${componentInner}\n}`;
942
- // light-dark() needs a color-scheme declaration in this bundle, but a
943
- // bare `:root { color-scheme: light dark }` outranks reset.css's
944
- // `html[data-theme]` mapping (astryx-theme layer comes after reset),
945
- // silently defeating `<Theme mode>` forcing on <html>. Mirror the
946
- // attribute-keyed mapping so the declaration follows the active mode.
947
942
  const colorSchemeDecl = componentScope.includes('light-dark(')
948
- ? ' :root { color-scheme: light dark; }\n' +
949
- ' html[data-theme="light"] { color-scheme: light; }\n' +
950
- ' html[data-theme="dark"] { color-scheme: dark; }\n\n'
943
+ ? ' :root { color-scheme: light dark; }\n\n'
951
944
  : '';
952
945
  cssParts.push(
953
946
  `@layer astryx-theme {\n${colorSchemeDecl}${componentScope}\n}`,
@@ -28,10 +28,20 @@ import * as fs from 'node:fs';
28
28
  import * as path from 'node:path';
29
29
  import * as os from 'node:os';
30
30
  import {fileURLToPath} from 'node:url';
31
- import {ensureCoreBuilt} from './ensure-core-built.mjs';
32
31
 
33
32
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
34
33
  const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');
34
+ const REPO_ROOT = path.resolve(__dirname, '../../../..');
35
+ const CORE_THEME_ENTRY = path.join(
36
+ REPO_ROOT,
37
+ 'packages/core/dist/theme/index.js',
38
+ );
39
+ // The fix reads core's shipped component declarations to decide whether an
40
+ // interface is augmentable; those .d.ts files come from the same core build.
41
+ const CORE_BUTTON_DTS = path.join(
42
+ REPO_ROOT,
43
+ 'packages/core/dist/Button/index.d.ts',
44
+ );
35
45
 
36
46
  function runCli(args, cwd) {
37
47
  try {
@@ -58,13 +68,14 @@ function writeTheme(dir, contents) {
58
68
  return file;
59
69
  }
60
70
 
61
- // Build core through the shared lock helper — this suite previously ran its
62
- // own unguarded `if (!exists) pnpm -F core build`, and when Vitest scheduled
63
- // it alongside the other build-theme suites on a fresh checkout, the
64
- // concurrent builds collided on packages/core/dist (core's build starts by
65
- // wiping dist), nondeterministically breaking whichever suite was mid-read.
66
71
  beforeAll(() => {
67
- ensureCoreBuilt();
72
+ if (!fs.existsSync(CORE_THEME_ENTRY) || !fs.existsSync(CORE_BUTTON_DTS)) {
73
+ execFileSync('pnpm', ['-F', '@astryxdesign/core', 'build'], {
74
+ cwd: REPO_ROOT,
75
+ stdio: 'pipe',
76
+ timeout: 180_000,
77
+ });
78
+ }
68
79
  }, 200_000);
69
80
 
70
81
  let tmpDir;
@@ -26,7 +26,6 @@ import {jsonOut, humanLog} from '../lib/json.mjs';
26
26
  import {cliError} from '../lib/cli-error.mjs';
27
27
  import {ERROR_CODES} from '../lib/error-codes.mjs';
28
28
  import {checkGhCli} from '../utils/github.mjs';
29
- import {getRunPrefix} from '../utils/package-manager.mjs';
30
29
  import {Project} from '../lib/project.mjs';
31
30
  import {
32
31
  CORE_PACKAGE,
@@ -340,10 +339,6 @@ export function registerSwizzle(program) {
340
339
  // Copy all non-test, non-doc, non-README files
341
340
  const files = fs.readdirSync(componentDir);
342
341
  let copied = 0;
343
- // Track whether any copied source uses StyleX. Swizzled StyleX source
344
- // needs a build-time StyleX compiler in the consumer's app or it renders
345
- // unstyled with no error — so we surface a setup note after copying.
346
- let usesStyleX = false;
347
342
 
348
343
  for (const file of files) {
349
344
  // Skip test files, doc files, and README
@@ -360,13 +355,6 @@ export function registerSwizzle(program) {
360
355
  content = rewriteImports(content, owner.ownerPackage);
361
356
  }
362
357
 
363
- if (
364
- (file.endsWith('.ts') || file.endsWith('.tsx')) &&
365
- content.includes('@stylexjs/stylex')
366
- ) {
367
- usesStyleX = true;
368
- }
369
-
370
358
  fs.writeFileSync(path.join(outputDir, file), content);
371
359
  copied++;
372
360
  }
@@ -388,7 +376,6 @@ export function registerSwizzle(program) {
388
376
  outputDir: relOutput,
389
377
  filesCopied: copied,
390
378
  files: copiedFiles.map(f => f),
391
- usesStyleX,
392
379
  };
393
380
  if (feedback) payload.feedback = feedback;
394
381
  return jsonOut('swizzle.copy', payload);
@@ -400,27 +387,6 @@ export function registerSwizzle(program) {
400
387
  );
401
388
  humanLog('You can now customize the component source freely.\n');
402
389
 
403
- // StyleX build requirement. Swizzled components ship raw StyleX source,
404
- // which needs a build-time StyleX compiler in the consumer's app to
405
- // produce atomic CSS. Without it the component compiles but renders
406
- // unstyled, with no error — a confusing silent failure, so call it out.
407
- if (usesStyleX) {
408
- humanLog(
409
- '⚠ These components use StyleX and require a StyleX compiler in your build.',
410
- );
411
- humanLog(
412
- ' Without one they render unstyled (no error). See setup per framework:',
413
- );
414
- humanLog(` ${getRunPrefix()} astryx docs styling`);
415
- humanLog(
416
- ' Next.js note: the StyleX Babel plugin disables SWC and breaks next/font —',
417
- );
418
- humanLog(
419
- ' use an SWC-based StyleX transform instead (covered in the guide).',
420
- );
421
- humanLog('');
422
- }
423
-
424
390
  // Maintainer feedback note. If we couldn't swizzle cleanly, the team
425
391
  // wants to know — point users at the issue tracker. Skipped when the
426
392
  // owning package ships no issues URL.
@@ -277,70 +277,3 @@ describe('swizzle — ambiguous ownership', () => {
277
277
  expect(out).toContain(`from '@astryxdesign/core/theme'`);
278
278
  });
279
279
  });
280
-
281
- /**
282
- * Build a fake @astryxdesign/core with a component that imports StyleX directly
283
- * (so the swizzle StyleX-build note should fire) and one that doesn't.
284
- */
285
- function buildStyleXCore(project) {
286
- const core = path.join(project, 'node_modules', '@astryxdesign', 'core');
287
- // StyleX component.
288
- const styledDir = path.join(core, 'src', 'Styled');
289
- fs.mkdirSync(styledDir, {recursive: true});
290
- fs.writeFileSync(
291
- path.join(core, 'package.json'),
292
- '{"name":"@astryxdesign/core","version":"0.0.13"}',
293
- );
294
- fs.writeFileSync(
295
- path.join(styledDir, 'Styled.tsx'),
296
- [
297
- `import * as stylex from '@stylexjs/stylex';`,
298
- `const styles = stylex.create({base: {color: 'red'}});`,
299
- `export const Styled = () => null;`,
300
- '',
301
- ].join('\n'),
302
- );
303
- // Plain component (no StyleX).
304
- const plainDir = path.join(core, 'src', 'Plain');
305
- fs.mkdirSync(plainDir, {recursive: true});
306
- fs.writeFileSync(
307
- path.join(plainDir, 'Plain.tsx'),
308
- `export const Plain = () => null;\n`,
309
- );
310
- return core;
311
- }
312
-
313
- describe('swizzle — StyleX build setup note (#3373)', () => {
314
- it('reports usesStyleX and prints a setup note for StyleX components', () => {
315
- buildStyleXCore(project);
316
- writeProjectPackageJson(project);
317
-
318
- // JSON payload carries the machine-readable flag.
319
- const jsonResult = runCli(['--json', 'swizzle', 'Styled', '-f'], project);
320
- expect(jsonResult.code).toBe(0);
321
- const env = JSON.parse(jsonResult.stdout);
322
- expect(env.data.usesStyleX).toBe(true);
323
-
324
- // Human output surfaces the compiler requirement + Next.js caveat.
325
- const humanResult = runCli(['swizzle', 'Styled', '-f'], project);
326
- expect(humanResult.code).toBe(0);
327
- expect(humanResult.stdout).toMatch(/StyleX compiler/i);
328
- expect(humanResult.stdout).toMatch(/unstyled/i);
329
- expect(humanResult.stdout).toMatch(/next\/font/i);
330
- expect(humanResult.stdout).toMatch(/astryx docs styling/);
331
- });
332
-
333
- it('does not print the StyleX note for components without StyleX', () => {
334
- buildStyleXCore(project);
335
- writeProjectPackageJson(project);
336
-
337
- const jsonResult = runCli(['--json', 'swizzle', 'Plain', '-f'], project);
338
- expect(jsonResult.code).toBe(0);
339
- const env = JSON.parse(jsonResult.stdout);
340
- expect(env.data.usesStyleX).toBe(false);
341
-
342
- const humanResult = runCli(['swizzle', 'Plain', '-f'], project);
343
- expect(humanResult.code).toBe(0);
344
- expect(humanResult.stdout).not.toMatch(/StyleX compiler/i);
345
- });
346
- });
@@ -2,36 +2,34 @@
2
2
 
3
3
  'use client';
4
4
 
5
- import {Collapsible, CollapsibleGroup} from '@astryxdesign/core/Collapsible';
5
+ import {Collapsible} from '@astryxdesign/core/Collapsible';
6
6
  import {Divider} from '@astryxdesign/core/Divider';
7
7
  import {Text} from '@astryxdesign/core/Text';
8
8
  import {VStack} from '@astryxdesign/core/Layout';
9
9
 
10
10
  export default function CollapsibleWithoutCard() {
11
11
  return (
12
- <CollapsibleGroup type="single" defaultValue="deployment">
13
- <VStack gap={3} style={{width: '100%', maxWidth: 400}}>
14
- <Collapsible trigger="Deployment Details" value="deployment">
15
- <Text type="body">
16
- Last deployed on April 18, 2026 at 3:42 PM by Sarah Chen. Build
17
- duration was 2m 14s with zero warnings.
18
- </Text>
19
- </Collapsible>
20
- <Divider />
21
- <Collapsible trigger="Environment Variables" value="environment">
22
- <Text type="body">
23
- 12 variables configured. Last updated March 30, 2026. All secrets
24
- are encrypted at rest with AES-256.
25
- </Text>
26
- </Collapsible>
27
- <Divider />
28
- <Collapsible trigger="Build Logs" value="logs">
29
- <Text type="body">
30
- Build completed successfully. 847 modules compiled, 0 errors, 0
31
- warnings. Bundle size: 142 KB gzipped.
32
- </Text>
33
- </Collapsible>
34
- </VStack>
35
- </CollapsibleGroup>
12
+ <VStack gap={3} style={{width: '100%', maxWidth: 400}}>
13
+ <Collapsible trigger="Deployment Details">
14
+ <Text type="body">
15
+ Last deployed on April 18, 2026 at 3:42 PM by Sarah Chen. Build
16
+ duration was 2m 14s with zero warnings.
17
+ </Text>
18
+ </Collapsible>
19
+ <Divider />
20
+ <Collapsible trigger="Environment Variables" defaultIsOpen={false}>
21
+ <Text type="body">
22
+ 12 variables configured. Last updated March 30, 2026. All secrets are
23
+ encrypted at rest with AES-256.
24
+ </Text>
25
+ </Collapsible>
26
+ <Divider />
27
+ <Collapsible trigger="Build Logs" defaultIsOpen={false}>
28
+ <Text type="body">
29
+ Build completed successfully. 847 modules compiled, 0 errors, 0
30
+ warnings. Bundle size: 142 KB gzipped.
31
+ </Text>
32
+ </Collapsible>
33
+ </VStack>
36
34
  );
37
35
  }
@@ -110,7 +110,7 @@ export default function ClassicGalleryTemplate() {
110
110
 
111
111
  return (
112
112
  <Layout
113
- height="fill"
113
+ height="auto"
114
114
  content={
115
115
  <LayoutContent padding={0}>
116
116
  <Center axis="horizontal">
@@ -729,7 +729,7 @@ function TableCard<T extends {id: string}>({
729
729
  export default function DashboardTemplate() {
730
730
  return (
731
731
  <Layout
732
- height="fill"
732
+ height="auto"
733
733
  content={
734
734
  <LayoutContent padding={6}>
735
735
  <VStack gap={6}>
@@ -209,7 +209,7 @@ const COMPONENT_CATEGORIES = [
209
209
  export default function DocumentationOverviewPage() {
210
210
  return (
211
211
  <Layout
212
- height="fill"
212
+ height="auto"
213
213
  contentWidth={1200}
214
214
  content={
215
215
  <LayoutContent padding={8}>
@@ -112,7 +112,7 @@ function GalleryCard({
112
112
  export default function MixedGalleryTemplate() {
113
113
  return (
114
114
  <Layout
115
- height="fill"
115
+ height="auto"
116
116
  contentWidth={1400}
117
117
  content={
118
118
  <LayoutContent padding={6}>
@@ -153,6 +153,10 @@ const fmt = (n: number) => `$${n.toFixed(2)}`;
153
153
  // :root by `@astryxdesign/core/astryx.css`). No StyleX compiler required.
154
154
 
155
155
  const fullWidth: CSSProperties = {width: '100%'};
156
+ // LayoutContent clips overflow by default, which traps position:sticky
157
+ // children (the sticky order summary). With height="auto" the page scrolls
158
+ // at the window, so let overflow be visible here so sticky can pin.
159
+ const visibleOverflow: CSSProperties = {overflow: 'visible'};
156
160
  // Form column flex-basis so the two checkout columns share width evenly.
157
161
  const formColBasis: CSSProperties = {flexBasis: 0};
158
162
  // Space the Order Summary content below its collapsible trigger title.
@@ -262,9 +266,9 @@ export default function PaymentFormPage() {
262
266
 
263
267
  return (
264
268
  <Layout
265
- height="fill"
269
+ height="auto"
266
270
  content={
267
- <LayoutContent padding={0}>
271
+ <LayoutContent padding={0} style={visibleOverflow}>
268
272
  <Center axis="horizontal">
269
273
  <Section
270
274
  variant="transparent"
@@ -3,7 +3,12 @@
3
3
  'use client';
4
4
 
5
5
  import {useState} from 'react';
6
- import {VStack, HStack, Layout, LayoutContent} from '@astryxdesign/core/Layout';
6
+ import {
7
+ VStack,
8
+ HStack,
9
+ Layout,
10
+ LayoutContent,
11
+ } from '@astryxdesign/core/Layout';
7
12
  import {Center} from '@astryxdesign/core/Center';
8
13
  import {Grid} from '@astryxdesign/core/Grid';
9
14
  import {Text, Heading} from '@astryxdesign/core/Text';
@@ -198,7 +203,10 @@ function ProductInfo() {
198
203
  <VStack gap={2}>
199
204
  <Text type="label">Finish</Text>
200
205
  <VStack hAlign="start">
201
- <SegmentedControl value={finish} onChange={setFinish} label="Finish">
206
+ <SegmentedControl
207
+ value={finish}
208
+ onChange={setFinish}
209
+ label="Finish">
202
210
  {FINISHES.map(f => (
203
211
  <SegmentedControlItem
204
212
  key={f.value}
@@ -278,7 +286,7 @@ export default function ProductDetailTemplate() {
278
286
 
279
287
  return (
280
288
  <Layout
281
- height="fill"
289
+ height="auto"
282
290
  contentWidth={1200}
283
291
  content={
284
292
  <LayoutContent padding={6}>
@@ -119,7 +119,7 @@ function ProductCard({product}: {product: Product}) {
119
119
  export default function ProductGalleryTemplate() {
120
120
  return (
121
121
  <Layout
122
- height="fill"
122
+ height="auto"
123
123
  contentWidth={1200}
124
124
  content={
125
125
  <LayoutContent padding={6}>
@@ -70,7 +70,7 @@ export default function SettingsTemplate() {
70
70
 
71
71
  return (
72
72
  <Layout
73
- height="fill"
73
+ height="auto"
74
74
  contentWidth={1440}
75
75
  header={
76
76
  <LayoutHeader hasDivider>
@@ -101,7 +101,7 @@ function ImageGrid() {
101
101
  export default function SideGalleryTemplate() {
102
102
  return (
103
103
  <Layout
104
- height="fill"
104
+ height="auto"
105
105
  contentWidth={1400}
106
106
  content={
107
107
  <LayoutContent padding={6}>
@@ -389,7 +389,7 @@ export default function TablePageTemplate() {
389
389
 
390
390
  return (
391
391
  <Layout
392
- height="fill"
392
+ height="auto"
393
393
  header={
394
394
  <LayoutHeader hasDivider>
395
395
  <HStack gap={2} vAlign="center">
@@ -513,7 +513,7 @@ const columns: TableColumn<OrderRow>[] = [
513
513
  export default function TablePageChartTemplate() {
514
514
  return (
515
515
  <Layout
516
- height="fill"
516
+ height="auto"
517
517
  header={
518
518
  <LayoutHeader hasDivider>
519
519
  <HStack gap={2} vAlign="center">
@@ -430,7 +430,7 @@ function OutageHeatmap() {
430
430
  export default function TablePageHeatmapStatusTemplate() {
431
431
  return (
432
432
  <Layout
433
- height="fill"
433
+ height="auto"
434
434
  header={
435
435
  <LayoutHeader hasDivider>
436
436
  <HStack gap={2} vAlign="center">
@@ -867,7 +867,7 @@ const columns: TableColumn<OrderRow>[] = [
867
867
  export default function TablePageShoeStoreHeatmapTemplate() {
868
868
  return (
869
869
  <Layout
870
- height="fill"
870
+ height="auto"
871
871
  header={
872
872
  <LayoutHeader hasDivider>
873
873
  <HStack gap={2} vAlign="center">