@up42/up-components 1.6.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/Grid/Grid.d.ts +17 -0
- package/dist/cjs/types/components/PageContainer/PageContainer.d.ts +16 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/Grid/Grid.d.ts +17 -0
- package/dist/esm/types/components/Grid/Grid.test.d.ts +1 -0
- package/dist/esm/types/components/PageContainer/PageContainer.d.ts +16 -0
- package/dist/esm/types/components/PageContainer/PageContainer.test.d.ts +1 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +26 -22
- package/package.json +1 -1
- package/dist/cjs/types/components/Container/Container.d.ts +0 -29
- package/dist/esm/types/components/Container/Container.d.ts +0 -29
- /package/dist/cjs/types/components/{Container/Container.test.d.ts → Grid/Grid.test.d.ts} +0 -0
- /package/dist/{esm/types/components/Container/Container.test.d.ts → cjs/types/components/PageContainer/PageContainer.test.d.ts} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GridProps } from '@mui/material';
|
|
3
|
+
export declare type GridContainerProps = Omit<GridProps, 'container' | 'item' | 'xs' | 'columnSpacing'>;
|
|
4
|
+
/**
|
|
5
|
+
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
6
|
+
*/
|
|
7
|
+
export declare const GridContainer: ({ children, ...props }: GridContainerProps) => JSX.Element;
|
|
8
|
+
export declare type GridItemProps = GridContainerProps & {
|
|
9
|
+
/**
|
|
10
|
+
* `span` prop is used to set the column span.
|
|
11
|
+
*/
|
|
12
|
+
span?: GridProps['xs'];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
16
|
+
*/
|
|
17
|
+
export declare const GridItem: ({ children, span, ...props }: GridItemProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContainerProps } from '@mui/material';
|
|
3
|
+
export declare type PageContainerProps = Omit<ContainerProps, 'fixed' | 'maxWidth'> & {
|
|
4
|
+
/**
|
|
5
|
+
* The number of `columns` to use in the grid system
|
|
6
|
+
*/
|
|
7
|
+
columns?: number | 'auto';
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, the container will be `fluid`, taking the full width of the screen
|
|
10
|
+
*/
|
|
11
|
+
fluid?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Documentation: https://up-components.up42.com/?path=/docs/layout-pagecontainer--docs
|
|
15
|
+
*/
|
|
16
|
+
export declare const PageContainer: ({ children, fluid, columns, ...props }: PageContainerProps) => JSX.Element;
|
|
@@ -6,7 +6,8 @@ export { theme } from './global/theme';
|
|
|
6
6
|
export { Button, type ButtonProps } from './components/Button/Button';
|
|
7
7
|
export { Typography, type TypographyProps } from './components/Typography/Typography';
|
|
8
8
|
export { Avatar, type AvatarProps } from './components/Avatar/Avatar';
|
|
9
|
-
export {
|
|
9
|
+
export { GridContainer, type GridContainerProps, GridItem, type GridItemProps } from './components/Grid/Grid';
|
|
10
|
+
export { PageContainer, type PageContainerProps } from './components/PageContainer/PageContainer';
|
|
10
11
|
export { Box, type BoxProps } from './components/Box/Box';
|
|
11
12
|
export { Checkbox, type CheckboxProps } from './components/Checkbox/Checkbox';
|
|
12
13
|
export { FormCheckbox, type FormCheckboxProps } from './components/FormCheckbox/FormCheckbox';
|