@up42/up-components 2.13.0 → 3.0.1
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 +2 -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/illustrations/index.d.ts +1 -0
- 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 +2 -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/illustrations/index.d.ts +1 -0
- 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 +887 -853
- package/package.json +14 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertProps as MUIALertProps } from '@mui/material';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type AlertColor = 'info' | 'error' | 'success' | 'warning';
|
|
4
|
+
export type AlertProps = Omit<MUIALertProps, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
|
|
5
5
|
type?: AlertColor;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Used internally in other components that depend on the Alert
|
|
9
9
|
*/
|
|
10
|
-
export declare const AlertBase: React.ForwardRefExoticComponent<
|
|
10
|
+
export declare const AlertBase: React.ForwardRefExoticComponent<Omit<MUIALertProps, "ref"> & React.RefAttributes<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/feedback-alert--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const Alert: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const Alert: React.ForwardRefExoticComponent<Omit<Omit<MUIALertProps, "color" | "elevation" | "action" | "square" | "iconMapping" | "severity" | "variant"> & {
|
|
15
15
|
type?: AlertColor | undefined;
|
|
16
|
-
}, "
|
|
16
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarProps as MUIAvatarProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children' | 'alt' | 'imgProps' | 'sizes' | 'src' | 'srcSet' | 'variant'>, {
|
|
5
5
|
firstName?: string;
|
|
6
6
|
lastName?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
@@ -9,8 +9,8 @@ export declare type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children'
|
|
|
9
9
|
/**
|
|
10
10
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-avatar--docs
|
|
11
11
|
*/
|
|
12
|
-
export declare const Avatar: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Omit<{
|
|
13
13
|
firstName?: string | undefined;
|
|
14
14
|
lastName?: string | undefined;
|
|
15
15
|
icon?: React.ReactNode;
|
|
16
|
-
} & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "
|
|
16
|
+
} & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "alt" | "src" | "sizes" | "srcSet" | "variant" | "imgProps">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BadgeProps as MUIBadgeProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type BadgeProps = MUIGlobalOmit<MUIBadgeProps>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-badge--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
|
|
8
|
+
export declare const Badge: ({ children, color, ...props }: BadgeProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
3
|
import { AlertProps } from '../Alert/Alert';
|
|
4
|
-
export
|
|
4
|
+
export type BannerProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Call To Action label
|
|
7
7
|
* */
|
|
@@ -27,7 +27,7 @@ export declare type BannerProps = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Documentation: https://up-components.up42.com/?path=/docs/feedback-banner--docs
|
|
29
29
|
*/
|
|
30
|
-
export declare const Banner: React.ForwardRefExoticComponent<
|
|
30
|
+
export declare const Banner: React.ForwardRefExoticComponent<Omit<{
|
|
31
31
|
/**
|
|
32
32
|
* Call To Action label
|
|
33
33
|
* */
|
|
@@ -49,4 +49,4 @@ export declare const Banner: React.ForwardRefExoticComponent<Pick<{
|
|
|
49
49
|
*/
|
|
50
50
|
onDismiss?: ButtonProps['onClick'];
|
|
51
51
|
title: string;
|
|
52
|
-
} & Omit<AlertProps, "title" | "role" | "
|
|
52
|
+
} & Omit<AlertProps, "title" | "role" | "onClose" | "closeText" | "icon">, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>, {
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
size?: 'default' | 'slim';
|
|
7
7
|
color?: 'critical' | MUIButtonProps['color'];
|
|
@@ -24,10 +24,10 @@ export declare type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'c
|
|
|
24
24
|
*
|
|
25
25
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
|
|
26
26
|
*/
|
|
27
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
27
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<{
|
|
28
28
|
loading?: boolean | undefined;
|
|
29
29
|
size?: "default" | "slim" | undefined;
|
|
30
30
|
color?: 'critical' | MUIButtonProps['color'];
|
|
31
31
|
component?: MUIButtonProps['LinkComponent'];
|
|
32
32
|
to?: MUIButtonProps['href'];
|
|
33
|
-
} & Omit<Omit<MUIButtonProps<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "
|
|
33
|
+
} & Omit<Omit<MUIButtonProps<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CheckboxProps as MUICheckboxProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type CheckboxProps = MUIGlobalOmit<MUICheckboxProps>;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-checkbox--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const Checkbox: ({ ...props }: CheckboxProps) => JSX.Element;
|
|
8
|
+
export declare const Checkbox: ({ ...props }: CheckboxProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface CodeInlineProps {
|
|
3
3
|
text: string;
|
|
4
4
|
label?: string;
|
|
@@ -8,4 +8,4 @@ export interface CodeInlineProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-codeinline--docs
|
|
10
10
|
*/
|
|
11
|
-
export declare const CodeInline: ({ label, text, "data-testid": dataTestId, inlineLabel }: CodeInlineProps) => JSX.Element;
|
|
11
|
+
export declare const CodeInline: ({ label, text, "data-testid": dataTestId, inlineLabel }: CodeInlineProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
3
|
import 'prismjs/plugins/line-numbers/prism-line-numbers';
|
|
4
4
|
import 'prismjs/components/prism-json';
|
|
@@ -7,7 +7,7 @@ import 'prismjs/components/prism-kotlin';
|
|
|
7
7
|
import 'prismjs/components/prism-java';
|
|
8
8
|
import 'prismjs/components/prism-julia';
|
|
9
9
|
import 'prismjs/components/prism-bash';
|
|
10
|
-
export
|
|
10
|
+
export type Languages = 'DFS' | 'atom' | 'bash' | 'clike' | 'css' | 'extend' | 'html' | 'insertBefore' | 'java' | 'javascript' | 'js' | 'json' | 'julia' | 'kotlin' | 'kt' | 'kts' | 'markup' | 'mathml' | 'plain' | 'plaintext' | 'py' | 'python' | 'rss' | 'sh' | 'shell' | 'ssml' | 'svg' | 'text' | 'txt' | 'webmanifest' | 'xml';
|
|
11
11
|
export interface CodeSnippetItemProps {
|
|
12
12
|
label: string;
|
|
13
13
|
code: string;
|
|
@@ -29,4 +29,4 @@ export interface CodeSnippetProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-CodeSnippet--docs
|
|
31
31
|
*/
|
|
32
|
-
export declare const CodeSnippet: ({ snippets, sx, onCopy, initialSnippetIndex }: CodeSnippetProps) => JSX.Element;
|
|
32
|
+
export declare const CodeSnippet: ({ snippets, sx, onCopy, initialSnippetIndex }: CodeSnippetProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type ContactBoxProps = {
|
|
4
4
|
customIcon?: React.ReactNode;
|
|
5
5
|
text?: string;
|
|
6
6
|
actions: React.ReactNode;
|
|
@@ -10,4 +10,4 @@ export declare type ContactBoxProps = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-contactbox--docs
|
|
12
12
|
*/
|
|
13
|
-
export declare const ContactBox: ({ customIcon, text, actions, size, sx }: ContactBoxProps) => JSX.Element;
|
|
13
|
+
export declare const ContactBox: ({ customIcon, text, actions, size, sx }: ContactBoxProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
|
|
5
5
|
size?: 'medium' | 'small';
|
|
6
6
|
/**
|
|
7
7
|
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
@@ -11,10 +11,10 @@ export declare type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-controlbutton--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const ControlButton: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const ControlButton: React.ForwardRefExoticComponent<Omit<{
|
|
15
15
|
size?: "small" | "medium" | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
18
18
|
*/
|
|
19
19
|
removePadding?: boolean | undefined;
|
|
20
|
-
} & Omit<MUIIconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "
|
|
20
|
+
} & Omit<MUIIconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
3
|
export interface CopyButtonProps {
|
|
4
4
|
data: string;
|
|
@@ -9,4 +9,4 @@ export interface CopyButtonProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-copybutton--docs
|
|
11
11
|
*/
|
|
12
|
-
export declare const CopyButton: ({ data, tooltip, sx, onCopy }: CopyButtonProps) => JSX.Element;
|
|
12
|
+
export declare const CopyButton: ({ data, tooltip, sx, onCopy }: CopyButtonProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
|
|
2
|
+
export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridRowSelectionModel, type GridSortModel, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, } from '@mui/x-data-grid-premium';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
5
|
-
export
|
|
5
|
+
export type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
|
|
6
6
|
/**
|
|
7
7
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-datagrid--docs
|
|
8
8
|
*/
|
|
9
|
-
export declare const DataGrid: ({ autoHeight, pageSizeOptions, disableRowSelectionOnClick, ...props }: MuiDataGridProps) => JSX.Element;
|
|
9
|
+
export declare const DataGrid: ({ autoHeight, pageSizeOptions, disableRowSelectionOnClick, pagination, ...props }: MuiDataGridProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DividerProps as MUIDividerProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type DividerProps = Omit<MUIDividerProps, 'classes' | 'light'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @default 'default'
|
|
6
6
|
* The color of the divider.
|
|
@@ -15,7 +15,7 @@ export declare type DividerProps = Omit<MUIDividerProps, 'classes' | 'light'> &
|
|
|
15
15
|
/**
|
|
16
16
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-divider--docs
|
|
17
17
|
*/
|
|
18
|
-
export declare const Divider: React.ForwardRefExoticComponent<
|
|
18
|
+
export declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<MUIDividerProps<"hr", {}>, "classes" | "light"> & {
|
|
19
19
|
/**
|
|
20
20
|
* @default 'default'
|
|
21
21
|
* The color of the divider.
|
|
@@ -26,4 +26,4 @@ export declare const Divider: React.ForwardRefExoticComponent<Pick<Omit<MUIDivid
|
|
|
26
26
|
* The height of the divider.
|
|
27
27
|
*/
|
|
28
28
|
size?: "small" | "large" | "medium" | undefined;
|
|
29
|
-
}, "
|
|
29
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type DocumentationPopoverProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/**
|
|
@@ -15,4 +15,4 @@ export declare type DocumentationPopoverProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-popovers-documentationpopover--docs
|
|
17
17
|
*/
|
|
18
|
-
export declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => JSX.Element;
|
|
18
|
+
export declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
|
-
export
|
|
4
|
+
export type EmptyStateProps = MUIGlobalOmit<Omit<BoxProps, 'component'>, {
|
|
5
5
|
/**
|
|
6
6
|
* Helpful message that conveys the purpose of the screen and the next action to populate the space
|
|
7
7
|
*/
|
|
@@ -22,4 +22,4 @@ export declare type EmptyStateProps = MUIGlobalOmit<Omit<BoxProps, 'component'>,
|
|
|
22
22
|
/**
|
|
23
23
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-emptystate--docs
|
|
24
24
|
*/
|
|
25
|
-
export declare const EmptyState: ({ icon: CustomIcon, title, subTitle, action, sx, ...props }: EmptyStateProps) => JSX.Element;
|
|
25
|
+
export declare const EmptyState: ({ icon: CustomIcon, title, subTitle, action, sx, ...props }: EmptyStateProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormBaseProps } from '@global/utils/types';
|
|
3
3
|
import { CheckboxProps } from '../Checkbox/Checkbox';
|
|
4
|
-
export
|
|
4
|
+
export type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
5
5
|
data: {
|
|
6
6
|
value: string | number;
|
|
7
7
|
label?: React.ReactNode;
|
|
@@ -10,16 +10,11 @@ export declare type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
|
10
10
|
/**
|
|
11
11
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
12
12
|
*/
|
|
13
|
-
export declare const FormCheckbox: React.ForwardRefExoticComponent<
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
component?: React.ElementType<any> | undefined;
|
|
16
|
-
ref?: React.Ref<unknown> | undefined;
|
|
17
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
13
|
+
export declare const FormCheckbox: 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"> & {
|
|
19
14
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
15
|
+
}, 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").CheckboxProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
21
16
|
data: {
|
|
22
17
|
value: string | number;
|
|
23
18
|
label?: React.ReactNode;
|
|
24
19
|
}[];
|
|
25
|
-
},
|
|
20
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
|
|
2
|
+
import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export
|
|
4
|
+
export type DatePickerDateType = Dayjs | null | undefined;
|
|
5
|
+
type NonGenericMuiDatePickerProps = MuiDatePickerProps<DatePickerDateType>;
|
|
6
|
+
export type FormDatePickerProps = NonGenericMuiDatePickerProps & {
|
|
7
7
|
error?: boolean;
|
|
8
8
|
label?: string;
|
|
9
9
|
helperText?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
3
|
import type { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
import { DatePickerDateType, FormDatePickerProps } from '../FormDatePicker/FormDatePicker';
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type NonGenericMuiDatePickerProps = MuiDatePickerProps<DatePickerDateType>;
|
|
6
|
+
export type FormDateRangePickerProps = Omit<MUIGlobalOmit<NonGenericMuiDatePickerProps>, 'value' | 'onChange'> & {
|
|
7
7
|
start: DatePickerDateType;
|
|
8
8
|
onStartChange: (date: DatePickerDateType) => void;
|
|
9
9
|
end: DatePickerDateType;
|
|
@@ -19,5 +19,5 @@ export declare type FormDateRangePickerProps = Omit<MUIGlobalOmit<NonGenericMuiD
|
|
|
19
19
|
/**
|
|
20
20
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepicker--docs
|
|
21
21
|
*/
|
|
22
|
-
export declare const FormDateRangePicker: ({ start, onStartChange, end, onEndChange, label, minDate, maxDate, startPickerProps, endPickerProps, ...props }: FormDateRangePickerProps) => JSX.Element;
|
|
22
|
+
export declare const FormDateRangePicker: ({ start, onStartChange, end, onEndChange, label, minDate, maxDate, startPickerProps, endPickerProps, ...props }: FormDateRangePickerProps) => React.JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormBaseProps } from '@global/utils/types';
|
|
3
3
|
import { InputProps } from '../Input/Input';
|
|
4
|
-
export
|
|
4
|
+
export type FormInputProps = FormBaseProps & InputProps;
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const FormInput: React.ForwardRefExoticComponent<
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
component?: React.ElementType<any> | undefined;
|
|
11
|
-
ref?: React.Ref<unknown> | undefined;
|
|
12
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
8
|
+
export declare const FormInput: 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"> & {
|
|
14
9
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps |
|
|
10
|
+
}, 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"> & InputProps, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TextFieldProps, FormLabelBaseProps } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type FormLabelProps = {
|
|
4
4
|
label: TextFieldProps['label'];
|
|
5
5
|
required?: TextFieldProps['required'];
|
|
6
6
|
htmlFor: FormLabelBaseProps['htmlFor'];
|
|
7
7
|
};
|
|
8
|
-
export declare const FormLabel: ({ label, htmlFor, required }: FormLabelProps) => JSX.Element;
|
|
8
|
+
export declare const FormLabel: ({ label, htmlFor, required }: FormLabelProps) => React.JSX.Element;
|