@up42/up-components 1.6.2 → 1.7.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.
@@ -25,5 +25,6 @@ export declare type ContainerProps = MUIGlobalOmit<Omit<MUIContainerProps, 'maxW
25
25
  * To now more about the requirements please check here: https://up42.atlassian.net/browse/B2B-215.
26
26
  *
27
27
  * Documentation: https://up-components.up42.com/?path=/docs/layout-container--docs
28
+ * @deprecated Use `PageContainer` instead.
28
29
  */
29
30
  export declare const Container: ({ component, size, children, ...props }: ContainerProps) => JSX.Element;
@@ -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 { Container, type ContainerProps } from './components/Container/Container';
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';
@@ -58,3 +59,4 @@ export { formatFileSize } from './utils/helpers/formatFileSize';
58
59
  export { useQueryParams } from './utils/hooks/useQueryParams';
59
60
  export { useRemotePagination, type PaginatedResponse } from './utils/hooks/useRemotePagination';
60
61
  export { useAlert, type CreateAlertProps } from './global/providers/AlertProvider/AlertProvider';
62
+ export { Container, type ContainerProps } from './components/Container/Container';