diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/ListWithHeader.tsx b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/ListWithHeader.tsx deleted file mode 100644 index 2f7f3041c58e..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/ListWithHeader.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import React from "react"; -import { ListHeaderContainer } from "./styles"; -import { Text } from "../../Text"; -import { Flex } from "../../Flex"; - -interface Props { - headerText: string; - headerControls?: React.ReactNode; - maxHeight?: string; - headerClassName?: string; - children: React.ReactNode | React.ReactNode[]; -} - -export const ListWithHeader = (props: Props) => { - return ( - - - {props.headerText} - {props.headerControls} - - - {props.children} - - - ); -}; diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/index.ts b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/index.ts deleted file mode 100644 index cd175bbdf5e3..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ListItemContainer, ListHeaderContainer } from "./styles"; -export { ListWithHeader } from "./ListWithHeader"; diff --git a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/styles.ts b/app/client/packages/design-system/ads/src/Templates/EntityExplorer/styles.ts deleted file mode 100644 index df4b639c91ec..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/EntityExplorer/styles.ts +++ /dev/null @@ -1,27 +0,0 @@ -import styled from "styled-components"; - -export const ListItemContainer = styled.div` - width: 100%; - - & .t--entity-item { - grid-template-columns: 0 auto 1fr auto auto auto auto auto; - height: 32px; - - & .t--entity-name { - padding-left: var(--ads-v2-spaces-3); - } - } -`; - -export const ListHeaderContainer = styled.div` - padding: var(--ads-v2-spaces-3); - padding-right: var(--ads-v2-spaces-2); - display: flex; - justify-content: space-between; - align-items: center; - height: 40px; - - span { - line-height: 20px; - } -`; diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/HeaderSwitcher.styles.ts b/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/HeaderSwitcher.styles.ts deleted file mode 100644 index 06309d2d20cf..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/HeaderSwitcher.styles.ts +++ /dev/null @@ -1,20 +0,0 @@ -import styled from "styled-components"; -import { PopoverContent } from "../../../Popover"; - -export const SwitchTrigger = styled.div<{ active: boolean }>` - display: flex; - border-radius: var(--ads-v2-border-radius); - background-color: ${(props) => - props.active ? `var(--ads-v2-color-bg-subtle)` : "unset"}; - cursor: pointer; - padding: var(--ads-v2-spaces-2); - - :hover { - background-color: var(--ads-v2-color-bg-subtle); - } -`; - -export const ContentContainer = styled(PopoverContent)` - padding: 0; - padding-bottom: 0.25em; -`; diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/IDEHeaderSwitcher.tsx b/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/IDEHeaderSwitcher.tsx deleted file mode 100644 index 22928a5f4994..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/IDEHeaderSwitcher.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import React, { type ForwardedRef, useCallback } from "react"; -import { Flex } from "../../../Flex"; -import { Icon } from "../../../Icon"; -import { Popover, PopoverTrigger } from "../../../Popover"; -import { Text } from "../../../Text"; -import * as Styled from "./HeaderSwitcher.styles"; - -interface Props { - prefix: string; - title?: string; - titleTestId: string; - active: boolean; - setActive: (active: boolean) => void; - onClick?: React.MouseEventHandler; - className?: string; - children: React.ReactNode; -} - -export const IDEHeaderSwitcher = React.forwardRef( - (props: Props, ref: ForwardedRef) => { - const { - active, - children, - className, - onClick, - prefix, - setActive, - title, - titleTestId, - ...rest - } = props; - - const separator = title ? " /" : ""; - - const closeSwitcher = useCallback(() => { - return setActive(false); - }, [setActive]); - - return ( - - - - - {prefix + separator} - - - - {title} - - - - - - - {children} - - - ); - }, -); - -IDEHeaderSwitcher.displayName = "IDEHeaderSwitcher"; diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/index.ts b/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/index.ts deleted file mode 100644 index 1580b3834c63..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/HeaderSwitcher/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { IDEHeaderSwitcher } from "./IDEHeaderSwitcher"; diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.constants.ts b/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.constants.ts deleted file mode 100644 index 6307b9c5b692..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.constants.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const IDE_HEADER_HEIGHT = 40; -export const LOGO_WIDTH = 50; diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.mdx b/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.mdx deleted file mode 100644 index 37c3900615a3..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.mdx +++ /dev/null @@ -1,28 +0,0 @@ -import { Canvas, Meta } from "@storybook/blocks"; -import * as IDEHeaderStories from "./IDEHeader.stories"; - - - -# IDEHeader - -IDEHeader sets the stage for the IDE experience. It is the topmost section of the IDE that contains the Appsmith logo, the app name, and the user profile. - - - -## Anatomy - -### Left Section options - -The local title - -#### Header Title - -A title that is specific to the app state. It is displayed on the left side of the header. - - - -#### Header Dropdown - -A dropdown that allows the user to switch between different pages. - - diff --git a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.stories.tsx b/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.stories.tsx deleted file mode 100644 index 6c709080dd52..000000000000 --- a/app/client/packages/design-system/ads/src/Templates/IDEHeader/IDEHeader.stories.tsx +++ /dev/null @@ -1,109 +0,0 @@ -import React from "react"; -import type { Meta } from "@storybook/react"; -import { IDEHeader } from "./IDEHeader"; -import { IDEHeaderTitle } from "./IDEHeaderTitle"; -import { IDEHeaderSwitcher } from "./HeaderSwitcher"; -import { noop } from "lodash"; -import { Icon } from "../../Icon"; -import { Button } from "../../Button"; -import { List } from "../../List"; -import { Flex } from "../../Flex"; -import { Text } from "../../Text"; -import { ListHeaderContainer } from "../EntityExplorer/styles"; - -const meta: Meta = { - title: "ADS/Templates/IDEHeader", - component: IDEHeader, - parameters: { - layout: "fullscreen", - }, - decorators: [ - (Story: () => React.ReactNode) => ( -
{Story()}
- ), - ], -}; - -export default meta; - -export const Default = () => ( - - }> - Left Content - - - Center Content - - - Right Content - - -); - -export const WithHeaderTitle = () => { - return ( - - }> - - - -
- - -
- - - ); -}; - -export const WithHeaderDropdown = () => { - const [open, setOpen] = React.useState(false); - - return ( - - }> - - - - Pages -