@up42/up-components 2.12.1 → 3.0.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/README.md +6 -6
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/Alert/Alert.d.ts +5 -5
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +3 -3
- package/dist/cjs/types/components/Badge/Badge.d.ts +3 -3
- package/dist/cjs/types/components/Banner/Banner.d.ts +3 -3
- package/dist/cjs/types/components/Button/Button.d.ts +3 -3
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/types/components/CodeInline/CodeInline.d.ts +2 -2
- package/dist/cjs/types/components/CodeSnippet/CodeSnippet.d.ts +3 -3
- package/dist/cjs/types/components/ContactBox/ContactBox.d.ts +2 -2
- package/dist/cjs/types/components/ControlButton/ControlButton.d.ts +3 -3
- package/dist/cjs/types/components/CopyButton/CopyButton.d.ts +2 -2
- package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +5 -5
- package/dist/cjs/types/components/DateTime/DateTime.d.ts +1 -1
- package/dist/cjs/types/components/Divider/Divider.d.ts +3 -3
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.d.ts +2 -2
- package/dist/cjs/types/components/EmptyState/EmptyState.d.ts +3 -3
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +4 -9
- package/dist/cjs/types/components/FormDatePicker/FormDatePicker.d.ts +4 -4
- package/dist/cjs/types/components/FormDateRangePicker/FormDateRangePicker.d.ts +5 -5
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +3 -8
- package/dist/cjs/types/components/FormLabel/FormLabel.d.ts +3 -3
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +4 -9
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +5 -10
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +5 -10
- package/dist/cjs/types/components/Grid/Grid.d.ts +5 -5
- package/dist/cjs/types/components/Icon/Icon.d.ts +3 -3
- package/dist/cjs/types/components/Illustration/Illustration.d.ts +3 -3
- package/dist/cjs/types/components/InfoCard/InfoCard.d.ts +4 -4
- package/dist/cjs/types/components/InfoModal/InfoModal.d.ts +3 -3
- package/dist/cjs/types/components/InfoPopover/InfoPopover.d.ts +2 -2
- package/dist/cjs/types/components/Input/Input.d.ts +3 -3
- package/dist/cjs/types/components/Link/Link.d.ts +9 -2
- package/dist/cjs/types/components/Loading/Loading.d.ts +3 -3
- package/dist/cjs/types/components/NotFound/NotFound.d.ts +3 -3
- package/dist/cjs/types/components/PageContainer/PageContainer.d.ts +3 -3
- package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/cjs/types/components/Radio/Radio.d.ts +3 -3
- package/dist/cjs/types/components/Select/Select.d.ts +3 -3
- package/dist/cjs/types/components/Slider/Slider.d.ts +3 -3
- package/dist/cjs/types/components/Switch/Switch.d.ts +3 -3
- package/dist/cjs/types/components/TabGroup/TabGroup.d.ts +4 -4
- package/dist/cjs/types/components/Table/Table.d.ts +19 -19
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +5 -5
- package/dist/cjs/types/components/Tag/Tag.d.ts +3 -3
- package/dist/cjs/types/components/Typography/Typography.d.ts +6 -14
- package/dist/cjs/types/global/providers/AlertProvider/AlertProvider.d.ts +8 -8
- package/dist/cjs/types/global/providers/AlertProvider/AlertStack.d.ts +2 -2
- package/dist/cjs/types/global/providers/AlertProvider/SnackbarWrapper.d.ts +2 -2
- package/dist/cjs/types/global/providers/UpComponentsProvider/UpComponentsProvider.d.ts +6 -2
- package/dist/cjs/types/global/utils/types.d.ts +2 -2
- package/dist/cjs/types/utils/helpers/formatDate.d.ts +3 -3
- package/dist/cjs/types/utils/helpers/formatNumber.d.ts +1 -1
- package/dist/cjs/types/utils/hooks/useRemotePagination.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/Alert/Alert.d.ts +5 -5
- package/dist/esm/types/components/Avatar/Avatar.d.ts +3 -3
- package/dist/esm/types/components/Badge/Badge.d.ts +3 -3
- package/dist/esm/types/components/Banner/Banner.d.ts +3 -3
- package/dist/esm/types/components/Button/Button.d.ts +3 -3
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/esm/types/components/CodeInline/CodeInline.d.ts +2 -2
- package/dist/esm/types/components/CodeSnippet/CodeSnippet.d.ts +3 -3
- package/dist/esm/types/components/ContactBox/ContactBox.d.ts +2 -2
- package/dist/esm/types/components/ControlButton/ControlButton.d.ts +3 -3
- package/dist/esm/types/components/CopyButton/CopyButton.d.ts +2 -2
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +5 -5
- package/dist/esm/types/components/DateTime/DateTime.d.ts +1 -1
- package/dist/esm/types/components/Divider/Divider.d.ts +3 -3
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.d.ts +2 -2
- package/dist/esm/types/components/EmptyState/EmptyState.d.ts +3 -3
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +4 -9
- package/dist/esm/types/components/FormDatePicker/FormDatePicker.d.ts +4 -4
- package/dist/esm/types/components/FormDateRangePicker/FormDateRangePicker.d.ts +5 -5
- package/dist/esm/types/components/FormInput/FormInput.d.ts +3 -8
- package/dist/esm/types/components/FormLabel/FormLabel.d.ts +3 -3
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +4 -9
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +5 -10
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +5 -10
- package/dist/esm/types/components/Grid/Grid.d.ts +5 -5
- package/dist/esm/types/components/Icon/Icon.d.ts +3 -3
- package/dist/esm/types/components/Illustration/Illustration.d.ts +3 -3
- package/dist/esm/types/components/InfoCard/InfoCard.d.ts +4 -4
- package/dist/esm/types/components/InfoModal/InfoModal.d.ts +3 -3
- package/dist/esm/types/components/InfoPopover/InfoPopover.d.ts +2 -2
- package/dist/esm/types/components/Input/Input.d.ts +3 -3
- package/dist/esm/types/components/Link/Link.d.ts +9 -2
- package/dist/esm/types/components/Loading/Loading.d.ts +3 -3
- package/dist/esm/types/components/NotFound/NotFound.d.ts +3 -3
- package/dist/esm/types/components/PageContainer/PageContainer.d.ts +3 -3
- package/dist/esm/types/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/esm/types/components/Radio/Radio.d.ts +3 -3
- package/dist/esm/types/components/Select/Select.d.ts +3 -3
- package/dist/esm/types/components/Slider/Slider.d.ts +3 -3
- package/dist/esm/types/components/Switch/Switch.d.ts +3 -3
- package/dist/esm/types/components/TabGroup/TabGroup.d.ts +4 -4
- package/dist/esm/types/components/Table/Table.d.ts +19 -19
- package/dist/esm/types/components/Tabs/Tabs.d.ts +5 -5
- package/dist/esm/types/components/Tag/Tag.d.ts +3 -3
- package/dist/esm/types/components/Typography/Typography.d.ts +6 -14
- package/dist/esm/types/global/providers/AlertProvider/AlertProvider.d.ts +8 -8
- package/dist/esm/types/global/providers/AlertProvider/AlertStack.d.ts +2 -2
- package/dist/esm/types/global/providers/AlertProvider/SnackbarWrapper.d.ts +2 -2
- package/dist/esm/types/global/providers/UpComponentsProvider/UpComponentsProvider.d.ts +6 -2
- package/dist/esm/types/global/utils/types.d.ts +2 -2
- package/dist/esm/types/utils/helpers/formatDate.d.ts +3 -3
- package/dist/esm/types/utils/helpers/formatNumber.d.ts +1 -1
- package/dist/esm/types/utils/hooks/useRemotePagination.d.ts +2 -2
- package/dist/index.d.ts +155 -179
- package/package.json +14 -5
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { RadioGroupProps } from '@mui/material';
|
|
3
3
|
import { FormBaseProps } from '@global/utils/types';
|
|
4
4
|
import { RadioProps } from '../Radio/Radio';
|
|
5
|
-
export
|
|
5
|
+
export type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
6
6
|
inputRef?: RadioProps['inputRef'];
|
|
7
7
|
data: {
|
|
8
8
|
value: string | number;
|
|
@@ -13,18 +13,13 @@ export declare type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const FormRadio: React.ForwardRefExoticComponent<
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
component?: React.ElementType<any> | undefined;
|
|
19
|
-
ref?: React.Ref<unknown> | undefined;
|
|
20
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
21
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
16
|
+
export declare const FormRadio: React.ForwardRefExoticComponent<Omit<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
17
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
18
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & RadioGroupProps & {
|
|
24
19
|
inputRef?: RadioProps['inputRef'];
|
|
25
20
|
data: {
|
|
26
21
|
value: string | number;
|
|
27
22
|
label?: string;
|
|
28
23
|
message?: string;
|
|
29
24
|
}[];
|
|
30
|
-
}, "
|
|
25
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { FormBaseProps } from '@global/utils/types';
|
|
3
3
|
import { SelectProps } from '../Select/Select';
|
|
4
|
-
|
|
4
|
+
type Option = {
|
|
5
5
|
value: string | number;
|
|
6
6
|
label: string | ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
9
9
|
options: Option[];
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const FormSelect: React.ForwardRefExoticComponent<
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
component?: React.ElementType<any> | undefined;
|
|
17
|
-
ref?: React.Ref<unknown> | undefined;
|
|
18
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
19
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
+
export declare const FormSelect: React.ForwardRefExoticComponent<Omit<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
15
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
16
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SelectProps<string | number>, "variant"> & {
|
|
22
17
|
withBorder?: boolean | undefined;
|
|
23
18
|
} & {
|
|
24
19
|
options: Option[];
|
|
25
|
-
},
|
|
20
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
26
21
|
export {};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormBaseProps } from '@global/utils/types';
|
|
3
3
|
import { SwitchProps } from '../Switch/Switch';
|
|
4
|
-
export
|
|
4
|
+
export type FormSwitchProps = FormBaseProps & SwitchProps & {
|
|
5
5
|
formControlLabel?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const BaseFormSwitch: ({ component, disabled, label, error, formControlLabel, sx, ...props }: FormSwitchProps) => JSX.Element;
|
|
7
|
+
export declare const BaseFormSwitch: ({ component, disabled, label, error, formControlLabel, sx, ...props }: FormSwitchProps) => React.JSX.Element;
|
|
8
8
|
/**
|
|
9
9
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
10
10
|
*/
|
|
11
|
-
export declare const FormSwitch: React.ForwardRefExoticComponent<
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
component?: React.ElementType<any> | undefined;
|
|
14
|
-
ref?: React.Ref<unknown> | undefined;
|
|
15
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
11
|
+
export declare const FormSwitch: React.ForwardRefExoticComponent<Omit<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
12
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
13
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SwitchProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
19
14
|
formControlLabel?: string | undefined;
|
|
20
|
-
},
|
|
15
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GridProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type GridContainerProps = Omit<GridProps, 'container' | 'item' | 'xs' | 'columnSpacing'>;
|
|
4
4
|
/**
|
|
5
5
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
6
6
|
*/
|
|
7
|
-
export declare const GridContainer: ({ children, ...props }: GridContainerProps) => JSX.Element;
|
|
8
|
-
export
|
|
7
|
+
export declare const GridContainer: ({ children, ...props }: GridContainerProps) => React.JSX.Element;
|
|
8
|
+
export type GridItemProps = GridContainerProps & {
|
|
9
9
|
/**
|
|
10
10
|
* `span` prop is used to set the column span.
|
|
11
11
|
*/
|
|
@@ -14,4 +14,4 @@ export declare type GridItemProps = GridContainerProps & {
|
|
|
14
14
|
/**
|
|
15
15
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
16
16
|
*/
|
|
17
|
-
export declare const GridItem: ({ children, span, ...props }: GridItemProps) => JSX.Element;
|
|
17
|
+
export declare const GridItem: ({ children, span, ...props }: GridItemProps) => React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
3
|
import * as icons from '@global/icons';
|
|
4
|
-
export
|
|
4
|
+
export type IconProps = {
|
|
5
5
|
name: keyof typeof icons;
|
|
6
6
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox'>;
|
|
7
7
|
/**
|
|
8
8
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-icon--docs
|
|
9
9
|
* Icons: https://up-components.up42.com/?path=/docs/icons--docs
|
|
10
10
|
*/
|
|
11
|
-
export declare const Icon: ({ name, ...props }: IconProps) => JSX.Element;
|
|
11
|
+
export declare const Icon: ({ name, ...props }: IconProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
3
|
import * as illustrations from '@global/illustrations';
|
|
4
|
-
export
|
|
4
|
+
export type IllustrationProps = {
|
|
5
5
|
name: keyof typeof illustrations;
|
|
6
6
|
size?: SvgIconProps['width'];
|
|
7
7
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox' | 'fontSize'>;
|
|
@@ -9,4 +9,4 @@ export declare type IllustrationProps = {
|
|
|
9
9
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-illustrations--docs
|
|
10
10
|
* Illustrations: https://up-components.up42.com/?path=/docs/illustrations--docs
|
|
11
11
|
*/
|
|
12
|
-
export declare function Illustration({ name, size, sx, ...props }: IllustrationProps): JSX.Element;
|
|
12
|
+
export declare function Illustration({ name, size, sx, ...props }: IllustrationProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type InfoCardProps = {
|
|
4
4
|
title: string;
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
/**
|
|
@@ -44,11 +44,11 @@ export declare const InfoCardBase: ({ title, titleVariant, subtitle, children, a
|
|
|
44
44
|
hideDivider?: boolean | undefined;
|
|
45
45
|
} & Omit<CardProps<"div", {}>, "square" | "variant" | "raised"> & {
|
|
46
46
|
innerRef: CardProps['ref'];
|
|
47
|
-
}) => JSX.Element;
|
|
47
|
+
}) => React.JSX.Element;
|
|
48
48
|
/**
|
|
49
49
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-infocard--docs
|
|
50
50
|
*/
|
|
51
|
-
export declare const InfoCard: React.ForwardRefExoticComponent<
|
|
51
|
+
export declare const InfoCard: React.ForwardRefExoticComponent<Omit<{
|
|
52
52
|
title: string;
|
|
53
53
|
subtitle?: string | undefined;
|
|
54
54
|
/**
|
|
@@ -67,4 +67,4 @@ export declare const InfoCard: React.ForwardRefExoticComponent<Pick<{
|
|
|
67
67
|
* Choose whether to hide divider or not.
|
|
68
68
|
*/
|
|
69
69
|
hideDivider?: boolean | undefined;
|
|
70
|
-
} & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">,
|
|
70
|
+
} & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ModalProps as MUIModalProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
import { InfoCardProps } from '../InfoCard/InfoCard';
|
|
5
|
-
export
|
|
5
|
+
export type InfoModalProps = MUIGlobalOmit<Omit<MUIModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
|
|
6
6
|
/**
|
|
7
7
|
* Maximum width of the modal, in pixels.
|
|
8
8
|
*/
|
|
@@ -11,4 +11,4 @@ export declare type InfoModalProps = MUIGlobalOmit<Omit<MUIModalProps, 'Backdrop
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-infomodal--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => JSX.Element;
|
|
14
|
+
export declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InfoCardProps } from '../InfoCard/InfoCard';
|
|
3
|
-
export
|
|
3
|
+
export type InfoPopoverProps = InfoCardProps & {
|
|
4
4
|
icon?: React.ElementType;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-popovers-infopopover--docs
|
|
8
8
|
*/
|
|
9
|
-
export declare const InfoPopover: ({ id, icon: CustomIcon, actions, title, children, sx, ...props }: InfoPopoverProps) => JSX.Element;
|
|
9
|
+
export declare const InfoPopover: ({ id, icon: CustomIcon, actions, title, children, sx, ...props }: InfoPopoverProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multiline' | 'rows' | 'size' | 'variant'>;
|
|
4
4
|
/**
|
|
5
5
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-input--docs
|
|
6
6
|
*/
|
|
7
|
-
export declare const Input: ({ type, ...props }: InputProps) => JSX.Element;
|
|
7
|
+
export declare const Input: ({ type, ...props }: InputProps) => React.JSX.Element;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkProps as MuiLinkProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
4
4
|
component?: C;
|
|
5
5
|
}> & {
|
|
6
|
+
/**
|
|
7
|
+
* Determines whether to hide the icon.
|
|
8
|
+
*/
|
|
6
9
|
hideIcon?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Determines whether to open the link in the same tab for external links.
|
|
12
|
+
*/
|
|
13
|
+
openInSameTab?: boolean;
|
|
7
14
|
};
|
|
8
15
|
/**
|
|
9
16
|
* ### Routing Libraries
|
|
@@ -21,4 +28,4 @@ export declare type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
|
|
|
21
28
|
*
|
|
22
29
|
* Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
|
|
23
30
|
*/
|
|
24
|
-
export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, ...props }: LinkProps<C>) => JSX.Element;
|
|
31
|
+
export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type LoadingProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Controls the `height` of the component. Defaults to `100vh`
|
|
6
6
|
*/
|
|
@@ -13,4 +13,4 @@ export declare type LoadingProps = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-loading--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => JSX.Element | null;
|
|
16
|
+
export declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => React.JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type NotFoundProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The label of the CTA button
|
|
5
5
|
*/
|
|
@@ -12,4 +12,4 @@ export declare type NotFoundProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-notfound--docs
|
|
14
14
|
*/
|
|
15
|
-
export declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => JSX.Element;
|
|
15
|
+
export declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ContainerProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type PageContainerProps = Omit<ContainerProps, 'fixed' | 'maxWidth'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The number of `columns` to use in the grid system
|
|
6
6
|
*/
|
|
@@ -13,4 +13,4 @@ export declare type PageContainerProps = Omit<ContainerProps, 'fixed' | 'maxWidt
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-pagecontainer--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const PageContainer: ({ children, fluid, columns, ...props }: PageContainerProps) => JSX.Element;
|
|
16
|
+
export declare const PageContainer: ({ children, fluid, columns, ...props }: PageContainerProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type PageHeaderProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
divider?: boolean;
|
|
5
5
|
description?: React.ReactNode;
|
|
@@ -19,4 +19,4 @@ export declare type PageHeaderProps = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-pageheader--docs
|
|
21
21
|
*/
|
|
22
|
-
export declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => JSX.Element;
|
|
22
|
+
export declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RadioProps as MUIRadioProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type RadioProps = MUIGlobalOmit<MUIRadioProps>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-radio--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Radio: (props: RadioProps) => JSX.Element;
|
|
8
|
+
export declare const Radio: (props: RadioProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SelectProps as MUISelectProps } from '@mui/material';
|
|
3
3
|
import { FormBaseProps } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type SelectProps<T extends unknown> = FormBaseProps & Omit<MUISelectProps<T>, 'variant'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Determines whether to display a border around the select component.
|
|
7
7
|
* @default true
|
|
@@ -11,4 +11,4 @@ export declare type SelectProps<T extends unknown> = FormBaseProps & Omit<MUISel
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-select--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const Select: <T extends unknown>({ withBorder, size, ...props }: SelectProps<T>) => JSX.Element;
|
|
14
|
+
export declare const Select: <T extends unknown>({ withBorder, size, ...props }: SelectProps<T>) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SliderProps as MUISliderProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type SliderProps = MUIGlobalOmit<Omit<MUISliderProps, 'variant' | 'label'>>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-slider--default--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Slider: (props: SliderProps) => JSX.Element;
|
|
8
|
+
export declare const Slider: (props: SliderProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SwitchProps as MUISwitchProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type SwitchProps = MUIGlobalOmit<MUISwitchProps>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-switch--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
8
|
+
export declare const Switch: (props: SwitchProps) => React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BoxProps } from '@mui/material';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
import { TabsProps } from '../Tabs/Tabs';
|
|
4
|
-
|
|
4
|
+
type TabDataType = {
|
|
5
5
|
label: string | ReactNode;
|
|
6
6
|
content: string | ReactNode;
|
|
7
7
|
hidden?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TabGroupProps = {
|
|
10
10
|
tabs: TabDataType[];
|
|
11
11
|
tabContentProps?: BoxProps;
|
|
12
12
|
tabsProps?: TabsProps;
|
|
@@ -26,5 +26,5 @@ export declare type TabGroupProps = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-tabgroup--docs
|
|
28
28
|
*/
|
|
29
|
-
export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => JSX.Element;
|
|
29
|
+
export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => React.JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TableProps as MuiTableProps } from '@mui/material/Table';
|
|
3
3
|
import { TableBodyProps as MuiTableBodyProps } from '@mui/material/TableBody';
|
|
4
4
|
import { TableCellProps as MuiTableCellProps } from '@mui/material/TableCell';
|
|
@@ -9,24 +9,24 @@ import { TablePaginationProps as MuiTablePaginationProps } from '@mui/material/T
|
|
|
9
9
|
import { TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material/TableSortLabel';
|
|
10
10
|
import { TableFooterProps as MuiTableFooterProps } from '@mui/material/TableFooter';
|
|
11
11
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
12
|
-
export
|
|
12
|
+
export type TableProps = MUIGlobalOmit<MuiTableProps>;
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-table--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const Table: ({ children, ...props }: TableProps) => JSX.Element;
|
|
17
|
-
export
|
|
18
|
-
export declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
19
|
-
export
|
|
20
|
-
export declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
21
|
-
export
|
|
22
|
-
export declare const TableContainer: ({ children, ...props }: TableContainerProps) => JSX.Element;
|
|
23
|
-
export
|
|
24
|
-
export declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
25
|
-
export
|
|
26
|
-
export declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
27
|
-
export
|
|
28
|
-
export declare const TablePagination: ({ ...props }: TablePaginationProps) => JSX.Element;
|
|
29
|
-
export
|
|
30
|
-
export declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => JSX.Element;
|
|
31
|
-
export
|
|
32
|
-
export declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
|
|
16
|
+
export declare const Table: ({ children, ...props }: TableProps) => React.JSX.Element;
|
|
17
|
+
export type TableBodyProps = MUIGlobalOmit<MuiTableBodyProps>;
|
|
18
|
+
export declare const TableBody: ({ children, ...props }: TableBodyProps) => React.JSX.Element;
|
|
19
|
+
export type TableCellProps = MUIGlobalOmit<MuiTableCellProps>;
|
|
20
|
+
export declare const TableCell: ({ children, ...props }: TableCellProps) => React.JSX.Element;
|
|
21
|
+
export type TableContainerProps = MUIGlobalOmit<MuiTableContainerProps>;
|
|
22
|
+
export declare const TableContainer: ({ children, ...props }: TableContainerProps) => React.JSX.Element;
|
|
23
|
+
export type TableHeadProps = MUIGlobalOmit<MuiTableHeadProps>;
|
|
24
|
+
export declare const TableHead: ({ children, ...props }: TableHeadProps) => React.JSX.Element;
|
|
25
|
+
export type TableRowProps = MUIGlobalOmit<MuiTableRowProps>;
|
|
26
|
+
export declare const TableRow: ({ children, ...props }: TableRowProps) => React.JSX.Element;
|
|
27
|
+
export type TablePaginationProps = MUIGlobalOmit<MuiTablePaginationProps>;
|
|
28
|
+
export declare const TablePagination: ({ ...props }: TablePaginationProps) => React.JSX.Element;
|
|
29
|
+
export type TableSortLabelProps = MUIGlobalOmit<MuiTableSortLabelProps>;
|
|
30
|
+
export declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => React.JSX.Element;
|
|
31
|
+
export type TableFooterProps = MUIGlobalOmit<MuiTableFooterProps>;
|
|
32
|
+
export declare const TableFooter: ({ children, ...props }: TableFooterProps) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TabsProps as MuiTabsProps, TabProps as MuiTabProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type TabsProps = MUIGlobalOmit<MuiTabsProps>;
|
|
5
|
+
export type TabProps = MUIGlobalOmit<MuiTabProps>;
|
|
6
6
|
/**
|
|
7
7
|
* Documentation: https://up-components.up42.com/?path=/docs/navigation-tabs--docs
|
|
8
8
|
*/
|
|
9
|
-
export declare const Tabs: ({ children, ...props }: TabsProps) => JSX.Element;
|
|
10
|
-
export declare const Tab: ({ children, ...props }: TabProps) => JSX.Element;
|
|
9
|
+
export declare const Tabs: ({ children, ...props }: TabsProps) => React.JSX.Element;
|
|
10
|
+
export declare const Tab: ({ children, ...props }: TabProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ChipProps as MUIChipProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type TagProps = MUIGlobalOmit<Omit<MUIChipProps, 'size' | 'avatar'>>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-tag--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Tag: ({ color, ...props }: TagProps) => JSX.Element;
|
|
8
|
+
export declare const Tag: ({ color, ...props }: TagProps) => React.JSX.Element;
|