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

+10
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

+5
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

+11
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

+5
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

+2-1
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

+3
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

+2-1
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

+1
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';
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ArrowDropDownIcon } from './ArrowDropDownIcon';

src/icons/Article/ArticleIcon.tsx

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const ArticleIcon = ({
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="article-icon-svg"
17+
{...props}
18+
>
19+
<path
20+
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-8v-2h8v2zm0-4h-8v-2h8v2zm0-4h-8V7h8v2z"
21+
fill={fill}
22+
/>
23+
</svg>
24+
);
25+
};
26+
27+
export default ArticleIcon;

src/icons/Article/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ArticleIcon } from './ArticleIcon';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const CheckCircleOutlineIcon = ({
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="check-circle-outline-icon-svg"
17+
{...props}
18+
>
19+
<path
20+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-5.41 7.29-7.29 1.41 1.41L11 16l-4.29-4.29 1.41-1.41L11 14.17z"
21+
fill={fill}
22+
/>
23+
</svg>
24+
);
25+
};
26+
27+
export default CheckCircleOutlineIcon;

src/icons/CheckCircleOutline/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as CheckCircleOutlineIcon } from './CheckCircleOutlineIcon';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const ErrorOutlineIcon = ({
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="error-outline-icon-svg"
17+
{...props}
18+
>
19+
<path
20+
d="M11 15h2v2h-2zm0-8h2v6h-2zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
21+
fill={fill}
22+
/>
23+
</svg>
24+
);
25+
};
26+
27+
export default ErrorOutlineIcon;

src/icons/ErrorOutline/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ErrorOutlineIcon } from './ErrorOutlineIcon';
+24
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 ExpandMoreIcon = ({
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="expand-more-icon-svg"
17+
{...props}
18+
>
19+
<path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" fill={fill} />
20+
</svg>
21+
);
22+
};
23+
24+
export default ExpandMoreIcon;

src/icons/ExpandMore/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ExpandMoreIcon } from './ExpandMoreIcon';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const FolderRoundedIcon = ({
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="folder-rounded-icon-svg"
17+
{...props}
18+
>
19+
<path
20+
d="M10 4c-0.55 0-1 0.45-1 1H4c-1.1 0-2 0.9-2 2v10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2V8c0-1.1-0.9-2-2-2h-8l-2-2z"
21+
fill={fill}
22+
/>
23+
</svg>
24+
);
25+
};
26+
27+
export default FolderRoundedIcon;

src/icons/FolderRounded/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as FolderRoundedIcon } from './FolderRoundedIcon';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const LockClockOutlinedIcon = ({
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="lock-clock-outlined-icon-svg"
17+
{...props}
18+
>
19+
<path
20+
d="M6 20V10h12v1c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.42-.6-.75-1.28-.97-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"
21+
fill={fill}
22+
/>
23+
<path
24+
d="M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m1.65 7.35L17.5 18.2V15h1v2.79l1.85 1.85z"
25+
fill={fill}
26+
/>
27+
</svg>
28+
);
29+
};
30+
31+
export default LockClockOutlinedIcon;
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as LockClockOutlinedIcon } from './LockClockOutlinedIcon';

src/icons/SwapVert/SwapVertIcon.tsx

+24
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 SwapVertIcon = ({
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="swap-vert-icon-svg"
17+
{...props}
18+
>
19+
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM8 7V13h2V7h3L9 3 5 7h3z" fill={fill} />
20+
</svg>
21+
);
22+
};
23+
24+
export default SwapVertIcon;

src/icons/SwapVert/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as SwapVertIcon } from './SwapVertIcon';

0 commit comments

Comments
 (0)