flipper-ui 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/Advertise.d.ts +4 -11
- package/core/AutoComplete.d.ts +3 -3
- package/core/Avatar.d.ts +3 -3
- package/core/Badge.d.ts +4 -4
- package/core/Box.d.ts +3 -3
- package/core/Button.d.ts +3 -3
- package/core/Card.d.ts +7 -7
- package/core/Checkbox.d.ts +3 -3
- package/core/Chip.d.ts +3 -3
- package/core/ChipField.d.ts +2 -2
- package/core/Collapse.d.ts +3 -3
- package/core/Container.d.ts +2 -2
- package/core/Content.d.ts +2 -2
- package/core/DateTime.d.ts +3 -3
- package/core/Dialog.d.ts +3 -3
- package/core/Divider.d.ts +3 -3
- package/core/Drawer.d.ts +4 -4
- package/core/EditableTable.d.ts +2 -2
- package/core/ExpansionPanel.d.ts +3 -3
- package/core/Fab.d.ts +3 -3
- package/core/Fade.d.ts +3 -3
- package/core/Grow.d.ts +3 -3
- package/core/Header.d.ts +3 -3
- package/core/IconButton.d.ts +3 -3
- package/core/InputAdornment.d.ts +3 -3
- package/core/InputBase.d.ts +3 -3
- package/core/Line.d.ts +3 -3
- package/core/List.d.ts +3 -3
- package/core/ListItem.d.ts +3 -3
- package/core/MaskField.d.ts +4 -4
- package/core/Menu.d.ts +4 -4
- package/core/Node.d.ts +3 -3
- package/core/Pagination.d.ts +3 -3
- package/core/Paper.d.ts +3 -3
- package/core/Progress.d.ts +3 -3
- package/core/Radio.d.ts +3 -3
- package/core/RadioGroup.d.ts +4 -4
- package/core/Select.d.ts +5 -3
- package/core/Select.js +42 -13
- package/core/Sidebar.d.ts +5 -5
- package/core/Sidebar.js +2 -1
- package/core/Slide.d.ts +3 -3
- package/core/Slider.d.ts +3 -3
- package/core/Snackbar.d.ts +3 -3
- package/core/Stepper.d.ts +3 -3
- package/core/Tab.d.ts +3 -3
- package/core/Table.d.ts +5 -5
- package/core/TableBody.d.ts +2 -2
- package/core/TableCell.d.ts +5 -5
- package/core/TableHead.d.ts +3 -3
- package/core/TableRow.d.ts +4 -4
- package/core/Tabs.d.ts +3 -3
- package/core/TextField.d.ts +4 -5
- package/core/ThemeProvider.d.ts +2 -2
- package/core/Tooltip.d.ts +3 -3
- package/core/Tree.d.ts +2 -2
- package/core/Typography.d.ts +2 -2
- package/core/Zoom.d.ts +3 -3
- package/core/types.d.ts +9 -0
- package/core/types.js +1 -0
- package/package.json +84 -79
- package/stories/Advertise.stories.js +31 -0
- package/stories/AutoComplete.stories.js +133 -0
- package/stories/AutoCompleteLab.stories.js +64 -0
- package/stories/Avatar.stories.js +44 -0
- package/stories/Badge.stories.js +63 -0
- package/stories/Box.stories.js +29 -0
- package/stories/Breadcrumb.stories.js +41 -0
- package/stories/Button.stories.js +132 -0
- package/stories/Card.stories.js +43 -0
- package/stories/Checkbox.stories.js +98 -0
- package/stories/Chip.stories.js +72 -0
- package/stories/ChipField.stories.js +60 -0
- package/stories/Collapse.stories.js +70 -0
- package/stories/Container.stories.js +24 -0
- package/stories/Content.stories.js +28 -0
- package/stories/DataTable.stories.js +737 -0
- package/stories/Dialog.stories.js +82 -0
- package/stories/Divider.stories.js +46 -0
- package/stories/Drawer.stories.js +55 -0
- package/stories/EditTable.stories.js +149 -0
- package/stories/ExpansionPanel.stories.js +54 -0
- package/stories/Fab.stories.js +28 -0
- package/stories/Fade.stories.js +54 -0
- package/stories/Grow.stories.js +63 -0
- package/stories/Header.stories.js +41 -0
- package/stories/IconButton.stories.js +48 -0
- package/stories/InputAdornment.stories.js +28 -0
- package/stories/InputBase.stories.js +54 -0
- package/stories/Line.stories.js +35 -0
- package/stories/List.stories.js +112 -0
- package/stories/MaskField.stories.js +58 -0
- package/stories/Menu.stories.js +82 -0
- package/stories/Node.stories.js +39 -0
- package/stories/Pagination.stories.js +39 -0
- package/stories/Paper.stories.js +65 -0
- package/stories/Progress.stories.js +86 -0
- package/stories/Radio.stories.js +52 -0
- package/stories/RadioGroup.stories.js +47 -0
- package/stories/Select.stories.js +100 -0
- package/stories/Sidebar.stories.js +43 -0
- package/stories/Slide.stories.js +62 -0
- package/stories/Slider.stories.js +69 -0
- package/stories/Snackbar.stories.js +102 -0
- package/stories/Stepper.stories.js +43 -0
- package/stories/Table.stories.js +32 -0
- package/stories/Tabs.stories.js +37 -0
- package/stories/TextField.stories.js +100 -0
- package/stories/Tooltip.stories.js +129 -0
- package/stories/Tree.stories.js +45 -0
- package/stories/Typography.stories.js +130 -0
- package/stories/Zooms.stories.js +54 -0
- package/docz/Wrapper.js +0 -25
package/core/Advertise.d.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
margin?: number | string;
|
|
6
|
-
padding?: number | string;
|
|
7
|
-
name?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
}
|
|
10
|
-
interface IProps extends IDefault {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import type { DefaultProps } from './types';
|
|
3
|
+
interface AdvertiseProps extends DefaultProps {
|
|
11
4
|
comment: string;
|
|
12
5
|
author: string;
|
|
13
6
|
commentStyle?: object;
|
|
14
7
|
authorStyle?: object;
|
|
15
8
|
}
|
|
16
|
-
declare const Advertise: FC<
|
|
9
|
+
declare const Advertise: FC<AdvertiseProps>;
|
|
17
10
|
export default Advertise;
|
package/core/AutoComplete.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, FC, ChangeEvent, KeyboardEvent, CSSProperties, Ref, FocusEvent } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface AutoCompleteProps {
|
|
3
3
|
autoFocus?: boolean;
|
|
4
4
|
defaultIsOpen?: boolean;
|
|
5
5
|
openOnFocus?: boolean;
|
|
@@ -8,7 +8,7 @@ interface IProps {
|
|
|
8
8
|
fade?: boolean;
|
|
9
9
|
focusDelay?: number;
|
|
10
10
|
suggestions: ISelected[];
|
|
11
|
-
value
|
|
11
|
+
value?: TSelected;
|
|
12
12
|
defaultValue?: string;
|
|
13
13
|
style?: CSSProperties;
|
|
14
14
|
maxHeight?: number;
|
|
@@ -36,5 +36,5 @@ interface ISelected {
|
|
|
36
36
|
subheader?: boolean;
|
|
37
37
|
}
|
|
38
38
|
declare type TSelected = ISelected | string;
|
|
39
|
-
declare const AutoComplete: FC<
|
|
39
|
+
declare const AutoComplete: FC<AutoCompleteProps>;
|
|
40
40
|
export default AutoComplete;
|
package/core/Avatar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import type { DefaultProps } from './types';
|
|
3
|
+
interface AvatarProps extends DefaultProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
sizes?: string;
|
|
@@ -8,5 +8,5 @@ interface IProps extends IDefault {
|
|
|
8
8
|
imgProps?: object;
|
|
9
9
|
primary?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const Avatar: FC<
|
|
11
|
+
declare const Avatar: FC<AvatarProps>;
|
|
12
12
|
export default Avatar;
|
package/core/Badge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
2
|
+
import { BadgeProps as MuiBadgeProps } from '@material-ui/core/Badge';
|
|
3
|
+
import type { DefaultProps } from './types';
|
|
4
|
+
interface BadgeProps extends DefaultProps, MuiBadgeProps {
|
|
5
5
|
max?: number;
|
|
6
6
|
counter: number | string;
|
|
7
7
|
position?: {
|
|
@@ -11,5 +11,5 @@ interface IProps extends IDefault, BadgeProps {
|
|
|
11
11
|
right?: number;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
declare const Badge: FC<
|
|
14
|
+
declare const Badge: FC<BadgeProps>;
|
|
15
15
|
export default Badge;
|
package/core/Box.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import type { DefaultProps } from './types';
|
|
3
|
+
interface BoxProps extends DefaultProps {
|
|
4
4
|
minHeight?: number;
|
|
5
5
|
}
|
|
6
|
-
declare const Box: FC<
|
|
6
|
+
declare const Box: FC<BoxProps>;
|
|
7
7
|
export default Box;
|
package/core/Button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ElementType, MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
export interface ButtonProps extends DefaultProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
disableTouchRipple?: boolean;
|
|
@@ -13,5 +13,5 @@ export interface IProps extends IDefault {
|
|
|
13
13
|
target?: string;
|
|
14
14
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
15
15
|
}
|
|
16
|
-
declare const Button: FC<
|
|
16
|
+
declare const Button: FC<ButtonProps>;
|
|
17
17
|
export default Button;
|
package/core/Card.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
import { CardProps } from '@material-ui/core/Card';
|
|
4
4
|
import { CardActionAreaProps } from '@material-ui/core/CardActionArea';
|
|
5
5
|
import { CardActionsProps } from '@material-ui/core/CardActions';
|
|
6
6
|
import { CardContentProps } from '@material-ui/core/CardContent';
|
|
7
7
|
import { CardMediaProps } from '@material-ui/core/CardMedia';
|
|
8
8
|
import { CardHeaderProps } from '@material-ui/core/CardHeader';
|
|
9
|
-
export declare const CardActionArea: FC<
|
|
10
|
-
export declare const CardActions: FC<
|
|
11
|
-
export declare const CardContent: FC<
|
|
12
|
-
export declare const CardMedia: FC<
|
|
13
|
-
export declare const CardHeader: FC<
|
|
14
|
-
declare const Card: FC<
|
|
9
|
+
export declare const CardActionArea: FC<DefaultProps & CardActionAreaProps>;
|
|
10
|
+
export declare const CardActions: FC<DefaultProps & CardActionsProps>;
|
|
11
|
+
export declare const CardContent: FC<DefaultProps & CardContentProps>;
|
|
12
|
+
export declare const CardMedia: FC<DefaultProps & CardMediaProps>;
|
|
13
|
+
export declare const CardHeader: FC<DefaultProps & CardHeaderProps>;
|
|
14
|
+
declare const Card: FC<DefaultProps & CardProps>;
|
|
15
15
|
export default Card;
|
package/core/Checkbox.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface CheckboxProps extends DefaultProps {
|
|
4
4
|
name: string;
|
|
5
5
|
label?: ReactNode;
|
|
6
6
|
color?: 'primary' | 'secondary' | 'default';
|
|
@@ -13,5 +13,5 @@ interface IProps extends IDefault {
|
|
|
13
13
|
onHelperClick?: () => void;
|
|
14
14
|
onChange?: (event: ChangeEvent<HTMLElement>) => void;
|
|
15
15
|
}
|
|
16
|
-
declare const Checkbox: (props:
|
|
16
|
+
declare const Checkbox: (props: CheckboxProps) => JSX.Element;
|
|
17
17
|
export default Checkbox;
|
package/core/Chip.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
import { ChipProps } from '@material-ui/core/Chip';
|
|
4
|
-
interface
|
|
4
|
+
interface IChipProps extends DefaultProps {
|
|
5
5
|
square?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const Chip: FC<ChipProps &
|
|
7
|
+
declare const Chip: FC<ChipProps & IChipProps>;
|
|
8
8
|
export default Chip;
|
package/core/ChipField.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChipRenderer } from 'material-ui-chip-input';
|
|
3
3
|
import { InputLabelProps } from '@material-ui/core';
|
|
4
|
-
interface
|
|
4
|
+
interface ChipFieldProps<T extends TChipValues> {
|
|
5
5
|
allowDuplicates?: boolean;
|
|
6
6
|
values: T[];
|
|
7
7
|
variant?: 'outlined' | 'standard' | 'filled';
|
|
@@ -20,5 +20,5 @@ interface IProps<T extends TChipValues> {
|
|
|
20
20
|
export declare type TChipValues = {
|
|
21
21
|
value: string | number;
|
|
22
22
|
};
|
|
23
|
-
declare const ChipField: <T extends TChipValues>(props:
|
|
23
|
+
declare const ChipField: <T extends TChipValues>(props: ChipFieldProps<T>) => JSX.Element;
|
|
24
24
|
export default ChipField;
|
package/core/Collapse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface CollapseProps extends DefaultProps {
|
|
4
4
|
collapsedHeight?: string;
|
|
5
5
|
in: boolean;
|
|
6
6
|
timeout?: number | {
|
|
@@ -8,5 +8,5 @@ interface IProps extends IDefault {
|
|
|
8
8
|
exit?: number;
|
|
9
9
|
} | 'auto';
|
|
10
10
|
}
|
|
11
|
-
declare const Collapse: FC<
|
|
11
|
+
declare const Collapse: FC<CollapseProps>;
|
|
12
12
|
export default Collapse;
|
package/core/Container.d.ts
CHANGED
package/core/Content.d.ts
CHANGED
package/core/DateTime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import DateFnsUtils from '@date-io/date-fns';
|
|
3
|
-
import {
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
4
|
import { KeyboardDatePickerProps } from '@material-ui/pickers/DatePicker';
|
|
5
5
|
import { KeyboardDateTimePickerProps } from '@material-ui/pickers/DateTimePicker';
|
|
6
6
|
import { KeyboardTimePickerProps } from '@material-ui/pickers/TimePicker';
|
|
@@ -14,6 +14,6 @@ interface IProps {
|
|
|
14
14
|
onAuxClickCapture?(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
15
15
|
onChange(date: MaterialUiPickersDate | null, value?: string): void;
|
|
16
16
|
}
|
|
17
|
-
declare type
|
|
18
|
-
declare const DateTime: FC<
|
|
17
|
+
declare type DateTimeProps = Omit<KeyboardDatePickerProps, 'margin' | 'onChange'> & Omit<KeyboardDateTimePickerProps, 'margin' | 'onChange'> & Omit<KeyboardTimePickerProps, 'margin' | 'onChange'> & IProps & DefaultProps;
|
|
18
|
+
declare const DateTime: FC<DateTimeProps>;
|
|
19
19
|
export default DateTime;
|
package/core/Dialog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode, FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface DialogProps extends DefaultProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
fullScreen?: boolean;
|
|
6
6
|
fullWidth?: boolean;
|
|
@@ -23,5 +23,5 @@ interface IProps extends IDefault {
|
|
|
23
23
|
scroll?: 'body' | 'paper' | 'unset-paper' | 'unset-body';
|
|
24
24
|
onClose?: () => void;
|
|
25
25
|
}
|
|
26
|
-
declare const Dialog: FC<
|
|
26
|
+
declare const Dialog: FC<DialogProps>;
|
|
27
27
|
export default Dialog;
|
package/core/Divider.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface DividerProps extends DefaultProps {
|
|
4
4
|
inset?: boolean;
|
|
5
5
|
light?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const Divider: FC<
|
|
7
|
+
declare const Divider: FC<DividerProps>;
|
|
8
8
|
export default Divider;
|
package/core/Drawer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DrawerProps } from '@material-ui/core/Drawer';
|
|
1
|
+
import { DrawerProps as MuiDrawerProps } from '@material-ui/core/Drawer';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
|
+
interface DrawerProps extends MuiDrawerProps, DefaultProps {
|
|
5
5
|
top?: number;
|
|
6
6
|
width?: number;
|
|
7
7
|
}
|
|
8
|
-
declare const Drawer: FC<
|
|
8
|
+
declare const Drawer: FC<DrawerProps>;
|
|
9
9
|
export default Drawer;
|
package/core/EditableTable.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Column, Options } from 'material-table';
|
|
3
|
-
interface
|
|
3
|
+
interface EditableTableProps<T extends object> {
|
|
4
4
|
title?: string;
|
|
5
5
|
color?: 'primary' | 'inherit' | 'secondary' | 'disabled';
|
|
6
6
|
columns?: Column<object>[];
|
|
@@ -26,5 +26,5 @@ export declare type TSuggestion = {
|
|
|
26
26
|
label: string;
|
|
27
27
|
value: string;
|
|
28
28
|
};
|
|
29
|
-
declare const EditableTable: <T extends object>(props:
|
|
29
|
+
declare const EditableTable: <T extends object>(props: EditableTableProps<T>) => JSX.Element;
|
|
30
30
|
export default EditableTable;
|
package/core/ExpansionPanel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { PaperProps } from './Paper';
|
|
3
|
+
interface ExpansionPanelProps extends PaperProps {
|
|
4
4
|
actions?: ReactNode;
|
|
5
5
|
defaultExpanded?: boolean;
|
|
6
6
|
details?: ReactNode;
|
|
@@ -16,5 +16,5 @@ interface IProps extends IPaper {
|
|
|
16
16
|
onHelperClick?: () => void;
|
|
17
17
|
onChange?: (event?: any, expanded?: any) => void;
|
|
18
18
|
}
|
|
19
|
-
declare const ExpansionPanel: FC<
|
|
19
|
+
declare const ExpansionPanel: FC<ExpansionPanelProps>;
|
|
20
20
|
export default ExpansionPanel;
|
package/core/Fab.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface FabProps extends DefaultProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
component?: string;
|
|
6
6
|
color?: 'default' | 'primary' | 'inherit' | 'secondary';
|
|
@@ -10,5 +10,5 @@ interface IProps extends IDefault {
|
|
|
10
10
|
onClick?: (event?: MouseEvent<HTMLElement>) => void;
|
|
11
11
|
children: React.ReactElement<{}>;
|
|
12
12
|
}
|
|
13
|
-
declare const Fab: ({ children, margin, padding, style, variant, ...otherProps }:
|
|
13
|
+
declare const Fab: ({ children, margin, padding, style, variant, ...otherProps }: FabProps) => JSX.Element;
|
|
14
14
|
export default Fab;
|
package/core/Fade.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface FadeProps extends DefaultProps {
|
|
4
4
|
in: boolean;
|
|
5
5
|
timeout?: number | {
|
|
6
6
|
enter?: number;
|
|
@@ -8,5 +8,5 @@ interface IProps extends IDefault {
|
|
|
8
8
|
};
|
|
9
9
|
children?: React.ReactElement<{}>;
|
|
10
10
|
}
|
|
11
|
-
declare const Fade: ({ children, padding, margin, style, ...otherProps }:
|
|
11
|
+
declare const Fade: ({ children, padding, margin, style, ...otherProps }: FadeProps) => JSX.Element;
|
|
12
12
|
export default Fade;
|
package/core/Grow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface GrowProps extends DefaultProps {
|
|
4
4
|
in: boolean;
|
|
5
5
|
timeout?: number | {
|
|
6
6
|
enter?: number;
|
|
@@ -8,5 +8,5 @@ interface IProps extends IDefault {
|
|
|
8
8
|
} | 'auto';
|
|
9
9
|
children?: React.ReactElement<{}>;
|
|
10
10
|
}
|
|
11
|
-
declare const Grow: ({ children, padding, margin, style, ...otherProps }:
|
|
11
|
+
declare const Grow: ({ children, padding, margin, style, ...otherProps }: GrowProps) => JSX.Element;
|
|
12
12
|
export default Grow;
|
package/core/Header.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { PaperProps } from './Paper';
|
|
3
|
+
interface HeaderProps extends PaperProps {
|
|
4
4
|
position?: 'absolute' | 'fixed' | 'static' | 'sticky';
|
|
5
5
|
color?: 'default' | 'inherit' | 'primary' | 'secondary';
|
|
6
6
|
}
|
|
7
|
-
declare const Header: FC<
|
|
7
|
+
declare const Header: FC<HeaderProps>;
|
|
8
8
|
export default Header;
|
package/core/IconButton.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface IconButtonProps extends DefaultProps {
|
|
4
4
|
color?: 'default' | 'inherit' | 'primary' | 'secondary';
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
7
7
|
}
|
|
8
|
-
declare const IconButton: FC<
|
|
8
|
+
declare const IconButton: FC<IconButtonProps>;
|
|
9
9
|
export default IconButton;
|
package/core/InputAdornment.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
export interface InputAdornmentProps extends DefaultProps {
|
|
4
4
|
position: 'start' | 'end';
|
|
5
5
|
}
|
|
6
|
-
declare const InputAdornment: FC<
|
|
6
|
+
declare const InputAdornment: FC<InputAdornmentProps>;
|
|
7
7
|
export default InputAdornment;
|
package/core/InputBase.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode, FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
export interface InputAdornmentProps extends DefaultProps {
|
|
4
4
|
autoComplete?: string;
|
|
5
5
|
autoFocus?: boolean;
|
|
6
6
|
classes?: object;
|
|
@@ -22,5 +22,5 @@ export interface IProps extends IDefault {
|
|
|
22
22
|
type?: string;
|
|
23
23
|
value?: string | number | boolean;
|
|
24
24
|
}
|
|
25
|
-
declare const InputAdornment: FC<
|
|
25
|
+
declare const InputAdornment: FC<InputAdornmentProps>;
|
|
26
26
|
export default InputAdornment;
|
package/core/Line.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface LineProps extends DefaultProps {
|
|
4
4
|
primary?: boolean;
|
|
5
5
|
width?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const Line: FC<
|
|
7
|
+
declare const Line: FC<LineProps>;
|
|
8
8
|
export default Line;
|
package/core/List.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface ListProps extends DefaultProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
dense?: boolean;
|
|
6
6
|
color?: 'primary' | 'secondary' | 'default' | 'inherit';
|
|
7
7
|
}
|
|
8
|
-
declare const List: FC<
|
|
8
|
+
declare const List: FC<ListProps>;
|
|
9
9
|
export default List;
|
package/core/ListItem.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEvent, FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
import { Omit } from 'ramda';
|
|
4
|
-
interface
|
|
4
|
+
interface ListItemProps extends Omit<DefaultProps, 'name'> {
|
|
5
5
|
avatar?: JSX.Element;
|
|
6
6
|
icon?: JSX.Element;
|
|
7
7
|
action?: JSX.Element;
|
|
@@ -12,5 +12,5 @@ interface IProps extends Omit<IDefault, 'name'> {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
onClick?: (event?: MouseEvent) => void;
|
|
14
14
|
}
|
|
15
|
-
declare const ListItem: FC<
|
|
15
|
+
declare const ListItem: FC<ListItemProps>;
|
|
16
16
|
export default ListItem;
|
package/core/MaskField.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { TextFieldProps } from './TextField';
|
|
3
|
+
interface MaskFieldProps {
|
|
4
4
|
mask?: string;
|
|
5
5
|
type?: 'text' | 'tel' | 'password';
|
|
6
6
|
decimalSeparator?: string;
|
|
@@ -8,9 +8,9 @@ interface IMaskProps {
|
|
|
8
8
|
decimalScale?: number;
|
|
9
9
|
thousandSeparator?: boolean | string;
|
|
10
10
|
fixedDecimalScale?: boolean;
|
|
11
|
-
customInput?: React.ComponentType<
|
|
11
|
+
customInput?: React.ComponentType<TextFieldProps>;
|
|
12
12
|
}
|
|
13
|
-
declare class MaskField extends Component<
|
|
13
|
+
declare class MaskField extends Component<TextFieldProps & MaskFieldProps> {
|
|
14
14
|
render(): JSX.Element;
|
|
15
15
|
}
|
|
16
16
|
export default MaskField;
|
package/core/Menu.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { MenuProps } from '@material-ui/core/Menu';
|
|
4
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
import { MenuProps as MuiMenuProps } from '@material-ui/core/Menu';
|
|
4
|
+
interface MenuProps extends DefaultProps, MuiMenuProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
anchorEl?: HTMLElement;
|
|
7
7
|
withWrapper?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const Menu: FC<
|
|
9
|
+
declare const Menu: FC<MenuProps>;
|
|
10
10
|
export default Menu;
|
package/core/Node.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface NodeProps extends DefaultProps {
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
6
|
interface IState {
|
|
7
7
|
open: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare class Node extends Component<
|
|
9
|
+
declare class Node extends Component<NodeProps, IState> {
|
|
10
10
|
constructor(props: any);
|
|
11
11
|
handleToggleOpen(): void;
|
|
12
12
|
renderDropdownIcon(): JSX.Element;
|
package/core/Pagination.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface PaginationProps extends DefaultProps {
|
|
4
4
|
pages?: number;
|
|
5
5
|
active: number;
|
|
6
6
|
onNext: () => {};
|
|
7
7
|
onPrevious: () => {};
|
|
8
8
|
onNavigate: (page: any) => {};
|
|
9
9
|
}
|
|
10
|
-
declare class Pagination extends Component<
|
|
10
|
+
declare class Pagination extends Component<PaginationProps, {}> {
|
|
11
11
|
render(): JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export default Pagination;
|
package/core/Paper.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import type { DefaultProps } from './types';
|
|
3
|
+
export interface PaperProps extends DefaultProps {
|
|
4
4
|
square?: boolean;
|
|
5
5
|
elevation?: number;
|
|
6
6
|
}
|
|
7
|
-
declare const Paper: FC<
|
|
7
|
+
declare const Paper: FC<PaperProps>;
|
|
8
8
|
export default Paper;
|
package/core/Progress.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
interface ILinear {
|
|
4
4
|
color?: 'primary' | 'secondary';
|
|
5
5
|
valueBuffer?: number;
|
|
@@ -16,9 +16,9 @@ interface ICircular {
|
|
|
16
16
|
color?: 'primary' | 'secondary' | 'inherit';
|
|
17
17
|
variant?: 'determinate' | 'indeterminate' | 'static';
|
|
18
18
|
}
|
|
19
|
-
interface
|
|
19
|
+
interface ProgressProps extends DefaultProps {
|
|
20
20
|
value?: number;
|
|
21
21
|
linear?: boolean;
|
|
22
22
|
}
|
|
23
|
-
declare const Progress: FC<
|
|
23
|
+
declare const Progress: FC<ProgressProps & ICircular & ILinear>;
|
|
24
24
|
export default Progress;
|
package/core/Radio.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChangeEvent, FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface RadioProps extends DefaultProps {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
color?: 'primary' | 'secondary' | 'default';
|
|
6
6
|
value?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
onChange?: (event: ChangeEvent<HTMLElement>) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const Radio: FC<
|
|
10
|
+
declare const Radio: FC<RadioProps>;
|
|
11
11
|
export default Radio;
|
package/core/RadioGroup.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface RadioGroupProps extends DefaultProps {
|
|
4
4
|
row?: boolean;
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
name: string;
|
|
@@ -8,12 +8,12 @@ interface IProps extends IDefault {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
spacing?: 'default' | 'equal';
|
|
10
10
|
options?: IOption[];
|
|
11
|
-
onChange?: (event: ChangeEvent<
|
|
11
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
}
|
|
13
13
|
interface IOption {
|
|
14
14
|
value: string;
|
|
15
15
|
label?: ReactNode;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const RadioGroup: FC<
|
|
18
|
+
declare const RadioGroup: FC<RadioGroupProps>;
|
|
19
19
|
export default RadioGroup;
|
package/core/Select.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ChangeEvent, FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface SelectProps extends DefaultProps {
|
|
4
4
|
autoWidth?: boolean;
|
|
5
5
|
value?: string | number;
|
|
6
6
|
multiple?: boolean;
|
|
7
7
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
8
|
+
hasClear?: boolean;
|
|
9
|
+
onClear?: () => void;
|
|
8
10
|
onClose?: () => void;
|
|
9
11
|
onChange?: (event: ChangeEvent<HTMLSelectElement | HTMLInputElement>) => void;
|
|
10
12
|
}
|
|
11
|
-
declare const Select: FC<
|
|
13
|
+
declare const Select: FC<SelectProps>;
|
|
12
14
|
export default Select;
|