From 645e6380c8e6c8462f48471b2454272729a72cc2 Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:40:46 +0100 Subject: [PATCH] Add some future components --- .../PageEditor/ComponentCatalog/ComponentCatalog.tsx | 5 +++++ .../ComponentCatalog/ComponentCatalogItem.tsx | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalog.tsx b/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalog.tsx index ab65cb9ba3c..61372ccf1bf 100644 --- a/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalog.tsx +++ b/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalog.tsx @@ -18,6 +18,11 @@ interface FutureComponentSpec { } const FUTURE_COMPONENTS = new Map([ + ['Chart', { url: 'https://github.com/mui/mui-toolpad/issues/789', displayName: 'Chart' }], + ['Map', { url: 'https://github.com/mui/mui-toolpad/issues/864', displayName: 'Map' }], + ['Drawer', { url: 'https://github.com/mui/mui-toolpad/issues/1540', displayName: 'Drawer' }], + ['Html', { url: 'https://github.com/mui/mui-toolpad/issues/1311', displayName: 'Html' }], + ['Icon', { url: 'https://github.com/mui/mui-toolpad/issues/83', displayName: 'Icon' }], ['Form', { url: 'https://github.com/mui/mui-toolpad/issues/749', displayName: 'Form' }], ['Card', { url: 'https://github.com/mui/mui-toolpad/issues/748', displayName: 'Card' }], ['Slider', { url: 'https://github.com/mui/mui-toolpad/issues/746', displayName: 'Slider' }], diff --git a/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalogItem.tsx b/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalogItem.tsx index f8564499a4d..a05eb443dc9 100644 --- a/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalogItem.tsx +++ b/packages/toolpad-app/src/toolpad/AppEditor/PageEditor/ComponentCatalog/ComponentCatalogItem.tsx @@ -20,7 +20,12 @@ import AddIcon from '@mui/icons-material/Add'; import UploadFileIcon from '@mui/icons-material/UploadFile'; import NotesIcon from '@mui/icons-material/Notes'; import AutoAwesomeMosaicIcon from '@mui/icons-material/AutoAwesomeMosaic'; +import InsightsIcon from '@mui/icons-material/Insights'; import { SvgIconProps } from '@mui/material/SvgIcon'; +import PlaceIcon from '@mui/icons-material/Place'; +import ViewSidebarIcon from '@mui/icons-material/ViewSidebar'; +import MoodIcon from '@mui/icons-material/Mood'; +import HtmlIcon from '@mui/icons-material/Html'; const iconMap = new Map>([ ['Text', NotesIcon], @@ -43,6 +48,11 @@ const iconMap = new Map>([ ['CreateNew', AddIcon], ['Tabs', TabIcon], ['Container', AutoAwesomeMosaicIcon], + ['Chart', InsightsIcon], + ['Map', PlaceIcon], + ['Drawer', ViewSidebarIcon], + ['Icon', MoodIcon], + ['Html', HtmlIcon], ]); type ComponentItemKind = 'future' | 'builtIn' | 'create' | 'custom';