@astryxdesign/cli 0.7.17-canary.g49a475f → 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 +14 -9
- package/api/build/_adapter.d.mts +33 -4
- package/api/build/_adapter.mjs +43 -8
- package/api/build/blocks/blocks.d.mts +1 -0
- package/api/build/blocks/blocks.mjs +2 -1
- package/api/build/blocks/blocks.weights.json +1 -1
- package/api/build/build.doc.mjs +2 -2
- package/api/build/build.type.d.mts +13 -1
- package/api/build/build.type.mjs +6 -3
- package/api/build/kit/kind.d.mts +6 -0
- package/api/build/kit/kind.mjs +1 -1
- package/api/build/kit/kit.mjs +3 -3
- package/api/build/kit/rank.d.mts +9 -3
- package/api/build/kit/rank.mjs +21 -8
- package/api/build/kit/signals.d.mts +7 -1
- package/api/build/kit/signals.mjs +124 -41
- package/api/build/kit/start.d.mts +20 -5
- package/api/build/kit/start.mjs +103 -23
- package/api/build/kit/weights.d.mts +20 -4
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +68 -18
- package/api/build/kit/words.d.mts +44 -2
- package/api/build/kit/words.mjs +159 -4
- package/api/build/tree.mjs +1 -1
- package/api/component/__fixtures__/resolutions/modules.txt +4 -4
- package/api/component/_adapter.d.mts +51 -20
- package/api/component/_adapter.mjs +198 -29
- package/api/component/component.mjs +18 -5
- package/api/component/component.type.d.mts +4 -0
- package/api/component/component.type.mjs +1 -0
- package/api/component/detail/blocks/blocks.mjs +1 -0
- 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.d.mts +10 -0
- package/api/discover/_adapter.mjs +110 -16
- package/api/discover/detail/item/item.mjs +5 -0
- package/api/discover/discover.mjs +12 -3
- package/api/discover/discover.type.d.mts +16 -3
- package/api/discover/discover.type.mjs +13 -3
- package/api/docs/_adapter.d.mts +74 -30
- package/api/docs/_adapter.mjs +488 -234
- package/api/docs/_entry-names-lazily.d.mts +22 -0
- package/api/docs/_entry-names-lazily.mjs +25 -0
- package/api/docs/_entry-names.d.mts +23 -0
- package/api/docs/_entry-names.mjs +105 -0
- package/api/doctor/_adapter.d.mts +63 -2
- package/api/doctor/_adapter.mjs +141 -5
- package/api/doctor/doctor.d.mts +11 -0
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +81 -30
- package/api/doctor/theme-checks.d.mts +35 -3
- package/api/doctor/theme-checks.mjs +449 -99
- package/api/error.d.mts +4 -3
- package/api/error.mjs +3 -2
- package/api/hook/_adapter.d.mts +14 -7
- package/api/hook/_adapter.mjs +46 -9
- package/api/hook/detail/detail.mjs +5 -2
- package/api/hook/detail/params/params.mjs +10 -3
- 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/integration/add-helpers.mjs +10 -0
- package/api/integration/authoring-checks.mjs +5 -2
- package/api/integration/check/check.mjs +6 -1
- package/api/integration/pack-check.mjs +50 -3
- package/api/integration/validate-integration.d.mts +18 -6
- package/api/integration/validate-integration.mjs +110 -14
- package/api/integration/validate-integration.type.d.mts +13 -0
- package/api/integration/validate-integration.type.mjs +2 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/render.type.d.mts +1 -1
- package/api/render/render.type.mjs +1 -1
- package/api/search/ORDERING.md +1 -1
- package/api/search/_adapter.d.mts +8 -5
- package/api/search/_adapter.mjs +14 -10
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +82 -14
- 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/_gather-templates.mjs +1 -0
- package/api/search/_lexical.d.mts +16 -0
- package/api/search/_lexical.mjs +98 -10
- package/api/search/_priority.d.mts +10 -2
- package/api/search/_priority.mjs +37 -7
- package/api/search/_result.d.mts +1 -0
- package/api/search/_result.mjs +1 -0
- 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.doc.mjs +1 -1
- package/api/search/search.mjs +37 -4
- package/api/search/search.type.d.mts +4 -0
- package/api/search/search.type.mjs +1 -0
- package/api/swizzle/_adapter.d.mts +7 -5
- package/api/swizzle/_adapter.mjs +22 -6
- package/api/swizzle/copy/copy.mjs +5 -4
- package/api/template/_adapter.d.mts +16 -0
- package/api/template/_adapter.mjs +39 -2
- package/api/template/cdn/cdn.mjs +37 -8
- package/api/template/copy/copy.d.mts +6 -3
- package/api/template/copy/copy.mjs +83 -8
- package/api/template/show/show.mjs +1 -0
- package/api/template/skeleton/skeleton.mjs +1 -0
- package/api/template/template.doc.mjs +5 -5
- package/api/template/template.mjs +63 -11
- package/api/template/template.type.d.mts +4 -0
- package/api/template/template.type.mjs +5 -1
- package/api/theme/_adapter.d.mts +20 -1
- package/api/theme/_adapter.mjs +149 -12
- package/api/theme/_app-provider.d.mts +31 -0
- package/api/theme/_app-provider.mjs +135 -0
- package/api/theme/add/add.mjs +3 -1
- package/api/theme/build/build.d.mts +127 -11
- package/api/theme/build/build.mjs +2047 -352
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +10 -0
- package/api/theme/build/family.mjs +61 -21
- package/api/theme/build/font-warning.d.mts +99 -5
- package/api/theme/build/font-warning.mjs +379 -61
- package/api/theme/build/icon-imports.mjs +83 -15
- package/api/theme/build/input-fields.d.mts +110 -0
- package/api/theme/build/input-fields.mjs +667 -0
- package/api/theme/build/null-values.d.mts +42 -0
- package/api/theme/build/null-values.mjs +283 -0
- package/api/theme/build/self-contained.d.mts +90 -0
- package/api/theme/build/self-contained.mjs +380 -0
- package/api/theme/build/source-syntax.d.mts +11 -0
- package/api/theme/build/source-syntax.mjs +28 -0
- package/api/theme/build/style-keys.d.mts +72 -0
- package/api/theme/build/style-keys.mjs +589 -0
- package/api/theme/build/typography-values.d.mts +61 -0
- package/api/theme/build/typography-values.mjs +408 -0
- package/api/theme/build/written-values.d.mts +78 -0
- package/api/theme/build/written-values.mjs +482 -0
- package/api/theme/generateTonalPalette.doc.mjs +1 -1
- package/api/theme/list/list.mjs +17 -1
- package/api/theme/palette/generate/generator.d.mts +14 -2
- package/api/theme/palette/generate/generator.mjs +94 -8
- package/api/theme/remove/remove.d.mts +2 -1
- package/api/theme/remove/remove.mjs +7 -3
- package/api/theme/theme.type.d.mts +89 -5
- package/api/theme/theme.type.mjs +46 -7
- package/api/theme/themeAdd.doc.mjs +1 -1
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeListAvailable.doc.mjs +1 -1
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeRemove.doc.mjs +8 -5
- package/api/theme/themeTemplate.doc.mjs +18 -3
- package/api/theme-edit/_adapter.d.mts +57 -4
- package/api/theme-edit/_adapter.mjs +380 -73
- package/api/theme-edit/_catalog.d.mts +82 -4
- package/api/theme-edit/_catalog.mjs +397 -24
- package/api/theme-edit/_check.d.mts +153 -2
- package/api/theme-edit/_check.mjs +3028 -563
- package/api/theme-edit/_color.d.mts +27 -2
- package/api/theme-edit/_color.mjs +66 -8
- package/api/theme-edit/_compiler.d.mts +7 -2
- package/api/theme-edit/_compiler.mjs +335 -21
- package/api/theme-edit/_context.d.mts +192 -7
- package/api/theme-edit/_context.mjs +750 -70
- package/api/theme-edit/_css.d.mts +32 -0
- package/api/theme-edit/_css.mjs +121 -34
- package/api/theme-edit/_edit.d.mts +68 -5
- package/api/theme-edit/_edit.mjs +5119 -667
- package/api/theme-edit/_how-commands.d.mts +28 -1
- package/api/theme-edit/_how-commands.mjs +621 -17
- package/api/theme-edit/_how-question.d.mts +101 -9
- package/api/theme-edit/_how-question.mjs +13901 -1282
- package/api/theme-edit/_how.d.mts +13 -2
- package/api/theme-edit/_how.mjs +389 -32
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_missed.d.mts +54 -0
- package/api/theme-edit/_missed.mjs +917 -0
- package/api/theme-edit/_normal.d.mts +110 -21
- package/api/theme-edit/_normal.mjs +700 -105
- package/api/theme-edit/_palette.d.mts +77 -0
- package/api/theme-edit/_palette.mjs +364 -73
- package/api/theme-edit/_part-words.d.mts +39 -0
- package/api/theme-edit/_part-words.mjs +191 -0
- package/api/theme-edit/_parts.d.mts +74 -4
- package/api/theme-edit/_parts.mjs +677 -73
- package/api/theme-edit/_preview-app.d.mts +8 -13
- package/api/theme-edit/_preview-app.mjs +1189 -559
- package/api/theme-edit/_preview.d.mts +151 -10
- package/api/theme-edit/_preview.mjs +785 -98
- package/api/theme-edit/_project.d.mts +38 -3
- package/api/theme-edit/_project.mjs +135 -8
- package/api/theme-edit/_settings.d.mts +678 -83
- package/api/theme-edit/_settings.mjs +6037 -1051
- package/api/theme-edit/_tables.d.mts +43 -3
- package/api/theme-edit/_tables.mjs +244 -59
- package/api/theme-edit/_vet.d.mts +14 -1
- package/api/theme-edit/_vet.mjs +86 -12
- package/api/theme-edit/theme-edit.type.d.mts +53 -3
- package/api/theme-edit/theme-edit.type.mjs +23 -5
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
- package/api/upgrade/_adapter.mjs +13 -2
- package/api/upgrade/upgrade.mjs +16 -1
- package/assets/codemods/integration-runner.mjs +1 -1
- package/assets/codemods/jscodeshift.d.ts +1 -1
- package/assets/codemods/parse.mjs +2 -2
- package/assets/codemods/run-codemod.mjs +71 -18
- package/assets/codemods/runner.mjs +1 -4
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/author-a-theme.doc.mjs +1 -0
- package/assets/docs/theme.doc.dense.mjs +86 -7
- package/assets/docs/theme.doc.mjs +76 -2
- package/assets/docs/theme.doc.zh.mjs +61 -1
- package/assets/docs/tree/authoring.doc.mjs +1 -0
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/cli.doc.mjs +1 -0
- package/assets/docs/tree/computer-agent-guide.doc.mjs +1 -1
- package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/fonts-and-assets.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/install-once.doc.mjs +1 -1
- package/assets/docs/tree/problems.doc.mjs +1 -1
- package/assets/docs/tree/render-pages.doc.mjs +2 -2
- package/assets/docs/tree/share-a-page.doc.mjs +162 -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 +3 -3
- package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +1 -1
- package/assets/docs-routes.generated.json +1 -0
- 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/ChatComposerInput/useChatPasteAsTokenHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useChatPasteAsTokenHookUsage.tsx +32 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.tsx +43 -0
- 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/ai-chat-landing/page.tsx +31 -4
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +3 -0
- 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-alert-rail/page.tsx +1 -1
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +32 -21
- package/assets/templates/pages/dashboard-comparison/page.tsx +11 -2
- package/assets/templates/pages/dashboard-composition/page.tsx +22 -9
- package/assets/templates/pages/dashboard-progress/page.tsx +28 -16
- package/assets/templates/pages/dashboard-scorecard/page.tsx +9 -0
- package/assets/templates/pages/detail-page/page.tsx +157 -76
- 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 +122 -65
- package/assets/templates/pages/editor/page.tsx +41 -24
- package/assets/templates/pages/file-explorer/page.tsx +44 -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 +55 -6
- package/assets/templates/pages/gallery-hero/page.tsx +2 -1
- package/assets/templates/pages/ide/page.tsx +23 -0
- package/assets/templates/pages/ide/template.doc.mjs +1 -1
- package/assets/templates/pages/incident-console/page.tsx +130 -30
- package/assets/templates/pages/incident-console/template.doc.mjs +2 -2
- package/assets/templates/pages/kanban-board/page.tsx +50 -3
- package/assets/templates/pages/login-card/page.tsx +16 -0
- package/assets/templates/pages/login-split/page.tsx +19 -6
- package/assets/templates/pages/messaging-shell/page.tsx +409 -419
- package/assets/templates/pages/messaging-shell/template.doc.mjs +6 -6
- package/assets/templates/pages/payment-form/page.tsx +107 -43
- package/assets/templates/pages/product-detail/page.tsx +26 -2
- 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 +196 -17
- 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 +27 -4
- 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 +575 -61
- package/assets/templates/pages/table/template.doc.mjs +11 -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 +17 -1
- package/assets/templates/pages/table-grouped/page.tsx +171 -133
- package/assets/templates/pages/table-inbox/page.tsx +60 -1
- package/assets/templates/pages/table-page/page.tsx +23 -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 +134 -80
- 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/assets/theme.template.ts +3 -2
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/doctypes/_schema.d.mts +28 -14
- 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/template.doc.mjs +1 -1
- package/authoring/doctypes/template/type.ts +1 -1
- package/authoring/index.d.ts +6 -1
- package/authoring/integration/integration.doc.mjs +15 -0
- package/authoring/integration/schema.d.mts +30 -1
- package/authoring/integration/schema.mjs +129 -4
- package/authoring/integration/type.ts +48 -0
- package/clients/cli/bin/astryx.mjs +9 -3
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/build.mjs +17 -5
- package/clients/cli/commands/component.doc.mjs +1 -0
- package/clients/cli/commands/component.mjs +107 -42
- package/clients/cli/commands/discover.mjs +70 -3
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/docs.mjs +41 -5
- package/clients/cli/commands/doctor.mjs +52 -2
- package/clients/cli/commands/experimental/index.mjs +4 -1
- package/clients/cli/commands/experimental/theme.mjs +1504 -186
- package/clients/cli/commands/experimental-render.doc.mjs +18 -5
- package/clients/cli/commands/experimental-theme-add.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +3 -2
- 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 +4 -3
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +5 -4
- 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 +3 -2
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +6 -4
- 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/init.mjs +14 -6
- package/clients/cli/commands/integration-add.doc.mjs +1 -0
- package/clients/cli/commands/manifest.mjs +10 -3
- package/clients/cli/commands/search.mjs +13 -1
- package/clients/cli/commands/swizzle.doc.mjs +9 -2
- package/clients/cli/commands/swizzle.mjs +13 -6
- package/clients/cli/commands/template.doc.mjs +4 -1
- package/clients/cli/commands/template.mjs +34 -7
- package/clients/cli/commands/theme-add.doc.mjs +3 -2
- package/clients/cli/commands/theme-build.doc.mjs +11 -2
- package/clients/cli/commands/theme-eject.doc.mjs +1 -1
- package/clients/cli/commands/theme-list.doc.mjs +1 -1
- package/clients/cli/commands/theme-palette-generate.doc.mjs +3 -2
- package/clients/cli/commands/theme-remove.doc.mjs +15 -6
- 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 +824 -576
- package/clients/cli/commands/upgrade.mjs +7 -3
- package/clients/cli/index.mjs +177 -78
- package/clients/cli/lib/base-gate.mjs +522 -0
- package/clients/cli/lib/cli-error.mjs +21 -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 +679 -40
- package/clients/cli/lib/manifest.d.ts +14 -0
- package/clients/cli/lib/manifest.mjs +78 -22
- package/clients/cli/lib/not-ready.mjs +22 -0
- package/clients/cli/lib/root-args.mjs +79 -0
- package/clients/cli/lib/stray-option.mjs +491 -0
- package/clients/cli/lib/unknown-command.mjs +374 -0
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +39 -3
- package/foundation/agent-docs/agent-docs.mjs +1 -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 +22 -0
- package/foundation/config/project.mjs +94 -30
- package/foundation/config/theme-build-header.d.mts +14 -0
- package/foundation/config/theme-build-header.mjs +14 -0
- package/foundation/config/theme-private-vars.d.mts +26 -2
- package/foundation/config/theme-private-vars.mjs +65 -5
- package/foundation/config/theme-state.d.mts +19 -2
- package/foundation/config/theme-state.mjs +93 -1
- package/foundation/debug/event.d.mts +8 -2
- package/foundation/debug/event.mjs +6 -7
- package/foundation/debug/recorder.d.mts +8 -1
- package/foundation/debug/recorder.mjs +8 -2
- package/foundation/discovery/cli-self-doc-names.d.mts +13 -0
- package/foundation/discovery/cli-self-doc-names.mjs +51 -0
- package/foundation/discovery/cli-self-docs.d.mts +0 -2
- package/foundation/discovery/cli-self-docs.mjs +11 -16
- 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 +12 -6
- package/foundation/discovery/core-component-docs.d.mts +29 -0
- package/foundation/discovery/core-component-docs.mjs +83 -0
- package/foundation/discovery/core-theme-facts.d.mts +70 -0
- package/foundation/discovery/core-theme-facts.mjs +384 -0
- package/foundation/discovery/docs-discovery.d.mts +84 -9
- package/foundation/discovery/docs-discovery.mjs +151 -60
- package/foundation/discovery/entry-name-files.d.mts +72 -9
- package/foundation/discovery/entry-name-files.mjs +193 -103
- package/foundation/discovery/hook-discovery.d.mts +16 -6
- package/foundation/discovery/hook-discovery.mjs +82 -43
- package/foundation/discovery/integration-component-views.d.mts +15 -0
- package/foundation/discovery/integration-component-views.mjs +91 -0
- package/foundation/discovery/module-exports.d.mts +26 -1
- package/foundation/discovery/module-exports.mjs +114 -40
- package/foundation/discovery/name-roots.d.mts +38 -0
- package/foundation/discovery/name-roots.mjs +108 -0
- package/foundation/discovery/next-routes.d.mts +48 -0
- package/foundation/discovery/next-routes.mjs +197 -0
- package/foundation/discovery/stored-self-audit.mjs +2 -0
- package/foundation/discovery/template-adapter.d.mts +31 -63
- package/foundation/discovery/template-adapter.mjs +38 -207
- package/foundation/discovery/template-destination.d.mts +28 -0
- package/foundation/discovery/template-destination.mjs +106 -0
- package/foundation/discovery/template-ids.d.mts +69 -0
- package/foundation/discovery/template-ids.mjs +203 -0
- package/foundation/discovery/template-needs.mjs +3 -1
- package/foundation/discovery/theme-discovery.d.mts +12 -0
- package/foundation/discovery/theme-discovery.mjs +34 -2
- package/foundation/discovery/theme-imports.d.mts +10 -0
- package/foundation/discovery/theme-imports.mjs +37 -4
- package/foundation/discovery/theming-targets.d.mts +13 -5
- package/foundation/discovery/theming-targets.mjs +38 -45
- package/foundation/doc-compiler/generated-levels.d.mts +43 -0
- package/foundation/doc-compiler/generated-levels.mjs +72 -0
- package/foundation/doc-compiler/literal-doc.d.mts +12 -0
- package/foundation/doc-compiler/literal-doc.mjs +322 -0
- package/foundation/doc-compiler/stored-docs.d.mts +7 -0
- package/foundation/doc-compiler/stored-docs.mjs +14 -1
- package/foundation/doc-compiler/tree.d.mts +18 -87
- package/foundation/doc-compiler/tree.mjs +57 -64
- package/foundation/env/intl-defaults.d.mts +39 -0
- package/foundation/env/intl-defaults.mjs +150 -0
- package/foundation/env/intl-now.d.mts +21 -0
- package/foundation/env/intl-now.mjs +25 -0
- package/foundation/env/package-manager.d.mts +11 -2
- package/foundation/env/package-manager.mjs +28 -4
- package/foundation/fonts/font-stylesheet.d.mts +38 -0
- package/foundation/fonts/font-stylesheet.mjs +128 -12
- package/foundation/fs/cache-eviction.d.mts +3 -1
- package/foundation/fs/cache-eviction.mjs +7 -1
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/file-protection.mjs +12 -2
- package/foundation/fs/gather-cache.d.mts +81 -2
- package/foundation/fs/gather-cache.mjs +615 -97
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/jiti-cache.mjs +14 -6
- package/foundation/fs/kept-tree.d.mts +39 -15
- package/foundation/fs/kept-tree.mjs +155 -46
- package/foundation/fs/loaded-files.d.mts +30 -0
- package/foundation/fs/loaded-files.mjs +148 -0
- package/foundation/fs/module-loader.d.mts +53 -8
- package/foundation/fs/module-loader.mjs +559 -39
- package/foundation/fs/own-modules.d.mts +29 -0
- package/foundation/fs/own-modules.mjs +57 -0
- package/foundation/fs/path-safety.d.mts +34 -2
- package/foundation/fs/path-safety.mjs +170 -18
- package/foundation/fs/paths.d.mts +41 -2
- package/foundation/fs/paths.mjs +95 -5
- package/foundation/fs/read-record.d.mts +84 -7
- package/foundation/fs/read-record.mjs +333 -56
- package/foundation/fs/regular-file.d.mts +29 -0
- package/foundation/fs/regular-file.mjs +77 -0
- package/foundation/fs/stop-cleanup.d.mts +12 -0
- package/foundation/fs/stop-cleanup.mjs +66 -0
- package/foundation/fs/stylesheet-file.d.mts +37 -0
- package/foundation/fs/stylesheet-file.mjs +48 -0
- package/foundation/fs/theme-module-rejections.d.mts +32 -0
- package/foundation/fs/theme-module-rejections.mjs +82 -0
- package/foundation/integrations/integrations.d.mts +27 -1
- package/foundation/integrations/integrations.mjs +24 -2
- package/foundation/integrations/pack-state.d.mts +85 -0
- package/foundation/integrations/pack-state.mjs +509 -0
- package/foundation/integrations/shipped-imports.d.mts +125 -0
- package/foundation/integrations/shipped-imports.mjs +530 -0
- package/foundation/integrations/validate-contributions.d.mts +0 -17
- package/foundation/integrations/validate-contributions.mjs +81 -290
- package/foundation/release/choose.d.mts +7 -0
- package/foundation/release/choose.mjs +16 -2
- package/foundation/release/handoff.mjs +68 -13
- package/foundation/release/notices.d.mts +46 -9
- package/foundation/release/notices.mjs +78 -20
- package/foundation/release/pnp-runtime.d.mts +66 -0
- package/foundation/release/pnp-runtime.mjs +139 -0
- package/foundation/release/project.d.mts +11 -0
- package/foundation/release/project.mjs +23 -7
- package/foundation/release/run-context.d.mts +7 -2
- package/foundation/release/run-context.mjs +6 -2
- package/foundation/render/assets.mjs +52 -7
- package/foundation/render/charts.d.mts +78 -27
- package/foundation/render/charts.mjs +319 -90
- package/foundation/render/css-cut.d.mts +14 -1
- package/foundation/render/css-cut.mjs +117 -4
- package/foundation/render/cut-short.d.mts +35 -0
- package/foundation/render/cut-short.mjs +124 -0
- package/foundation/render/embedded-imports.d.mts +31 -0
- package/foundation/render/embedded-imports.mjs +169 -39
- package/foundation/render/font-probe.d.mts +27 -0
- package/foundation/render/font-probe.mjs +77 -0
- package/foundation/render/layers.d.mts +49 -0
- package/foundation/render/layers.mjs +347 -0
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-worker.mjs +374 -15
- package/foundation/render/picture-chrome.mjs +46 -4
- package/foundation/render/picture-playwright.mjs +41 -5
- package/foundation/render/picture-window.d.mts +32 -0
- package/foundation/render/picture-window.mjs +146 -0
- package/foundation/render/render-page.d.mts +46 -4
- package/foundation/render/render-page.mjs +453 -98
- 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 +12 -12
- package/foundation/runtime/css-tree.d.mts +24 -0
- package/foundation/runtime/css-tree.mjs +103 -0
- package/foundation/runtime/lazy-dependencies.d.mts +3 -1
- package/foundation/runtime/lazy-dependencies.mjs +20 -5
- package/foundation/suggest/name-index.d.mts +149 -0
- package/foundation/suggest/name-index.mjs +317 -0
- package/foundation/suggest/other-command.d.mts +146 -0
- package/foundation/suggest/other-command.mjs +783 -0
- package/foundation/text/css-escape.d.mts +18 -0
- package/foundation/text/css-escape.mjs +35 -0
- package/foundation/text/entry-names.d.mts +14 -0
- package/foundation/text/entry-names.mjs +14 -0
- package/foundation/text/string-utils.d.mts +49 -5
- package/foundation/text/string-utils.mjs +124 -26
- package/foundation/text/suggest-order.d.mts +75 -4
- package/foundation/text/suggest-order.mjs +285 -9
- package/foundation/text/written-string.d.mts +17 -0
- package/foundation/text/written-string.mjs +22 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +8 -7
|
@@ -10,6 +10,7 @@ import {ClickableCard} from '@astryxdesign/core/ClickableCard';
|
|
|
10
10
|
import {HStack, VStack, StackItem} from '@astryxdesign/core/Stack';
|
|
11
11
|
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
12
12
|
import {Grid} from '@astryxdesign/core/Grid';
|
|
13
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
13
14
|
|
|
14
15
|
const previewCard: CSSProperties = {
|
|
15
16
|
borderRadius: 'var(--radius-element)',
|
|
@@ -207,6 +208,7 @@ const COMPONENT_CATEGORIES = [
|
|
|
207
208
|
// ---------------------------------------------------------------------------
|
|
208
209
|
|
|
209
210
|
export default function DocumentationOverviewPage() {
|
|
211
|
+
const showToast = useToast();
|
|
210
212
|
return (
|
|
211
213
|
<Layout
|
|
212
214
|
height="fill"
|
|
@@ -224,7 +226,12 @@ export default function DocumentationOverviewPage() {
|
|
|
224
226
|
beautiful, accessible products.
|
|
225
227
|
</Text>
|
|
226
228
|
<HStack>
|
|
227
|
-
<Button
|
|
229
|
+
<Button
|
|
230
|
+
label="Get started"
|
|
231
|
+
variant="primary"
|
|
232
|
+
size="lg"
|
|
233
|
+
href="#"
|
|
234
|
+
/>
|
|
228
235
|
</HStack>
|
|
229
236
|
</VStack>
|
|
230
237
|
</StackItem>
|
|
@@ -240,7 +247,13 @@ export default function DocumentationOverviewPage() {
|
|
|
240
247
|
<ClickableCard
|
|
241
248
|
key={item.key}
|
|
242
249
|
label={`Open ${item.name}`}
|
|
243
|
-
onClick={() =>
|
|
250
|
+
onClick={() =>
|
|
251
|
+
// Demo only: replace this toast with the link to the section.
|
|
252
|
+
showToast({
|
|
253
|
+
body: `Demo: the ${item.name} docs would open here`,
|
|
254
|
+
uniqueID: `open-${item.key}`,
|
|
255
|
+
})
|
|
256
|
+
}
|
|
244
257
|
variant="transparent"
|
|
245
258
|
padding={2}>
|
|
246
259
|
<VStack gap={3}>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
'use client';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {useState, useMemo, type CSSProperties} from 'react';
|
|
6
6
|
import {Heading, Text} from '@astryxdesign/core/Text';
|
|
7
7
|
import {Button} from '@astryxdesign/core/Button';
|
|
8
8
|
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
@@ -13,7 +13,6 @@ import {Token} from '@astryxdesign/core/Token';
|
|
|
13
13
|
import {Banner} from '@astryxdesign/core/Banner';
|
|
14
14
|
import {CodeBlock} from '@astryxdesign/core/CodeBlock';
|
|
15
15
|
import {TabList, Tab} from '@astryxdesign/core/TabList';
|
|
16
|
-
import {Selector} from '@astryxdesign/core/Selector';
|
|
17
16
|
import {HStack, VStack, StackItem} from '@astryxdesign/core/Stack';
|
|
18
17
|
import {Layout, LayoutContent, LayoutPanel} from '@astryxdesign/core/Layout';
|
|
19
18
|
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
@@ -45,11 +44,6 @@ const COMPONENT_OUTLINE_ITEMS: OutlineItem[] = [
|
|
|
45
44
|
{id: 'examples', label: 'Examples', level: 2},
|
|
46
45
|
];
|
|
47
46
|
|
|
48
|
-
const COMPONENT_OUTLINE_OPTIONS = COMPONENT_OUTLINE_ITEMS.map(item => ({
|
|
49
|
-
value: item.id,
|
|
50
|
-
label: item.label,
|
|
51
|
-
}));
|
|
52
|
-
|
|
53
47
|
// ---------------------------------------------------------------------------
|
|
54
48
|
// DialogPreview — stateful dialog preview for component previews
|
|
55
49
|
// ---------------------------------------------------------------------------
|
|
@@ -506,19 +500,10 @@ function getComponentDocs(key: string) {
|
|
|
506
500
|
|
|
507
501
|
function ComponentDetailView({activeNav}: {activeNav: string}) {
|
|
508
502
|
const [exampleTabs, setExampleTabs] = useState<Record<string, string>>({});
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
const isMobile = useMediaQuery('(max-width: 768px)');
|
|
513
|
-
|
|
514
|
-
const scrollToId = useCallback((id: string) => {
|
|
515
|
-
setActiveId(id);
|
|
516
|
-
const target = document.getElementById(id);
|
|
517
|
-
if (target != null) {
|
|
518
|
-
target.scrollIntoView({behavior: 'smooth', block: 'start'});
|
|
519
|
-
window.history.pushState(null, '', `#${id}`);
|
|
520
|
-
}
|
|
521
|
-
}, []);
|
|
503
|
+
// Mobile first: the server render and a shared static copy, which run no
|
|
504
|
+
// script, get one column with the section links on top. That reads well at
|
|
505
|
+
// every width; once script runs, wide screens move the links to the rail.
|
|
506
|
+
const isMobile = useMediaQuery('(max-width: 768px)', true);
|
|
522
507
|
|
|
523
508
|
const EXAMPLE_PREVIEWS: Record<string, React.ReactNode[]> = {
|
|
524
509
|
button: [
|
|
@@ -583,10 +568,7 @@ function ComponentDetailView({activeNav}: {activeNav: string}) {
|
|
|
583
568
|
label="On this page"
|
|
584
569
|
role="complementary"
|
|
585
570
|
style={outlinePanel}>
|
|
586
|
-
<Outline
|
|
587
|
-
items={COMPONENT_OUTLINE_ITEMS}
|
|
588
|
-
onActiveIdChange={setActiveId}
|
|
589
|
-
/>
|
|
571
|
+
<Outline items={COMPONENT_OUTLINE_ITEMS} />
|
|
590
572
|
</LayoutPanel>
|
|
591
573
|
)
|
|
592
574
|
}
|
|
@@ -598,16 +580,7 @@ function ComponentDetailView({activeNav}: {activeNav: string}) {
|
|
|
598
580
|
<Text type="supporting" color="secondary">
|
|
599
581
|
March 30, 2026 · Updated 5:40 p.m. PST
|
|
600
582
|
</Text>
|
|
601
|
-
{isMobile &&
|
|
602
|
-
<Selector
|
|
603
|
-
label="On this page"
|
|
604
|
-
isLabelHidden
|
|
605
|
-
options={COMPONENT_OUTLINE_OPTIONS}
|
|
606
|
-
value={activeId}
|
|
607
|
-
onChange={scrollToId}
|
|
608
|
-
width="100%"
|
|
609
|
-
/>
|
|
610
|
-
)}
|
|
583
|
+
{isMobile && <Outline items={COMPONENT_OUTLINE_ITEMS} />}
|
|
611
584
|
</VStack>
|
|
612
585
|
|
|
613
586
|
<Card variant="muted" padding={0}>
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
'use client';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {useSyncExternalStore, type CSSProperties} from 'react';
|
|
6
6
|
import {Heading, Text} from '@astryxdesign/core/Text';
|
|
7
7
|
import {Button} from '@astryxdesign/core/Button';
|
|
8
8
|
import {Card} from '@astryxdesign/core/Card';
|
|
9
9
|
import {DropdownMenu} from '@astryxdesign/core/DropdownMenu';
|
|
10
10
|
import {List, ListItem} from '@astryxdesign/core/List';
|
|
11
11
|
import {CodeBlock} from '@astryxdesign/core/CodeBlock';
|
|
12
|
-
import {Selector} from '@astryxdesign/core/Selector';
|
|
13
12
|
import {HStack, VStack, StackItem} from '@astryxdesign/core/Stack';
|
|
14
13
|
import {Layout, LayoutContent, LayoutPanel} from '@astryxdesign/core/Layout';
|
|
15
14
|
import {Divider} from '@astryxdesign/core/Divider';
|
|
16
15
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
17
16
|
import {Outline, type OutlineItem} from '@astryxdesign/core/Outline';
|
|
18
|
-
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
17
|
+
import {useClipboard, useMediaQuery} from '@astryxdesign/core/hooks';
|
|
18
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
19
19
|
import {
|
|
20
20
|
SparklesIcon,
|
|
21
21
|
ClipboardDocumentIcon,
|
|
@@ -33,11 +33,6 @@ const OUTLINE_ITEMS: OutlineItem[] = [
|
|
|
33
33
|
{id: 'next-steps', label: 'Next steps', level: 2},
|
|
34
34
|
];
|
|
35
35
|
|
|
36
|
-
const OUTLINE_OPTIONS = OUTLINE_ITEMS.map(item => ({
|
|
37
|
-
value: item.id,
|
|
38
|
-
label: item.label,
|
|
39
|
-
}));
|
|
40
|
-
|
|
41
36
|
const outlinePanel: CSSProperties = {
|
|
42
37
|
position: 'sticky',
|
|
43
38
|
top: 24,
|
|
@@ -45,20 +40,23 @@ const outlinePanel: CSSProperties = {
|
|
|
45
40
|
paddingBlockStart: 120,
|
|
46
41
|
};
|
|
47
42
|
|
|
43
|
+
/** Whether the page runs script never changes, so nothing is subscribed. */
|
|
44
|
+
const subscribeToNothing = () => () => {};
|
|
45
|
+
|
|
48
46
|
export default function TechnicalDocumentationPage() {
|
|
49
|
-
const
|
|
50
|
-
|
|
47
|
+
const {copy} = useClipboard();
|
|
48
|
+
const showToast = useToast();
|
|
49
|
+
// Mobile first: the server render and a shared static copy, which run no
|
|
50
|
+
// script, get one column with the section links on top. That reads well at
|
|
51
|
+
// every width; once script runs, wide screens move the links to the rail.
|
|
52
|
+
const isMobile = useMediaQuery('(max-width: 768px)', true);
|
|
53
|
+
// Copy buttons need script, so they appear once the page runs rather than
|
|
54
|
+
// sitting in a static copy as buttons that do nothing.
|
|
55
|
+
const isInteractive = useSyncExternalStore(
|
|
56
|
+
subscribeToNothing,
|
|
57
|
+
() => true,
|
|
58
|
+
() => false,
|
|
51
59
|
);
|
|
52
|
-
const isMobile = useMediaQuery('(max-width: 768px)');
|
|
53
|
-
|
|
54
|
-
const scrollToId = useCallback((id: string) => {
|
|
55
|
-
setActiveId(id);
|
|
56
|
-
const target = document.getElementById(id);
|
|
57
|
-
if (target != null) {
|
|
58
|
-
target.scrollIntoView({behavior: 'smooth', block: 'start'});
|
|
59
|
-
window.history.pushState(null, '', `#${id}`);
|
|
60
|
-
}
|
|
61
|
-
}, []);
|
|
62
60
|
|
|
63
61
|
return (
|
|
64
62
|
<Layout
|
|
@@ -71,7 +69,7 @@ export default function TechnicalDocumentationPage() {
|
|
|
71
69
|
label="On this page"
|
|
72
70
|
role="complementary"
|
|
73
71
|
style={outlinePanel}>
|
|
74
|
-
<Outline items={OUTLINE_ITEMS}
|
|
72
|
+
<Outline items={OUTLINE_ITEMS} />
|
|
75
73
|
</LayoutPanel>
|
|
76
74
|
)
|
|
77
75
|
}
|
|
@@ -83,16 +81,7 @@ export default function TechnicalDocumentationPage() {
|
|
|
83
81
|
<Text type="supporting" color="secondary">
|
|
84
82
|
Last updated March 30, 2026
|
|
85
83
|
</Text>
|
|
86
|
-
{isMobile &&
|
|
87
|
-
<Selector
|
|
88
|
-
label="On this page"
|
|
89
|
-
isLabelHidden
|
|
90
|
-
options={OUTLINE_OPTIONS}
|
|
91
|
-
value={activeId}
|
|
92
|
-
onChange={scrollToId}
|
|
93
|
-
width="100%"
|
|
94
|
-
/>
|
|
95
|
-
)}
|
|
84
|
+
{isMobile && <Outline items={OUTLINE_ITEMS} />}
|
|
96
85
|
</VStack>
|
|
97
86
|
|
|
98
87
|
<Card>
|
|
@@ -106,17 +95,19 @@ export default function TechnicalDocumentationPage() {
|
|
|
106
95
|
</Text>
|
|
107
96
|
</HStack>
|
|
108
97
|
</StackItem>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
98
|
+
{isInteractive && (
|
|
99
|
+
<Button
|
|
100
|
+
label="Copy prompt"
|
|
101
|
+
variant="ghost"
|
|
102
|
+
size="sm"
|
|
103
|
+
icon={<Icon icon={ClipboardDocumentIcon} />}
|
|
104
|
+
onClick={() => {
|
|
105
|
+
void copy(
|
|
106
|
+
'Help me get set up with Product Name. Based on my project, do the following: 1. Install @astryxdesign/core and import its precompiled reset.css and astryx.css once at the app entry point. 2. Wrap my app in Theme with a theme package such as @astryxdesign/theme-neutral. 3. Replace one existing component with an Astryx equivalent. After setup, suggest relevant next steps based on my project.',
|
|
107
|
+
);
|
|
108
|
+
}}
|
|
109
|
+
/>
|
|
110
|
+
)}
|
|
120
111
|
<DropdownMenu
|
|
121
112
|
button={{
|
|
122
113
|
label: 'More options',
|
|
@@ -126,18 +117,52 @@ export default function TechnicalDocumentationPage() {
|
|
|
126
117
|
icon: <Icon icon={ChevronDownIcon} />,
|
|
127
118
|
}}
|
|
128
119
|
items={[
|
|
129
|
-
{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
+
},
|
|
133
156
|
]}
|
|
134
157
|
/>
|
|
135
158
|
</HStack>
|
|
136
159
|
<Text type="body" color="secondary">
|
|
137
160
|
Help me get set up with Product Name. Based on my project, do
|
|
138
|
-
the following: 1. Install @astryxdesign/core and
|
|
139
|
-
|
|
140
|
-
|
|
161
|
+
the following: 1. Install @astryxdesign/core and import its
|
|
162
|
+
precompiled reset.css and astryx.css once at the app entry
|
|
163
|
+
point. 2. Wrap my app in Theme with a theme package such as
|
|
164
|
+
@astryxdesign/theme-neutral. 3. Replace one existing component
|
|
165
|
+
with an Astryx equivalent.
|
|
141
166
|
</Text>
|
|
142
167
|
</VStack>
|
|
143
168
|
</Card>
|
|
@@ -147,9 +172,11 @@ export default function TechnicalDocumentationPage() {
|
|
|
147
172
|
Prerequisites
|
|
148
173
|
</Heading>
|
|
149
174
|
<List density="compact" listStyle="disc">
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<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)</>} />
|
|
153
180
|
</List>
|
|
154
181
|
</VStack>
|
|
155
182
|
|
|
@@ -168,6 +195,7 @@ export default function TechnicalDocumentationPage() {
|
|
|
168
195
|
Step 1: Install the core package
|
|
169
196
|
</Text>
|
|
170
197
|
<CodeBlock
|
|
198
|
+
hasCopyButton={isInteractive}
|
|
171
199
|
code="npm install @astryxdesign/core"
|
|
172
200
|
language="bash"
|
|
173
201
|
width="100%"
|
|
@@ -183,6 +211,7 @@ export default function TechnicalDocumentationPage() {
|
|
|
183
211
|
your app entry point.
|
|
184
212
|
</Text>
|
|
185
213
|
<CodeBlock
|
|
214
|
+
hasCopyButton={isInteractive}
|
|
186
215
|
code={`import '@astryxdesign/core/reset.css';
|
|
187
216
|
import '@astryxdesign/core/astryx.css';`}
|
|
188
217
|
language="tsx"
|
|
@@ -194,6 +223,7 @@ import '@astryxdesign/core/astryx.css';`}
|
|
|
194
223
|
Step 3: Import your first component
|
|
195
224
|
</Text>
|
|
196
225
|
<CodeBlock
|
|
226
|
+
hasCopyButton={isInteractive}
|
|
197
227
|
code={`import { Button } from '@astryxdesign/core/Button';
|
|
198
228
|
|
|
199
229
|
export default function App() {
|
|
@@ -213,18 +243,17 @@ export default function App() {
|
|
|
213
243
|
</Heading>
|
|
214
244
|
<Text type="body">
|
|
215
245
|
Astryx ships with a default theme that works out of the box. To
|
|
216
|
-
customize colors, typography, and spacing,
|
|
217
|
-
|
|
246
|
+
customize colors, typography, and spacing, install a theme
|
|
247
|
+
package, import its stylesheet, and wrap your app in Theme.
|
|
218
248
|
</Text>
|
|
219
249
|
<CodeBlock
|
|
220
|
-
|
|
250
|
+
hasCopyButton={isInteractive}
|
|
251
|
+
code={`import { Theme } from '@astryxdesign/core/theme';
|
|
252
|
+
import { neutralTheme } from '@astryxdesign/theme-neutral/built';
|
|
253
|
+
import '@astryxdesign/theme-neutral/theme.css';
|
|
221
254
|
|
|
222
255
|
export default function App({ children }) {
|
|
223
|
-
return
|
|
224
|
-
<ThemeProvider theme="default">
|
|
225
|
-
{children}
|
|
226
|
-
</ThemeProvider>
|
|
227
|
-
);
|
|
256
|
+
return <Theme theme={neutralTheme}>{children}</Theme>;
|
|
228
257
|
}`}
|
|
229
258
|
language="tsx"
|
|
230
259
|
width="100%"
|
|
@@ -241,11 +270,39 @@ export default function App({ children }) {
|
|
|
241
270
|
Next steps
|
|
242
271
|
</Heading>
|
|
243
272
|
<List density="compact" listStyle="disc">
|
|
244
|
-
<ListItem
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
+
/>
|
|
249
306
|
</List>
|
|
250
307
|
</VStack>
|
|
251
308
|
</VStack>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import {useState, useCallback, type CSSProperties} from 'react';
|
|
6
6
|
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
7
7
|
import {Button} from '@astryxdesign/core/Button';
|
|
8
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
8
9
|
import {Card} from '@astryxdesign/core/Card';
|
|
9
10
|
import {Center} from '@astryxdesign/core/Center';
|
|
10
11
|
import {Dialog} from '@astryxdesign/core/Dialog';
|
|
@@ -538,27 +539,25 @@ function BlockPreview({
|
|
|
538
539
|
const items = (props.items as Transaction[]) || [];
|
|
539
540
|
return (
|
|
540
541
|
<Card padding={6} style={cardStyle} onClick={onSelect}>
|
|
541
|
-
<
|
|
542
|
-
<
|
|
543
|
-
<
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
/>
|
|
561
|
-
</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
|
+
/>
|
|
562
561
|
</Card>
|
|
563
562
|
);
|
|
564
563
|
}
|
|
@@ -618,6 +617,13 @@ export default function EditorPage() {
|
|
|
618
617
|
const [selectedId, setSelectedId] = useState<string | null>(null);
|
|
619
618
|
const [sidebarTab, setSidebarTab] = useState<SidebarTab>('blocks');
|
|
620
619
|
const [pageTitle, setPageTitle] = useState('Page Editor');
|
|
620
|
+
const showToast = useToast();
|
|
621
|
+
const publish = () =>
|
|
622
|
+
// Demo only: replace this toast with the call that publishes the page.
|
|
623
|
+
showToast({
|
|
624
|
+
body: `Demo: ${pageTitle} would be published here`,
|
|
625
|
+
uniqueID: 'publish',
|
|
626
|
+
});
|
|
621
627
|
const [isEditingTitle, setIsEditingTitle] = useState(false);
|
|
622
628
|
const [viewport, setViewport] = useState<ViewportSize>('desktop');
|
|
623
629
|
// Mobile only: the customizations (tabs + Add Block/Layers) open in a
|
|
@@ -806,7 +812,7 @@ export default function EditorPage() {
|
|
|
806
812
|
<LayoutPanel
|
|
807
813
|
hasDivider={!isMobile}
|
|
808
814
|
padding={0}
|
|
809
|
-
|
|
815
|
+
width={isMobile ? '100%' : 320}>
|
|
810
816
|
<VStack gap={4}>
|
|
811
817
|
{/* Panel Header */}
|
|
812
818
|
<Section variant="transparent" padding={4}>
|
|
@@ -823,7 +829,7 @@ export default function EditorPage() {
|
|
|
823
829
|
isIconOnly
|
|
824
830
|
onClick={() => setIsCustomizeOpen(true)}
|
|
825
831
|
/>
|
|
826
|
-
<Button label="Publish" variant="primary" />
|
|
832
|
+
<Button label="Publish" variant="primary" onClick={publish} />
|
|
827
833
|
</HStack>
|
|
828
834
|
</HStack>
|
|
829
835
|
) : (
|
|
@@ -880,8 +886,19 @@ export default function EditorPage() {
|
|
|
880
886
|
icon={<Icon icon={EyeIcon} size="sm" />}
|
|
881
887
|
variant="ghost"
|
|
882
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
|
+
}
|
|
896
|
+
/>
|
|
897
|
+
<Button
|
|
898
|
+
label="Publish"
|
|
899
|
+
variant="primary"
|
|
900
|
+
onClick={publish}
|
|
883
901
|
/>
|
|
884
|
-
<Button label="Publish" variant="primary" />
|
|
885
902
|
</HStack>
|
|
886
903
|
}
|
|
887
904
|
/>
|
|
@@ -12,6 +12,7 @@ import {rtlStyles} from '@astryxdesign/core/utils';
|
|
|
12
12
|
import {Text} from '@astryxdesign/core/Text';
|
|
13
13
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
14
14
|
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
15
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
15
16
|
import {Section} from '@astryxdesign/core/Section';
|
|
16
17
|
import {Avatar} from '@astryxdesign/core/Avatar';
|
|
17
18
|
import {MetadataList, MetadataListItem} from '@astryxdesign/core/MetadataList';
|
|
@@ -287,6 +288,7 @@ function getFileExtension(name: string): string {
|
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
export default function FileExplorerPage() {
|
|
291
|
+
const showToast = useToast();
|
|
290
292
|
const [selectedPath, setSelectedPath] = useState<string[]>([
|
|
291
293
|
'applications',
|
|
292
294
|
'chrome-apps',
|
|
@@ -392,7 +394,13 @@ export default function FileExplorerPage() {
|
|
|
392
394
|
centerContent={
|
|
393
395
|
<SegmentedControl
|
|
394
396
|
value="column"
|
|
395
|
-
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
|
+
}
|
|
396
404
|
label="View mode">
|
|
397
405
|
<SegmentedControlItem
|
|
398
406
|
value="grid"
|
|
@@ -427,30 +435,65 @@ export default function FileExplorerPage() {
|
|
|
427
435
|
size="sm"
|
|
428
436
|
icon={<Icon icon={AdjustmentsHorizontalIcon} size="sm" />}
|
|
429
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
|
+
}
|
|
430
445
|
/>
|
|
431
446
|
<IconButton
|
|
432
447
|
variant="ghost"
|
|
433
448
|
size="sm"
|
|
434
449
|
icon={<Icon icon={ShareIcon} size="sm" />}
|
|
435
450
|
label="Share"
|
|
451
|
+
onClick={() =>
|
|
452
|
+
// Demo only: replace this toast with the call that shares the selection.
|
|
453
|
+
showToast({
|
|
454
|
+
body: 'Demo: sharing would start here',
|
|
455
|
+
uniqueID: 'share',
|
|
456
|
+
})
|
|
457
|
+
}
|
|
436
458
|
/>
|
|
437
459
|
<IconButton
|
|
438
460
|
variant="ghost"
|
|
439
461
|
size="sm"
|
|
440
462
|
icon={<Icon icon={TagIcon} size="sm" />}
|
|
441
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
|
+
}
|
|
442
471
|
/>
|
|
443
472
|
<IconButton
|
|
444
473
|
variant="ghost"
|
|
445
474
|
size="sm"
|
|
446
475
|
icon={<Icon icon={EllipsisHorizontalIcon} size="sm" />}
|
|
447
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
|
+
}
|
|
448
484
|
/>
|
|
449
485
|
<IconButton
|
|
450
486
|
variant="ghost"
|
|
451
487
|
size="sm"
|
|
452
488
|
icon={<Icon icon={MagnifyingGlassIcon} size="sm" />}
|
|
453
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
|
+
}
|
|
454
497
|
/>
|
|
455
498
|
</>
|
|
456
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">
|