generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Antonette Caldwell <[email protected]>
- Loading branch information
1 parent
0cea355
commit 0214ed1
Showing
11 changed files
with
36 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/src/accordion.tsx → ...mponents/src/base/Accordion/accordion.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/src/accordionactions.tsx → ...s/src/base/Accordion/accordionactions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/src/accordiondetails.tsx → ...s/src/base/Accordion/accordiondetails.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/components/src/accordionsummary.tsx → ...s/src/base/Accordion/accordionsummary.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { Accordion } from './accordion'; | ||
export { AccordionActions } from './accordionactions'; | ||
export { AccordionDetails } from './accordiondetails'; | ||
export { AccordionSummary } from './accordionsummary'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 11 additions & 7 deletions
18
...components/src/meshery/MesheryTooltip.tsx → packages/components/src/custom/Tooltip.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
import { type TooltipProps } from '@mui/material'; | ||
import { type TooltipProps as MuiTooltipProps } from '@mui/material'; | ||
import React, { type FC, type MouseEvent, type ReactElement } from 'react'; | ||
import { Tooltip } from '../tooltip'; | ||
|
||
type MesheryTooltipProps = { | ||
type TooltipProps = { | ||
title: string; | ||
onClick?: (event: MouseEvent<HTMLElement>) => void; | ||
children: ReactElement<any, any>; | ||
} & Omit<TooltipProps, 'title' | 'children' | 'onClick'>; | ||
} & Omit<MuiTooltipProps, 'title' | 'children' | 'onClick'>; | ||
|
||
export const MesheryTooltip: FC<MesheryTooltipProps> = ( | ||
{ title, onClick, placement, children, ...props } | ||
) => { | ||
export const MesheryTooltip: FC<TooltipProps> = ({ | ||
title, | ||
onClick, | ||
placement, | ||
children, | ||
...props | ||
}) => { | ||
return ( | ||
<Tooltip title={title} placement={placement} onClick={onClick} arrow {...props}> | ||
{children} | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default MesheryTooltip; | ||
export default Tooltip; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as SearchBar } from './SearchBar'; | ||
export { default as Tooltip } from './Tooltip'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.