@up42/up-components 2.13.0 → 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 +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/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/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 +148 -179
- package/package.json +14 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export { default as tokens } from '@up42/design-system-tokens/dist/json/tokens.json';
|
|
3
2
|
import * as _mui_material from '@mui/material';
|
|
4
3
|
import { BoxProps, TextFieldProps, AvatarProps as AvatarProps$1, GridProps, ContainerProps, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, SliderProps as SliderProps$1, LinkProps as LinkProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, CardProps, ModalProps, AlertProps as AlertProps$1, SxProps, Theme, IconButtonProps, SvgIconProps, BadgeProps as BadgeProps$1, ChipProps, DividerProps as DividerProps$1, SnackbarProps } from '@mui/material';
|
|
@@ -11,7 +10,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
|
|
|
11
10
|
import * as _mui_material_Typography from '@mui/material/Typography';
|
|
12
11
|
import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
|
|
13
12
|
import * as _mui_system from '@mui/system';
|
|
14
|
-
import { DatePickerProps } from '@mui/x-date-pickers';
|
|
13
|
+
import { DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
15
14
|
import dayjs, { Dayjs } from 'dayjs';
|
|
16
15
|
import { TableProps as TableProps$1 } from '@mui/material/Table';
|
|
17
16
|
import { TableBodyProps as TableBodyProps$1 } from '@mui/material/TableBody';
|
|
@@ -22,13 +21,16 @@ import { TableRowProps as TableRowProps$1 } from '@mui/material/TableRow';
|
|
|
22
21
|
import { TablePaginationProps as TablePaginationProps$1 } from '@mui/material/TablePagination';
|
|
23
22
|
import { TableSortLabelProps as TableSortLabelProps$1 } from '@mui/material/TableSortLabel';
|
|
24
23
|
import { TableFooterProps as TableFooterProps$1 } from '@mui/material/TableFooter';
|
|
25
|
-
import {
|
|
26
|
-
export { GridCell, GridColDef, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRenderCellParams, GridRow, GridRowCount, GridRowId, GridRowSelectionModel, GridSelectedRowCount, GridSortModel } from '@mui/x-data-grid';
|
|
24
|
+
import { DataGridPremiumProps } from '@mui/x-data-grid-premium';
|
|
25
|
+
export { GridCell, GridColDef, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRenderCellParams, GridRow, GridRowCount, GridRowId, GridRowSelectionModel, GridSelectedRowCount, GridSortModel } from '@mui/x-data-grid-premium';
|
|
27
26
|
|
|
27
|
+
interface UpComponentsProviderProps extends Omit<ThemeProviderProps, 'theme'> {
|
|
28
|
+
licenseKey: string;
|
|
29
|
+
}
|
|
28
30
|
/**
|
|
29
31
|
* Documentation: https://up-components.up42.com/?path=/docs/introduction--docs
|
|
30
32
|
*/
|
|
31
|
-
declare const UpComponentsProvider: (props:
|
|
33
|
+
declare const UpComponentsProvider: ({ licenseKey, ...props }: UpComponentsProviderProps) => React__default.JSX.Element;
|
|
32
34
|
|
|
33
35
|
declare const theme: _mui_material.Theme;
|
|
34
36
|
|
|
@@ -53,7 +55,7 @@ type MUIGlobalOmit<MuiProps, ComponentProps = unknown> = ComponentProps &
|
|
|
53
55
|
type FormBaseProps = BoxProps &
|
|
54
56
|
Pick<TextFieldProps, 'id' | 'label' | 'required' | 'error' | 'disabled' | 'focused' | 'helperText'>
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>, {
|
|
57
59
|
loading?: boolean;
|
|
58
60
|
size?: 'default' | 'slim';
|
|
59
61
|
color?: 'critical' | ButtonProps$1['color'];
|
|
@@ -76,39 +78,31 @@ declare type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>,
|
|
|
76
78
|
*
|
|
77
79
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
|
|
78
80
|
*/
|
|
79
|
-
declare const Button: React__default.ForwardRefExoticComponent<
|
|
81
|
+
declare const Button: React__default.ForwardRefExoticComponent<Omit<{
|
|
80
82
|
loading?: boolean | undefined;
|
|
81
83
|
size?: "default" | "slim" | undefined;
|
|
82
84
|
color?: 'critical' | ButtonProps$1['color'];
|
|
83
85
|
component?: ButtonProps$1['LinkComponent'];
|
|
84
86
|
to?: ButtonProps$1['href'];
|
|
85
|
-
} & Omit<Omit<ButtonProps$1<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "
|
|
87
|
+
} & Omit<Omit<ButtonProps$1<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
|
|
86
88
|
|
|
87
|
-
|
|
89
|
+
type TypographyProps = TypographyProps$1 & {
|
|
88
90
|
component?: React__default.ElementType;
|
|
89
91
|
variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
90
92
|
};
|
|
91
93
|
/**
|
|
92
94
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
|
|
93
95
|
*/
|
|
94
|
-
declare const Typography: React__default.ForwardRefExoticComponent<
|
|
95
|
-
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
96
|
-
children?: React__default.ReactNode;
|
|
97
|
-
classes?: Partial<_mui_material_Typography.TypographyClasses> | undefined;
|
|
98
|
-
gutterBottom?: boolean | undefined;
|
|
99
|
-
noWrap?: boolean | undefined;
|
|
100
|
-
paragraph?: boolean | undefined;
|
|
101
|
-
sx?: _mui_system.SxProps<_mui_material.Theme> | undefined;
|
|
102
|
-
variant?: "body" | "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "heading" | "note" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | "headingSmall" | "headingXSmall" | undefined;
|
|
103
|
-
variantMapping?: Partial<Record<"body" | "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "heading" | "note" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | "headingSmall" | "headingXSmall", string>> | undefined;
|
|
104
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React__default.HTMLAttributes<HTMLSpanElement>> & {
|
|
96
|
+
declare const Typography: React__default.ForwardRefExoticComponent<Omit<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
105
97
|
ref?: ((instance: HTMLSpanElement | null) => void) | React__default.RefObject<HTMLSpanElement> | null | undefined;
|
|
106
|
-
},
|
|
98
|
+
}, "className" | "style" | "classes" | "children" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "align" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
|
99
|
+
component?: React__default.ElementType<any> | undefined;
|
|
100
|
+
} & {
|
|
107
101
|
component?: React__default.ElementType<any> | undefined;
|
|
108
102
|
variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
|
|
109
|
-
},
|
|
103
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
110
104
|
|
|
111
|
-
|
|
105
|
+
type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt' | 'imgProps' | 'sizes' | 'src' | 'srcSet' | 'variant'>, {
|
|
112
106
|
firstName?: string;
|
|
113
107
|
lastName?: string;
|
|
114
108
|
icon?: React__default.ReactNode;
|
|
@@ -116,18 +110,18 @@ declare type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt'
|
|
|
116
110
|
/**
|
|
117
111
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-avatar--docs
|
|
118
112
|
*/
|
|
119
|
-
declare const Avatar: React__default.ForwardRefExoticComponent<
|
|
113
|
+
declare const Avatar: React__default.ForwardRefExoticComponent<Omit<{
|
|
120
114
|
firstName?: string | undefined;
|
|
121
115
|
lastName?: string | undefined;
|
|
122
116
|
icon?: React__default.ReactNode;
|
|
123
|
-
} & Omit<Omit<AvatarProps$1<"div", {}>, "children" | "
|
|
117
|
+
} & Omit<Omit<AvatarProps$1<"div", {}>, "children" | "alt" | "src" | "sizes" | "srcSet" | "variant" | "imgProps">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
|
|
124
118
|
|
|
125
|
-
|
|
119
|
+
type GridContainerProps = Omit<GridProps, 'container' | 'item' | 'xs' | 'columnSpacing'>;
|
|
126
120
|
/**
|
|
127
121
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
128
122
|
*/
|
|
129
|
-
declare const GridContainer: ({ children, ...props }: GridContainerProps) => JSX.Element;
|
|
130
|
-
|
|
123
|
+
declare const GridContainer: ({ children, ...props }: GridContainerProps) => React__default.JSX.Element;
|
|
124
|
+
type GridItemProps = GridContainerProps & {
|
|
131
125
|
/**
|
|
132
126
|
* `span` prop is used to set the column span.
|
|
133
127
|
*/
|
|
@@ -136,9 +130,9 @@ declare type GridItemProps = GridContainerProps & {
|
|
|
136
130
|
/**
|
|
137
131
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-grid--docs
|
|
138
132
|
*/
|
|
139
|
-
declare const GridItem: ({ children, span, ...props }: GridItemProps) => JSX.Element;
|
|
133
|
+
declare const GridItem: ({ children, span, ...props }: GridItemProps) => React__default.JSX.Element;
|
|
140
134
|
|
|
141
|
-
|
|
135
|
+
type PageContainerProps = Omit<ContainerProps, 'fixed' | 'maxWidth'> & {
|
|
142
136
|
/**
|
|
143
137
|
* The number of `columns` to use in the grid system
|
|
144
138
|
*/
|
|
@@ -151,15 +145,15 @@ declare type PageContainerProps = Omit<ContainerProps, 'fixed' | 'maxWidth'> & {
|
|
|
151
145
|
/**
|
|
152
146
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-pagecontainer--docs
|
|
153
147
|
*/
|
|
154
|
-
declare const PageContainer: ({ children, fluid, columns, ...props }: PageContainerProps) => JSX.Element;
|
|
148
|
+
declare const PageContainer: ({ children, fluid, columns, ...props }: PageContainerProps) => React__default.JSX.Element;
|
|
155
149
|
|
|
156
|
-
|
|
150
|
+
type CheckboxProps = MUIGlobalOmit<CheckboxProps$1>;
|
|
157
151
|
/**
|
|
158
152
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-checkbox--docs
|
|
159
153
|
*/
|
|
160
|
-
declare const Checkbox: ({ ...props }: CheckboxProps) => JSX.Element;
|
|
154
|
+
declare const Checkbox: ({ ...props }: CheckboxProps) => React__default.JSX.Element;
|
|
161
155
|
|
|
162
|
-
|
|
156
|
+
type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
163
157
|
data: {
|
|
164
158
|
value: string | number;
|
|
165
159
|
label?: React__default.ReactNode;
|
|
@@ -168,23 +162,18 @@ declare type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
|
168
162
|
/**
|
|
169
163
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
170
164
|
*/
|
|
171
|
-
declare const FormCheckbox: React__default.ForwardRefExoticComponent<
|
|
172
|
-
children?: React__default.ReactNode;
|
|
173
|
-
component?: React__default.ElementType<any> | undefined;
|
|
174
|
-
ref?: React__default.Ref<unknown> | undefined;
|
|
175
|
-
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
176
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
165
|
+
declare const FormCheckbox: React__default.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
177
166
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
178
|
-
}, keyof _mui_material_OverridableComponent.CommonProps |
|
|
167
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.CheckboxProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
179
168
|
data: {
|
|
180
169
|
value: string | number;
|
|
181
170
|
label?: React__default.ReactNode;
|
|
182
171
|
}[];
|
|
183
|
-
},
|
|
172
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
184
173
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
174
|
+
type DatePickerDateType = Dayjs | null | undefined;
|
|
175
|
+
type NonGenericMuiDatePickerProps$1 = DatePickerProps<DatePickerDateType>;
|
|
176
|
+
type FormDatePickerProps = NonGenericMuiDatePickerProps$1 & {
|
|
188
177
|
error?: boolean;
|
|
189
178
|
label?: string;
|
|
190
179
|
helperText?: string;
|
|
@@ -195,8 +184,8 @@ declare const FormDatePicker: React__default.ForwardRefExoticComponent<NonGeneri
|
|
|
195
184
|
helperText?: string | undefined;
|
|
196
185
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
197
186
|
|
|
198
|
-
|
|
199
|
-
|
|
187
|
+
type NonGenericMuiDatePickerProps = DatePickerProps<DatePickerDateType>;
|
|
188
|
+
type FormDateRangePickerProps = Omit<MUIGlobalOmit<NonGenericMuiDatePickerProps>, 'value' | 'onChange'> & {
|
|
200
189
|
start: DatePickerDateType;
|
|
201
190
|
onStartChange: (date: DatePickerDateType) => void;
|
|
202
191
|
end: DatePickerDateType;
|
|
@@ -212,15 +201,15 @@ declare type FormDateRangePickerProps = Omit<MUIGlobalOmit<NonGenericMuiDatePick
|
|
|
212
201
|
/**
|
|
213
202
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepicker--docs
|
|
214
203
|
*/
|
|
215
|
-
declare const FormDateRangePicker: ({ start, onStartChange, end, onEndChange, label, minDate, maxDate, startPickerProps, endPickerProps, ...props }: FormDateRangePickerProps) => JSX.Element;
|
|
204
|
+
declare const FormDateRangePicker: ({ start, onStartChange, end, onEndChange, label, minDate, maxDate, startPickerProps, endPickerProps, ...props }: FormDateRangePickerProps) => React__default.JSX.Element;
|
|
216
205
|
|
|
217
|
-
|
|
206
|
+
type RadioProps = MUIGlobalOmit<RadioProps$1>;
|
|
218
207
|
/**
|
|
219
208
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-radio--docs
|
|
220
209
|
*/
|
|
221
|
-
declare const Radio: (props: RadioProps) => JSX.Element;
|
|
210
|
+
declare const Radio: (props: RadioProps) => React__default.JSX.Element;
|
|
222
211
|
|
|
223
|
-
|
|
212
|
+
type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
224
213
|
inputRef?: RadioProps['inputRef'];
|
|
225
214
|
data: {
|
|
226
215
|
value: string | number;
|
|
@@ -231,46 +220,36 @@ declare type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
|
231
220
|
/**
|
|
232
221
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
233
222
|
*/
|
|
234
|
-
declare const FormRadio: React__default.ForwardRefExoticComponent<
|
|
235
|
-
children?: React__default.ReactNode;
|
|
236
|
-
component?: React__default.ElementType<any> | undefined;
|
|
237
|
-
ref?: React__default.Ref<unknown> | undefined;
|
|
238
|
-
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
239
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
223
|
+
declare const FormRadio: React__default.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
240
224
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
241
|
-
}, keyof _mui_material_OverridableComponent.CommonProps |
|
|
225
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & RadioGroupProps & {
|
|
242
226
|
inputRef?: RadioProps['inputRef'];
|
|
243
227
|
data: {
|
|
244
228
|
value: string | number;
|
|
245
229
|
label?: string;
|
|
246
230
|
message?: string;
|
|
247
231
|
}[];
|
|
248
|
-
}, "
|
|
232
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
249
233
|
|
|
250
|
-
|
|
234
|
+
type SwitchProps = MUIGlobalOmit<SwitchProps$1>;
|
|
251
235
|
/**
|
|
252
236
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-switch--docs
|
|
253
237
|
*/
|
|
254
|
-
declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
238
|
+
declare const Switch: (props: SwitchProps) => React__default.JSX.Element;
|
|
255
239
|
|
|
256
|
-
|
|
240
|
+
type FormSwitchProps = FormBaseProps & SwitchProps & {
|
|
257
241
|
formControlLabel?: string;
|
|
258
242
|
};
|
|
259
243
|
/**
|
|
260
244
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
261
245
|
*/
|
|
262
|
-
declare const FormSwitch: React__default.ForwardRefExoticComponent<
|
|
263
|
-
children?: React__default.ReactNode;
|
|
264
|
-
component?: React__default.ElementType<any> | undefined;
|
|
265
|
-
ref?: React__default.Ref<unknown> | undefined;
|
|
266
|
-
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
267
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
246
|
+
declare const FormSwitch: React__default.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
268
247
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
269
|
-
}, keyof _mui_material_OverridableComponent.CommonProps |
|
|
248
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.SwitchProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
270
249
|
formControlLabel?: string | undefined;
|
|
271
|
-
},
|
|
250
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
272
251
|
|
|
273
|
-
|
|
252
|
+
type SelectProps<T extends unknown> = FormBaseProps & Omit<SelectProps$1<T>, 'variant'> & {
|
|
274
253
|
/**
|
|
275
254
|
* Determines whether to display a border around the select component.
|
|
276
255
|
* @default true
|
|
@@ -280,57 +259,47 @@ declare type SelectProps<T extends unknown> = FormBaseProps & Omit<SelectProps$1
|
|
|
280
259
|
/**
|
|
281
260
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-select--docs
|
|
282
261
|
*/
|
|
283
|
-
declare const Select: <T extends unknown>({ withBorder, size, ...props }: SelectProps<T>) => JSX.Element;
|
|
262
|
+
declare const Select: <T extends unknown>({ withBorder, size, ...props }: SelectProps<T>) => React__default.JSX.Element;
|
|
284
263
|
|
|
285
|
-
|
|
264
|
+
type Option = {
|
|
286
265
|
value: string | number;
|
|
287
266
|
label: string | ReactNode;
|
|
288
267
|
};
|
|
289
|
-
|
|
268
|
+
type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
290
269
|
options: Option[];
|
|
291
270
|
};
|
|
292
271
|
/**
|
|
293
272
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
294
273
|
*/
|
|
295
|
-
declare const FormSelect: React__default.ForwardRefExoticComponent<
|
|
296
|
-
children?: React__default.ReactNode;
|
|
297
|
-
component?: React__default.ElementType<any> | undefined;
|
|
298
|
-
ref?: React__default.Ref<unknown> | undefined;
|
|
299
|
-
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
300
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
274
|
+
declare const FormSelect: React__default.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
301
275
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
302
|
-
}, keyof _mui_material_OverridableComponent.CommonProps |
|
|
276
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<_mui_material.SelectProps<string | number>, "variant"> & {
|
|
303
277
|
withBorder?: boolean | undefined;
|
|
304
278
|
} & {
|
|
305
279
|
options: Option[];
|
|
306
|
-
},
|
|
280
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
307
281
|
|
|
308
|
-
|
|
282
|
+
type InputProps = Omit<TextFieldProps, 'maxRows' | 'minRows' | 'multiline' | 'rows' | 'size' | 'variant'>;
|
|
309
283
|
/**
|
|
310
284
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-input--docs
|
|
311
285
|
*/
|
|
312
|
-
declare const Input: ({ type, ...props }: InputProps) => JSX.Element;
|
|
286
|
+
declare const Input: ({ type, ...props }: InputProps) => React__default.JSX.Element;
|
|
313
287
|
|
|
314
|
-
|
|
288
|
+
type FormInputProps = FormBaseProps & InputProps;
|
|
315
289
|
/**
|
|
316
290
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
317
291
|
*/
|
|
318
|
-
declare const FormInput: React__default.ForwardRefExoticComponent<
|
|
319
|
-
children?: React__default.ReactNode;
|
|
320
|
-
component?: React__default.ElementType<any> | undefined;
|
|
321
|
-
ref?: React__default.Ref<unknown> | undefined;
|
|
322
|
-
sx?: _mui_material.SxProps<_mui_material.Theme> | undefined;
|
|
323
|
-
} & _mui_material_OverridableComponent.CommonProps & Omit<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
292
|
+
declare const FormInput: React__default.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
324
293
|
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
325
|
-
}, keyof _mui_material_OverridableComponent.CommonProps |
|
|
294
|
+
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & Pick<_mui_material.StandardTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & InputProps, "ref"> & React__default.RefAttributes<unknown>>;
|
|
326
295
|
|
|
327
|
-
|
|
296
|
+
type SliderProps = MUIGlobalOmit<Omit<SliderProps$1, 'variant' | 'label'>>;
|
|
328
297
|
/**
|
|
329
298
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-slider--default--docs
|
|
330
299
|
*/
|
|
331
|
-
declare const Slider: (props: SliderProps) => JSX.Element;
|
|
300
|
+
declare const Slider: (props: SliderProps) => React__default.JSX.Element;
|
|
332
301
|
|
|
333
|
-
|
|
302
|
+
type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
|
|
334
303
|
component?: C;
|
|
335
304
|
}> & {
|
|
336
305
|
/**
|
|
@@ -358,22 +327,22 @@ declare type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
|
|
|
358
327
|
*
|
|
359
328
|
* Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
|
|
360
329
|
*/
|
|
361
|
-
declare const Link: <C extends React__default.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => JSX.Element;
|
|
330
|
+
declare const Link: <C extends React__default.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React__default.JSX.Element;
|
|
362
331
|
|
|
363
|
-
|
|
364
|
-
|
|
332
|
+
type TabsProps = MUIGlobalOmit<TabsProps$1>;
|
|
333
|
+
type TabProps = MUIGlobalOmit<TabProps$1>;
|
|
365
334
|
/**
|
|
366
335
|
* Documentation: https://up-components.up42.com/?path=/docs/navigation-tabs--docs
|
|
367
336
|
*/
|
|
368
|
-
declare const Tabs: ({ children, ...props }: TabsProps) => JSX.Element;
|
|
369
|
-
declare const Tab: ({ children, ...props }: TabProps) => JSX.Element;
|
|
337
|
+
declare const Tabs: ({ children, ...props }: TabsProps) => React__default.JSX.Element;
|
|
338
|
+
declare const Tab: ({ children, ...props }: TabProps) => React__default.JSX.Element;
|
|
370
339
|
|
|
371
|
-
|
|
340
|
+
type TabDataType = {
|
|
372
341
|
label: string | ReactNode;
|
|
373
342
|
content: string | ReactNode;
|
|
374
343
|
hidden?: boolean;
|
|
375
344
|
};
|
|
376
|
-
|
|
345
|
+
type TabGroupProps = {
|
|
377
346
|
tabs: TabDataType[];
|
|
378
347
|
tabContentProps?: BoxProps;
|
|
379
348
|
tabsProps?: TabsProps;
|
|
@@ -393,9 +362,9 @@ declare type TabGroupProps = {
|
|
|
393
362
|
/**
|
|
394
363
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-tabgroup--docs
|
|
395
364
|
*/
|
|
396
|
-
declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => JSX.Element;
|
|
365
|
+
declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue, onChange, }: TabGroupProps) => React__default.JSX.Element;
|
|
397
366
|
|
|
398
|
-
|
|
367
|
+
type EmptyStateProps = MUIGlobalOmit<Omit<BoxProps, 'component'>, {
|
|
399
368
|
/**
|
|
400
369
|
* Helpful message that conveys the purpose of the screen and the next action to populate the space
|
|
401
370
|
*/
|
|
@@ -416,9 +385,9 @@ declare type EmptyStateProps = MUIGlobalOmit<Omit<BoxProps, 'component'>, {
|
|
|
416
385
|
/**
|
|
417
386
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-emptystate--docs
|
|
418
387
|
*/
|
|
419
|
-
declare const EmptyState: ({ icon: CustomIcon, title, subTitle, action, sx, ...props }: EmptyStateProps) => JSX.Element;
|
|
388
|
+
declare const EmptyState: ({ icon: CustomIcon, title, subTitle, action, sx, ...props }: EmptyStateProps) => React__default.JSX.Element;
|
|
420
389
|
|
|
421
|
-
|
|
390
|
+
type InfoCardProps = {
|
|
422
391
|
title: string;
|
|
423
392
|
subtitle?: string;
|
|
424
393
|
/**
|
|
@@ -441,7 +410,7 @@ declare type InfoCardProps = {
|
|
|
441
410
|
/**
|
|
442
411
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-infocard--docs
|
|
443
412
|
*/
|
|
444
|
-
declare const InfoCard: React__default.ForwardRefExoticComponent<
|
|
413
|
+
declare const InfoCard: React__default.ForwardRefExoticComponent<Omit<{
|
|
445
414
|
title: string;
|
|
446
415
|
subtitle?: string | undefined;
|
|
447
416
|
/**
|
|
@@ -460,9 +429,9 @@ declare const InfoCard: React__default.ForwardRefExoticComponent<Pick<{
|
|
|
460
429
|
* Choose whether to hide divider or not.
|
|
461
430
|
*/
|
|
462
431
|
hideDivider?: boolean | undefined;
|
|
463
|
-
} & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">,
|
|
432
|
+
} & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">, "ref"> & React__default.RefAttributes<unknown>>;
|
|
464
433
|
|
|
465
|
-
|
|
434
|
+
type InfoModalProps = MUIGlobalOmit<Omit<ModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
|
|
466
435
|
/**
|
|
467
436
|
* Maximum width of the modal, in pixels.
|
|
468
437
|
*/
|
|
@@ -471,20 +440,20 @@ declare type InfoModalProps = MUIGlobalOmit<Omit<ModalProps, 'BackdropProps' | '
|
|
|
471
440
|
/**
|
|
472
441
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-infomodal--docs
|
|
473
442
|
*/
|
|
474
|
-
declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => JSX.Element;
|
|
443
|
+
declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => React__default.JSX.Element;
|
|
475
444
|
|
|
476
|
-
|
|
477
|
-
|
|
445
|
+
type AlertColor = 'info' | 'error' | 'success' | 'warning';
|
|
446
|
+
type AlertProps = Omit<AlertProps$1, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
|
|
478
447
|
type?: AlertColor;
|
|
479
448
|
};
|
|
480
449
|
/**
|
|
481
450
|
* Documentation: https://up-components.up42.com/?path=/docs/feedback-alert--docs
|
|
482
451
|
*/
|
|
483
|
-
declare const Alert: React__default.ForwardRefExoticComponent<
|
|
452
|
+
declare const Alert: React__default.ForwardRefExoticComponent<Omit<Omit<AlertProps$1, "color" | "elevation" | "action" | "square" | "iconMapping" | "severity" | "variant"> & {
|
|
484
453
|
type?: AlertColor | undefined;
|
|
485
|
-
}, "
|
|
454
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
486
455
|
|
|
487
|
-
|
|
456
|
+
type BannerProps = {
|
|
488
457
|
/**
|
|
489
458
|
* Call To Action label
|
|
490
459
|
* */
|
|
@@ -510,7 +479,7 @@ declare type BannerProps = {
|
|
|
510
479
|
/**
|
|
511
480
|
* Documentation: https://up-components.up42.com/?path=/docs/feedback-banner--docs
|
|
512
481
|
*/
|
|
513
|
-
declare const Banner: React__default.ForwardRefExoticComponent<
|
|
482
|
+
declare const Banner: React__default.ForwardRefExoticComponent<Omit<{
|
|
514
483
|
/**
|
|
515
484
|
* Call To Action label
|
|
516
485
|
* */
|
|
@@ -532,9 +501,9 @@ declare const Banner: React__default.ForwardRefExoticComponent<Pick<{
|
|
|
532
501
|
*/
|
|
533
502
|
onDismiss?: ButtonProps['onClick'];
|
|
534
503
|
title: string;
|
|
535
|
-
} & Omit<AlertProps, "title" | "role" | "
|
|
504
|
+
} & Omit<AlertProps, "title" | "role" | "onClose" | "closeText" | "icon">, "ref"> & React__default.RefAttributes<unknown>>;
|
|
536
505
|
|
|
537
|
-
|
|
506
|
+
type ContactBoxProps = {
|
|
538
507
|
customIcon?: React__default.ReactNode;
|
|
539
508
|
text?: string;
|
|
540
509
|
actions: React__default.ReactNode;
|
|
@@ -544,9 +513,9 @@ declare type ContactBoxProps = {
|
|
|
544
513
|
/**
|
|
545
514
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-contactbox--docs
|
|
546
515
|
*/
|
|
547
|
-
declare const ContactBox: ({ customIcon, text, actions, size, sx }: ContactBoxProps) => JSX.Element;
|
|
516
|
+
declare const ContactBox: ({ customIcon, text, actions, size, sx }: ContactBoxProps) => React__default.JSX.Element;
|
|
548
517
|
|
|
549
|
-
|
|
518
|
+
type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
|
|
550
519
|
size?: 'medium' | 'small';
|
|
551
520
|
/**
|
|
552
521
|
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
@@ -556,13 +525,13 @@ declare type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
|
|
|
556
525
|
/**
|
|
557
526
|
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-controlbutton--docs
|
|
558
527
|
*/
|
|
559
|
-
declare const ControlButton: React__default.ForwardRefExoticComponent<
|
|
528
|
+
declare const ControlButton: React__default.ForwardRefExoticComponent<Omit<{
|
|
560
529
|
size?: "small" | "medium" | undefined;
|
|
561
530
|
/**
|
|
562
531
|
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
563
532
|
*/
|
|
564
533
|
removePadding?: boolean | undefined;
|
|
565
|
-
} & Omit<IconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "
|
|
534
|
+
} & Omit<IconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
|
|
566
535
|
|
|
567
536
|
interface CopyButtonProps {
|
|
568
537
|
data: string;
|
|
@@ -573,17 +542,17 @@ interface CopyButtonProps {
|
|
|
573
542
|
/**
|
|
574
543
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-copybutton--docs
|
|
575
544
|
*/
|
|
576
|
-
declare const CopyButton: ({ data, tooltip, sx, onCopy }: CopyButtonProps) => JSX.Element;
|
|
545
|
+
declare const CopyButton: ({ data, tooltip, sx, onCopy }: CopyButtonProps) => React__default.JSX.Element;
|
|
577
546
|
|
|
578
|
-
|
|
547
|
+
type InfoPopoverProps = InfoCardProps & {
|
|
579
548
|
icon?: React__default.ElementType;
|
|
580
549
|
};
|
|
581
550
|
/**
|
|
582
551
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-popovers-infopopover--docs
|
|
583
552
|
*/
|
|
584
|
-
declare const InfoPopover: ({ id, icon: CustomIcon, actions, title, children, sx, ...props }: InfoPopoverProps) => JSX.Element;
|
|
553
|
+
declare const InfoPopover: ({ id, icon: CustomIcon, actions, title, children, sx, ...props }: InfoPopoverProps) => React__default.JSX.Element;
|
|
585
554
|
|
|
586
|
-
|
|
555
|
+
type PageHeaderProps = {
|
|
587
556
|
title: string;
|
|
588
557
|
divider?: boolean;
|
|
589
558
|
description?: React__default.ReactNode;
|
|
@@ -603,9 +572,9 @@ declare type PageHeaderProps = {
|
|
|
603
572
|
/**
|
|
604
573
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-pageheader--docs
|
|
605
574
|
*/
|
|
606
|
-
declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => JSX.Element;
|
|
575
|
+
declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => React__default.JSX.Element;
|
|
607
576
|
|
|
608
|
-
|
|
577
|
+
type NotFoundProps = {
|
|
609
578
|
/**
|
|
610
579
|
* The label of the CTA button
|
|
611
580
|
*/
|
|
@@ -618,9 +587,9 @@ declare type NotFoundProps = {
|
|
|
618
587
|
/**
|
|
619
588
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-notfound--docs
|
|
620
589
|
*/
|
|
621
|
-
declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => JSX.Element;
|
|
590
|
+
declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => React__default.JSX.Element;
|
|
622
591
|
|
|
623
|
-
|
|
592
|
+
type LoadingProps = {
|
|
624
593
|
/**
|
|
625
594
|
* Controls the `height` of the component. Defaults to `100vh`
|
|
626
595
|
*/
|
|
@@ -633,7 +602,7 @@ declare type LoadingProps = {
|
|
|
633
602
|
/**
|
|
634
603
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-loading--docs
|
|
635
604
|
*/
|
|
636
|
-
declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => JSX.Element | null;
|
|
605
|
+
declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => React__default.JSX.Element | null;
|
|
637
606
|
|
|
638
607
|
var _path$1e;
|
|
639
608
|
function _extends$36() { return _extends$36 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$36.apply(null, arguments); }
|
|
@@ -4463,14 +4432,14 @@ declare namespace icons {
|
|
|
4463
4432
|
export { SvgAccessTime as AccessTime, SvgAdd as Add, SvgAddCircleFilled as AddCircleFilled, SvgAddPlusCircle as AddPlusCircle, SvgAlarmBell as AlarmBell, SvgAlertCircleFilled as AlertCircleFilled, SvgAlertTriangle as AlertTriangle, SvgAngle as Angle, SvgAppWindowCode as AppWindowCode, SvgArrowBack as ArrowBack, SvgArrowBackIos as ArrowBackIos, SvgArrowDownLeft as ArrowDownLeft, SvgArrowDownRight as ArrowDownRight, SvgArrowDownward as ArrowDownward, SvgArrowForward as ArrowForward, SvgArrowTopLeft as ArrowTopLeft, SvgArrowTopRight as ArrowTopRight, SvgArrowUpward as ArrowUpward, SvgAttachment as Attachment, SvgAutoStoriesOutlined as AutoStoriesOutlined, SvgBalance as Balance, SvgBin as Bin, SvgBlock as Block, SvgBlocked as Blocked, SvgBoxes as Boxes, SvgBoxesGrid as BoxesGrid, SvgBrightness1 as Brightness1, SvgCalendar as Calendar, SvgCalendarAdd as CalendarAdd, SvgCalendarCheck as CalendarCheck, SvgCalendarDate as CalendarDate, SvgCalendarEdit as CalendarEdit, SvgCalendarRemove as CalendarRemove, SvgCalendarSearchDate as CalendarSearchDate, SvgCampaignOutlined as CampaignOutlined, SvgCaretCircleFilledDown as CaretCircleFilledDown, SvgCaretCircleFilledLeft as CaretCircleFilledLeft, SvgCaretCircleFilledRight as CaretCircleFilledRight, SvgCaretCircleFilledUp as CaretCircleFilledUp, SvgCatalog as Catalog, SvgCheckCircleFilled as CheckCircleFilled, SvgCheckList as CheckList, SvgCheckMark as CheckMark, SvgChevronCircleFilledDown as ChevronCircleFilledDown, SvgChevronCircleFilledLeft as ChevronCircleFilledLeft, SvgChevronCircleFilledRight as ChevronCircleFilledRight, SvgChevronCircleFilledUp as ChevronCircleFilledUp, SvgClose as Close, SvgCloseCircle as CloseCircle, SvgCloseCircleFilled as CloseCircleFilled, SvgCloud as Cloud, SvgCloudCheck as CloudCheck, SvgCloudDownload as CloudDownload, SvgCloudOff as CloudOff, SvgCloudRemove as CloudRemove, SvgCloudSearch as CloudSearch, SvgCloudSync as CloudSync, SvgCloudUpload as CloudUpload, SvgCloudWarning as CloudWarning, SvgCoin as Coin, SvgCoinEuro as CoinEuro, SvgCompass as Compass, SvgContactSupportOutlined as ContactSupportOutlined, SvgContentCut as ContentCut, SvgContentPaste as ContentPaste, SvgCopy as Copy, SvgCredit as Credit, SvgDashboard as Dashboard, SvgDataTransferVertical as DataTransferVertical, SvgDollarCoinCircleFilled as DollarCoinCircleFilled, SvgDottedLines as DottedLines, SvgDownload as Download, SvgDownloadCircle as DownloadCircle, SvgEditPencil as EditPencil, SvgEuroCoinCircleFilled as EuroCoinCircleFilled, SvgExitLeaveBack as ExitLeaveBack, SvgExternalLink as ExternalLink, SvgEyeCircleFilled as EyeCircleFilled, SvgFlagQuestion as FlagQuestion, SvgFolderEmpty as FolderEmpty, SvgFootprint as Footprint, SvgHeadphonesQuestion as HeadphonesQuestion, SvgHeart as Heart, SvgHeartCircleFilled as HeartCircleFilled, SvgHyperlink as Hyperlink, SvgImageResolution as ImageResolution, SvgInvoice as Invoice, SvgKeyboardArrowDown as KeyboardArrowDown, SvgKeyboardArrowLeft as KeyboardArrowLeft, SvgKeyboardArrowRight as KeyboardArrowRight, SvgKeyboardArrowUp as KeyboardArrowUp, SvgLayers as Layers, SvgLibrary as Library, SvgLightbulb as Lightbulb, SvgLightbulbOutlined as LightbulbOutlined, SvgLocalOfferOutlined as LocalOfferOutlined, SvgLock as Lock, SvgLockCircleFilled as LockCircleFilled, SvgLockShield as LockShield, SvgLogo as Logo, SvgMap as Map, SvgMapPin as MapPin, SvgMapSearch as MapSearch, SvgMarketplace as Marketplace, SvgMenuCircleFilledHorizontal as MenuCircleFilledHorizontal, SvgMenuCircleFilledVertical as MenuCircleFilledVertical, SvgMenuOpenHorizontal as MenuOpenHorizontal, SvgMenuOpenVertical as MenuOpenVertical, SvgMinusCircleFilled as MinusCircleFilled, SvgModule as Module, SvgModule2 as Module2, SvgModuleThree as ModuleThree, SvgMoreHoriz as MoreHoriz, SvgMultipleUsers as MultipleUsers, SvgNotificationError as NotificationError, SvgNotificationInfo as NotificationInfo, SvgNotificationSuccess as NotificationSuccess, SvgNotificationWarning as NotificationWarning, SvgPenCircleFilled as PenCircleFilled, SvgPencil as Pencil, SvgPercentCircle as PercentCircle, SvgPerson as Person, SvgPin as Pin, SvgPolygon as Polygon, SvgProjects as Projects, SvgQuestionBubble as QuestionBubble, SvgQuestionCircle as QuestionCircle, SvgQuestionCircleFilled as QuestionCircleFilled, SvgQuestionMark as QuestionMark, SvgRectangle as Rectangle, SvgRectangleAoi as RectangleAOI, SvgRedo as Redo, SvgRemove as Remove, SvgResolution as Resolution, SvgSatellite$1 as Satellite, SvgSave as Save, SvgScissors as Scissors, SvgSearch as Search, SvgServerCheck as ServerCheck, SvgServerDeny as ServerDeny, SvgServerDownload as ServerDownload, SvgServerEdit as ServerEdit, SvgServerError as ServerError, SvgServerLock as ServerLock, SvgServerMinus as ServerMinus, SvgServerQuestion as ServerQuestion, SvgServerRefresh as ServerRefresh, SvgServerSearch as ServerSearch, SvgServerSync as ServerSync, SvgServerUpload as ServerUpload, SvgServerWarning as ServerWarning, SvgSettingsCog as SettingsCog, SvgSettingsCog2 as SettingsCog2, SvgSettingsSliderHorizontal as SettingsSliderHorizontal, SvgSettingsVertical as SettingsVertical, SvgShare as Share, SvgShareNetwork as ShareNetwork, SvgShield as Shield, SvgShieldWithLock as ShieldWithLock, SvgShoppingCartCheck as ShoppingCartCheck, SvgShoppingCartClose as ShoppingCartClose, SvgShoppingCartMinus as ShoppingCartMinus, SvgShoppingCartOutlined as ShoppingCartOutlined, SvgShoppingCartPlus as ShoppingCartPlus, SvgStorage as Storage, SvgSupport as Support, SvgSupportClear as SupportClear, SvgSupportHeadphones as SupportHeadphones, SvgSystem as System, SvgTag as Tag, SvgTagAlert as TagAlert, SvgTagCheck as TagCheck, SvgTagDouble as TagDouble, SvgTagEdit as TagEdit, SvgTagMinus as TagMinus, SvgTagPlus as TagPlus, SvgTagSearch as TagSearch, SvgTagX as TagX, SvgTarget as Target, SvgTransaction as Transaction, SvgTrashBin as TrashBin, SvgUndo as Undo, SvgUnlock as Unlock, SvgUpgradeShield as UpgradeShield, SvgUpload as Upload, SvgUploadCircle as UploadCircle, SvgUser as User, SvgVisibilityOffOutlined as VisibilityOffOutlined, SvgVisibilityOutlined as VisibilityOutlined, SvgWeatherCloud as WeatherCloud, SvgWebhooks as Webhooks, SvgWorkflow as Workflow, SvgWorkflowPencil as WorkflowPencil, SvgZoomIn as ZoomIn, SvgZoomOut as ZoomOut };
|
|
4464
4433
|
}
|
|
4465
4434
|
|
|
4466
|
-
|
|
4435
|
+
type IconProps = {
|
|
4467
4436
|
name: keyof typeof icons;
|
|
4468
4437
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox'>;
|
|
4469
4438
|
/**
|
|
4470
4439
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-icon--docs
|
|
4471
4440
|
* Icons: https://up-components.up42.com/?path=/docs/icons--docs
|
|
4472
4441
|
*/
|
|
4473
|
-
declare const Icon: ({ name, ...props }: IconProps) => JSX.Element;
|
|
4442
|
+
declare const Icon: ({ name, ...props }: IconProps) => React__default.JSX.Element;
|
|
4474
4443
|
|
|
4475
4444
|
var _path$3, _path2$3, _path3$3, _path4$3, _path5$3, _path6$3, _path7$3, _path8$3, _circle, _path9$2, _path10$2;
|
|
4476
4445
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -4757,7 +4726,7 @@ declare namespace illustrations {
|
|
|
4757
4726
|
export { SvgEmailCheck as EmailCheck, SvgFloppyDisk as FloppyDisk, SvgRocketFixing as RocketFixing, SvgSatellite as Satellite };
|
|
4758
4727
|
}
|
|
4759
4728
|
|
|
4760
|
-
|
|
4729
|
+
type IllustrationProps = {
|
|
4761
4730
|
name: keyof typeof illustrations;
|
|
4762
4731
|
size?: SvgIconProps['width'];
|
|
4763
4732
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox' | 'fontSize'>;
|
|
@@ -4765,21 +4734,21 @@ declare type IllustrationProps = {
|
|
|
4765
4734
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-illustrations--docs
|
|
4766
4735
|
* Illustrations: https://up-components.up42.com/?path=/docs/illustrations--docs
|
|
4767
4736
|
*/
|
|
4768
|
-
declare function Illustration({ name, size, sx, ...props }: IllustrationProps): JSX.Element;
|
|
4737
|
+
declare function Illustration({ name, size, sx, ...props }: IllustrationProps): React__default.JSX.Element;
|
|
4769
4738
|
|
|
4770
|
-
|
|
4739
|
+
type BadgeProps = MUIGlobalOmit<BadgeProps$1>;
|
|
4771
4740
|
/**
|
|
4772
4741
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-badge--docs
|
|
4773
4742
|
*/
|
|
4774
|
-
declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
|
|
4743
|
+
declare const Badge: ({ children, color, ...props }: BadgeProps) => React__default.JSX.Element;
|
|
4775
4744
|
|
|
4776
|
-
|
|
4745
|
+
type TagProps = MUIGlobalOmit<Omit<ChipProps, 'size' | 'avatar'>>;
|
|
4777
4746
|
/**
|
|
4778
4747
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-tag--docs
|
|
4779
4748
|
*/
|
|
4780
|
-
declare const Tag: ({ color, ...props }: TagProps) => JSX.Element;
|
|
4749
|
+
declare const Tag: ({ color, ...props }: TagProps) => React__default.JSX.Element;
|
|
4781
4750
|
|
|
4782
|
-
|
|
4751
|
+
type FormatDateOptions = {
|
|
4783
4752
|
/**
|
|
4784
4753
|
* For more formats see here: https://day.js.org/docs/en/display/format#docsNav
|
|
4785
4754
|
*/
|
|
@@ -4787,15 +4756,15 @@ declare type FormatDateOptions = {
|
|
|
4787
4756
|
fromNow?: boolean;
|
|
4788
4757
|
utc?: boolean;
|
|
4789
4758
|
};
|
|
4790
|
-
|
|
4759
|
+
type DateType = dayjs.ConfigType;
|
|
4791
4760
|
/**
|
|
4792
4761
|
* Returns formatted date string. The format will depend on the option passed in the second argument.
|
|
4793
4762
|
*
|
|
4794
4763
|
* Documentation: https://up-components.up42.com/?path=/docs/utils--docs#formatnumber
|
|
4795
4764
|
*/
|
|
4796
|
-
declare const formatDate: (date: DateType, options?: FormatDateOptions
|
|
4765
|
+
declare const formatDate: (date: DateType, options?: FormatDateOptions) => string;
|
|
4797
4766
|
|
|
4798
|
-
|
|
4767
|
+
type DateTimeProps = {
|
|
4799
4768
|
date: DateType;
|
|
4800
4769
|
} & FormatDateOptions;
|
|
4801
4770
|
/**
|
|
@@ -4805,7 +4774,7 @@ declare const DateTime: React__default.ForwardRefExoticComponent<{
|
|
|
4805
4774
|
date: DateType;
|
|
4806
4775
|
} & FormatDateOptions & React__default.RefAttributes<HTMLTimeElement>>;
|
|
4807
4776
|
|
|
4808
|
-
|
|
4777
|
+
type DividerProps = Omit<DividerProps$1, 'classes' | 'light'> & {
|
|
4809
4778
|
/**
|
|
4810
4779
|
* @default 'default'
|
|
4811
4780
|
* The color of the divider.
|
|
@@ -4820,7 +4789,7 @@ declare type DividerProps = Omit<DividerProps$1, 'classes' | 'light'> & {
|
|
|
4820
4789
|
/**
|
|
4821
4790
|
* Documentation: https://up-components.up42.com/?path=/docs/layout-divider--docs
|
|
4822
4791
|
*/
|
|
4823
|
-
declare const Divider: React__default.ForwardRefExoticComponent<
|
|
4792
|
+
declare const Divider: React__default.ForwardRefExoticComponent<Omit<Omit<DividerProps$1<"hr", {}>, "classes" | "light"> & {
|
|
4824
4793
|
/**
|
|
4825
4794
|
* @default 'default'
|
|
4826
4795
|
* The color of the divider.
|
|
@@ -4831,9 +4800,9 @@ declare const Divider: React__default.ForwardRefExoticComponent<Pick<Omit<Divide
|
|
|
4831
4800
|
* The height of the divider.
|
|
4832
4801
|
*/
|
|
4833
4802
|
size?: "small" | "large" | "medium" | undefined;
|
|
4834
|
-
}, "
|
|
4803
|
+
}, "ref"> & React__default.RefAttributes<unknown>>;
|
|
4835
4804
|
|
|
4836
|
-
|
|
4805
|
+
type DocumentationPopoverProps = {
|
|
4837
4806
|
title: string;
|
|
4838
4807
|
children: React__default.ReactNode;
|
|
4839
4808
|
/**
|
|
@@ -4849,7 +4818,7 @@ declare type DocumentationPopoverProps = {
|
|
|
4849
4818
|
/**
|
|
4850
4819
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-popovers-documentationpopover--docs
|
|
4851
4820
|
*/
|
|
4852
|
-
declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => JSX.Element;
|
|
4821
|
+
declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => React__default.JSX.Element;
|
|
4853
4822
|
|
|
4854
4823
|
interface CodeInlineProps {
|
|
4855
4824
|
text: string;
|
|
@@ -4860,9 +4829,9 @@ interface CodeInlineProps {
|
|
|
4860
4829
|
/**
|
|
4861
4830
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-codeinline--docs
|
|
4862
4831
|
*/
|
|
4863
|
-
declare const CodeInline: ({ label, text, "data-testid": dataTestId, inlineLabel }: CodeInlineProps) => JSX.Element;
|
|
4832
|
+
declare const CodeInline: ({ label, text, "data-testid": dataTestId, inlineLabel }: CodeInlineProps) => React__default.JSX.Element;
|
|
4864
4833
|
|
|
4865
|
-
|
|
4834
|
+
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';
|
|
4866
4835
|
interface CodeSnippetItemProps {
|
|
4867
4836
|
label: string;
|
|
4868
4837
|
code: string;
|
|
@@ -4884,35 +4853,35 @@ interface CodeSnippetProps {
|
|
|
4884
4853
|
/**
|
|
4885
4854
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-CodeSnippet--docs
|
|
4886
4855
|
*/
|
|
4887
|
-
declare const CodeSnippet: ({ snippets, sx, onCopy, initialSnippetIndex }: CodeSnippetProps) => JSX.Element;
|
|
4856
|
+
declare const CodeSnippet: ({ snippets, sx, onCopy, initialSnippetIndex }: CodeSnippetProps) => React__default.JSX.Element;
|
|
4888
4857
|
|
|
4889
|
-
|
|
4858
|
+
type TableProps = MUIGlobalOmit<TableProps$1>;
|
|
4890
4859
|
/**
|
|
4891
4860
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-table--docs
|
|
4892
4861
|
*/
|
|
4893
|
-
declare const Table: ({ children, ...props }: TableProps) => JSX.Element;
|
|
4894
|
-
|
|
4895
|
-
declare const TableBody: ({ children, ...props }: TableBodyProps) => JSX.Element;
|
|
4896
|
-
|
|
4897
|
-
declare const TableCell: ({ children, ...props }: TableCellProps) => JSX.Element;
|
|
4898
|
-
|
|
4899
|
-
declare const TableContainer: ({ children, ...props }: TableContainerProps) => JSX.Element;
|
|
4900
|
-
|
|
4901
|
-
declare const TableHead: ({ children, ...props }: TableHeadProps) => JSX.Element;
|
|
4902
|
-
|
|
4903
|
-
declare const TableRow: ({ children, ...props }: TableRowProps) => JSX.Element;
|
|
4904
|
-
|
|
4905
|
-
declare const TablePagination: ({ ...props }: TablePaginationProps) => JSX.Element;
|
|
4906
|
-
|
|
4907
|
-
declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => JSX.Element;
|
|
4908
|
-
|
|
4909
|
-
declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
|
|
4910
|
-
|
|
4911
|
-
|
|
4862
|
+
declare const Table: ({ children, ...props }: TableProps) => React__default.JSX.Element;
|
|
4863
|
+
type TableBodyProps = MUIGlobalOmit<TableBodyProps$1>;
|
|
4864
|
+
declare const TableBody: ({ children, ...props }: TableBodyProps) => React__default.JSX.Element;
|
|
4865
|
+
type TableCellProps = MUIGlobalOmit<TableCellProps$1>;
|
|
4866
|
+
declare const TableCell: ({ children, ...props }: TableCellProps) => React__default.JSX.Element;
|
|
4867
|
+
type TableContainerProps = MUIGlobalOmit<TableContainerProps$1>;
|
|
4868
|
+
declare const TableContainer: ({ children, ...props }: TableContainerProps) => React__default.JSX.Element;
|
|
4869
|
+
type TableHeadProps = MUIGlobalOmit<TableHeadProps$1>;
|
|
4870
|
+
declare const TableHead: ({ children, ...props }: TableHeadProps) => React__default.JSX.Element;
|
|
4871
|
+
type TableRowProps = MUIGlobalOmit<TableRowProps$1>;
|
|
4872
|
+
declare const TableRow: ({ children, ...props }: TableRowProps) => React__default.JSX.Element;
|
|
4873
|
+
type TablePaginationProps = MUIGlobalOmit<TablePaginationProps$1>;
|
|
4874
|
+
declare const TablePagination: ({ ...props }: TablePaginationProps) => React__default.JSX.Element;
|
|
4875
|
+
type TableSortLabelProps = MUIGlobalOmit<TableSortLabelProps$1>;
|
|
4876
|
+
declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => React__default.JSX.Element;
|
|
4877
|
+
type TableFooterProps = MUIGlobalOmit<TableFooterProps$1>;
|
|
4878
|
+
declare const TableFooter: ({ children, ...props }: TableFooterProps) => React__default.JSX.Element;
|
|
4879
|
+
|
|
4880
|
+
type DataGridProps = MUIGlobalOmit<DataGridPremiumProps>;
|
|
4912
4881
|
/**
|
|
4913
4882
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-datagrid--docs
|
|
4914
4883
|
*/
|
|
4915
|
-
declare const DataGrid: ({ autoHeight, pageSizeOptions, disableRowSelectionOnClick, ...props }:
|
|
4884
|
+
declare const DataGrid: ({ autoHeight, pageSizeOptions, disableRowSelectionOnClick, pagination, ...props }: DataGridPremiumProps) => React__default.JSX.Element;
|
|
4916
4885
|
|
|
4917
4886
|
/**
|
|
4918
4887
|
* It should to be noted that this helper isn't equivalent to `text-transform: capitalize`.
|
|
@@ -4933,7 +4902,7 @@ declare const copyToClipboard: (text: string, successCallBack: () => void) => vo
|
|
|
4933
4902
|
*
|
|
4934
4903
|
* Documentation: https://up-components.up42.com/?path=/docs/utils--docs#formatnumber
|
|
4935
4904
|
*/
|
|
4936
|
-
declare const formatNumber: (number: string | number, options?: Intl.NumberFormatOptions
|
|
4905
|
+
declare const formatNumber: (number: string | number, options?: Intl.NumberFormatOptions) => string;
|
|
4937
4906
|
|
|
4938
4907
|
/**
|
|
4939
4908
|
* Takes bytes as a value and returns formatted file size as a string.
|
|
@@ -4954,8 +4923,8 @@ interface PaginatedResponse<T> {
|
|
|
4954
4923
|
totalElements: number;
|
|
4955
4924
|
content: T[];
|
|
4956
4925
|
}
|
|
4957
|
-
|
|
4958
|
-
|
|
4926
|
+
type OrderDirection = 'asc' | 'desc' | null;
|
|
4927
|
+
type UseRemotePaginationResponse = {
|
|
4959
4928
|
pageSize: number;
|
|
4960
4929
|
page: number;
|
|
4961
4930
|
count: number;
|
|
@@ -4995,7 +4964,7 @@ declare const useRemotePagination: (fetchingHook: ({ params }: {
|
|
|
4995
4964
|
*/
|
|
4996
4965
|
declare const useDebounce: <T>(value: T, delay?: number) => T;
|
|
4997
4966
|
|
|
4998
|
-
|
|
4967
|
+
type CreateAlertProps = {
|
|
4999
4968
|
title?: string;
|
|
5000
4969
|
message: string | ElementType;
|
|
5001
4970
|
type?: AlertColor;
|
|
@@ -5007,7 +4976,7 @@ declare type CreateAlertProps = {
|
|
|
5007
4976
|
/**
|
|
5008
4977
|
* Props for creating a snackbar.
|
|
5009
4978
|
*/
|
|
5010
|
-
|
|
4979
|
+
type CreateSnackbarProps = {
|
|
5011
4980
|
/**
|
|
5012
4981
|
* The message to be displayed in the snackbar.
|
|
5013
4982
|
*/
|
|
@@ -5029,11 +4998,11 @@ declare type CreateSnackbarProps = {
|
|
|
5029
4998
|
*/
|
|
5030
4999
|
transition?: 'slide' | 'grow' | 'fade';
|
|
5031
5000
|
} & SnackbarProps;
|
|
5032
|
-
|
|
5001
|
+
type DisplayAlertProps = CreateAlertProps & {
|
|
5033
5002
|
id: string;
|
|
5034
5003
|
onClose?: (id: string) => void;
|
|
5035
5004
|
};
|
|
5036
|
-
|
|
5005
|
+
type ContextState = {
|
|
5037
5006
|
createAlert: (props: CreateAlertProps) => void;
|
|
5038
5007
|
alertStack: DisplayAlertProps[];
|
|
5039
5008
|
removeFromStack: (id: string) => void;
|