Skip to content

Commit

Permalink
update: add containers
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jul 24, 2024
1 parent b0c69ed commit 1af09dd
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 12 deletions.
4 changes: 4 additions & 0 deletions dist/mui/components/containers/ColumnContainer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { StackProps } from "@mui/material/Stack";
import React from "react";
export type ColumnContainerProps = StackProps;
export default function ColumnContainer({ children }: ColumnContainerProps): React.JSX.Element;
5 changes: 5 additions & 0 deletions dist/mui/components/containers/ColumnContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Stack from "@mui/material/Stack";
import React from "react";
export default function ColumnContainer({ children }) {
return React.createElement(Stack, { overflow: "hidden" }, children);
}
4 changes: 4 additions & 0 deletions dist/mui/components/containers/ScrollableContainer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { BoxProps } from "@mui/material/Box";
import React from "react";
export type ScrollableContainerProps = BoxProps;
export default function ScrollableContainer({ children }: ScrollableContainerProps): React.JSX.Element;
5 changes: 5 additions & 0 deletions dist/mui/components/containers/ScrollableContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Box from "@mui/material/Box";
import React from "react";
export default function ScrollableContainer({ children }) {
return React.createElement(Box, { overflow: "auto" }, children);
}
8 changes: 8 additions & 0 deletions src/mui/components/containers/ColumnContainer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Stack, { StackProps } from "@mui/material/Stack";
import React from "react";

export type ColumnContainerProps = StackProps;

export default function ColumnContainer({ children }: ColumnContainerProps) {
return <Stack overflow="hidden">{children}</Stack>;
}
8 changes: 8 additions & 0 deletions src/mui/components/containers/ScrollableContainer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Box, { BoxProps } from "@mui/material/Box";
import React from "react";

export type ScrollableContainerProps = BoxProps;

export default function ScrollableContainer({ children }: ScrollableContainerProps) {
return <Box overflow="auto">{children}</Box>;
}
12 changes: 0 additions & 12 deletions src/mui/components/dialog/ColumnContainer.tsx

This file was deleted.

0 comments on commit 1af09dd

Please sign in to comment.