@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
|
@@ -1378,7 +1378,7 @@ export default function ConnectedAccountsTemplate() {
|
|
|
1378
1378
|
</LayoutHeader>
|
|
1379
1379
|
}
|
|
1380
1380
|
content={
|
|
1381
|
-
<LayoutContent padding={4}>
|
|
1381
|
+
<LayoutContent role="main" padding={4}>
|
|
1382
1382
|
<VStack gap={4} ref={contentRef}>
|
|
1383
1383
|
<AccountGroup
|
|
1384
1384
|
icon={BuildingLibraryIcon}
|
|
@@ -1431,7 +1431,7 @@ export default function ModelComparisonTemplate() {
|
|
|
1431
1431
|
</LayoutHeader>
|
|
1432
1432
|
}
|
|
1433
1433
|
content={
|
|
1434
|
-
<LayoutContent padding={4}>
|
|
1434
|
+
<LayoutContent role="main" padding={4}>
|
|
1435
1435
|
{/* No padding of its own: the table's cells carry the inset, so a
|
|
1436
1436
|
second one would inset them twice and pull the group headers
|
|
1437
1437
|
off the card's edges. The card is here for the border, the
|
|
@@ -4190,7 +4190,7 @@ export default function TableFilterTemplate() {
|
|
|
4190
4190
|
onClick={() =>
|
|
4191
4191
|
// Demo only: replace this toast with the call that performs the action.
|
|
4192
4192
|
showToast({
|
|
4193
|
-
body: `
|
|
4193
|
+
body: `Demo: “${NEXT_ACTION[activeJob.status]}” would start for ${activeJob.id} here`,
|
|
4194
4194
|
uniqueID: `next-${activeJob.id}`,
|
|
4195
4195
|
})
|
|
4196
4196
|
}
|
|
@@ -4200,6 +4200,13 @@ export default function TableFilterTemplate() {
|
|
|
4200
4200
|
variant="secondary"
|
|
4201
4201
|
size="sm"
|
|
4202
4202
|
width="100%"
|
|
4203
|
+
onClick={() =>
|
|
4204
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
4205
|
+
showToast({
|
|
4206
|
+
body: `Demo: editing ${activeJob.id} would open here`,
|
|
4207
|
+
uniqueID: `edit-${activeJob.id}`,
|
|
4208
|
+
})
|
|
4209
|
+
}
|
|
4203
4210
|
/>
|
|
4204
4211
|
</HStack>
|
|
4205
4212
|
</VStack>
|
|
@@ -4478,7 +4485,7 @@ export default function TableFilterTemplate() {
|
|
|
4478
4485
|
content={
|
|
4479
4486
|
/* Default padding (16px) is deliberate: Table bleeds to the edges
|
|
4480
4487
|
and re-applies it to the first and last cells. */
|
|
4481
|
-
<LayoutContent padding={4} label="Service jobs">
|
|
4488
|
+
<LayoutContent role="main" padding={4} label="Service jobs">
|
|
4482
4489
|
{results.length === 0 ? (
|
|
4483
4490
|
<EmptyState
|
|
4484
4491
|
icon={<Icon icon={Search} size="lg" />}
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
import type {TableColumn, TablePlugin} from '@astryxdesign/core/Table';
|
|
45
45
|
import {rtlStyles} from '@astryxdesign/core/utils';
|
|
46
46
|
import {useToast} from '@astryxdesign/core/Toast';
|
|
47
|
+
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
|
|
47
48
|
import {
|
|
48
49
|
PencilIcon,
|
|
49
50
|
DocumentDuplicateIcon,
|
|
@@ -588,14 +589,17 @@ function getGroupLabel(groupBy: GroupByField, key: string): string {
|
|
|
588
589
|
function getColumns({
|
|
589
590
|
onEdit,
|
|
590
591
|
onDuplicate,
|
|
592
|
+
onDemo,
|
|
591
593
|
}: {
|
|
592
594
|
onEdit: (task: TaskRow) => void;
|
|
593
595
|
onDuplicate: (task: TaskRow) => void;
|
|
596
|
+
/** Says what a menu action would do, for actions this demo does not perform. */
|
|
597
|
+
onDemo: (task: TaskRow, action: string) => void;
|
|
594
598
|
}): TableColumn<TaskRow>[] {
|
|
595
599
|
return [
|
|
596
600
|
{
|
|
597
601
|
key: 'status',
|
|
598
|
-
header:
|
|
602
|
+
header: <VisuallyHidden>Status</VisuallyHidden>,
|
|
599
603
|
width: pixel(44),
|
|
600
604
|
renderCell: task => (
|
|
601
605
|
<Center axis="horizontal">
|
|
@@ -674,7 +678,7 @@ function getColumns({
|
|
|
674
678
|
},
|
|
675
679
|
{
|
|
676
680
|
key: 'actions',
|
|
677
|
-
header:
|
|
681
|
+
header: <VisuallyHidden>Actions</VisuallyHidden>,
|
|
678
682
|
width: pixel(56),
|
|
679
683
|
renderCell: task => (
|
|
680
684
|
<DropdownMenu
|
|
@@ -695,12 +699,12 @@ function getColumns({
|
|
|
695
699
|
{
|
|
696
700
|
label: 'Assign to...',
|
|
697
701
|
icon: UserIcon,
|
|
698
|
-
onClick: () =>
|
|
702
|
+
onClick: () => onDemo(task, 'assigning'),
|
|
699
703
|
},
|
|
700
704
|
{
|
|
701
705
|
label: 'Add label',
|
|
702
706
|
icon: TagIcon,
|
|
703
|
-
onClick: () =>
|
|
707
|
+
onClick: () => onDemo(task, 'labeling'),
|
|
704
708
|
},
|
|
705
709
|
{
|
|
706
710
|
label: 'Duplicate',
|
|
@@ -717,7 +721,7 @@ function getColumns({
|
|
|
717
721
|
xstyle={rtlStyles.mirror}
|
|
718
722
|
/>
|
|
719
723
|
),
|
|
720
|
-
onClick: () =>
|
|
724
|
+
onClick: () => onDemo(task, 'moving'),
|
|
721
725
|
},
|
|
722
726
|
{type: 'divider' as const},
|
|
723
727
|
{
|
|
@@ -923,9 +927,15 @@ export default function DataTableTemplate() {
|
|
|
923
927
|
onDuplicate: task =>
|
|
924
928
|
// Demo only: replace this toast with the call that performs the action.
|
|
925
929
|
showToast({
|
|
926
|
-
body:
|
|
930
|
+
body: `Demo: ${task.taskId} would be duplicated here`,
|
|
927
931
|
uniqueID: `duplicate-${task.taskId}`,
|
|
928
932
|
}),
|
|
933
|
+
onDemo: (task, action) =>
|
|
934
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
935
|
+
showToast({
|
|
936
|
+
body: `Demo: ${action} ${task.taskId} would happen here`,
|
|
937
|
+
uniqueID: `${action}-${task.taskId}`,
|
|
938
|
+
}),
|
|
929
939
|
}),
|
|
930
940
|
[showToast],
|
|
931
941
|
);
|
|
@@ -122,6 +122,7 @@ import {
|
|
|
122
122
|
useTableSelectionState,
|
|
123
123
|
} from '@astryxdesign/core/Table';
|
|
124
124
|
import type {TableColumn, TablePlugin} from '@astryxdesign/core/Table';
|
|
125
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
125
126
|
import {
|
|
126
127
|
ArchiveBoxIcon,
|
|
127
128
|
ArrowLeftIcon,
|
|
@@ -989,6 +990,7 @@ function ReceivedCell({
|
|
|
989
990
|
*/
|
|
990
991
|
isOverlaid: boolean;
|
|
991
992
|
}) {
|
|
993
|
+
const showToast = useToast();
|
|
992
994
|
return (
|
|
993
995
|
/* `height` reserves the buttons' line box. Without it the row is 40px at
|
|
994
996
|
rest and 44px with the actions in it, so every row nudges its
|
|
@@ -1012,6 +1014,17 @@ function ReceivedCell({
|
|
|
1012
1014
|
label={`${action.label} — ${item.subject}`}
|
|
1013
1015
|
tooltip={action.label}
|
|
1014
1016
|
icon={<Icon icon={action.icon} size="sm" />}
|
|
1017
|
+
onClick={
|
|
1018
|
+
// A delete needs a confirm step, which this demo does not have.
|
|
1019
|
+
action.id === 'delete'
|
|
1020
|
+
? undefined
|
|
1021
|
+
: () =>
|
|
1022
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1023
|
+
showToast({
|
|
1024
|
+
body: `Demo: ${action.label} would run on “${item.subject}” here`,
|
|
1025
|
+
uniqueID: `${action.id}-${item.id}`,
|
|
1026
|
+
})
|
|
1027
|
+
}
|
|
1015
1028
|
/>
|
|
1016
1029
|
))}
|
|
1017
1030
|
</HStack>
|
|
@@ -1350,6 +1363,7 @@ function ConversationPane({
|
|
|
1350
1363
|
/** True when the pane has replaced the list rather than sitting beside it. */
|
|
1351
1364
|
isFullWidth: boolean;
|
|
1352
1365
|
}) {
|
|
1366
|
+
const showToast = useToast();
|
|
1353
1367
|
// Named against the subject, because the pane is not the only Archive on
|
|
1354
1368
|
// screen — every row in the list behind it has one.
|
|
1355
1369
|
const threadActions = THREAD_ACTIONS.map(action => (
|
|
@@ -1359,6 +1373,17 @@ function ConversationPane({
|
|
|
1359
1373
|
label={`${action.label} — ${conversation.subject}`}
|
|
1360
1374
|
tooltip={action.label}
|
|
1361
1375
|
icon={<Icon icon={action.icon} size="sm" />}
|
|
1376
|
+
onClick={
|
|
1377
|
+
// A delete needs a confirm step, which this demo does not have.
|
|
1378
|
+
action.id === 'delete'
|
|
1379
|
+
? undefined
|
|
1380
|
+
: () =>
|
|
1381
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1382
|
+
showToast({
|
|
1383
|
+
body: `Demo: ${action.label} would run on “${conversation.subject}” here`,
|
|
1384
|
+
uniqueID: `${action.id}-${conversation.id}`,
|
|
1385
|
+
})
|
|
1386
|
+
}
|
|
1362
1387
|
/>
|
|
1363
1388
|
));
|
|
1364
1389
|
|
|
@@ -1709,6 +1734,7 @@ function ComposeWindow({
|
|
|
1709
1734
|
*/
|
|
1710
1735
|
draft: ComposeDraft | null;
|
|
1711
1736
|
}) {
|
|
1737
|
+
const showToast = useToast();
|
|
1712
1738
|
const [recipients, setRecipients] = useState<SearchableItem[]>([]);
|
|
1713
1739
|
const [cc, setCc] = useState<SearchableItem[]>([]);
|
|
1714
1740
|
const [bcc, setBcc] = useState<SearchableItem[]>([]);
|
|
@@ -1943,6 +1969,13 @@ function ComposeWindow({
|
|
|
1943
1969
|
label="Send"
|
|
1944
1970
|
variant="primary"
|
|
1945
1971
|
icon={<Icon icon={PaperAirplaneIcon} size="sm" />}
|
|
1972
|
+
onClick={() =>
|
|
1973
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1974
|
+
showToast({
|
|
1975
|
+
body: 'Demo: the message would send here',
|
|
1976
|
+
uniqueID: 'compose-send',
|
|
1977
|
+
})
|
|
1978
|
+
}
|
|
1946
1979
|
/>
|
|
1947
1980
|
{COMPOSER_TOOLS.map(tool => (
|
|
1948
1981
|
<IconButton
|
|
@@ -1951,6 +1984,13 @@ function ComposeWindow({
|
|
|
1951
1984
|
label={tool.label}
|
|
1952
1985
|
tooltip={tool.label}
|
|
1953
1986
|
icon={<Icon icon={tool.icon} size="sm" />}
|
|
1987
|
+
onClick={() =>
|
|
1988
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1989
|
+
showToast({
|
|
1990
|
+
body: `Demo: ${tool.label} would open here`,
|
|
1991
|
+
uniqueID: `compose-${tool.id}`,
|
|
1992
|
+
})
|
|
1993
|
+
}
|
|
1954
1994
|
/>
|
|
1955
1995
|
))}
|
|
1956
1996
|
</>
|
|
@@ -1975,6 +2015,7 @@ function ComposeWindow({
|
|
|
1975
2015
|
// ============= PAGE =============
|
|
1976
2016
|
|
|
1977
2017
|
export default function SupportInboxTemplate() {
|
|
2018
|
+
const showToast = useToast();
|
|
1978
2019
|
const [category, setCategory] = useState<Category>('inbox');
|
|
1979
2020
|
/**
|
|
1980
2021
|
* Which thread the user has picked — `undefined` until they pick one.
|
|
@@ -2421,6 +2462,13 @@ export default function SupportInboxTemplate() {
|
|
|
2421
2462
|
label="Refresh"
|
|
2422
2463
|
variant="ghost"
|
|
2423
2464
|
icon={<Icon icon={ArrowPathIcon} size="sm" />}
|
|
2465
|
+
onClick={() =>
|
|
2466
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2467
|
+
showToast({
|
|
2468
|
+
body: 'Demo: the inbox would refresh here',
|
|
2469
|
+
uniqueID: 'refresh',
|
|
2470
|
+
})
|
|
2471
|
+
}
|
|
2424
2472
|
/>
|
|
2425
2473
|
{/* Compose belongs on this row rather than down with the tabs.
|
|
2426
2474
|
Starting a message is unconditional — as true with nine
|
|
@@ -2488,6 +2536,17 @@ export default function SupportInboxTemplate() {
|
|
|
2488
2536
|
variant="ghost"
|
|
2489
2537
|
size="sm"
|
|
2490
2538
|
icon={<Icon icon={action.icon} size="sm" />}
|
|
2539
|
+
onClick={
|
|
2540
|
+
// A delete needs a confirm step, which this demo does not have.
|
|
2541
|
+
action.id === 'delete'
|
|
2542
|
+
? undefined
|
|
2543
|
+
: () =>
|
|
2544
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2545
|
+
showToast({
|
|
2546
|
+
body: `Demo: ${action.label} would run on the selected conversations here`,
|
|
2547
|
+
uniqueID: `bulk-${action.id}`,
|
|
2548
|
+
})
|
|
2549
|
+
}
|
|
2491
2550
|
/>
|
|
2492
2551
|
))}
|
|
2493
2552
|
</HStack>
|
|
@@ -2593,7 +2652,7 @@ export default function SupportInboxTemplate() {
|
|
|
2593
2652
|
</LayoutHeader>
|
|
2594
2653
|
}
|
|
2595
2654
|
content={
|
|
2596
|
-
<LayoutContent ref={listRef} padding={4} isScrollable>
|
|
2655
|
+
<LayoutContent role="main" ref={listRef} padding={4} isScrollable>
|
|
2597
2656
|
{isPaneFullWidth && openConversation != null ? (
|
|
2598
2657
|
<ConversationPane
|
|
2599
2658
|
conversation={openConversation}
|
|
@@ -603,7 +603,7 @@ function DescriptionCell({item}: {item: InvoiceRow}) {
|
|
|
603
603
|
onClick={() =>
|
|
604
604
|
// Demo only: replace this toast with the call that performs the action.
|
|
605
605
|
showToast({
|
|
606
|
-
body: `
|
|
606
|
+
body: `Demo: a dispute for ${item.description} would open here`,
|
|
607
607
|
uniqueID: `dispute-${item.id}`,
|
|
608
608
|
})
|
|
609
609
|
}
|
|
@@ -791,6 +791,7 @@ function TotalRow({
|
|
|
791
791
|
// ============= PAGE =============
|
|
792
792
|
|
|
793
793
|
export default function InvoiceLineItemsTemplate() {
|
|
794
|
+
const showToast = useToast();
|
|
794
795
|
const [query, setQuery] = useState('');
|
|
795
796
|
const [basis, setBasis] = useState<BillingBasis | 'all'>('all');
|
|
796
797
|
|
|
@@ -866,7 +867,7 @@ export default function InvoiceLineItemsTemplate() {
|
|
|
866
867
|
// holds the table on the same content line as the MetadataList. The
|
|
867
868
|
// padding moves to the VStack, which is a plain flex container and
|
|
868
869
|
// publishes nothing.
|
|
869
|
-
<LayoutContent padding={0}>
|
|
870
|
+
<LayoutContent role="main" padding={0}>
|
|
870
871
|
<VStack padding={4} gap={8}>
|
|
871
872
|
{/* Title, actions and document facts are one masthead, and it
|
|
872
873
|
scrolls. The Layout `header` slot would pin it: with
|
|
@@ -885,6 +886,13 @@ export default function InvoiceLineItemsTemplate() {
|
|
|
885
886
|
label="Download PDF"
|
|
886
887
|
variant="secondary"
|
|
887
888
|
icon={<Icon icon={ArrowDownTrayIcon} size="sm" />}
|
|
889
|
+
onClick={() =>
|
|
890
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
891
|
+
showToast({
|
|
892
|
+
body: 'Demo: the invoice PDF would download here',
|
|
893
|
+
uniqueID: 'download-pdf',
|
|
894
|
+
})
|
|
895
|
+
}
|
|
888
896
|
/>
|
|
889
897
|
</HStack>
|
|
890
898
|
<MetadataList
|
|
@@ -136,6 +136,7 @@ import {
|
|
|
136
136
|
useTableTreeState,
|
|
137
137
|
} from '@astryxdesign/core/Table';
|
|
138
138
|
import type {TableColumn, TablePlugin} from '@astryxdesign/core/Table';
|
|
139
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
139
140
|
import * as stylex from '@stylexjs/stylex';
|
|
140
141
|
/*
|
|
141
142
|
* Lucide throughout, not Heroicons. A repository page needs a branch and a
|
|
@@ -931,6 +932,13 @@ const ABOUT_LINKS = [
|
|
|
931
932
|
{label: 'Activity', icon: ChartColumn},
|
|
932
933
|
];
|
|
933
934
|
|
|
935
|
+
// Demo only: what each social count's button would do in a real app.
|
|
936
|
+
const STAT_DEMO: Record<string, string> = {
|
|
937
|
+
stars: 'Demo: the repository would be starred here',
|
|
938
|
+
watching: 'Demo: you would watch the repository here',
|
|
939
|
+
forks: 'Demo: a fork would be created here',
|
|
940
|
+
};
|
|
941
|
+
|
|
934
942
|
/** The count reads as a noun; the button beside it has to read as a verb. */
|
|
935
943
|
const STAT_ACTION: Record<string, string> = {
|
|
936
944
|
stars: 'Star',
|
|
@@ -971,10 +979,13 @@ const CONTRIBUTORS = [
|
|
|
971
979
|
|
|
972
980
|
/** The sidebar GitHub puts beside the file list. */
|
|
973
981
|
function AboutPanel() {
|
|
982
|
+
const showToast = useToast();
|
|
974
983
|
return (
|
|
975
984
|
<VStack gap={6}>
|
|
976
985
|
<VStack gap={3}>
|
|
977
|
-
<Heading level={3}>
|
|
986
|
+
<Heading level={3} accessibilityLevel={2}>
|
|
987
|
+
About
|
|
988
|
+
</Heading>
|
|
978
989
|
<Text color="secondary">{REPO_DESCRIPTION}</Text>
|
|
979
990
|
<Link href="#" isExternalLink>
|
|
980
991
|
canvas-editor.dev
|
|
@@ -986,7 +997,18 @@ function AboutPanel() {
|
|
|
986
997
|
*/}
|
|
987
998
|
<HStack gap={1} wrap="wrap">
|
|
988
999
|
{TOPICS.map(topic => (
|
|
989
|
-
<Token
|
|
1000
|
+
<Token
|
|
1001
|
+
key={topic}
|
|
1002
|
+
size="sm"
|
|
1003
|
+
label={topic}
|
|
1004
|
+
onClick={() =>
|
|
1005
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1006
|
+
showToast({
|
|
1007
|
+
body: `Demo: repositories tagged ${topic} would open here`,
|
|
1008
|
+
uniqueID: `topic-${topic}`,
|
|
1009
|
+
})
|
|
1010
|
+
}
|
|
1011
|
+
/>
|
|
990
1012
|
))}
|
|
991
1013
|
</HStack>
|
|
992
1014
|
{/*
|
|
@@ -1024,7 +1046,9 @@ function AboutPanel() {
|
|
|
1024
1046
|
<Divider />
|
|
1025
1047
|
|
|
1026
1048
|
<VStack gap={3}>
|
|
1027
|
-
<Heading level={3}>
|
|
1049
|
+
<Heading level={3} accessibilityLevel={2}>
|
|
1050
|
+
Releases
|
|
1051
|
+
</Heading>
|
|
1028
1052
|
<HStack gap={2} vAlign="center">
|
|
1029
1053
|
<Icon icon={Tag} size="sm" color="success" />
|
|
1030
1054
|
<Text weight="bold">v2.4.0</Text>
|
|
@@ -1038,7 +1062,9 @@ function AboutPanel() {
|
|
|
1038
1062
|
<Divider />
|
|
1039
1063
|
|
|
1040
1064
|
<VStack gap={3}>
|
|
1041
|
-
<Heading level={3}>
|
|
1065
|
+
<Heading level={3} accessibilityLevel={2}>
|
|
1066
|
+
Contributors
|
|
1067
|
+
</Heading>
|
|
1042
1068
|
{/*
|
|
1043
1069
|
AvatarGroup overlaps its children by design, which fights a wrapping
|
|
1044
1070
|
grid — so this is a plain wrapped row of avatars, which is the shape
|
|
@@ -1078,6 +1104,9 @@ function BranchBar({
|
|
|
1078
1104
|
isSearchOpen: boolean;
|
|
1079
1105
|
onSearchOpen: () => void;
|
|
1080
1106
|
}) {
|
|
1107
|
+
const showToast = useToast();
|
|
1108
|
+
// Demo only: replace these toasts with the calls that perform each action.
|
|
1109
|
+
const demo = (body: string, uniqueID: string) => showToast({body, uniqueID});
|
|
1081
1110
|
return (
|
|
1082
1111
|
/*
|
|
1083
1112
|
* One height for the whole row. Toolbar gets this by wrapping its slots in
|
|
@@ -1096,10 +1125,25 @@ function BranchBar({
|
|
|
1096
1125
|
}}
|
|
1097
1126
|
hasChevron
|
|
1098
1127
|
items={[
|
|
1099
|
-
{
|
|
1100
|
-
|
|
1128
|
+
{
|
|
1129
|
+
label: 'main',
|
|
1130
|
+
onClick: () =>
|
|
1131
|
+
demo('Demo: switching to main would happen here', 'main'),
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
label: 'next',
|
|
1135
|
+
onClick: () =>
|
|
1136
|
+
demo('Demo: switching to next would happen here', 'next'),
|
|
1137
|
+
},
|
|
1101
1138
|
{type: 'divider'},
|
|
1102
|
-
{
|
|
1139
|
+
{
|
|
1140
|
+
label: 'View all branches',
|
|
1141
|
+
onClick: () =>
|
|
1142
|
+
demo(
|
|
1143
|
+
'Demo: the branch list would open here',
|
|
1144
|
+
'view-all-branches',
|
|
1145
|
+
),
|
|
1146
|
+
},
|
|
1103
1147
|
]}
|
|
1104
1148
|
/>
|
|
1105
1149
|
{/*
|
|
@@ -1121,7 +1165,12 @@ function BranchBar({
|
|
|
1121
1165
|
size="sm"
|
|
1122
1166
|
icon={<Icon icon={ref.icon} size="sm" />}
|
|
1123
1167
|
label={ref.label}
|
|
1124
|
-
onClick={() =>
|
|
1168
|
+
onClick={() =>
|
|
1169
|
+
demo(
|
|
1170
|
+
`Demo: the list of ${ref.label.toLowerCase()} would open here`,
|
|
1171
|
+
ref.label,
|
|
1172
|
+
)
|
|
1173
|
+
}
|
|
1125
1174
|
/>
|
|
1126
1175
|
) : (
|
|
1127
1176
|
<Button
|
|
@@ -1129,7 +1178,12 @@ function BranchBar({
|
|
|
1129
1178
|
variant="ghost"
|
|
1130
1179
|
size="sm"
|
|
1131
1180
|
label={ref.label}
|
|
1132
|
-
onClick={() =>
|
|
1181
|
+
onClick={() =>
|
|
1182
|
+
demo(
|
|
1183
|
+
`Demo: the list of ${ref.label.toLowerCase()} would open here`,
|
|
1184
|
+
ref.label,
|
|
1185
|
+
)
|
|
1186
|
+
}
|
|
1133
1187
|
/>
|
|
1134
1188
|
),
|
|
1135
1189
|
)}
|
|
@@ -1165,14 +1219,28 @@ function BranchBar({
|
|
|
1165
1219
|
button={{label: 'Add file', size: 'sm'}}
|
|
1166
1220
|
hasChevron
|
|
1167
1221
|
items={[
|
|
1168
|
-
{
|
|
1169
|
-
|
|
1222
|
+
{
|
|
1223
|
+
label: 'Create new file',
|
|
1224
|
+
onClick: () =>
|
|
1225
|
+
demo('Demo: a new file would open here', 'create-new-file'),
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
label: 'Upload files',
|
|
1229
|
+
onClick: () =>
|
|
1230
|
+
demo(
|
|
1231
|
+
'Demo: the file upload would open here',
|
|
1232
|
+
'upload-files',
|
|
1233
|
+
),
|
|
1234
|
+
},
|
|
1170
1235
|
]}
|
|
1171
1236
|
/>
|
|
1172
1237
|
<Button
|
|
1173
1238
|
label="Code"
|
|
1174
1239
|
variant="primary"
|
|
1175
1240
|
icon={<Icon icon={Code} size="sm" />}
|
|
1241
|
+
onClick={() =>
|
|
1242
|
+
demo('Demo: clone and download options would open here', 'code')
|
|
1243
|
+
}
|
|
1176
1244
|
/>
|
|
1177
1245
|
</HStack>
|
|
1178
1246
|
</StackItem>
|
|
@@ -1269,6 +1337,7 @@ const TAB_PLACEHOLDER = {
|
|
|
1269
1337
|
// ============= PAGE =============
|
|
1270
1338
|
|
|
1271
1339
|
export default function FileTreeTemplate() {
|
|
1340
|
+
const showToast = useToast();
|
|
1272
1341
|
const [query, setQuery] = useState('');
|
|
1273
1342
|
const [manualExpandedIds, setManualExpandedIds] = useState<
|
|
1274
1343
|
ReadonlySet<string>
|
|
@@ -1613,7 +1682,13 @@ export default function FileTreeTemplate() {
|
|
|
1613
1682
|
size="sm"
|
|
1614
1683
|
icon={<Icon icon={stat.icon} size="sm" />}
|
|
1615
1684
|
label={`${stat.label}: ${stat.value}`}
|
|
1616
|
-
onClick={() =>
|
|
1685
|
+
onClick={() =>
|
|
1686
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1687
|
+
showToast({
|
|
1688
|
+
body: STAT_DEMO[stat.label],
|
|
1689
|
+
uniqueID: `stat-${stat.label}`,
|
|
1690
|
+
})
|
|
1691
|
+
}
|
|
1617
1692
|
/>
|
|
1618
1693
|
) : (
|
|
1619
1694
|
<Button
|
|
@@ -1622,6 +1697,13 @@ export default function FileTreeTemplate() {
|
|
|
1622
1697
|
label={STAT_ACTION[stat.label]}
|
|
1623
1698
|
icon={<Icon icon={stat.icon} size="sm" />}
|
|
1624
1699
|
endContent={<Badge label={stat.value} />}
|
|
1700
|
+
onClick={() =>
|
|
1701
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1702
|
+
showToast({
|
|
1703
|
+
body: STAT_DEMO[stat.label],
|
|
1704
|
+
uniqueID: `stat-${stat.label}`,
|
|
1705
|
+
})
|
|
1706
|
+
}
|
|
1625
1707
|
/>
|
|
1626
1708
|
),
|
|
1627
1709
|
)}
|
|
@@ -1630,7 +1712,7 @@ export default function FileTreeTemplate() {
|
|
|
1630
1712
|
/>
|
|
1631
1713
|
}
|
|
1632
1714
|
content={
|
|
1633
|
-
<LayoutContent padding={4}>
|
|
1715
|
+
<LayoutContent role="main" padding={4}>
|
|
1634
1716
|
{data.length === 0 ? (
|
|
1635
1717
|
<EmptyState
|
|
1636
1718
|
title="No matching files"
|