Skip to content

Commit d205979

Browse files
authored
Merge pull request #980 from FaheemOnHub/add/faheemonhub/newComponents
Add remaining icons and components from mui
2 parents 6f5e0b8 + 340d296 commit d205979

File tree

24 files changed

+258
-2
lines changed

24 files changed

+258
-2
lines changed

src/base/AlertTitle/AlertTitle.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import {
2+
AlertTitle as MuiAlertTitle,
3+
type AlertTitleProps as MuiAlertTitleProps
4+
} from '@mui/material';
5+
6+
export function AlertTitle(props: MuiAlertTitleProps): JSX.Element {
7+
return <MuiAlertTitle {...props} />;
8+
}
9+
10+
export default AlertTitle;

src/base/AlertTitle/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { AlertTitleProps } from '@mui/material';
2+
import AlertTitle from './AlertTitle';
3+
4+
export { AlertTitle };
5+
export type { AlertTitleProps };

src/base/Breadcrumbs/Breadcrumbs.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {
2+
Breadcrumbs as MuiBreadcrumbs,
3+
type BreadcrumbsProps as MuiBreadcrumbsProps
4+
} from '@mui/material';
5+
import React from 'react';
6+
7+
const Breadcrumbs = React.forwardRef<HTMLDivElement, MuiBreadcrumbsProps>((props, ref) => {
8+
return <MuiBreadcrumbs {...props} ref={ref} />;
9+
});
10+
11+
export default Breadcrumbs;

src/base/Breadcrumbs/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { BreadcrumbsProps } from '@mui/material';
2+
import Breadcrumbs from './Breadcrumbs';
3+
4+
export { Breadcrumbs };
5+
export type { BreadcrumbsProps };

src/base/OutlinedInput/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { OutlinedInputProps } from '@mui/material';
2+
import { outlinedInputClasses } from '@mui/material/OutlinedInput';
23
import { OutlinedInput } from './OutlinedInput';
34

4-
export { OutlinedInput };
5+
export { OutlinedInput, outlinedInputClasses };
56
export type { OutlinedInputProps };

src/base/Step/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import { StepConnectorProps, stepConnectorClasses } from '@mui/material';
12
export { Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper } from './Step';
3+
export { stepConnectorClasses };
4+
export type { StepConnectorProps };

src/base/Tooltip/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TooltipProps } from '@mui/material';
2+
import { tooltipClasses } from '@mui/material/Tooltip';
23
import Tooltip from './Tooltip';
34

4-
export { Tooltip };
5+
export { Tooltip, tooltipClasses };
56
export type { TooltipProps };

src/base/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export * from './AvatarGroup';
1010
export * from './Backdrop';
1111
export * from './Badge';
1212
export * from './Box';
13+
export * from './Breadcrumbs';
1314
export * from './Button';
1415
export * from './ButtonGroup';
1516
export * from './Card';
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const ArrowDropDownIcon = ({
5+
width = DEFAULT_WIDTH,
6+
height = DEFAULT_HEIGHT,
7+
fill = DEFAULT_FILL_NONE,
8+
...props
9+
}: IconProps): JSX.Element => {
10+
return (
11+
<svg
12+
width={width}
13+
height={height}
14+
xmlns="http://www.w3.org/2000/svg"
15+
viewBox="0 0 24 24"
16+
data-testid="arrow-drop-down-icon-svg"
17+
{...props}
18+
>
19+
<path d="M7 10l5 5 5-5z" fill={fill} />
20+
</svg>
21+
);
22+
};
23+
24+
export default ArrowDropDownIcon;

src/icons/ArrowDropDown/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ArrowDropDownIcon } from './ArrowDropDownIcon';

0 commit comments

Comments
 (0)