@astryxdesign/cli 0.7.17-canary.g4ea41ce → 0.7.17-canary.g5a3fd39
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 +7 -2
- package/api/build/_adapter.d.mts +7 -6
- package/api/build/_adapter.mjs +18 -11
- package/api/build/build.type.mjs +1 -1
- package/api/build/kit/kind.d.mts +6 -0
- package/api/build/kit/kind.mjs +1 -1
- package/api/build/kit/rank.d.mts +7 -1
- package/api/build/kit/rank.mjs +15 -5
- package/api/build/kit/signals.mjs +58 -57
- package/api/build/kit/start.d.mts +2 -1
- package/api/build/kit/start.mjs +62 -9
- package/api/build/kit/words.d.mts +6 -2
- package/api/build/kit/words.mjs +7 -3
- package/api/component/__fixtures__/resolutions/modules.txt +2 -2
- package/api/component/_adapter.d.mts +30 -24
- package/api/component/_adapter.mjs +72 -31
- package/api/component/component.mjs +4 -4
- package/api/component/detail/detail.d.mts +2 -2
- package/api/component/detail/detail.mjs +1 -1
- package/api/component/list/list.d.mts +2 -2
- package/api/component/list/list.mjs +4 -4
- package/api/discover/_adapter.mjs +15 -15
- package/api/docs/_adapter.d.mts +13 -5
- package/api/docs/_adapter.mjs +37 -10
- package/api/doctor/_adapter.d.mts +32 -0
- package/api/doctor/_adapter.mjs +56 -1
- package/api/doctor/doctor.mjs +28 -5
- package/api/doctor/theme-checks.mjs +165 -83
- package/api/error.d.mts +4 -3
- package/api/error.mjs +3 -2
- package/api/hook/_adapter.d.mts +5 -4
- package/api/hook/_adapter.mjs +6 -5
- package/api/icon/_options.d.mts +17 -0
- package/api/icon/_options.mjs +54 -0
- package/api/icon/exportIconIndex.doc.d.mts +10 -0
- package/api/icon/exportIconIndex.doc.mjs +59 -0
- package/api/icon/icon.mjs +11 -34
- package/api/icon/icon.type.d.mts +49 -0
- package/api/icon/icon.type.mjs +24 -0
- package/api/icon/rankIconIndex.doc.d.mts +10 -0
- package/api/icon/rankIconIndex.doc.mjs +79 -0
- package/api/icon/search/icon-index.d.mts +41 -0
- package/api/icon/search/icon-index.mjs +139 -0
- package/api/icon/search/search.d.mts +18 -0
- package/api/icon/search/search.mjs +13 -0
- package/api/index.d.mts +1 -0
- package/api/index.mjs +1 -0
- package/api/search/_adapter.d.mts +8 -5
- package/api/search/_adapter.mjs +14 -10
- package/api/search/_gather-components.d.mts +4 -4
- package/api/search/_gather-components.mjs +4 -3
- package/api/search/_gather-hooks.d.mts +2 -2
- package/api/search/_gather-hooks.mjs +1 -1
- package/api/search/_lexical.mjs +12 -2
- package/api/search/_priority.d.mts +10 -2
- package/api/search/_priority.mjs +37 -7
- package/api/search/_score.d.mts +12 -3
- package/api/search/_score.mjs +6 -3
- package/api/search/_words.mjs +12 -3
- package/api/search/search.d.mts +7 -1
- package/api/search/search.mjs +37 -4
- package/api/swizzle/_adapter.d.mts +7 -5
- package/api/swizzle/_adapter.mjs +7 -3
- package/api/swizzle/copy/copy.mjs +5 -4
- package/api/theme/build/build.d.mts +5 -0
- package/api/theme/build/build.mjs +400 -21
- package/api/theme/build/family.mjs +18 -7
- package/api/theme/build/font-warning.mjs +5 -4
- package/api/theme/build/input-fields.d.mts +21 -6
- package/api/theme/build/input-fields.mjs +104 -13
- package/api/theme/build/typography-values.d.mts +22 -0
- package/api/theme/build/typography-values.mjs +172 -22
- package/api/theme/build/written-values.d.mts +7 -0
- package/api/theme/build/written-values.mjs +57 -8
- package/api/theme/generateTonalPalette.doc.mjs +1 -1
- package/api/theme/palette/generate/generator.d.mts +14 -2
- package/api/theme/palette/generate/generator.mjs +94 -8
- package/api/theme/theme.type.d.mts +21 -4
- package/api/theme/theme.type.mjs +14 -5
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeTemplate.doc.mjs +18 -3
- package/api/theme-edit/_adapter.d.mts +1 -1
- package/api/theme-edit/_adapter.mjs +1 -1
- package/api/theme-edit/_catalog.d.mts +10 -4
- package/api/theme-edit/_catalog.mjs +81 -22
- package/api/theme-edit/_check.mjs +402 -88
- package/api/theme-edit/_color.d.mts +11 -2
- package/api/theme-edit/_color.mjs +23 -7
- package/api/theme-edit/_compiler.mjs +11 -3
- package/api/theme-edit/_context.d.mts +87 -6
- package/api/theme-edit/_context.mjs +224 -17
- package/api/theme-edit/_css.mjs +4 -0
- package/api/theme-edit/_edit.mjs +331 -58
- package/api/theme-edit/_how-question.d.mts +11 -0
- package/api/theme-edit/_how-question.mjs +2514 -234
- package/api/theme-edit/_how.mjs +79 -14
- package/api/theme-edit/_missed.mjs +294 -32
- package/api/theme-edit/_normal.d.mts +3 -1
- package/api/theme-edit/_normal.mjs +4 -1
- package/api/theme-edit/_palette.mjs +36 -5
- package/api/theme-edit/_part-words.mjs +20 -2
- package/api/theme-edit/_parts.d.mts +12 -1
- package/api/theme-edit/_parts.mjs +116 -11
- package/api/theme-edit/_preview-app.mjs +40 -2
- package/api/theme-edit/_preview.d.mts +45 -5
- package/api/theme-edit/_preview.mjs +173 -21
- package/api/theme-edit/_settings.d.mts +20 -0
- package/api/theme-edit/_settings.mjs +1033 -94
- package/api/theme-edit/_tables.mjs +2 -2
- package/api/theme-edit/theme-edit.type.d.mts +6 -5
- package/api/theme-edit/theme-edit.type.mjs +8 -8
- package/api/upgrade/_adapter.mjs +13 -2
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/tree/authoring.doc.mjs +1 -0
- package/assets/docs/tree/cli.doc.mjs +1 -0
- package/assets/docs/tree/computer-agent-guide.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +2 -2
- package/assets/docs/tree/global.doc.mjs +1 -0
- package/assets/docs/tree/single-component.doc.mjs +40 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/who-answers.doc.mjs +2 -2
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.tsx +1 -1
- package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +4 -4
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx +1 -0
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx +2 -2
- package/assets/templates/blocks/components/Card/CardElevations.tsx +1 -1
- package/assets/templates/blocks/components/Card/CardWithInnerLayout.tsx +19 -3
- package/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx +11 -1
- package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardMulti.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterHorizontal.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterInsideACard.tsx +1 -1
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx +8 -0
- package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx +8 -2
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsx +1 -0
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx +1 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleCustomContent.tsx +9 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsx +12 -2
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx +28 -7
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx +35 -7
- package/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.tsx +1 -1
- package/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsx +20 -4
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsx +15 -3
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsx +29 -6
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx +2 -2
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx +2 -2
- package/assets/templates/blocks/components/Divider/DividerFullBleed.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerVariants.tsx +1 -1
- package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.tsx +23 -4
- package/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsx +18 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsx +20 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsx +16 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx +11 -1
- package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +12 -2
- package/assets/templates/blocks/components/InternationalizationProvider/useDirectionHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsx +1 -1
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsx +17 -3
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsx +17 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsx +15 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsx +9 -2
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsx +1 -1
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsx +1 -1
- package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Outline/OutlineDensity.tsx +2 -0
- package/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +6 -1
- package/assets/templates/blocks/components/Pagination/PaginationVariants.tsx +4 -0
- package/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx +17 -2
- package/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +8 -1
- package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +2 -2
- package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +2 -0
- package/assets/templates/blocks/components/Switch/SwitchWithStatus.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx +12 -1
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx +11 -1
- package/assets/templates/blocks/components/Table/TableInCard.tsx +2 -2
- package/assets/templates/blocks/components/Text/TextTruncation.tsx +1 -1
- package/assets/templates/blocks/components/Text/TextWordBreak.tsx +12 -2
- package/assets/templates/blocks/components/Text/TextWrap.tsx +19 -4
- package/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaStates.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaValidation.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsx +1 -1
- package/assets/templates/blocks/components/TextInput/TextInputStatusVariant.tsx +2 -2
- package/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx +15 -1
- package/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx +15 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +8 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +12 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +18 -3
- package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx +6 -0
- package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx +7 -1
- package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsx +2 -2
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +9 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/page.tsx +102 -6
- package/assets/templates/pages/canvas-editor/page.tsx +73 -2
- package/assets/templates/pages/centered-hero/page.tsx +10 -4
- package/assets/templates/pages/course-detail/page.tsx +46 -2
- package/assets/templates/pages/dashboard/page.tsx +45 -16
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +31 -20
- package/assets/templates/pages/dashboard-comparison/page.tsx +9 -0
- package/assets/templates/pages/dashboard-composition/page.tsx +22 -9
- package/assets/templates/pages/dashboard-progress/page.tsx +27 -15
- package/assets/templates/pages/dashboard-scorecard/page.tsx +9 -0
- package/assets/templates/pages/detail-page/page.tsx +105 -77
- package/assets/templates/pages/documentation/page.tsx +15 -2
- package/assets/templates/pages/documentation-design/page.tsx +7 -34
- package/assets/templates/pages/documentation-technical/page.tsx +76 -12
- package/assets/templates/pages/editor/page.tsx +26 -21
- package/assets/templates/pages/file-explorer/page.tsx +35 -1
- package/assets/templates/pages/form-two-column/page.tsx +2 -3
- package/assets/templates/pages/form-wizard/page.tsx +31 -3
- package/assets/templates/pages/form-wizard-vertical/page.tsx +32 -3
- package/assets/templates/pages/gallery-hero/page.tsx +2 -1
- package/assets/templates/pages/ide/page.tsx +15 -1
- package/assets/templates/pages/incident-console/page.tsx +2 -1
- package/assets/templates/pages/incident-console/template.doc.mjs +1 -1
- package/assets/templates/pages/kanban-board/page.tsx +39 -2
- package/assets/templates/pages/payment-form/page.tsx +77 -39
- package/assets/templates/pages/product-gallery/page.tsx +16 -14
- package/assets/templates/pages/settings/page.tsx +35 -3
- package/assets/templates/pages/settings-dialog/page.tsx +34 -5
- package/assets/templates/pages/settings-sidebar/page.tsx +23 -3
- package/assets/templates/pages/shell-nav/page.tsx +28 -12
- package/assets/templates/pages/shell-side-nav/page.tsx +16 -1
- package/assets/templates/pages/shell-top-nav/page.tsx +27 -1
- package/assets/templates/pages/side-gallery/page.tsx +1 -1
- package/assets/templates/pages/table/page.tsx +2 -1
- package/assets/templates/pages/table/template.doc.mjs +1 -1
- package/assets/templates/pages/table-collapsible/page.tsx +1 -1
- package/assets/templates/pages/table-comparison/page.tsx +1 -1
- package/assets/templates/pages/table-filter/page.tsx +9 -2
- package/assets/templates/pages/table-grouped/page.tsx +16 -6
- package/assets/templates/pages/table-inbox/page.tsx +60 -1
- package/assets/templates/pages/table-page/page.tsx +10 -2
- package/assets/templates/pages/table-tree/page.tsx +95 -13
- package/assets/templates/pages/theme-showcase/page.tsx +107 -11
- package/assets/templates/pages/work-item-detail/page.tsx +88 -74
- package/assets/templates/pages/work-item-detail/template.doc.mjs +0 -1
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/gothic/gothicTheme.ts +5 -0
- package/assets/templates/themes/neutral/neutralTheme.ts +1 -1
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/y2k/y2kTheme.ts +1 -1
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/doctypes/_schema.d.mts +22 -8
- package/authoring/doctypes/_schema.mjs +31 -0
- package/authoring/doctypes/command/command.doc.mjs +24 -0
- package/authoring/doctypes/command/type.ts +31 -0
- package/authoring/doctypes/component/component.doc.mjs +1 -1
- package/authoring/doctypes/component/type.ts +8 -5
- package/authoring/doctypes/namespace/namespace.doc.mjs +6 -0
- package/authoring/doctypes/namespace/type.ts +4 -0
- package/authoring/doctypes/template/type.ts +0 -7
- package/authoring/index.d.ts +6 -1
- package/authoring/integration/integration.doc.mjs +7 -0
- package/authoring/integration/schema.d.mts +6 -0
- package/authoring/integration/schema.mjs +3 -0
- package/authoring/integration/type.ts +34 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -0
- package/clients/cli/commands/component.mjs +5 -1
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/experimental/index.mjs +4 -1
- package/clients/cli/commands/experimental/theme.mjs +139 -64
- package/clients/cli/commands/experimental-render.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-add.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +3 -1
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-template.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-use.doc.mjs +2 -0
- package/clients/cli/commands/gap-report.doc.mjs +1 -0
- package/clients/cli/commands/hook.doc.mjs +1 -1
- package/clients/cli/commands/init.doc.mjs +1 -1
- package/clients/cli/commands/integration-add.doc.mjs +1 -0
- package/clients/cli/commands/manifest.mjs +10 -3
- package/clients/cli/commands/swizzle.doc.mjs +8 -1
- package/clients/cli/commands/swizzle.mjs +13 -6
- package/clients/cli/commands/template.doc.mjs +3 -0
- package/clients/cli/commands/theme-add.doc.mjs +2 -1
- package/clients/cli/commands/theme-build.doc.mjs +2 -1
- package/clients/cli/commands/theme-eject.doc.mjs +1 -1
- package/clients/cli/commands/theme-palette-generate.doc.mjs +3 -2
- package/clients/cli/commands/theme-remove.doc.mjs +2 -1
- package/clients/cli/commands/theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/theme-template.doc.mjs +1 -0
- package/clients/cli/commands/theme-use.doc.mjs +2 -1
- package/clients/cli/commands/theme.doc.mjs +7 -2
- package/clients/cli/commands/theme.mjs +21 -5
- package/clients/cli/index.mjs +167 -59
- package/clients/cli/lib/base-gate.mjs +522 -0
- package/clients/cli/lib/command-path.mjs +26 -0
- package/clients/cli/lib/define-command.mjs +161 -12
- package/clients/cli/lib/json-shim.mjs +34 -31
- package/clients/cli/lib/manifest.d.ts +14 -0
- package/clients/cli/lib/manifest.mjs +78 -22
- package/clients/cli/lib/root-args.mjs +79 -0
- package/clients/cli/lib/stray-option.mjs +21 -8
- package/clients/cli/lib/unknown-command.mjs +27 -6
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +13 -1
- package/foundation/agent-docs/computer-agent-text.mjs +1 -1
- package/foundation/bases/core-docs.d.mts +10 -0
- package/foundation/bases/core-docs.mjs +42 -0
- package/foundation/bases/core.d.mts +11 -0
- package/foundation/bases/core.mjs +32 -0
- package/foundation/bases/requirements.d.mts +128 -0
- package/foundation/bases/requirements.mjs +193 -0
- package/foundation/bases/resolve.d.mts +134 -0
- package/foundation/bases/resolve.mjs +295 -0
- package/foundation/bases/state.d.mts +24 -0
- package/foundation/bases/state.mjs +46 -0
- package/foundation/bases/steps.d.mts +49 -0
- package/foundation/bases/steps.mjs +88 -0
- package/foundation/config/project.d.mts +14 -0
- package/foundation/config/project.mjs +68 -1
- package/foundation/discovery/cli-self-docs.mjs +9 -1
- package/foundation/discovery/command-pointers.d.mts +28 -0
- package/foundation/discovery/command-pointers.mjs +31 -0
- package/foundation/discovery/component-discovery.d.mts +9 -8
- package/foundation/discovery/component-discovery.mjs +9 -4
- package/foundation/discovery/docs-discovery.d.mts +13 -5
- package/foundation/discovery/docs-discovery.mjs +25 -6
- package/foundation/discovery/hook-discovery.d.mts +6 -6
- package/foundation/discovery/hook-discovery.mjs +6 -4
- package/foundation/discovery/template-adapter.mjs +5 -0
- package/foundation/discovery/template-ids.d.mts +1 -1
- package/foundation/discovery/template-ids.mjs +5 -1
- package/foundation/discovery/theme-discovery.mjs +3 -0
- package/foundation/discovery/theme-imports.mjs +19 -1
- package/foundation/doc-compiler/tree.d.mts +4 -2
- package/foundation/doc-compiler/tree.mjs +46 -1
- package/foundation/env/package-manager.d.mts +7 -0
- package/foundation/env/package-manager.mjs +21 -0
- package/foundation/fonts/font-stylesheet.d.mts +8 -0
- package/foundation/fonts/font-stylesheet.mjs +26 -2
- package/foundation/fs/gather-cache.mjs +44 -13
- package/foundation/fs/own-modules.d.mts +29 -0
- package/foundation/fs/own-modules.mjs +57 -0
- package/foundation/fs/paths.d.mts +30 -2
- package/foundation/fs/paths.mjs +49 -2
- package/foundation/integrations/integrations.d.mts +4 -0
- package/foundation/integrations/integrations.mjs +6 -1
- package/foundation/release/choose.d.mts +7 -0
- package/foundation/release/choose.mjs +16 -2
- package/foundation/release/notices.d.mts +26 -0
- package/foundation/release/notices.mjs +48 -19
- package/foundation/release/project.d.mts +3 -2
- package/foundation/release/project.mjs +4 -5
- package/foundation/release/run-context.d.mts +7 -2
- package/foundation/release/run-context.mjs +6 -2
- package/foundation/render/css-cut.mjs +86 -6
- package/foundation/render/cut-short.d.mts +35 -0
- package/foundation/render/cut-short.mjs +124 -0
- package/foundation/render/font-probe.d.mts +27 -0
- package/foundation/render/font-probe.mjs +77 -0
- package/foundation/render/layers.d.mts +1 -9
- package/foundation/render/layers.mjs +2 -111
- package/foundation/render/page-worker.mjs +83 -6
- package/foundation/render/picture-chrome.mjs +24 -2
- package/foundation/render/picture-playwright.mjs +22 -2
- package/foundation/render/picture-window.d.mts +20 -4
- package/foundation/render/picture-window.mjs +137 -4
- package/foundation/response/base.d.ts +25 -0
- package/foundation/response/error-codes.d.mts +4 -1
- package/foundation/response/error-codes.d.ts +4 -1
- package/foundation/response/error-codes.doc.mjs +17 -0
- package/foundation/response/error-codes.mjs +21 -0
- package/foundation/response/json.d.mts +3 -1
- package/foundation/response/json.mjs +7 -2
- package/foundation/response/response-types.doc.mjs +2 -2
- package/foundation/suggest/name-index.d.mts +2 -1
- package/foundation/suggest/name-index.mjs +1 -1
- package/foundation/suggest/other-command.d.mts +4 -1
- package/foundation/suggest/other-command.mjs +23 -6
- package/foundation/text/string-utils.d.mts +7 -2
- package/foundation/text/string-utils.mjs +24 -10
- package/package.json +6 -6
- package/assets/templates/pages/access-denied/page.tsx +0 -101
- package/assets/templates/pages/access-denied/template.doc.mjs +0 -24
- package/assets/templates/pages/error-page/page.tsx +0 -130
- package/assets/templates/pages/error-page/template.doc.mjs +0 -22
- package/assets/templates/pages/not-found/page.tsx +0 -124
- package/assets/templates/pages/not-found/template.doc.mjs +0 -30
- package/assets/templates/pages/review-workspace/page.tsx +0 -551
- package/assets/templates/pages/review-workspace/template.doc.mjs +0 -31
- package/assets/templates/pages/run-console/page.tsx +0 -945
- package/assets/templates/pages/run-console/template.doc.mjs +0 -27
- package/assets/templates/pages/welcome-portal/page.tsx +0 -538
- package/assets/templates/pages/welcome-portal/template.doc.mjs +0 -38
|
@@ -15,6 +15,7 @@ import {Divider} from '@astryxdesign/core/Divider';
|
|
|
15
15
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
16
16
|
import {Outline, type OutlineItem} from '@astryxdesign/core/Outline';
|
|
17
17
|
import {useClipboard, useMediaQuery} from '@astryxdesign/core/hooks';
|
|
18
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
18
19
|
import {
|
|
19
20
|
SparklesIcon,
|
|
20
21
|
ClipboardDocumentIcon,
|
|
@@ -44,6 +45,7 @@ const subscribeToNothing = () => () => {};
|
|
|
44
45
|
|
|
45
46
|
export default function TechnicalDocumentationPage() {
|
|
46
47
|
const {copy} = useClipboard();
|
|
48
|
+
const showToast = useToast();
|
|
47
49
|
// Mobile first: the server render and a shared static copy, which run no
|
|
48
50
|
// script, get one column with the section links on top. That reads well at
|
|
49
51
|
// every width; once script runs, wide screens move the links to the rail.
|
|
@@ -115,10 +117,42 @@ export default function TechnicalDocumentationPage() {
|
|
|
115
117
|
icon: <Icon icon={ChevronDownIcon} />,
|
|
116
118
|
}}
|
|
117
119
|
items={[
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
{
|
|
121
|
+
label: 'Open in v0',
|
|
122
|
+
onClick: () =>
|
|
123
|
+
// Demo only: replace this toast with the link that opens the prompt.
|
|
124
|
+
showToast({
|
|
125
|
+
body: 'Demo: this would open the prompt in v0 here',
|
|
126
|
+
uniqueID: 'open-v0',
|
|
127
|
+
}),
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: 'Open in Claude',
|
|
131
|
+
onClick: () =>
|
|
132
|
+
// Demo only: replace this toast with the link that opens the prompt.
|
|
133
|
+
showToast({
|
|
134
|
+
body: 'Demo: this would open the prompt in Claude here',
|
|
135
|
+
uniqueID: 'open-claude',
|
|
136
|
+
}),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: 'Open in ChatGPT',
|
|
140
|
+
onClick: () =>
|
|
141
|
+
// Demo only: replace this toast with the link that opens the prompt.
|
|
142
|
+
showToast({
|
|
143
|
+
body: 'Demo: this would open the prompt in ChatGPT here',
|
|
144
|
+
uniqueID: 'open-chatgpt',
|
|
145
|
+
}),
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: 'Open in Cursor',
|
|
149
|
+
onClick: () =>
|
|
150
|
+
// Demo only: replace this toast with the link that opens the prompt.
|
|
151
|
+
showToast({
|
|
152
|
+
body: 'Demo: this would open the prompt in Cursor here',
|
|
153
|
+
uniqueID: 'open-cursor',
|
|
154
|
+
}),
|
|
155
|
+
},
|
|
122
156
|
]}
|
|
123
157
|
/>
|
|
124
158
|
</HStack>
|
|
@@ -138,9 +172,11 @@ export default function TechnicalDocumentationPage() {
|
|
|
138
172
|
Prerequisites
|
|
139
173
|
</Heading>
|
|
140
174
|
<List density="compact" listStyle="disc">
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<ListItem label=
|
|
175
|
+
{/* A node label wraps on a narrow screen; a string label
|
|
176
|
+
truncates to one line. */}
|
|
177
|
+
<ListItem label={<>Node.js 18+</>} />
|
|
178
|
+
<ListItem label={<>React 19 or later</>} />
|
|
179
|
+
<ListItem label={<>A package manager (npm, yarn, or pnpm)</>} />
|
|
144
180
|
</List>
|
|
145
181
|
</VStack>
|
|
146
182
|
|
|
@@ -234,11 +270,39 @@ export default function App({ children }) {
|
|
|
234
270
|
Next steps
|
|
235
271
|
</Heading>
|
|
236
272
|
<List density="compact" listStyle="disc">
|
|
237
|
-
<ListItem
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
273
|
+
<ListItem
|
|
274
|
+
label={
|
|
275
|
+
<>
|
|
276
|
+
Fundamental concepts — How theming, layout, and
|
|
277
|
+
composition work
|
|
278
|
+
</>
|
|
279
|
+
}
|
|
280
|
+
/>
|
|
281
|
+
<ListItem
|
|
282
|
+
label={
|
|
283
|
+
<>
|
|
284
|
+
Component API reference — Props, variants, and examples
|
|
285
|
+
for every component
|
|
286
|
+
</>
|
|
287
|
+
}
|
|
288
|
+
/>
|
|
289
|
+
<ListItem
|
|
290
|
+
label={
|
|
291
|
+
<>
|
|
292
|
+
Accessibility — Built-in a11y features and ARIA patterns
|
|
293
|
+
</>
|
|
294
|
+
}
|
|
295
|
+
/>
|
|
296
|
+
<ListItem
|
|
297
|
+
label={
|
|
298
|
+
<>CLI tools — Scaffold projects and manage templates</>
|
|
299
|
+
}
|
|
300
|
+
/>
|
|
301
|
+
<ListItem
|
|
302
|
+
label={
|
|
303
|
+
<>Design tokens — Colors, spacing, typography, and sizing</>
|
|
304
|
+
}
|
|
305
|
+
/>
|
|
242
306
|
</List>
|
|
243
307
|
</VStack>
|
|
244
308
|
</VStack>
|
|
@@ -539,27 +539,25 @@ function BlockPreview({
|
|
|
539
539
|
const items = (props.items as Transaction[]) || [];
|
|
540
540
|
return (
|
|
541
541
|
<Card padding={6} style={cardStyle} onClick={onSelect}>
|
|
542
|
-
<
|
|
543
|
-
<
|
|
544
|
-
<
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
/>
|
|
562
|
-
</VStack>
|
|
542
|
+
<HStack gap={3} vAlign="start" hAlign="between" paddingBlockEnd={4}>
|
|
543
|
+
<VStack gap={1}>
|
|
544
|
+
<Heading level={3}>
|
|
545
|
+
{(props.heading as string) || 'Features'}
|
|
546
|
+
</Heading>
|
|
547
|
+
{(props.description as string) && (
|
|
548
|
+
<Text type="supporting" color="secondary">
|
|
549
|
+
{props.description as string}
|
|
550
|
+
</Text>
|
|
551
|
+
)}
|
|
552
|
+
</VStack>
|
|
553
|
+
<Button label="View All" variant="secondary" size="sm" />
|
|
554
|
+
</HStack>
|
|
555
|
+
<Table
|
|
556
|
+
data={items}
|
|
557
|
+
columns={TRANSACTION_COLUMNS}
|
|
558
|
+
idKey="id"
|
|
559
|
+
hasHover
|
|
560
|
+
/>
|
|
563
561
|
</Card>
|
|
564
562
|
);
|
|
565
563
|
}
|
|
@@ -888,6 +886,13 @@ export default function EditorPage() {
|
|
|
888
886
|
icon={<Icon icon={EyeIcon} size="sm" />}
|
|
889
887
|
variant="ghost"
|
|
890
888
|
isIconOnly
|
|
889
|
+
onClick={() =>
|
|
890
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
891
|
+
showToast({
|
|
892
|
+
body: 'Demo: a preview of the page would open here',
|
|
893
|
+
uniqueID: 'preview',
|
|
894
|
+
})
|
|
895
|
+
}
|
|
891
896
|
/>
|
|
892
897
|
<Button
|
|
893
898
|
label="Publish"
|
|
@@ -394,7 +394,13 @@ export default function FileExplorerPage() {
|
|
|
394
394
|
centerContent={
|
|
395
395
|
<SegmentedControl
|
|
396
396
|
value="column"
|
|
397
|
-
onChange={
|
|
397
|
+
onChange={view =>
|
|
398
|
+
// Demo only: this page shows the column view; replace this toast with the view switch.
|
|
399
|
+
showToast({
|
|
400
|
+
body: `Demo: the ${view} view would show here`,
|
|
401
|
+
uniqueID: `view-${view}`,
|
|
402
|
+
})
|
|
403
|
+
}
|
|
398
404
|
label="View mode">
|
|
399
405
|
<SegmentedControlItem
|
|
400
406
|
value="grid"
|
|
@@ -429,6 +435,13 @@ export default function FileExplorerPage() {
|
|
|
429
435
|
size="sm"
|
|
430
436
|
icon={<Icon icon={AdjustmentsHorizontalIcon} size="sm" />}
|
|
431
437
|
label="Group"
|
|
438
|
+
onClick={() =>
|
|
439
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
440
|
+
showToast({
|
|
441
|
+
body: 'Demo: grouping options would open here',
|
|
442
|
+
uniqueID: 'group',
|
|
443
|
+
})
|
|
444
|
+
}
|
|
432
445
|
/>
|
|
433
446
|
<IconButton
|
|
434
447
|
variant="ghost"
|
|
@@ -448,18 +461,39 @@ export default function FileExplorerPage() {
|
|
|
448
461
|
size="sm"
|
|
449
462
|
icon={<Icon icon={TagIcon} size="sm" />}
|
|
450
463
|
label="Tags"
|
|
464
|
+
onClick={() =>
|
|
465
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
466
|
+
showToast({
|
|
467
|
+
body: 'Demo: tags for the selection would open here',
|
|
468
|
+
uniqueID: 'tags',
|
|
469
|
+
})
|
|
470
|
+
}
|
|
451
471
|
/>
|
|
452
472
|
<IconButton
|
|
453
473
|
variant="ghost"
|
|
454
474
|
size="sm"
|
|
455
475
|
icon={<Icon icon={EllipsisHorizontalIcon} size="sm" />}
|
|
456
476
|
label="More"
|
|
477
|
+
onClick={() =>
|
|
478
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
479
|
+
showToast({
|
|
480
|
+
body: 'Demo: more actions would open here',
|
|
481
|
+
uniqueID: 'more',
|
|
482
|
+
})
|
|
483
|
+
}
|
|
457
484
|
/>
|
|
458
485
|
<IconButton
|
|
459
486
|
variant="ghost"
|
|
460
487
|
size="sm"
|
|
461
488
|
icon={<Icon icon={MagnifyingGlassIcon} size="sm" />}
|
|
462
489
|
label="Search"
|
|
490
|
+
onClick={() =>
|
|
491
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
492
|
+
showToast({
|
|
493
|
+
body: 'Demo: search in this folder would open here',
|
|
494
|
+
uniqueID: 'search',
|
|
495
|
+
})
|
|
496
|
+
}
|
|
463
497
|
/>
|
|
464
498
|
</>
|
|
465
499
|
}
|
|
@@ -18,8 +18,7 @@ import {Divider} from '@astryxdesign/core/Divider';
|
|
|
18
18
|
import {Card} from '@astryxdesign/core/Card';
|
|
19
19
|
import {Selector} from '@astryxdesign/core/Selector';
|
|
20
20
|
|
|
21
|
-
const ILLUSTRATION_URL =
|
|
22
|
-
'/template-assets/light-working-vertical-2.png';
|
|
21
|
+
const ILLUSTRATION_URL = '/template-assets/light-working-vertical-2.png';
|
|
23
22
|
|
|
24
23
|
const INQUIRY_REASONS = [
|
|
25
24
|
'New business',
|
|
@@ -220,7 +219,7 @@ export default function FormTwoColumnPage() {
|
|
|
220
219
|
{/* Contact strip; stacks below ~440px. */}
|
|
221
220
|
<VStack gap={6}>
|
|
222
221
|
<Divider />
|
|
223
|
-
<Grid columns={{minWidth: 200}} gap={6}>
|
|
222
|
+
<Grid columns={{minWidth: 200, repeat: 'fit'}} gap={6}>
|
|
224
223
|
{CONTACT_COLUMNS.map(col => (
|
|
225
224
|
<VStack key={col.label} gap={1} hAlign="center">
|
|
226
225
|
<Text type="supporting" color="secondary">
|
|
@@ -83,6 +83,7 @@ import {Heading, Text} from '@astryxdesign/core/Text';
|
|
|
83
83
|
import {TextArea} from '@astryxdesign/core/TextArea';
|
|
84
84
|
import {TextInput} from '@astryxdesign/core/TextInput';
|
|
85
85
|
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
86
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
86
87
|
|
|
87
88
|
// ── Data ──────────────────────────────────────────────────────────────────────
|
|
88
89
|
|
|
@@ -185,6 +186,7 @@ function parseEmails(raw: string): string[] {
|
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
export default function FormWizardPage() {
|
|
189
|
+
const showToast = useToast();
|
|
188
190
|
const isNarrow = useMediaQuery('(max-width: 640px)');
|
|
189
191
|
|
|
190
192
|
// Field wraps controls that have no label of their own; it needs an id to
|
|
@@ -327,9 +329,25 @@ export default function FormWizardPage() {
|
|
|
327
329
|
return;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
if (
|
|
331
|
-
|
|
332
|
+
if (isLastStep) {
|
|
333
|
+
// An earlier step can still have problems after a jump through the
|
|
334
|
+
// stepper. Send the person to the first one instead of finishing.
|
|
335
|
+
const firstBroken = errorsByStep.findIndex(
|
|
336
|
+
errors => Object.keys(errors).length > 0,
|
|
337
|
+
);
|
|
338
|
+
if (firstBroken !== -1) {
|
|
339
|
+
markAttempted(firstBroken);
|
|
340
|
+
setStep(firstBroken);
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
344
|
+
showToast({
|
|
345
|
+
body: 'Demo: your workspace would be created here',
|
|
346
|
+
uniqueID: 'create-workspace',
|
|
347
|
+
});
|
|
348
|
+
return;
|
|
332
349
|
}
|
|
350
|
+
setStep(s => s + 1);
|
|
333
351
|
};
|
|
334
352
|
|
|
335
353
|
// Skip is not Next with a different label. Next asserts the step is done and
|
|
@@ -378,7 +396,17 @@ export default function FormWizardPage() {
|
|
|
378
396
|
<StackItem size="fill">
|
|
379
397
|
<Heading level={1}>Create workspace</Heading>
|
|
380
398
|
</StackItem>
|
|
381
|
-
<Button
|
|
399
|
+
<Button
|
|
400
|
+
label="Cancel"
|
|
401
|
+
variant="ghost"
|
|
402
|
+
onClick={() =>
|
|
403
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
404
|
+
showToast({
|
|
405
|
+
body: 'Demo: leaving workspace setup would return you to the app here',
|
|
406
|
+
uniqueID: 'cancel-workspace',
|
|
407
|
+
})
|
|
408
|
+
}
|
|
409
|
+
/>
|
|
382
410
|
</HStack>
|
|
383
411
|
{/* Indicators sit on the track, and the steps carry a label
|
|
384
412
|
only. A pinned header pays for every line it keeps, and a
|
|
@@ -587,9 +587,28 @@ export default function FormWizardVerticalPage() {
|
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
if (Object.keys(errorsByStep[step]).length
|
|
591
|
-
|
|
590
|
+
if (Object.keys(errorsByStep[step]).length > 0) {
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
if (isLastStep) {
|
|
594
|
+
// An earlier step can still have problems after a jump through the
|
|
595
|
+
// stepper. Send the person to the first one instead of finishing.
|
|
596
|
+
const firstBroken = errorsByStep.findIndex(
|
|
597
|
+
errors => Object.keys(errors).length > 0,
|
|
598
|
+
);
|
|
599
|
+
if (firstBroken !== -1) {
|
|
600
|
+
markAttempted(firstBroken);
|
|
601
|
+
setStep(firstBroken);
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
605
|
+
showToast({
|
|
606
|
+
body: 'Demo: your audiobook would be submitted for review here',
|
|
607
|
+
uniqueID: 'submit-review',
|
|
608
|
+
});
|
|
609
|
+
return;
|
|
592
610
|
}
|
|
611
|
+
setStep(s => s + 1);
|
|
593
612
|
};
|
|
594
613
|
|
|
595
614
|
const goTo = (index: number) => {
|
|
@@ -709,7 +728,17 @@ export default function FormWizardVerticalPage() {
|
|
|
709
728
|
types. */}
|
|
710
729
|
<Text type="label">Publish audiobook</Text>
|
|
711
730
|
</StackItem>
|
|
712
|
-
<Button
|
|
731
|
+
<Button
|
|
732
|
+
label="Cancel"
|
|
733
|
+
variant="ghost"
|
|
734
|
+
onClick={() =>
|
|
735
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
736
|
+
showToast({
|
|
737
|
+
body: 'Demo: leaving the audiobook flow would return you to the app here',
|
|
738
|
+
uniqueID: 'cancel-audiobook',
|
|
739
|
+
})
|
|
740
|
+
}
|
|
741
|
+
/>
|
|
713
742
|
<Button
|
|
714
743
|
label="Save & exit"
|
|
715
744
|
variant="secondary"
|
|
@@ -70,6 +70,7 @@ export default function GalleryHero() {
|
|
|
70
70
|
<Button
|
|
71
71
|
label="Get started"
|
|
72
72
|
variant="primary"
|
|
73
|
+
href="#"
|
|
73
74
|
endContent={
|
|
74
75
|
<Icon
|
|
75
76
|
icon={ArrowRightIcon}
|
|
@@ -79,7 +80,7 @@ export default function GalleryHero() {
|
|
|
79
80
|
/>
|
|
80
81
|
}
|
|
81
82
|
/>
|
|
82
|
-
<Button label="Learn more" variant="secondary" />
|
|
83
|
+
<Button label="Learn more" variant="secondary" href="#" />
|
|
83
84
|
</HStack>
|
|
84
85
|
</VStack>
|
|
85
86
|
<Grid columns={{minWidth: 200, repeat: 'fit'}} gap={4}>
|
|
@@ -435,7 +435,7 @@ export default function ResizableWorkspacePage() {
|
|
|
435
435
|
onClick={() =>
|
|
436
436
|
// Demo only: replace this toast with the call that performs the action.
|
|
437
437
|
showToast({
|
|
438
|
-
body:
|
|
438
|
+
body: `Demo: ${activeFile} would be formatted here`,
|
|
439
439
|
uniqueID: 'format',
|
|
440
440
|
})
|
|
441
441
|
}
|
|
@@ -444,11 +444,25 @@ export default function ResizableWorkspacePage() {
|
|
|
444
444
|
label="Go to Definition"
|
|
445
445
|
size="sm"
|
|
446
446
|
variant="secondary"
|
|
447
|
+
onClick={() =>
|
|
448
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
449
|
+
showToast({
|
|
450
|
+
body: 'Demo: the definition would open here',
|
|
451
|
+
uniqueID: 'go-to-definition',
|
|
452
|
+
})
|
|
453
|
+
}
|
|
447
454
|
/>
|
|
448
455
|
<Button
|
|
449
456
|
label="Find References"
|
|
450
457
|
size="sm"
|
|
451
458
|
variant="secondary"
|
|
459
|
+
onClick={() =>
|
|
460
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
461
|
+
showToast({
|
|
462
|
+
body: 'Demo: references would be listed here',
|
|
463
|
+
uniqueID: 'find-references',
|
|
464
|
+
})
|
|
465
|
+
}
|
|
452
466
|
/>
|
|
453
467
|
</Stack>
|
|
454
468
|
</Stack>
|
|
@@ -613,7 +613,7 @@ export default function IncidentConsolePage() {
|
|
|
613
613
|
</LayoutHeader>
|
|
614
614
|
}
|
|
615
615
|
content={
|
|
616
|
-
<LayoutContent padding={0}>
|
|
616
|
+
<LayoutContent role="main" padding={0}>
|
|
617
617
|
<VStack gap={0} style={styles.contentFill}>
|
|
618
618
|
<HStack style={styles.searchRow}>
|
|
619
619
|
<StackItem size="fill">
|
|
@@ -661,6 +661,7 @@ export default function IncidentConsolePage() {
|
|
|
661
661
|
<LayoutPanel
|
|
662
662
|
width={inspectorPanel.size}
|
|
663
663
|
padding={0}
|
|
664
|
+
role="complementary"
|
|
664
665
|
label="Incident details">
|
|
665
666
|
{inspector ?? (
|
|
666
667
|
<EmptyState
|
|
@@ -312,13 +312,21 @@ function BoardCardBody({
|
|
|
312
312
|
label="Work item actions"
|
|
313
313
|
size="sm"
|
|
314
314
|
items={[
|
|
315
|
-
{
|
|
315
|
+
{
|
|
316
|
+
label: 'Open',
|
|
317
|
+
onClick: () =>
|
|
318
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
319
|
+
showToast({
|
|
320
|
+
body: `Demo: ${item.ref} would open here`,
|
|
321
|
+
uniqueID: `open-${item.ref}`,
|
|
322
|
+
}),
|
|
323
|
+
},
|
|
316
324
|
{
|
|
317
325
|
label: 'Assign to me',
|
|
318
326
|
onClick: () =>
|
|
319
327
|
// Demo only: replace this toast with the call that performs the action.
|
|
320
328
|
showToast({
|
|
321
|
-
body:
|
|
329
|
+
body: `Demo: ${item.ref} would be assigned to you here`,
|
|
322
330
|
uniqueID: `assign-${item.id}`,
|
|
323
331
|
}),
|
|
324
332
|
},
|
|
@@ -429,6 +437,7 @@ function BoardColumn({
|
|
|
429
437
|
// ============= MAIN =============
|
|
430
438
|
|
|
431
439
|
export default function KanbanBoardTemplate() {
|
|
440
|
+
const showToast = useToast();
|
|
432
441
|
const [items, setItems] = useState<WorkItem[]>(INITIAL_ITEMS);
|
|
433
442
|
const [sprint, setSprint] = useState('003');
|
|
434
443
|
const [drag, setDrag] = useState<DragState | null>(null);
|
|
@@ -708,20 +717,48 @@ export default function KanbanBoardTemplate() {
|
|
|
708
717
|
<IconButton
|
|
709
718
|
icon={<Icon icon={ArrowsUpDownIcon} size="sm" />}
|
|
710
719
|
label="Sort"
|
|
720
|
+
onClick={() =>
|
|
721
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
722
|
+
showToast({
|
|
723
|
+
body: 'Demo: sort options would open here',
|
|
724
|
+
uniqueID: 'sort',
|
|
725
|
+
})
|
|
726
|
+
}
|
|
711
727
|
/>
|
|
712
728
|
<IconButton
|
|
713
729
|
icon={<Icon icon={FunnelIcon} size="sm" />}
|
|
714
730
|
label="Filter"
|
|
731
|
+
onClick={() =>
|
|
732
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
733
|
+
showToast({
|
|
734
|
+
body: 'Demo: filters would open here',
|
|
735
|
+
uniqueID: 'filter',
|
|
736
|
+
})
|
|
737
|
+
}
|
|
715
738
|
/>
|
|
716
739
|
<IconButton
|
|
717
740
|
icon={<Icon icon={MagnifyingGlassIcon} size="sm" />}
|
|
718
741
|
label="Search"
|
|
742
|
+
onClick={() =>
|
|
743
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
744
|
+
showToast({
|
|
745
|
+
body: 'Demo: search across the board would open here',
|
|
746
|
+
uniqueID: 'search',
|
|
747
|
+
})
|
|
748
|
+
}
|
|
719
749
|
/>
|
|
720
750
|
</HStack>
|
|
721
751
|
<Button
|
|
722
752
|
label="Add task"
|
|
723
753
|
variant="primary"
|
|
724
754
|
icon={<Icon icon={PlusIcon} size="sm" />}
|
|
755
|
+
onClick={() =>
|
|
756
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
757
|
+
showToast({
|
|
758
|
+
body: 'Demo: a new task form would open here',
|
|
759
|
+
uniqueID: 'add-task',
|
|
760
|
+
})
|
|
761
|
+
}
|
|
725
762
|
/>
|
|
726
763
|
</HStack>
|
|
727
764
|
}
|