An open source design system that's fully customizable and agent ready
TypeScript
docs(cli): remove broken 'MoreMenu — In Toolbar' example block (#3173)
Durvesh Pilankarb6827c48c05b
diff --git a/.changeset/remove-moremenu-intoolbar-example.md b/.changeset/remove-moremenu-intoolbar-example.mdnew file mode 100644index 0000000000..c778febedd--- /dev/null+++ b/.changeset/remove-moremenu-intoolbar-example.md@@ -0,0 +1,6 @@+---+'@astryxdesign/cli': patch+---++[docs] Remove the "MoreMenu — In Toolbar" example block — it rendered incorrectly and was redundant with the other MoreMenu examples (#2870)+@durvesh1992diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.doc.mjs b/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.doc.mjsdeleted file mode 100644index 5487060196..0000000000--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.doc.mjs+++ /dev/null@@ -1,14 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- exampleFor: 'MoreMenu',- name: 'MoreMenu — In Toolbar',- displayName: 'MoreMenu — In Toolbar',- description:- 'A three-dot menu alongside icon buttons in a card header toolbar.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['MoreMenu', 'Button', 'Icon', 'Toolbar', 'Text', 'Card', 'Section'],-};diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.tsx b/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.tsxdeleted file mode 100644index 77230b2783..0000000000--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuInToolbar.tsx+++ /dev/null@@ -1,57 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import {MoreMenu} from '@astryxdesign/core/MoreMenu';-import {Button} from '@astryxdesign/core/Button';-import {Icon} from '@astryxdesign/core/Icon';-import {Toolbar} from '@astryxdesign/core/Toolbar';-import {Heading} from '@astryxdesign/core/Text';-import {Card} from '@astryxdesign/core/Card';-import {Section} from '@astryxdesign/core/Section';-import {- ArrowLeftIcon,- ArrowDownTrayIcon,- ShareIcon,- TrashIcon,-} from '@heroicons/react/24/outline';--export default function MoreMenuInToolbar() {- return (- <Card width="100%" height="100%" style={{marginTop: 100}}>- <Toolbar- label="Project actions"- size="sm"- dividers={['bottom']}- startContent={- <Button- label="Back"- variant="ghost"- icon={<Icon icon={ArrowLeftIcon} />}- isIconOnly- />- }- centerContent={<Heading level={5}>Title</Heading>}- endContent={- <>- <div style={{marginInlineEnd: 8}}>- <MoreMenu- label="More actions"- size="sm"- items={[- {label: 'Export', icon: ArrowDownTrayIcon, onClick: () => {}},- {label: 'Share', icon: ShareIcon, onClick: () => {}},- {type: 'divider'},- {label: 'Delete', icon: TrashIcon, onClick: () => {}},- ]}- />- </div>- <Button label="Discard" variant="secondary" size="sm" />- <Button label="Save" variant="primary" size="sm" />- </>- }- />- <Section />- </Card>- );-}