@movable/ui 3.0.0-alpha-v6.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Header/HeaderSubtitle.d.ts +3 -2
- package/lib/components/Header/InkWorkflowHeader.d.ts +2 -2
- package/lib/components/InkCard/InkCard.d.ts +18 -0
- package/lib/components/InkCard/InkCardHeader.d.ts +11 -0
- package/lib/components/InkCard/InkCardMedia.d.ts +7 -0
- package/lib/components/InkCard/InkCardMediaLoader.d.ts +1 -0
- package/lib/components/InkCard/InkGalleryContent.d.ts +8 -0
- package/lib/components/InkCard/VariantStyles.d.ts +5 -0
- package/lib/components/InkCard/index.d.ts +1 -0
- package/lib/components/InkChart/InkChart.d.ts +15 -0
- package/lib/components/InkChart/index.d.ts +1 -0
- package/lib/components/InkDrawer/InkDrawer.d.ts +8 -3
- package/lib/components/InkGridToolBar/ExportButton.d.ts +6 -0
- package/lib/components/InkGridToolBar/FiltersButton.d.ts +5 -0
- package/lib/components/InkGridToolBar/GridToolbarGroup.d.ts +7 -0
- package/lib/components/InkGridToolBar/InkGridToolBar.d.ts +27 -0
- package/lib/components/InkGridToolBar/TableFilterColumnPicker.d.ts +10 -0
- package/lib/components/InkGridToolBar/index.d.ts +1 -0
- package/lib/components/InkSelect/InkFormSelect.d.ts +1 -1
- package/lib/components/index.d.ts +3 -0
- package/lib/index.d.ts +165 -10
- package/lib/index.mjs +8986 -8915
- package/lib/index.mjs.map +1 -1
- package/lib/layouts/DetailsLayout.d.ts +2 -1
- package/lib/layouts/WorkflowLayout.d.ts +2 -1
- package/lib/layouts/content-layouts/EightColumnFullContentLayout.d.ts +8 -0
- package/lib/layouts/content-layouts/FiveThreeSplitContentLayout.d.ts +10 -0
- package/lib/layouts/content-layouts/PanelWithPaperContentLayout.d.ts +11 -0
- package/lib/layouts/content-layouts/SevenThreeSplitContentLayout.d.ts +10 -0
- package/lib/layouts/content-layouts/TenColumnFullContentLayout.d.ts +8 -0
- package/lib/layouts/content-layouts/index.d.ts +2 -0
- package/lib/layouts/index.d.ts +5 -0
- package/lib/page-objects/ink-select.d.ts +1 -0
- package/lib/theme/components/form.d.ts +1 -0
- package/package.json +22 -10
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
type HeaderSubtitleType = TypographyProps & {
|
|
2
3
|
subtitle: string;
|
|
3
4
|
};
|
|
4
|
-
export declare function HeaderSubtitle({ subtitle }: HeaderSubtitleType): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function HeaderSubtitle({ subtitle, sx, ...rest }: HeaderSubtitleType): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -14,7 +14,7 @@ type InkWorkflowHeaderProps = {
|
|
|
14
14
|
label: string;
|
|
15
15
|
Stepper?: JSX.Element;
|
|
16
16
|
ButtonGroup?: JSX.Element | ActionButtonPropType;
|
|
17
|
-
|
|
17
|
+
subtitle?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup,
|
|
19
|
+
export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, subtitle, }: InkWorkflowHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CardProps } from '@mui/material';
|
|
2
|
+
import { InkCardHeaderProps } from './InkCardHeader';
|
|
3
|
+
import { InkCardMediaProps } from './InkCardMedia';
|
|
4
|
+
import { InkCardType } from './VariantStyles';
|
|
5
|
+
import { GalleryContentProps } from './InkGalleryContent';
|
|
6
|
+
type InkCardBaseProps = CardProps & {
|
|
7
|
+
cardHeader?: InkCardHeaderProps;
|
|
8
|
+
cardMedia?: InkCardMediaProps;
|
|
9
|
+
cardType?: InkCardType;
|
|
10
|
+
};
|
|
11
|
+
type InkCardProps = (InkCardBaseProps & {
|
|
12
|
+
galleryContent: GalleryContentProps;
|
|
13
|
+
cardType: 'gallery';
|
|
14
|
+
}) | (InkCardBaseProps & {
|
|
15
|
+
galleryContent?: never;
|
|
16
|
+
});
|
|
17
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CheckboxProps, TypographyProps } from '@mui/material';
|
|
2
|
+
export interface InkCardHeaderProps {
|
|
3
|
+
checkboxProps?: CheckboxProps;
|
|
4
|
+
title?: string;
|
|
5
|
+
size?: 'small' | 'medium';
|
|
6
|
+
subheader?: string;
|
|
7
|
+
adornment?: JSX.Element;
|
|
8
|
+
titleProps?: TypographyProps;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function InkCardHeader({ checkboxProps, title, size, subheader, adornment, titleProps, onClose, }: InkCardHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardMediaProps } from '@mui/material';
|
|
2
|
+
import { InkCardType } from './VariantStyles';
|
|
3
|
+
export interface InkCardMediaProps extends CardMediaProps {
|
|
4
|
+
mediaContent?: JSX.Element;
|
|
5
|
+
cardType?: InkCardType;
|
|
6
|
+
}
|
|
7
|
+
export declare function InkCardMedia({ mediaContent, image, cardType, sx, ...rest }: InkCardMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InkCardMediaLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
|
2
|
+
export type GalleryContentProps = {
|
|
3
|
+
description?: string;
|
|
4
|
+
buttonProps?: ButtonProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function InkGalleryContent({ description, buttonProps, }: GalleryContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
3
|
+
export declare const MAX_CARD_WIDTH = 382;
|
|
4
|
+
export declare const getComposedCardStyles: (isSelectable: boolean, isSelected: boolean, isDisabled?: boolean, cardType?: InkCardType, customSx?: SxProps<Theme>) => SxProps<Theme>;
|
|
5
|
+
export declare const getGalleryCardStyles: () => SxProps<Theme>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InkCard } from './InkCard';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ChartTypes = 'line' | 'bar' | 'pie';
|
|
2
|
+
import type { ChartOptions, ChartData } from 'chart.js';
|
|
3
|
+
export type ChartProps<T extends ChartTypes> = {
|
|
4
|
+
type: T;
|
|
5
|
+
data?: ChartData<T>;
|
|
6
|
+
chartOptions?: ChartOptions<T>;
|
|
7
|
+
legend?: boolean;
|
|
8
|
+
customColors?: string[];
|
|
9
|
+
height?: number;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
stacked?: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
};
|
|
14
|
+
export default function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): import("react/jsx-runtime").JSX.Element | undefined;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InkChart } from './InkChart';
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BoxProps, DrawerProps } from '@mui/material';
|
|
2
|
+
import { BoxProps, DrawerProps, SxProps, Theme } from '@mui/material';
|
|
3
3
|
import { SvgIconTypeMap } from '@mui/material';
|
|
4
4
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
5
5
|
type DrawerType = 'basic' | 'panel' | 'filter';
|
|
6
|
+
declare const defaultDrawerWidths: {
|
|
7
|
+
md: number;
|
|
8
|
+
lg: number;
|
|
9
|
+
xl: number;
|
|
10
|
+
};
|
|
6
11
|
interface CommonDrawerProps extends DrawerProps {
|
|
7
12
|
drawerType: DrawerType;
|
|
8
13
|
drawerContent: JSX.Element;
|
|
9
|
-
drawerWidth?: number
|
|
14
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
10
15
|
leftOffset?: string;
|
|
11
16
|
bottomContent?: JSX.Element;
|
|
12
17
|
headerLabel?: string;
|
|
13
18
|
isComponentLevelDrawer?: boolean;
|
|
14
19
|
mainProps?: BoxProps;
|
|
15
20
|
icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
|
|
21
|
+
paperSx?: SxProps<Theme> | undefined;
|
|
16
22
|
}
|
|
17
23
|
interface CollapsibleDrawerProps extends CommonDrawerProps {
|
|
18
24
|
drawerType: 'basic' | 'filter';
|
|
@@ -23,6 +29,5 @@ interface PanelDrawerProps extends CommonDrawerProps {
|
|
|
23
29
|
drawerType: 'panel';
|
|
24
30
|
}
|
|
25
31
|
type InkDrawerProps = CollapsibleDrawerProps | PanelDrawerProps;
|
|
26
|
-
export declare const defaultFilterDrawerWidth = 280;
|
|
27
32
|
export declare function InkDrawer(props: PropsWithChildren<InkDrawerProps>): import("react/jsx-runtime").JSX.Element;
|
|
28
33
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface IGridToolbarGroupProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
options: string[];
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function GridToolbarGroup({ value, onChange, options, }: IGridToolbarGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GridColDef, GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
|
|
2
|
+
import { IGridToolbarGroupProps } from './GridToolbarGroup';
|
|
3
|
+
export interface IInkGridToolBarProps {
|
|
4
|
+
groupingProps?: IGridToolbarGroupProps;
|
|
5
|
+
showFilterDrawerBtn?: boolean;
|
|
6
|
+
showQuickFilter?: boolean;
|
|
7
|
+
showExportButton?: boolean;
|
|
8
|
+
showFilterButton?: boolean;
|
|
9
|
+
showDensitySelector?: boolean;
|
|
10
|
+
showColumnButton?: boolean;
|
|
11
|
+
onExportClick?: () => void;
|
|
12
|
+
loadingExport?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
columnPickerProps?: {
|
|
15
|
+
columnData: GridColDef[];
|
|
16
|
+
handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
|
|
17
|
+
customGridVisibility: GridColumnVisibilityModel;
|
|
18
|
+
lockedFields?: string[];
|
|
19
|
+
hiddenInColumnPicker?: string[];
|
|
20
|
+
};
|
|
21
|
+
filterDrawerBtnProps?: {
|
|
22
|
+
onShowFilterDrawerClick: () => void;
|
|
23
|
+
filterBtnBadgeContent?: string;
|
|
24
|
+
};
|
|
25
|
+
py?: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridColDef, GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
|
|
2
|
+
interface ITableActionsColumnPickerProps {
|
|
3
|
+
columnData: GridColDef[];
|
|
4
|
+
handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
|
|
5
|
+
customGridVisibility: GridColumnVisibilityModel;
|
|
6
|
+
lockedFields?: string[];
|
|
7
|
+
hiddenInColumnPicker?: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function TableFilterColumnPicker({ columnData, handleColumnFilterChange, customGridVisibility, lockedFields, hiddenInColumnPicker, }: ITableActionsColumnPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InkGridToolBar } from './InkGridToolBar';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import { InkSelectProps } from '.';
|
|
3
3
|
type InkFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = InkSelectProps & UseControllerProps<TFieldValues, TName>;
|
|
4
|
-
export declare function InkFormSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, helperText, onChange, onBlur, ...rest }: InkFormSelectProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function InkFormSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, helperText, onChange, onBlur, disabled, ...rest }: InkFormSelectProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -21,3 +21,6 @@ export * from './InkSwitch';
|
|
|
21
21
|
export * from './InkTextField';
|
|
22
22
|
export * from './InkSelect';
|
|
23
23
|
export { InternalUseOnlyLabel, InternalUseOnlyAlert, } from './InternalUseOnlyIndicators';
|
|
24
|
+
export { InkChart } from './InkChart';
|
|
25
|
+
export { InkCard } from './InkCard';
|
|
26
|
+
export { InkGridToolBar } from './InkGridToolBar';
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,12 @@ import { BoxProps } from '@mui/material';
|
|
|
3
3
|
import { BoxProps as BoxProps_2 } from '@mui/material/Box';
|
|
4
4
|
import { ButtonProps } from '@mui/material';
|
|
5
5
|
import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
|
|
6
|
-
import {
|
|
6
|
+
import { CardMediaProps } from '@mui/material';
|
|
7
|
+
import { CardProps } from '@mui/material';
|
|
8
|
+
import type { ChartData } from 'chart.js';
|
|
9
|
+
import type { ChartOptions } from 'chart.js';
|
|
10
|
+
import { CheckboxProps } from '@mui/material';
|
|
11
|
+
import { CheckboxProps as CheckboxProps_2 } from '@mui/material/Checkbox';
|
|
7
12
|
import { ChipProps } from '@mui/material';
|
|
8
13
|
import { CustomContentProps } from 'notistack';
|
|
9
14
|
import type { DialogProps } from '@mui/material/Dialog';
|
|
@@ -16,7 +21,10 @@ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
|
16
21
|
import { FormGroupProps } from '@mui/material/FormGroup';
|
|
17
22
|
import { FormLabelProps } from '@mui/material/FormLabel';
|
|
18
23
|
import { ForwardRefExoticComponent } from 'react';
|
|
24
|
+
import { GridColDef } from '@mui/x-data-grid-premium';
|
|
25
|
+
import { GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
|
|
19
26
|
import { GridProps } from '@mui/material/Grid';
|
|
27
|
+
import { GridProps as GridProps_2 } from '@mui/material';
|
|
20
28
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
21
29
|
import { LinkProps } from '@mui/material';
|
|
22
30
|
import { ListItemIconProps } from '@mui/material/ListItemIcon';
|
|
@@ -46,6 +54,7 @@ import { TextFieldProps } from '@mui/material/TextField';
|
|
|
46
54
|
import { Theme } from '@mui/material';
|
|
47
55
|
import { ToggleButtonGroupProps } from '@mui/material';
|
|
48
56
|
import { ToggleButtonProps } from '@mui/material';
|
|
57
|
+
import { TypographyProps } from '@mui/material';
|
|
49
58
|
import { UseControllerProps } from 'react-hook-form';
|
|
50
59
|
import { VariantType as VariantType_2 } from 'notistack';
|
|
51
60
|
|
|
@@ -79,6 +88,20 @@ declare type ButtonPropsType = ButtonProps & {
|
|
|
79
88
|
label: ReactNode;
|
|
80
89
|
};
|
|
81
90
|
|
|
91
|
+
declare type ChartProps<T extends ChartTypes> = {
|
|
92
|
+
type: T;
|
|
93
|
+
data?: ChartData<T>;
|
|
94
|
+
chartOptions?: ChartOptions<T>;
|
|
95
|
+
legend?: boolean;
|
|
96
|
+
customColors?: string[];
|
|
97
|
+
height?: number;
|
|
98
|
+
isLoading?: boolean;
|
|
99
|
+
stacked?: boolean;
|
|
100
|
+
title?: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare type ChartTypes = 'line' | 'bar' | 'pie';
|
|
104
|
+
|
|
82
105
|
declare type closeButtonType = {
|
|
83
106
|
onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
84
107
|
};
|
|
@@ -92,26 +115,33 @@ declare interface CollapsibleDrawerProps extends CommonDrawerProps {
|
|
|
92
115
|
declare interface CommonDrawerProps extends DrawerProps_2 {
|
|
93
116
|
drawerType: DrawerType;
|
|
94
117
|
drawerContent: JSX.Element;
|
|
95
|
-
drawerWidth?: number
|
|
118
|
+
drawerWidth?: number | Partial<typeof defaultDrawerWidths>;
|
|
96
119
|
leftOffset?: string;
|
|
97
120
|
bottomContent?: JSX.Element;
|
|
98
121
|
headerLabel?: string;
|
|
99
122
|
isComponentLevelDrawer?: boolean;
|
|
100
123
|
mainProps?: BoxProps;
|
|
101
124
|
icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
|
|
125
|
+
paperSx?: SxProps<Theme> | undefined;
|
|
102
126
|
}
|
|
103
127
|
|
|
104
128
|
declare type CopiedValue = string | null;
|
|
105
129
|
|
|
106
130
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
107
131
|
|
|
132
|
+
declare const defaultDrawerWidths: {
|
|
133
|
+
md: number;
|
|
134
|
+
lg: number;
|
|
135
|
+
xl: number;
|
|
136
|
+
};
|
|
137
|
+
|
|
108
138
|
export declare function DemoComponent({ stringToDisplay }: DemoComponentProps): JSX_2.Element;
|
|
109
139
|
|
|
110
140
|
declare type DemoComponentProps = {
|
|
111
141
|
stringToDisplay: string;
|
|
112
142
|
};
|
|
113
143
|
|
|
114
|
-
export declare function DetailsLayout({ Header, children, sx, ...rest }: LayoutDetailsProps): JSX_2.Element;
|
|
144
|
+
export declare function DetailsLayout({ Header, children, sx, itemProps, ...rest }: LayoutDetailsProps): JSX_2.Element;
|
|
115
145
|
|
|
116
146
|
declare type DrawerType = 'basic' | 'panel' | 'filter';
|
|
117
147
|
|
|
@@ -122,8 +152,33 @@ declare type DropdownActionType = {
|
|
|
122
152
|
internalUseOnlyItems?: ReactNode[];
|
|
123
153
|
};
|
|
124
154
|
|
|
155
|
+
export declare function EightColumnFullContentLayout({ children, itemProps, containerProps, }: EightColumnFullContentLayoutProps): JSX_2.Element;
|
|
156
|
+
|
|
157
|
+
declare type EightColumnFullContentLayoutProps = {
|
|
158
|
+
children: React.ReactNode;
|
|
159
|
+
containerProps?: GridProps_2;
|
|
160
|
+
itemProps?: GridProps_2;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export declare function FiveThreeSplitContentLayout({ leftContent, rightContent, containerProps, leftProps, rightProps, }: FiveThreeSplitContentLayoutProps): JSX_2.Element;
|
|
164
|
+
|
|
165
|
+
declare type FiveThreeSplitContentLayoutProps = {
|
|
166
|
+
leftContent: React.ReactNode;
|
|
167
|
+
rightContent: React.ReactNode;
|
|
168
|
+
containerProps?: GridProps_2;
|
|
169
|
+
leftProps?: GridProps_2;
|
|
170
|
+
rightProps?: GridProps_2;
|
|
171
|
+
};
|
|
172
|
+
|
|
125
173
|
export declare const FormSkeletonGrid: ({ skeletonRows, skeletonColumns, }: SkeletonGridType) => JSX_2.Element;
|
|
126
174
|
|
|
175
|
+
declare type GalleryContentProps = {
|
|
176
|
+
description?: string;
|
|
177
|
+
buttonProps?: ButtonProps & {
|
|
178
|
+
label?: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
127
182
|
declare type HeaderLink = {
|
|
128
183
|
label: string;
|
|
129
184
|
path?: string;
|
|
@@ -147,9 +202,9 @@ declare type HeaderMetadataType = {
|
|
|
147
202
|
value: string | JSX.Element;
|
|
148
203
|
};
|
|
149
204
|
|
|
150
|
-
export declare function HeaderSubtitle({ subtitle }: HeaderSubtitleType): JSX_2.Element;
|
|
205
|
+
export declare function HeaderSubtitle({ subtitle, sx, ...rest }: HeaderSubtitleType): JSX_2.Element;
|
|
151
206
|
|
|
152
|
-
declare type HeaderSubtitleType = {
|
|
207
|
+
declare type HeaderSubtitleType = TypographyProps & {
|
|
153
208
|
subtitle: string;
|
|
154
209
|
};
|
|
155
210
|
|
|
@@ -165,6 +220,38 @@ declare type IFilterDrawer = DrawerProps & {
|
|
|
165
220
|
mainProps?: BoxProps;
|
|
166
221
|
};
|
|
167
222
|
|
|
223
|
+
declare interface IGridToolbarGroupProps {
|
|
224
|
+
value: string;
|
|
225
|
+
onChange: (value: string) => void;
|
|
226
|
+
options: string[];
|
|
227
|
+
children?: React.ReactNode;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare interface IInkGridToolBarProps {
|
|
231
|
+
groupingProps?: IGridToolbarGroupProps;
|
|
232
|
+
showFilterDrawerBtn?: boolean;
|
|
233
|
+
showQuickFilter?: boolean;
|
|
234
|
+
showExportButton?: boolean;
|
|
235
|
+
showFilterButton?: boolean;
|
|
236
|
+
showDensitySelector?: boolean;
|
|
237
|
+
showColumnButton?: boolean;
|
|
238
|
+
onExportClick?: () => void;
|
|
239
|
+
loadingExport?: boolean;
|
|
240
|
+
children?: React.ReactNode;
|
|
241
|
+
columnPickerProps?: {
|
|
242
|
+
columnData: GridColDef[];
|
|
243
|
+
handleColumnFilterChange: (columnVisibilityModel: GridColumnVisibilityModel) => void;
|
|
244
|
+
customGridVisibility: GridColumnVisibilityModel;
|
|
245
|
+
lockedFields?: string[];
|
|
246
|
+
hiddenInColumnPicker?: string[];
|
|
247
|
+
};
|
|
248
|
+
filterDrawerBtnProps?: {
|
|
249
|
+
onShowFilterDrawerClick: () => void;
|
|
250
|
+
filterBtnBadgeContent?: string;
|
|
251
|
+
};
|
|
252
|
+
py?: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
168
255
|
export declare function IndexLayout({ Header, children, sx, ...containerProps }: IndexLayoutProps): JSX_2.Element;
|
|
169
256
|
|
|
170
257
|
declare type IndexLayoutProps = GridProps & {
|
|
@@ -186,6 +273,40 @@ declare type InkAttributeProps = ListItemTextProps & {
|
|
|
186
273
|
};
|
|
187
274
|
};
|
|
188
275
|
|
|
276
|
+
export declare function InkCard({ cardMedia, cardHeader, cardType, galleryContent, children, ...rest }: InkCardProps): JSX_2.Element;
|
|
277
|
+
|
|
278
|
+
declare type InkCardBaseProps = CardProps & {
|
|
279
|
+
cardHeader?: InkCardHeaderProps;
|
|
280
|
+
cardMedia?: InkCardMediaProps;
|
|
281
|
+
cardType?: InkCardType;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
declare interface InkCardHeaderProps {
|
|
285
|
+
checkboxProps?: CheckboxProps;
|
|
286
|
+
title?: string;
|
|
287
|
+
size?: 'small' | 'medium';
|
|
288
|
+
subheader?: string;
|
|
289
|
+
adornment?: JSX.Element;
|
|
290
|
+
titleProps?: TypographyProps;
|
|
291
|
+
onClose?: () => void;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare interface InkCardMediaProps extends CardMediaProps {
|
|
295
|
+
mediaContent?: JSX.Element;
|
|
296
|
+
cardType?: InkCardType;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare type InkCardProps = (InkCardBaseProps & {
|
|
300
|
+
galleryContent: GalleryContentProps;
|
|
301
|
+
cardType: 'gallery';
|
|
302
|
+
}) | (InkCardBaseProps & {
|
|
303
|
+
galleryContent?: never;
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
declare type InkCardType = 'default' | 'gallery' | 'metric' | 'insight';
|
|
307
|
+
|
|
308
|
+
export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
|
|
309
|
+
|
|
189
310
|
export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
|
|
190
311
|
|
|
191
312
|
export declare class inkCheckboxGroup {
|
|
@@ -211,7 +332,7 @@ export declare type InkCheckboxGroupProps = {
|
|
|
211
332
|
options: {
|
|
212
333
|
value: string;
|
|
213
334
|
label: string;
|
|
214
|
-
checkboxProps?:
|
|
335
|
+
checkboxProps?: CheckboxProps_2;
|
|
215
336
|
}[];
|
|
216
337
|
formGroupProps?: FormGroupProps;
|
|
217
338
|
formLabel: string;
|
|
@@ -299,7 +420,7 @@ export declare function InkFormRadioGroup<TFieldValues extends FieldValues, TNam
|
|
|
299
420
|
|
|
300
421
|
declare type InkFormRadioGroupProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = InkRadioGroupProps & UseControllerProps<TFieldValues, TName>;
|
|
301
422
|
|
|
302
|
-
export declare function InkFormSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, helperText, onChange, onBlur, ...rest }: InkFormSelectProps<TFieldValues, TName>): JSX_2.Element;
|
|
423
|
+
export declare function InkFormSelect<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, helperText, onChange, onBlur, disabled, ...rest }: InkFormSelectProps<TFieldValues, TName>): JSX_2.Element;
|
|
303
424
|
|
|
304
425
|
declare type InkFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = InkSelectProps & UseControllerProps<TFieldValues, TName>;
|
|
305
426
|
|
|
@@ -315,6 +436,8 @@ declare type InkFormTextFieldProps<TFieldValues extends FieldValues, TName exten
|
|
|
315
436
|
label: string;
|
|
316
437
|
} & UseControllerProps<TFieldValues, TName> & TextFieldProps;
|
|
317
438
|
|
|
439
|
+
export declare function InkGridToolBar({ groupingProps, filterDrawerBtnProps, showFilterDrawerBtn, showQuickFilter, showExportButton, showDensitySelector, onExportClick, loadingExport, columnPickerProps, children, py, }: IInkGridToolBarProps): JSX_2.Element;
|
|
440
|
+
|
|
318
441
|
export declare function InkImage({ src, alt, sx, imageSx, fallbackText, ...rest }: InkImageProps): JSX_2.Element;
|
|
319
442
|
|
|
320
443
|
declare type InkImageProps = BoxProps_2 & {
|
|
@@ -437,6 +560,7 @@ export declare class inkSelect {
|
|
|
437
560
|
hasDisplayValue(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
438
561
|
hasValue(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
439
562
|
hasOption(label: string, value: string, index?: number): void;
|
|
563
|
+
isDisabled(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
440
564
|
closeMenu(): void;
|
|
441
565
|
openMenu(): void;
|
|
442
566
|
}
|
|
@@ -597,7 +721,7 @@ declare type InkToggleTextProps = ToggleButtonProps & {
|
|
|
597
721
|
value: string | number;
|
|
598
722
|
};
|
|
599
723
|
|
|
600
|
-
export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup,
|
|
724
|
+
export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, subtitle, }: InkWorkflowHeaderProps): JSX_2.Element;
|
|
601
725
|
|
|
602
726
|
export declare const inkWorkflowHeader: InkWorkflowHeaderPageObject;
|
|
603
727
|
|
|
@@ -614,7 +738,7 @@ declare type InkWorkflowHeaderProps = {
|
|
|
614
738
|
label: string;
|
|
615
739
|
Stepper?: JSX.Element;
|
|
616
740
|
ButtonGroup?: JSX.Element | ActionButtonPropType;
|
|
617
|
-
|
|
741
|
+
subtitle?: string;
|
|
618
742
|
};
|
|
619
743
|
|
|
620
744
|
export declare function InternalUseOnlyAlert({ message, sx, messageSx, }: InternalUseOnlyAlertProp): JSX_2.Element;
|
|
@@ -640,6 +764,7 @@ declare type IPageWrapperProps = {
|
|
|
640
764
|
declare type LayoutDetailsProps = GridProps & {
|
|
641
765
|
Header: JSX.Element;
|
|
642
766
|
children: React.ReactNode;
|
|
767
|
+
itemProps?: GridProps;
|
|
643
768
|
};
|
|
644
769
|
|
|
645
770
|
export declare function LinkBreadcrumbs({ breadcrumbs }: BreadcrumbProps): JSX_2.Element;
|
|
@@ -706,11 +831,32 @@ declare interface PanelDrawerProps extends CommonDrawerProps {
|
|
|
706
831
|
drawerType: 'panel';
|
|
707
832
|
}
|
|
708
833
|
|
|
834
|
+
export declare function PanelWithPaperContentLayout({ children, panelContent, wrapperProps, panelProps, containerProps, itemProps, }: PanelWithPaperContentLayoutProps): JSX_2.Element;
|
|
835
|
+
|
|
836
|
+
declare type PanelWithPaperContentLayoutProps = React.PropsWithChildren<{
|
|
837
|
+
panelContent: React.ReactNode;
|
|
838
|
+
children: React.ReactNode;
|
|
839
|
+
wrapperProps?: BoxProps;
|
|
840
|
+
panelProps?: BoxProps;
|
|
841
|
+
containerProps?: GridProps_2;
|
|
842
|
+
itemProps?: GridProps_2;
|
|
843
|
+
}>;
|
|
844
|
+
|
|
709
845
|
declare type PrimaryButtonType = ButtonProps & {
|
|
710
846
|
label: string;
|
|
711
847
|
loading?: boolean;
|
|
712
848
|
};
|
|
713
849
|
|
|
850
|
+
export declare function SevenThreeSplitContentLayout({ leftContent, rightContent, containerProps, leftProps, rightProps, }: SevenThreeSplitContentLayoutProps): JSX_2.Element;
|
|
851
|
+
|
|
852
|
+
declare type SevenThreeSplitContentLayoutProps = {
|
|
853
|
+
leftContent: React.ReactNode;
|
|
854
|
+
rightContent: React.ReactNode;
|
|
855
|
+
containerProps?: GridProps_2;
|
|
856
|
+
leftProps?: GridProps_2;
|
|
857
|
+
rightProps?: GridProps_2;
|
|
858
|
+
};
|
|
859
|
+
|
|
714
860
|
declare type SkeletonGridType = {
|
|
715
861
|
skeletonRows: number;
|
|
716
862
|
skeletonColumns: number;
|
|
@@ -718,15 +864,24 @@ declare type SkeletonGridType = {
|
|
|
718
864
|
|
|
719
865
|
export declare function SnackbarActionButton({ closeSnackbar, label, ...buttonProps }: InkSnackbarActionButtonProps): JSX_2.Element;
|
|
720
866
|
|
|
867
|
+
export declare function TenColumnFullContentLayout({ children, itemProps, containerProps, }: TenColumnFullContentLayoutProps): JSX_2.Element;
|
|
868
|
+
|
|
869
|
+
declare type TenColumnFullContentLayoutProps = {
|
|
870
|
+
children: React.ReactNode;
|
|
871
|
+
containerProps?: GridProps_2;
|
|
872
|
+
itemProps?: GridProps_2;
|
|
873
|
+
};
|
|
874
|
+
|
|
721
875
|
export declare function useCopyToClipboard(): [CopiedValue, CopyFn];
|
|
722
876
|
|
|
723
877
|
declare type VariantType = 'page' | 'paper' | 'search' | 'data';
|
|
724
878
|
|
|
725
|
-
export declare function WorkflowLayout({ Header, children, sx, ...rest }: WorkflowLayoutProps): JSX_2.Element;
|
|
879
|
+
export declare function WorkflowLayout({ Header, children, sx, itemProps, ...rest }: WorkflowLayoutProps): JSX_2.Element;
|
|
726
880
|
|
|
727
881
|
declare type WorkflowLayoutProps = GridProps & {
|
|
728
882
|
Header: JSX.Element;
|
|
729
883
|
children: React.ReactNode;
|
|
884
|
+
itemProps?: GridProps;
|
|
730
885
|
};
|
|
731
886
|
|
|
732
887
|
export { }
|