@astryxdesign/cli 0.7.17-canary.g5a3fd39 → 0.7.17-canary.g5cf5d69
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/README.md +64 -63
- package/api/build/_adapter.d.mts +51 -0
- package/api/build/_adapter.mjs +122 -6
- package/api/build/build.doc.mjs +1 -1
- package/api/build/build.mjs +23 -14
- package/api/build/build.type.d.mts +1 -1
- package/api/build/build.type.mjs +3 -3
- package/api/build/help/help.d.mts +15 -14
- package/api/build/help/help.mjs +62 -3
- package/api/build/kit/answer.mjs +2 -3
- package/api/build/kit/signals.d.mts +10 -0
- package/api/build/kit/signals.mjs +15 -2
- package/api/component/detail/blocks/blocks.mjs +2 -1
- package/api/discover/_adapter.d.mts +57 -6
- package/api/discover/_adapter.mjs +278 -49
- package/api/discover/_catalog-view.d.mts +7 -0
- package/api/discover/_catalog-view.mjs +10 -1
- package/api/discover/detail/detail.d.mts +3 -2
- package/api/discover/detail/detail.mjs +3 -2
- package/api/discover/detail/doc/doc.mjs +1 -1
- package/api/discover/discover.d.mts +24 -0
- package/api/discover/discover.doc.mjs +1 -1
- package/api/discover/discover.mjs +146 -25
- package/api/discover/discover.type.d.mts +6 -4
- package/api/discover/discover.type.mjs +6 -4
- package/api/discover/search/search.d.mts +22 -0
- package/api/discover/search/search.mjs +290 -70
- package/api/docs/_entry-names.mjs +4 -3
- package/api/doctor/_adapter.d.mts +43 -3
- package/api/doctor/_adapter.mjs +142 -18
- package/api/doctor/built-checks.d.mts +30 -3
- package/api/doctor/built-checks.mjs +132 -5
- package/api/doctor/doctor.d.mts +93 -6
- package/api/doctor/doctor.doc.mjs +2 -2
- package/api/doctor/doctor.mjs +524 -33
- package/api/doctor/doctor.type.d.mts +2 -1
- package/api/doctor/doctor.type.mjs +2 -1
- package/api/doctor/theme-checks.d.mts +19 -0
- package/api/doctor/theme-checks.mjs +74 -6
- package/api/hook/hook.type.d.mts +1 -1
- package/api/hook/hook.type.mjs +1 -1
- package/api/hook/list/list.mjs +11 -7
- package/api/icon/_adapter.d.mts +2 -1
- package/api/icon/_adapter.mjs +10 -15
- package/api/icon/_records.d.mts +3 -1
- package/api/icon/_records.mjs +30 -3
- package/api/icon/exportIconIndex.doc.mjs +1 -1
- package/api/icon/icon.doc.mjs +3 -3
- package/api/icon/icon.type.d.mts +32 -1
- package/api/icon/icon.type.mjs +19 -3
- package/api/icon/list/list.mjs +4 -1
- package/api/icon/rankIconIndex.doc.mjs +1 -1
- package/api/icon/search/icon-index.mjs +18 -8
- package/api/icon/search/search.d.mts +26 -3
- package/api/icon/search/search.mjs +155 -9
- package/api/init/_adapter.d.mts +14 -0
- package/api/init/_adapter.mjs +26 -4
- package/api/init/init.d.mts +1 -1
- package/api/init/init.doc.mjs +2 -2
- package/api/init/init.mjs +1 -1
- package/api/init/init.type.d.mts +29 -1
- package/api/init/init.type.mjs +14 -1
- package/api/init/run/run.d.mts +11 -1
- package/api/init/run/run.mjs +84 -5
- package/api/integration/_adapter.d.mts +5 -4
- package/api/integration/_adapter.mjs +7 -5
- package/api/integration/integrationCheck.doc.mjs +1 -1
- package/api/integration/pack-check.mjs +8 -9
- package/api/integration/validate-integration.d.mts +1 -1
- package/api/integration/validate-integration.mjs +26 -24
- package/api/integration/validate-integration.type.d.mts +5 -2
- package/api/integration/validate-integration.type.mjs +5 -2
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.d.mts +4 -2
- package/api/render/_adapter.mjs +62 -21
- package/api/render/render.doc.mjs +8 -5
- package/api/render/render.mjs +1 -1
- package/api/render/render.type.d.mts +2 -0
- package/api/render/render.type.mjs +2 -0
- package/api/search/ORDERING.md +2 -2
- package/api/search/_candidate-score.d.mts +3 -0
- package/api/search/_candidate-score.mjs +36 -3
- package/api/search/_gather-docs.mjs +29 -2
- package/api/search/_gather-templates.mjs +2 -1
- package/api/search/_main-searcher.mjs +13 -0
- package/api/search/_named-keywords.d.mts +2 -1
- package/api/search/_named-keywords.mjs +48 -6
- package/api/search/_order.d.mts +36 -1
- package/api/search/_order.mjs +141 -3
- package/api/swizzle/list/list.mjs +8 -1
- package/api/swizzle/swizzle.type.d.mts +1 -1
- package/api/swizzle/swizzle.type.mjs +1 -1
- package/api/template/copy/copy.mjs +3 -4
- package/api/template/list/list.mjs +2 -1
- package/api/template/show/show.mjs +2 -1
- package/api/template/skeleton/skeleton.mjs +2 -1
- package/api/template/template.doc.mjs +1 -1
- package/api/template/template.mjs +19 -1
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +2 -1
- package/api/theme/_adapter.d.mts +1 -0
- package/api/theme/_adapter.mjs +3 -5
- package/api/theme/_app-provider.d.mts +42 -0
- package/api/theme/_app-provider.mjs +61 -27
- package/api/theme/build/build.d.mts +4 -10
- package/api/theme/build/build.mjs +165 -116
- package/api/theme/build/input-fields.d.mts +9 -0
- package/api/theme/build/input-fields.mjs +155 -16
- package/api/theme/build/radius-values.d.mts +18 -0
- package/api/theme/build/radius-values.mjs +76 -0
- package/api/theme/build/typography-values.mjs +7 -23
- package/api/theme/build/written-values.d.mts +18 -0
- package/api/theme/build/written-values.mjs +107 -31
- package/api/theme/eject/eject.mjs +6 -1
- package/api/theme/palette/generate/generator.mjs +24 -0
- package/api/theme/theme.type.d.mts +4 -2
- package/api/theme/theme.type.mjs +3 -2
- package/api/theme/themeBuild.doc.mjs +2 -2
- package/api/theme/themeEject.doc.mjs +1 -1
- package/api/theme-edit/_catalog.d.mts +40 -0
- package/api/theme-edit/_catalog.mjs +100 -22
- package/api/theme-edit/_check.mjs +213 -43
- package/api/theme-edit/_color.d.mts +14 -0
- package/api/theme-edit/_color.mjs +22 -0
- package/api/theme-edit/_compiler.mjs +52 -0
- package/api/theme-edit/_context.d.mts +20 -2
- package/api/theme-edit/_context.mjs +157 -29
- package/api/theme-edit/_edit.mjs +426 -58
- package/api/theme-edit/_how-question.d.mts +14 -0
- package/api/theme-edit/_how-question.mjs +1541 -127
- package/api/theme-edit/_how.mjs +43 -0
- package/api/theme-edit/_missed.mjs +107 -27
- package/api/theme-edit/_normal.d.mts +18 -4
- package/api/theme-edit/_normal.mjs +84 -3
- package/api/theme-edit/_palette.d.mts +9 -0
- package/api/theme-edit/_palette.mjs +158 -33
- package/api/theme-edit/_part-words.mjs +16 -3
- package/api/theme-edit/_parts.d.mts +8 -0
- package/api/theme-edit/_parts.mjs +120 -36
- package/api/theme-edit/_png.d.mts +24 -0
- package/api/theme-edit/_png.mjs +99 -0
- package/api/theme-edit/_preview-app.d.mts +16 -0
- package/api/theme-edit/_preview-app.mjs +52 -18
- package/api/theme-edit/_preview.d.mts +44 -26
- package/api/theme-edit/_preview.mjs +255 -67
- package/api/theme-edit/_project.d.mts +12 -1
- package/api/theme-edit/_project.mjs +16 -1
- package/api/theme-edit/_settings.d.mts +116 -0
- package/api/theme-edit/_settings.mjs +1197 -58
- package/api/theme-edit/_tables.d.mts +16 -0
- package/api/theme-edit/_tables.mjs +34 -4
- package/api/theme-edit/theme-edit.type.d.mts +15 -2
- package/api/theme-edit/theme-edit.type.mjs +8 -6
- package/api/upgrade/_adapter.d.mts +46 -7
- package/api/upgrade/_adapter.mjs +110 -15
- package/api/upgrade/registry/registry.d.mts +6 -3
- package/api/upgrade/registry/registry.mjs +21 -6
- package/api/upgrade/run/run.mjs +23 -11
- package/api/upgrade/upgrade.doc.mjs +4 -3
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/tree/agent-guidance.doc.mjs +3 -2
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/host-entry.doc.mjs +4 -0
- package/assets/docs/tree/icon-definitions.doc.mjs +3 -3
- package/assets/docs/tree/icon-sets.doc.mjs +6 -6
- package/assets/docs/tree/problems.doc.mjs +3 -3
- package/assets/docs/tree/render-pages.doc.mjs +17 -3
- package/assets/docs/tree/share-a-page.doc.mjs +5 -5
- package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
- package/assets/docs/tree/troubleshooting.doc.mjs +8 -0
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/versioning.doc.mjs +1 -1
- package/assets/docs/working-with-ai.doc.mjs +40 -5
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/icons/installed-icon-set.doc.mjs +30 -0
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Avatar/AvatarInteractive.tsx +6 -1
- package/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsx +1 -1
- package/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsx +3 -1
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/page.tsx +6 -2
- package/assets/templates/pages/ai-chat-landing/page.tsx +1 -1
- package/assets/templates/pages/blank/page.tsx +4 -2
- package/assets/templates/pages/canvas-editor/page.tsx +3 -1
- package/assets/templates/pages/centered-hero/page.tsx +1 -1
- package/assets/templates/pages/checkout-wizard/page.tsx +1 -1
- package/assets/templates/pages/classic-gallery/page.tsx +1 -1
- package/assets/templates/pages/contact-form/page.tsx +2 -2
- package/assets/templates/pages/course-detail/page.tsx +1 -1
- package/assets/templates/pages/dashboard/page.tsx +24 -8
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +4 -2
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +7 -3
- package/assets/templates/pages/dashboard-comparison/page.tsx +5 -2
- package/assets/templates/pages/dashboard-composition/page.tsx +10 -4
- package/assets/templates/pages/dashboard-progress/page.tsx +6 -3
- package/assets/templates/pages/dashboard-scorecard/page.tsx +17 -8
- package/assets/templates/pages/detail-page/page.tsx +22 -5
- package/assets/templates/pages/documentation/page.tsx +4 -2
- package/assets/templates/pages/documentation-design/page.tsx +5 -2
- package/assets/templates/pages/documentation-technical/page.tsx +4 -2
- package/assets/templates/pages/editor/page.tsx +28 -9
- package/assets/templates/pages/file-explorer/page.tsx +3 -1
- package/assets/templates/pages/form-two-column/page.tsx +1 -1
- package/assets/templates/pages/form-wizard/page.tsx +1 -1
- package/assets/templates/pages/form-wizard-dialog/page.tsx +3 -1
- package/assets/templates/pages/form-wizard-inline/page.tsx +1 -1
- package/assets/templates/pages/form-wizard-vertical/page.tsx +1 -1
- package/assets/templates/pages/gallery-hero/page.tsx +1 -1
- package/assets/templates/pages/ide/page.tsx +7 -2
- package/assets/templates/pages/kanban-board/page.tsx +10 -4
- package/assets/templates/pages/library/page.tsx +31 -61
- package/assets/templates/pages/login/page.tsx +4 -2
- package/assets/templates/pages/login-card/page.tsx +4 -2
- package/assets/templates/pages/login-split/page.tsx +3 -2
- package/assets/templates/pages/login-sso/page.tsx +4 -4
- package/assets/templates/pages/mixed-gallery/page.tsx +1 -1
- package/assets/templates/pages/payment-form/page.tsx +1 -1
- package/assets/templates/pages/product-detail/page.tsx +16 -4
- package/assets/templates/pages/product-gallery/page.tsx +1 -1
- package/assets/templates/pages/settings/page.tsx +10 -4
- package/assets/templates/pages/settings-dialog/page.tsx +5 -6
- package/assets/templates/pages/settings-sidebar/page.tsx +39 -13
- package/assets/templates/pages/side-gallery/page.tsx +1 -1
- package/assets/templates/pages/table/page.tsx +2 -2
- package/assets/templates/pages/table-filter/page.tsx +21 -6
- package/assets/templates/pages/table-grouped/page.tsx +23 -2
- package/assets/templates/pages/table-inbox/page.tsx +82 -32
- package/assets/templates/pages/theme-showcase/page.tsx +3 -2
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +12 -12
- package/assets/templates/themes/butter/butterTheme.ts +197 -4
- package/assets/templates/themes/chocolate/chocolateTheme.ts +72 -8
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +3 -3
- package/assets/templates/themes/gothic/gothicTheme.ts +114 -4
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +8 -8
- package/assets/templates/themes/matcha/matchaTheme.ts +48 -12
- package/assets/templates/themes/neutral/neutralTheme.ts +29 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +2 -2
- package/assets/templates/themes/stone/stoneTheme.ts +69 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +9 -9
- package/assets/templates/themes/y2k/y2kTheme.ts +249 -14
- package/authoring/codemod/parse.d.mts +0 -36
- package/authoring/codemod/parse.mjs +62 -41
- package/authoring/config/config.doc.mjs +1 -1
- package/authoring/config/parse.d.mts +0 -47
- package/authoring/config/parse.mjs +128 -103
- package/authoring/config/type.ts +4 -3
- package/authoring/debug/parse.d.mts +2 -2
- package/authoring/discover/parse.d.mts +2 -2
- package/authoring/discover/parse.mjs +52 -38
- package/authoring/discover/type.ts +2 -1
- package/authoring/doctypes/_schema.d.mts +834 -950
- package/authoring/doctypes/_schema.mjs +863 -825
- package/authoring/doctypes/command/parse.mjs +2 -2
- package/authoring/doctypes/component/parse.mjs +2 -2
- package/authoring/doctypes/enum/parse.mjs +2 -2
- package/authoring/doctypes/hook/parse.mjs +2 -2
- package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +1 -1
- package/authoring/doctypes/icon-definition/parse.d.mts +0 -24
- package/authoring/doctypes/icon-definition/parse.mjs +59 -43
- package/authoring/doctypes/icon-set/parse.d.mts +0 -75
- package/authoring/doctypes/icon-set/parse.mjs +239 -210
- package/authoring/doctypes/legacy.mjs +3 -3
- package/authoring/doctypes/namespace/parse.mjs +2 -2
- package/authoring/doctypes/reference/parse.mjs +2 -2
- package/authoring/doctypes/schema/parse.mjs +2 -2
- package/authoring/doctypes/template/parse.d.mts +0 -101
- package/authoring/doctypes/template/parse.mjs +131 -106
- package/authoring/doctypes/theme/parse.d.mts +0 -23
- package/authoring/doctypes/theme/parse.mjs +52 -36
- package/authoring/gap-report/parse.d.mts +1 -1
- package/authoring/integration/integration.doc.mjs +8 -0
- package/authoring/integration/schema.d.mts +14 -3
- package/authoring/integration/schema.mjs +20 -2
- package/authoring/integration/type.ts +14 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/build.mjs +27 -13
- package/clients/cli/commands/component.mjs +14 -3
- package/clients/cli/commands/discover.doc.mjs +2 -2
- package/clients/cli/commands/discover.mjs +20 -3
- package/clients/cli/commands/docs.doc.mjs +11 -9
- package/clients/cli/commands/docs.mjs +50 -21
- package/clients/cli/commands/experimental/icon.mjs +330 -227
- package/clients/cli/commands/experimental/render.mjs +16 -1
- package/clients/cli/commands/experimental/theme.mjs +42 -17
- package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon-map.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
- package/clients/cli/commands/experimental-render.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
- package/clients/cli/commands/init.doc.mjs +36 -24
- package/clients/cli/commands/integration-check.doc.mjs +1 -1
- package/clients/cli/commands/mcp.doc.mjs +53 -0
- package/clients/cli/commands/mcp.mjs +51 -0
- package/clients/cli/commands/search.mjs +46 -9
- package/clients/cli/commands/template.mjs +3 -2
- package/clients/cli/commands/theme-build.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +12 -2
- package/clients/cli/commands/upgrade.doc.mjs +3 -2
- package/clients/cli/commands.generated.json +1 -1
- package/clients/cli/formatters/index.mjs +52 -6
- package/clients/cli/index.mjs +23 -17
- package/clients/cli/lib/base-gate.mjs +37 -5
- package/clients/cli/lib/define-command.mjs +82 -4
- package/clients/cli/lib/json-shim.mjs +61 -4
- package/clients/cli/lib/manifest.mjs +9 -1
- package/clients/cli/lib/mcp-server.mjs +286 -0
- package/clients/cli/lib/mcp-tools.mjs +405 -0
- package/clients/cli/lib/other-cli-words.mjs +99 -0
- package/clients/cli/lib/stray-option.mjs +27 -1
- package/clients/cli/lib/unknown-command.mjs +326 -11
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +1 -1
- package/foundation/agent-docs/agent-docs.d.mts +49 -1
- package/foundation/agent-docs/agent-docs.mjs +108 -7
- package/foundation/agent-docs/computer-agent-text.mjs +1 -1
- package/foundation/bases/core.d.mts +1 -1
- package/foundation/bases/core.mjs +3 -3
- package/foundation/bases/resolve.d.mts +4 -8
- package/foundation/bases/resolve.mjs +15 -21
- package/foundation/bases/state.d.mts +15 -9
- package/foundation/bases/state.mjs +33 -6
- package/foundation/config/project.d.mts +5 -4
- package/foundation/config/project.mjs +33 -17
- package/foundation/discovery/component-discovery.mjs +15 -28
- package/foundation/discovery/icon-imports.d.mts +66 -0
- package/foundation/discovery/icon-imports.mjs +225 -0
- package/foundation/discovery/icon-ranking.d.mts +12 -2
- package/foundation/discovery/icon-ranking.mjs +197 -10
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.d.mts +28 -0
- package/foundation/discovery/icon-set-discovery.mjs +42 -0
- package/foundation/discovery/icon-set-writer.d.mts +2 -11
- package/foundation/discovery/icon-set-writer.mjs +3 -29
- package/foundation/discovery/module-exports.d.mts +1 -1
- package/foundation/discovery/module-exports.mjs +136 -33
- package/foundation/discovery/name-roots.d.mts +5 -0
- package/foundation/discovery/name-roots.mjs +11 -0
- package/foundation/discovery/runner-allowlist.d.mts +1 -0
- package/foundation/discovery/runner-allowlist.mjs +2 -0
- package/foundation/discovery/runner-commands.mjs +1 -0
- package/foundation/discovery/template-adapter.d.mts +1 -1
- package/foundation/discovery/template-destination.d.mts +14 -6
- package/foundation/discovery/template-destination.mjs +42 -8
- package/foundation/discovery/template-icons.d.mts +45 -2
- package/foundation/discovery/template-icons.mjs +26 -54
- package/foundation/discovery/template-needs.d.mts +28 -2
- package/foundation/discovery/template-needs.mjs +92 -11
- package/foundation/discovery/theme-discovery.d.mts +8 -0
- package/foundation/discovery/theme-discovery.mjs +23 -6
- package/foundation/discovery/theme-imports.mjs +2 -4
- package/foundation/doc-compiler/parse-readable.mjs +4 -3
- package/foundation/doc-compiler/stored-docs.d.mts +13 -0
- package/foundation/doc-compiler/stored-docs.mjs +74 -3
- package/foundation/env/cli-command.d.mts +68 -10
- package/foundation/env/cli-command.mjs +116 -22
- package/foundation/env/project-scope.d.mts +9 -0
- package/foundation/env/project-scope.mjs +28 -2
- package/foundation/fs/gather-cache.d.mts +23 -0
- package/foundation/fs/gather-cache.mjs +94 -2
- package/foundation/fs/module-loader.d.mts +3 -1
- package/foundation/fs/module-loader.mjs +85 -5
- package/foundation/fs/read-record.mjs +9 -5
- package/foundation/identity/package-names.d.mts +18 -0
- package/foundation/identity/package-names.mjs +19 -0
- package/foundation/identity/providers.mjs +3 -2
- package/foundation/integrations/icon-features.d.mts +63 -0
- package/foundation/integrations/icon-features.mjs +54 -0
- package/foundation/integrations/integrations.d.mts +13 -1
- package/foundation/integrations/integrations.mjs +47 -6
- package/foundation/integrations/pack-state.d.mts +21 -0
- package/foundation/integrations/pack-state.mjs +42 -19
- package/foundation/integrations/validate-contributions.d.mts +11 -3
- package/foundation/integrations/validate-contributions.mjs +51 -13
- package/foundation/release/cache.d.mts +13 -1
- package/foundation/release/cache.mjs +94 -14
- package/foundation/release/notices.d.mts +15 -0
- package/foundation/release/notices.mjs +111 -7
- package/foundation/release/project.d.mts +3 -4
- package/foundation/release/project.mjs +5 -6
- package/foundation/render/client-bundle.d.mts +126 -0
- package/foundation/render/client-bundle.mjs +565 -0
- package/foundation/render/cut-short.d.mts +7 -1
- package/foundation/render/cut-short.mjs +46 -6
- package/foundation/render/embedded-imports.d.mts +4 -3
- package/foundation/render/embedded-imports.mjs +13 -8
- package/foundation/render/esbuild-dependency.d.mts +14 -0
- package/foundation/render/esbuild-dependency.mjs +41 -0
- package/foundation/render/file-header.mjs +5 -4
- package/foundation/render/page-worker.mjs +562 -86
- package/foundation/render/picture-chrome.mjs +54 -29
- package/foundation/render/picture-playwright.mjs +78 -42
- package/foundation/render/picture-window.d.mts +33 -0
- package/foundation/render/picture-window.mjs +78 -0
- package/foundation/render/render-page.d.mts +55 -4
- package/foundation/render/render-page.mjs +199 -28
- package/foundation/render/restore-folder.d.mts +13 -0
- package/foundation/render/restore-folder.mjs +30 -0
- package/foundation/render/served-packages.d.mts +2 -1
- package/foundation/render/served-packages.mjs +5 -3
- package/foundation/render/ts-paths.d.mts +11 -0
- package/foundation/render/ts-paths.mjs +27 -2
- package/foundation/render/value-uses.d.mts +43 -0
- package/foundation/render/value-uses.mjs +110 -0
- package/foundation/response/error-codes.d.mts +2 -1
- package/foundation/response/error-codes.doc.mjs +7 -1
- package/foundation/response/error-codes.mjs +10 -2
- package/foundation/response/response-types.doc.mjs +12 -12
- package/foundation/runtime/package-root.d.mts +8 -0
- package/foundation/runtime/package-root.mjs +20 -0
- package/foundation/suggest/other-command.d.mts +11 -0
- package/foundation/suggest/other-command.mjs +1 -1
- package/foundation/text/icon-id.d.mts +20 -0
- package/foundation/text/icon-id.mjs +40 -0
- package/foundation/text/icon-set-next.d.mts +25 -0
- package/foundation/text/icon-set-next.mjs +29 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +7 -6
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '@astryxdesign/core/Layout';
|
|
22
22
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
23
23
|
import {List, ListItem} from '@astryxdesign/core/List';
|
|
24
|
-
import {Table} from '@astryxdesign/core/Table';
|
|
24
|
+
import {Table, proportional} from '@astryxdesign/core/Table';
|
|
25
25
|
import type {TableColumn} from '@astryxdesign/core/Table';
|
|
26
26
|
import {Section} from '@astryxdesign/core/Section';
|
|
27
27
|
import {
|
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
LockClosedIcon,
|
|
62
62
|
} from '@heroicons/react/24/outline';
|
|
63
63
|
import {Spinner} from '@astryxdesign/core/Spinner';
|
|
64
|
+
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
|
|
64
65
|
|
|
65
66
|
type BlockType =
|
|
66
67
|
'hero' | 'text' | 'image' | 'button' | 'cards' | 'features' | 'cta';
|
|
@@ -107,6 +108,11 @@ const TRANSACTION_COLUMNS: TableColumn<Transaction>[] = [
|
|
|
107
108
|
{
|
|
108
109
|
key: 'name',
|
|
109
110
|
header: 'Transaction',
|
|
111
|
+
// An icon and a name share this cell, so the default 60px floor leaves a
|
|
112
|
+
// letter or two per line on a phone. Each column's share matches its
|
|
113
|
+
// floor, so the floors add up to the table's minimum (480px), and the
|
|
114
|
+
// Table scrolls sideways only below that.
|
|
115
|
+
width: proportional(3, {minWidth: 180}),
|
|
110
116
|
renderCell: (item: Transaction) => (
|
|
111
117
|
<HStack gap={3} vAlign="center">
|
|
112
118
|
<Icon icon={CATEGORY_ICONS[item.category] || SparklesIcon} />
|
|
@@ -124,6 +130,7 @@ const TRANSACTION_COLUMNS: TableColumn<Transaction>[] = [
|
|
|
124
130
|
{
|
|
125
131
|
key: 'date',
|
|
126
132
|
header: 'Date',
|
|
133
|
+
width: proportional(2, {minWidth: 120}),
|
|
127
134
|
renderCell: (item: Transaction) => (
|
|
128
135
|
<Text type="body" color="secondary">
|
|
129
136
|
{item.date}
|
|
@@ -133,6 +140,7 @@ const TRANSACTION_COLUMNS: TableColumn<Transaction>[] = [
|
|
|
133
140
|
{
|
|
134
141
|
key: 'amount',
|
|
135
142
|
header: 'Amount',
|
|
143
|
+
width: proportional(2, {minWidth: 120}),
|
|
136
144
|
renderCell: (item: Transaction) => (
|
|
137
145
|
<Text type="label" weight="semibold" color={undefined} hasTabularNumbers>
|
|
138
146
|
{item.amount}
|
|
@@ -141,7 +149,8 @@ const TRANSACTION_COLUMNS: TableColumn<Transaction>[] = [
|
|
|
141
149
|
},
|
|
142
150
|
{
|
|
143
151
|
key: 'actions',
|
|
144
|
-
header:
|
|
152
|
+
header: <VisuallyHidden>Actions</VisuallyHidden>,
|
|
153
|
+
width: proportional(1, {minWidth: 60}),
|
|
145
154
|
renderCell: () => (
|
|
146
155
|
<Button
|
|
147
156
|
label="More"
|
|
@@ -541,7 +550,7 @@ function BlockPreview({
|
|
|
541
550
|
<Card padding={6} style={cardStyle} onClick={onSelect}>
|
|
542
551
|
<HStack gap={3} vAlign="start" hAlign="between" paddingBlockEnd={4}>
|
|
543
552
|
<VStack gap={1}>
|
|
544
|
-
<Heading level={3}>
|
|
553
|
+
<Heading level={3} accessibilityLevel={2}>
|
|
545
554
|
{(props.heading as string) || 'Features'}
|
|
546
555
|
</Heading>
|
|
547
556
|
{(props.description as string) && (
|
|
@@ -568,7 +577,9 @@ function BlockPreview({
|
|
|
568
577
|
return (
|
|
569
578
|
<Card style={cardStyle} onClick={onSelect}>
|
|
570
579
|
<VStack gap={4}>
|
|
571
|
-
<Heading level={3}>
|
|
580
|
+
<Heading level={3} accessibilityLevel={2}>
|
|
581
|
+
Cards
|
|
582
|
+
</Heading>
|
|
572
583
|
<Divider />
|
|
573
584
|
<List density="balanced" hasDividers={false}>
|
|
574
585
|
{cardItems.map((card, i) => (
|
|
@@ -704,7 +715,9 @@ export default function EditorPage() {
|
|
|
704
715
|
const blocksTabContent = (
|
|
705
716
|
<VStack gap={2}>
|
|
706
717
|
<VStack gap={1}>
|
|
707
|
-
<Heading level={4}
|
|
718
|
+
<Heading level={4} accessibilityLevel={2}>
|
|
719
|
+
Add Block
|
|
720
|
+
</Heading>
|
|
708
721
|
<List density="balanced" hasDividers={false}>
|
|
709
722
|
{(Object.keys(BLOCK_META) as BlockType[]).map(type => (
|
|
710
723
|
<ListItem
|
|
@@ -720,7 +733,9 @@ export default function EditorPage() {
|
|
|
720
733
|
</VStack>
|
|
721
734
|
|
|
722
735
|
<VStack gap={1}>
|
|
723
|
-
<Heading level={4}>
|
|
736
|
+
<Heading level={4} accessibilityLevel={2}>
|
|
737
|
+
Layers
|
|
738
|
+
</Heading>
|
|
724
739
|
<List density="balanced" hasDividers={false}>
|
|
725
740
|
{blocks.map(block => (
|
|
726
741
|
<ListItem
|
|
@@ -820,7 +835,9 @@ export default function EditorPage() {
|
|
|
820
835
|
// Mobile: the title, an Edit button that opens the customizations
|
|
821
836
|
// dialog, and the primary action.
|
|
822
837
|
<HStack gap={3} vAlign="center" hAlign="between">
|
|
823
|
-
<Heading level={2}
|
|
838
|
+
<Heading level={2} accessibilityLevel={1}>
|
|
839
|
+
{pageTitle}
|
|
840
|
+
</Heading>
|
|
824
841
|
<HStack gap={2} vAlign="center">
|
|
825
842
|
<Button
|
|
826
843
|
label="Edit"
|
|
@@ -849,7 +866,9 @@ export default function EditorPage() {
|
|
|
849
866
|
onBlur={() => setIsEditingTitle(false)}
|
|
850
867
|
/>
|
|
851
868
|
) : (
|
|
852
|
-
<Heading level={2}
|
|
869
|
+
<Heading level={2} accessibilityLevel={1}>
|
|
870
|
+
{pageTitle}
|
|
871
|
+
</Heading>
|
|
853
872
|
)}
|
|
854
873
|
|
|
855
874
|
<Toolbar
|
|
@@ -919,7 +938,7 @@ export default function EditorPage() {
|
|
|
919
938
|
header={isMobile ? sidebar : undefined}
|
|
920
939
|
start={isMobile ? undefined : sidebar}
|
|
921
940
|
content={
|
|
922
|
-
<LayoutContent padding={8}>
|
|
941
|
+
<LayoutContent role="main" padding={8}>
|
|
923
942
|
<VStack gap={4} style={canvasStyle(VIEWPORT_MAX[viewport])}>
|
|
924
943
|
{blocks.length > 0 ? (
|
|
925
944
|
blocks.map(block => (
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
SegmentedControl,
|
|
21
21
|
SegmentedControlItem,
|
|
22
22
|
} from '@astryxdesign/core/SegmentedControl';
|
|
23
|
+
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
|
|
23
24
|
import {
|
|
24
25
|
ChevronLeftIcon,
|
|
25
26
|
ChevronRightIcon,
|
|
@@ -500,7 +501,8 @@ export default function FileExplorerPage() {
|
|
|
500
501
|
/>
|
|
501
502
|
}
|
|
502
503
|
content={
|
|
503
|
-
<LayoutContent padding={0} isScrollable={false}>
|
|
504
|
+
<LayoutContent role="main" padding={0} isScrollable={false}>
|
|
505
|
+
<VisuallyHidden as="h1">Files</VisuallyHidden>
|
|
504
506
|
<HStack height="100%" isScrollable>
|
|
505
507
|
{columns.map((col, colIndex) => {
|
|
506
508
|
const showDivider =
|
|
@@ -90,7 +90,7 @@ export default function FormTwoColumnPage() {
|
|
|
90
90
|
const handleSubmit = () => setSubmitted(true);
|
|
91
91
|
|
|
92
92
|
return (
|
|
93
|
-
<Center style={pageStyle}>
|
|
93
|
+
<Center role="main" style={pageStyle}>
|
|
94
94
|
<Section maxWidth={1100} width="100%" padding={10} variant="transparent">
|
|
95
95
|
<VStack gap={10}>
|
|
96
96
|
{/* Two-column; stacks to one column below ~520px. */}
|
|
@@ -441,7 +441,7 @@ export default function FormWizardPage() {
|
|
|
441
441
|
// this region, so a card here would be a border inside a border — and
|
|
442
442
|
// its own padding would push every field off the content line the
|
|
443
443
|
// title and stepper sit on.
|
|
444
|
-
<LayoutContent>
|
|
444
|
+
<LayoutContent role="main">
|
|
445
445
|
{step === 0 && (
|
|
446
446
|
<VStack gap={5}>
|
|
447
447
|
<VStack gap={1}>
|
|
@@ -98,6 +98,7 @@ import {TextInput} from '@astryxdesign/core/TextInput';
|
|
|
98
98
|
import type {ISOTimeString} from '@astryxdesign/core/TimeInput';
|
|
99
99
|
import {TimeInput} from '@astryxdesign/core/TimeInput';
|
|
100
100
|
import {useToast} from '@astryxdesign/core/Toast';
|
|
101
|
+
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
|
|
101
102
|
|
|
102
103
|
// ── Data ──────────────────────────────────────────────────────────────────────
|
|
103
104
|
|
|
@@ -276,7 +277,8 @@ export default function FormWizardDialogPage() {
|
|
|
276
277
|
return (
|
|
277
278
|
// Center is the page root, so the dialog stands in the middle of the space
|
|
278
279
|
// its backdrop would have covered.
|
|
279
|
-
<Center height="100dvh">
|
|
280
|
+
<Center role="main" height="100dvh">
|
|
281
|
+
<VisuallyHidden as="h1">Report scheduler</VisuallyHidden>
|
|
280
282
|
<Dialog
|
|
281
283
|
isOpen
|
|
282
284
|
// See the module header: inline so this page can be a gallery tile and
|
|
@@ -626,7 +626,7 @@ export default function FormWizardInlinePage() {
|
|
|
626
626
|
</LayoutHeader>
|
|
627
627
|
}
|
|
628
628
|
content={
|
|
629
|
-
<LayoutContent>
|
|
629
|
+
<LayoutContent role="main">
|
|
630
630
|
<VStack gap={6}>
|
|
631
631
|
{/* The automatic steps advance on a timer, which is a change of
|
|
632
632
|
context nobody asked for. Focus deliberately stays where it is;
|
|
@@ -23,6 +23,7 @@ import {Icon} from '@astryxdesign/core/Icon';
|
|
|
23
23
|
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
24
24
|
import {TreeList} from '@astryxdesign/core/TreeList';
|
|
25
25
|
import type {TreeListItemData} from '@astryxdesign/core/TreeList';
|
|
26
|
+
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
|
|
26
27
|
import {
|
|
27
28
|
FolderIcon,
|
|
28
29
|
DocumentTextIcon,
|
|
@@ -239,7 +240,8 @@ export default function ResizableWorkspacePage() {
|
|
|
239
240
|
<Layout
|
|
240
241
|
height="fill"
|
|
241
242
|
content={
|
|
242
|
-
<LayoutContent padding={0}>
|
|
243
|
+
<LayoutContent role="main" padding={0}>
|
|
244
|
+
<VisuallyHidden as="h1">Code editor</VisuallyHidden>
|
|
243
245
|
<Layout
|
|
244
246
|
height="fill"
|
|
245
247
|
start={
|
|
@@ -405,7 +407,10 @@ export default function ResizableWorkspacePage() {
|
|
|
405
407
|
gap={3}
|
|
406
408
|
style={styles.propertiesContent}>
|
|
407
409
|
<Stack direction="vertical" gap={1}>
|
|
408
|
-
<Heading
|
|
410
|
+
<Heading
|
|
411
|
+
level={3}
|
|
412
|
+
accessibilityLevel={2}
|
|
413
|
+
maxLines={1}>
|
|
409
414
|
{activeFile}
|
|
410
415
|
</Heading>
|
|
411
416
|
<Text
|
|
@@ -337,7 +337,9 @@ function BoardCardBody({
|
|
|
337
337
|
</HStack>
|
|
338
338
|
|
|
339
339
|
<VStack gap={1}>
|
|
340
|
-
<Heading level={4}
|
|
340
|
+
<Heading level={4} accessibilityLevel={3}>
|
|
341
|
+
{item.title}
|
|
342
|
+
</Heading>
|
|
341
343
|
<Text type="supporting" color="secondary" maxLines={2}>
|
|
342
344
|
{item.description}
|
|
343
345
|
</Text>
|
|
@@ -399,7 +401,9 @@ function BoardColumn({
|
|
|
399
401
|
variant={meta.variant}
|
|
400
402
|
label={`${meta.title} status`}
|
|
401
403
|
/>
|
|
402
|
-
<Heading level={4}
|
|
404
|
+
<Heading level={4} accessibilityLevel={2}>
|
|
405
|
+
{meta.title}
|
|
406
|
+
</Heading>
|
|
403
407
|
<Tooltip content={meta.tooltip}>
|
|
404
408
|
<Icon
|
|
405
409
|
icon={InformationCircleIcon}
|
|
@@ -690,7 +694,9 @@ export default function KanbanBoardTemplate() {
|
|
|
690
694
|
gap={2}
|
|
691
695
|
startContent={
|
|
692
696
|
<>
|
|
693
|
-
<Heading level={3}
|
|
697
|
+
<Heading level={3} accessibilityLevel={1}>
|
|
698
|
+
Sprint Board
|
|
699
|
+
</Heading>
|
|
694
700
|
<Badge label={items.length} variant="neutral" />
|
|
695
701
|
</>
|
|
696
702
|
}
|
|
@@ -766,7 +772,7 @@ export default function KanbanBoardTemplate() {
|
|
|
766
772
|
</LayoutHeader>
|
|
767
773
|
}
|
|
768
774
|
content={
|
|
769
|
-
<LayoutContent padding={0}>
|
|
775
|
+
<LayoutContent role="main" padding={0}>
|
|
770
776
|
<HStack gap={4} xstyle={styles.boardColumns}>
|
|
771
777
|
{COLUMNS.map(meta => (
|
|
772
778
|
<BoardColumn
|
|
@@ -36,8 +36,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
36
36
|
'Vertical and horizontal stack layouts with configurable gap and alignment.',
|
|
37
37
|
category: 'Layout',
|
|
38
38
|
type: 'Component',
|
|
39
|
-
imageUrl:
|
|
40
|
-
'/template-assets/colorful-home-horizontal-1.png',
|
|
39
|
+
imageUrl: '/template-assets/colorful-home-horizontal-1.png',
|
|
41
40
|
},
|
|
42
41
|
{
|
|
43
42
|
id: '2',
|
|
@@ -46,8 +45,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
46
45
|
'Responsive grid container with auto-fit columns and gap control.',
|
|
47
46
|
category: 'Layout',
|
|
48
47
|
type: 'Component',
|
|
49
|
-
imageUrl:
|
|
50
|
-
'/template-assets/illustrative-horizontal-3.png',
|
|
48
|
+
imageUrl: '/template-assets/illustrative-horizontal-3.png',
|
|
51
49
|
},
|
|
52
50
|
{
|
|
53
51
|
id: '3',
|
|
@@ -56,8 +54,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
56
54
|
'Surface container with optional padding, border, and shadow variants.',
|
|
57
55
|
category: 'Layout',
|
|
58
56
|
type: 'Component',
|
|
59
|
-
imageUrl:
|
|
60
|
-
'/template-assets/light-working-horizontal-2.png',
|
|
57
|
+
imageUrl: '/template-assets/light-working-horizontal-2.png',
|
|
61
58
|
},
|
|
62
59
|
{
|
|
63
60
|
id: '4',
|
|
@@ -65,8 +62,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
65
62
|
description: 'Centers its child both horizontally and vertically.',
|
|
66
63
|
category: 'Layout',
|
|
67
64
|
type: 'Utility',
|
|
68
|
-
imageUrl:
|
|
69
|
-
'/template-assets/moody-scene-horizontal-1.png',
|
|
65
|
+
imageUrl: '/template-assets/moody-scene-horizontal-1.png',
|
|
70
66
|
},
|
|
71
67
|
{
|
|
72
68
|
id: '5',
|
|
@@ -74,8 +70,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
74
70
|
description: 'Semantic page section with optional heading and divider.',
|
|
75
71
|
category: 'Layout',
|
|
76
72
|
type: 'Pattern',
|
|
77
|
-
imageUrl:
|
|
78
|
-
'/template-assets/colorful-lifestyle-horizontal-2.png',
|
|
73
|
+
imageUrl: '/template-assets/colorful-lifestyle-horizontal-2.png',
|
|
79
74
|
},
|
|
80
75
|
{
|
|
81
76
|
id: '6',
|
|
@@ -83,8 +78,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
83
78
|
description: 'Expandable region with animated height transition.',
|
|
84
79
|
category: 'Layout',
|
|
85
80
|
type: 'Component',
|
|
86
|
-
imageUrl:
|
|
87
|
-
'/template-assets/light-scene-horizontal-1.png',
|
|
81
|
+
imageUrl: '/template-assets/light-scene-horizontal-1.png',
|
|
88
82
|
},
|
|
89
83
|
{
|
|
90
84
|
id: '7',
|
|
@@ -93,8 +87,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
93
87
|
'Single-line text field with label, placeholder, and validation states.',
|
|
94
88
|
category: 'Forms',
|
|
95
89
|
type: 'Component',
|
|
96
|
-
imageUrl:
|
|
97
|
-
'/template-assets/moody-working-horizontal-1.png',
|
|
90
|
+
imageUrl: '/template-assets/moody-working-horizontal-1.png',
|
|
98
91
|
},
|
|
99
92
|
{
|
|
100
93
|
id: '8',
|
|
@@ -102,8 +95,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
102
95
|
description: 'Multi-line text field with auto-resize and character count.',
|
|
103
96
|
category: 'Forms',
|
|
104
97
|
type: 'Component',
|
|
105
|
-
imageUrl:
|
|
106
|
-
'/template-assets/colorful-working-horizontal-3.png',
|
|
98
|
+
imageUrl: '/template-assets/colorful-working-horizontal-3.png',
|
|
107
99
|
},
|
|
108
100
|
{
|
|
109
101
|
id: '9',
|
|
@@ -111,8 +103,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
111
103
|
description: 'Checkbox with label, indeterminate state, and group support.',
|
|
112
104
|
category: 'Forms',
|
|
113
105
|
type: 'Component',
|
|
114
|
-
imageUrl:
|
|
115
|
-
'/template-assets/illustrative-horizontal-1.png',
|
|
106
|
+
imageUrl: '/template-assets/illustrative-horizontal-1.png',
|
|
116
107
|
},
|
|
117
108
|
{
|
|
118
109
|
id: '10',
|
|
@@ -120,8 +111,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
120
111
|
description: 'Group of radio buttons with accessible fieldset wrapper.',
|
|
121
112
|
category: 'Forms',
|
|
122
113
|
type: 'Component',
|
|
123
|
-
imageUrl:
|
|
124
|
-
'/template-assets/light-home-horizontal-1.png',
|
|
114
|
+
imageUrl: '/template-assets/light-home-horizontal-1.png',
|
|
125
115
|
},
|
|
126
116
|
{
|
|
127
117
|
id: '11',
|
|
@@ -129,8 +119,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
129
119
|
description: 'Toggle switch for binary on/off settings.',
|
|
130
120
|
category: 'Forms',
|
|
131
121
|
type: 'Component',
|
|
132
|
-
imageUrl:
|
|
133
|
-
'/template-assets/moody-home-horizontal-2.png',
|
|
122
|
+
imageUrl: '/template-assets/moody-home-horizontal-2.png',
|
|
134
123
|
},
|
|
135
124
|
{
|
|
136
125
|
id: '12',
|
|
@@ -139,8 +128,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
139
128
|
'Dropdown or inline option selector with single and multi-select modes.',
|
|
140
129
|
category: 'Forms',
|
|
141
130
|
type: 'Component',
|
|
142
|
-
imageUrl:
|
|
143
|
-
'/template-assets/colorful-product-1.png',
|
|
131
|
+
imageUrl: '/template-assets/colorful-product-1.png',
|
|
144
132
|
},
|
|
145
133
|
{
|
|
146
134
|
id: '13',
|
|
@@ -149,8 +137,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
149
137
|
'Horizontal tab navigation with underline indicator and keyboard support.',
|
|
150
138
|
category: 'Navigation',
|
|
151
139
|
type: 'Component',
|
|
152
|
-
imageUrl:
|
|
153
|
-
'/template-assets/illustrative-horizontal-5.png',
|
|
140
|
+
imageUrl: '/template-assets/illustrative-horizontal-5.png',
|
|
154
141
|
},
|
|
155
142
|
{
|
|
156
143
|
id: '14',
|
|
@@ -158,8 +145,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
158
145
|
description: 'Application top bar with logo, nav links, and action slots.',
|
|
159
146
|
category: 'Navigation',
|
|
160
147
|
type: 'Pattern',
|
|
161
|
-
imageUrl:
|
|
162
|
-
'/template-assets/light-working-horizontal-1.png',
|
|
148
|
+
imageUrl: '/template-assets/light-working-horizontal-1.png',
|
|
163
149
|
},
|
|
164
150
|
{
|
|
165
151
|
id: '15',
|
|
@@ -168,8 +154,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
168
154
|
'Vertical sidebar navigation with collapsible groups and active states.',
|
|
169
155
|
category: 'Navigation',
|
|
170
156
|
type: 'Pattern',
|
|
171
|
-
imageUrl:
|
|
172
|
-
'/template-assets/moody-lifestyle-horizontal-1.png',
|
|
157
|
+
imageUrl: '/template-assets/moody-lifestyle-horizontal-1.png',
|
|
173
158
|
},
|
|
174
159
|
{
|
|
175
160
|
id: '16',
|
|
@@ -177,8 +162,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
177
162
|
description: 'Path trail navigation with separator and truncation support.',
|
|
178
163
|
category: 'Navigation',
|
|
179
164
|
type: 'Component',
|
|
180
|
-
imageUrl:
|
|
181
|
-
'/template-assets/colorful-home-horizontal-2.png',
|
|
165
|
+
imageUrl: '/template-assets/colorful-home-horizontal-2.png',
|
|
182
166
|
},
|
|
183
167
|
{
|
|
184
168
|
id: '17',
|
|
@@ -187,8 +171,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
187
171
|
'Page navigation with prev/next controls and page count display.',
|
|
188
172
|
category: 'Navigation',
|
|
189
173
|
type: 'Component',
|
|
190
|
-
imageUrl:
|
|
191
|
-
'/template-assets/colorful-working-horizontal-1.png',
|
|
174
|
+
imageUrl: '/template-assets/colorful-working-horizontal-1.png',
|
|
192
175
|
},
|
|
193
176
|
{
|
|
194
177
|
id: '18',
|
|
@@ -196,8 +179,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
196
179
|
description: 'Slide-out navigation drawer for mobile viewports.',
|
|
197
180
|
category: 'Navigation',
|
|
198
181
|
type: 'Pattern',
|
|
199
|
-
imageUrl:
|
|
200
|
-
'/template-assets/light-working-horizontal-3.png',
|
|
182
|
+
imageUrl: '/template-assets/light-working-horizontal-3.png',
|
|
201
183
|
},
|
|
202
184
|
{
|
|
203
185
|
id: '19',
|
|
@@ -206,8 +188,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
206
188
|
'Compact label for status, count, or category with semantic color variants.',
|
|
207
189
|
category: 'Feedback',
|
|
208
190
|
type: 'Component',
|
|
209
|
-
imageUrl:
|
|
210
|
-
'/template-assets/moody-working-horizontal-2.png',
|
|
191
|
+
imageUrl: '/template-assets/moody-working-horizontal-2.png',
|
|
211
192
|
},
|
|
212
193
|
{
|
|
213
194
|
id: '20',
|
|
@@ -216,8 +197,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
216
197
|
'Full-width alert bar for info, success, warning, and error messages.',
|
|
217
198
|
category: 'Feedback',
|
|
218
199
|
type: 'Component',
|
|
219
|
-
imageUrl:
|
|
220
|
-
'/template-assets/illustrative-horizontal-2.png',
|
|
200
|
+
imageUrl: '/template-assets/illustrative-horizontal-2.png',
|
|
221
201
|
},
|
|
222
202
|
{
|
|
223
203
|
id: '21',
|
|
@@ -225,8 +205,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
225
205
|
description: 'Animated loading indicator with size and color variants.',
|
|
226
206
|
category: 'Feedback',
|
|
227
207
|
type: 'Component',
|
|
228
|
-
imageUrl:
|
|
229
|
-
'/template-assets/colorful-lifestyle-horizontal-1.png',
|
|
208
|
+
imageUrl: '/template-assets/colorful-lifestyle-horizontal-1.png',
|
|
230
209
|
},
|
|
231
210
|
{
|
|
232
211
|
id: '22',
|
|
@@ -234,8 +213,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
234
213
|
description: 'Horizontal bar indicating task completion percentage.',
|
|
235
214
|
category: 'Feedback',
|
|
236
215
|
type: 'Component',
|
|
237
|
-
imageUrl:
|
|
238
|
-
'/template-assets/light-lifestyle-horizontal-1.png',
|
|
216
|
+
imageUrl: '/template-assets/light-lifestyle-horizontal-1.png',
|
|
239
217
|
},
|
|
240
218
|
{
|
|
241
219
|
id: '23',
|
|
@@ -244,8 +222,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
244
222
|
'Small dot indicator for presence, health, or pipeline status.',
|
|
245
223
|
category: 'Feedback',
|
|
246
224
|
type: 'Component',
|
|
247
|
-
imageUrl:
|
|
248
|
-
'/template-assets/moody-home-horizontal-1.png',
|
|
225
|
+
imageUrl: '/template-assets/moody-home-horizontal-1.png',
|
|
249
226
|
},
|
|
250
227
|
{
|
|
251
228
|
id: '24',
|
|
@@ -254,8 +231,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
254
231
|
'Contextual label that appears on hover with configurable placement.',
|
|
255
232
|
category: 'Feedback',
|
|
256
233
|
type: 'Component',
|
|
257
|
-
imageUrl:
|
|
258
|
-
'/template-assets/colorful-working-horizontal-2.png',
|
|
234
|
+
imageUrl: '/template-assets/colorful-working-horizontal-2.png',
|
|
259
235
|
},
|
|
260
236
|
{
|
|
261
237
|
id: '25',
|
|
@@ -264,8 +240,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
264
240
|
'Feature-rich data table with sorting, selection, and column resizing.',
|
|
265
241
|
category: 'Data',
|
|
266
242
|
type: 'Component',
|
|
267
|
-
imageUrl:
|
|
268
|
-
'/template-assets/illustrative-horizontal-4.png',
|
|
243
|
+
imageUrl: '/template-assets/illustrative-horizontal-4.png',
|
|
269
244
|
},
|
|
270
245
|
{
|
|
271
246
|
id: '26',
|
|
@@ -274,8 +249,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
274
249
|
'User profile image with fallback initials and status dot support.',
|
|
275
250
|
category: 'Data',
|
|
276
251
|
type: 'Component',
|
|
277
|
-
imageUrl:
|
|
278
|
-
'/template-assets/light-working-horizontal-4.png',
|
|
252
|
+
imageUrl: '/template-assets/light-working-horizontal-4.png',
|
|
279
253
|
},
|
|
280
254
|
{
|
|
281
255
|
id: '27',
|
|
@@ -284,8 +258,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
284
258
|
'Placeholder shimmer for loading states matching content shapes.',
|
|
285
259
|
category: 'Data',
|
|
286
260
|
type: 'Utility',
|
|
287
|
-
imageUrl:
|
|
288
|
-
'/template-assets/moody-lifestyle-horizontal-2.png',
|
|
261
|
+
imageUrl: '/template-assets/moody-lifestyle-horizontal-2.png',
|
|
289
262
|
},
|
|
290
263
|
{
|
|
291
264
|
id: '28',
|
|
@@ -293,8 +266,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
293
266
|
description: 'Rich popover that appears on hover with arbitrary content.',
|
|
294
267
|
category: 'Data',
|
|
295
268
|
type: 'Component',
|
|
296
|
-
imageUrl:
|
|
297
|
-
'/template-assets/moody-scene-horizontal-2.png',
|
|
269
|
+
imageUrl: '/template-assets/moody-scene-horizontal-2.png',
|
|
298
270
|
},
|
|
299
271
|
{
|
|
300
272
|
id: '29',
|
|
@@ -303,8 +275,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
303
275
|
'Command-palette style search with grouped results and keyboard nav.',
|
|
304
276
|
category: 'Data',
|
|
305
277
|
type: 'Pattern',
|
|
306
|
-
imageUrl:
|
|
307
|
-
'/template-assets/colorful-product-2.png',
|
|
278
|
+
imageUrl: '/template-assets/colorful-product-2.png',
|
|
308
279
|
},
|
|
309
280
|
{
|
|
310
281
|
id: '30',
|
|
@@ -313,8 +284,7 @@ const ITEMS: LibraryItem[] = [
|
|
|
313
284
|
'Autocomplete input with async suggestion loading and selection.',
|
|
314
285
|
category: 'Data',
|
|
315
286
|
type: 'Component',
|
|
316
|
-
imageUrl:
|
|
317
|
-
'/template-assets/moody-working-horizontal-3.png',
|
|
287
|
+
imageUrl: '/template-assets/moody-working-horizontal-3.png',
|
|
318
288
|
},
|
|
319
289
|
];
|
|
320
290
|
|
|
@@ -427,7 +397,7 @@ export default function LibraryPage() {
|
|
|
427
397
|
</LayoutHeader>
|
|
428
398
|
}
|
|
429
399
|
content={
|
|
430
|
-
<LayoutContent padding={6}>
|
|
400
|
+
<LayoutContent role="main" padding={6}>
|
|
431
401
|
<VStack gap={6}>
|
|
432
402
|
<VStack gap={4}>
|
|
433
403
|
<TextInput
|
|
@@ -42,7 +42,7 @@ export default function LoginPage() {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
|
-
<Center axis="both" padding={6} style={pageStyle}>
|
|
45
|
+
<Center role="main" axis="both" padding={6} style={pageStyle}>
|
|
46
46
|
<VStack gap={4} hAlign="center" style={contentStyle}>
|
|
47
47
|
{/* Logo */}
|
|
48
48
|
<VStack gap={2} hAlign="center">
|
|
@@ -56,7 +56,9 @@ export default function LoginPage() {
|
|
|
56
56
|
<Card padding={8} width="100%">
|
|
57
57
|
<VStack gap={4} hAlign="stretch">
|
|
58
58
|
<VStack gap={1} hAlign="center">
|
|
59
|
-
<Heading level={2}
|
|
59
|
+
<Heading level={2} accessibilityLevel={1}>
|
|
60
|
+
Sign in
|
|
61
|
+
</Heading>
|
|
60
62
|
<Text type="body" color="secondary" size="sm">
|
|
61
63
|
Enter your credentials to continue
|
|
62
64
|
</Text>
|
|
@@ -88,7 +88,7 @@ export default function LoginSimple() {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
return (
|
|
91
|
-
<Center axis="both" padding={6} style={pageStyle}>
|
|
91
|
+
<Center role="main" axis="both" padding={6} style={pageStyle}>
|
|
92
92
|
<VStack gap={4} hAlign="center" style={contentStyle}>
|
|
93
93
|
{/* Logo */}
|
|
94
94
|
<VStack gap={2} hAlign="center">
|
|
@@ -103,7 +103,9 @@ export default function LoginSimple() {
|
|
|
103
103
|
<VStack gap={4} hAlign="stretch">
|
|
104
104
|
{/* Header */}
|
|
105
105
|
<VStack gap={1} hAlign="center">
|
|
106
|
-
<Heading level={2}
|
|
106
|
+
<Heading level={2} accessibilityLevel={1}>
|
|
107
|
+
Welcome back
|
|
108
|
+
</Heading>
|
|
107
109
|
<Text type="body" color="secondary" size="sm">
|
|
108
110
|
Sign in to your account
|
|
109
111
|
</Text>
|
|
@@ -96,7 +96,7 @@ export default function LoginTwoColumn() {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
|
-
<Center axis="both" padding={6} style={pageStyle}>
|
|
99
|
+
<Center role="main" axis="both" padding={6} style={pageStyle}>
|
|
100
100
|
<style>{LOGIN_SPLIT_CSS}</style>
|
|
101
101
|
<VStack gap={4} width="100%">
|
|
102
102
|
<div style={cardWrap}>
|
|
@@ -120,6 +120,7 @@ export default function LoginTwoColumn() {
|
|
|
120
120
|
<Center axis="vertical" height="100%">
|
|
121
121
|
{isSuccess ? (
|
|
122
122
|
<EmptyState
|
|
123
|
+
headingLevel={1}
|
|
123
124
|
title="You're signed in"
|
|
124
125
|
description="Redirecting to your dashboard…"
|
|
125
126
|
icon={<Icon icon={CheckCircleIcon} size="lg" />}
|
|
@@ -127,7 +128,7 @@ export default function LoginTwoColumn() {
|
|
|
127
128
|
) : (
|
|
128
129
|
<VStack gap={4} hAlign="stretch" width="100%">
|
|
129
130
|
<VStack gap={1}>
|
|
130
|
-
<Text type="display-1" as="
|
|
131
|
+
<Text type="display-1" as="h1">
|
|
131
132
|
Welcome back
|
|
132
133
|
</Text>
|
|
133
134
|
<Text type="body" color="secondary" size="sm">
|