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.
Files changed (113) hide show
  1. package/core/Advertise.d.ts +4 -11
  2. package/core/AutoComplete.d.ts +3 -3
  3. package/core/Avatar.d.ts +3 -3
  4. package/core/Badge.d.ts +4 -4
  5. package/core/Box.d.ts +3 -3
  6. package/core/Button.d.ts +3 -3
  7. package/core/Card.d.ts +7 -7
  8. package/core/Checkbox.d.ts +3 -3
  9. package/core/Chip.d.ts +3 -3
  10. package/core/ChipField.d.ts +2 -2
  11. package/core/Collapse.d.ts +3 -3
  12. package/core/Container.d.ts +2 -2
  13. package/core/Content.d.ts +2 -2
  14. package/core/DateTime.d.ts +3 -3
  15. package/core/Dialog.d.ts +3 -3
  16. package/core/Divider.d.ts +3 -3
  17. package/core/Drawer.d.ts +4 -4
  18. package/core/EditableTable.d.ts +2 -2
  19. package/core/ExpansionPanel.d.ts +3 -3
  20. package/core/Fab.d.ts +3 -3
  21. package/core/Fade.d.ts +3 -3
  22. package/core/Grow.d.ts +3 -3
  23. package/core/Header.d.ts +3 -3
  24. package/core/IconButton.d.ts +3 -3
  25. package/core/InputAdornment.d.ts +3 -3
  26. package/core/InputBase.d.ts +3 -3
  27. package/core/Line.d.ts +3 -3
  28. package/core/List.d.ts +3 -3
  29. package/core/ListItem.d.ts +3 -3
  30. package/core/MaskField.d.ts +4 -4
  31. package/core/Menu.d.ts +4 -4
  32. package/core/Node.d.ts +3 -3
  33. package/core/Pagination.d.ts +3 -3
  34. package/core/Paper.d.ts +3 -3
  35. package/core/Progress.d.ts +3 -3
  36. package/core/Radio.d.ts +3 -3
  37. package/core/RadioGroup.d.ts +4 -4
  38. package/core/Select.d.ts +5 -3
  39. package/core/Select.js +42 -13
  40. package/core/Sidebar.d.ts +5 -5
  41. package/core/Sidebar.js +2 -1
  42. package/core/Slide.d.ts +3 -3
  43. package/core/Slider.d.ts +3 -3
  44. package/core/Snackbar.d.ts +3 -3
  45. package/core/Stepper.d.ts +3 -3
  46. package/core/Tab.d.ts +3 -3
  47. package/core/Table.d.ts +5 -5
  48. package/core/TableBody.d.ts +2 -2
  49. package/core/TableCell.d.ts +5 -5
  50. package/core/TableHead.d.ts +3 -3
  51. package/core/TableRow.d.ts +4 -4
  52. package/core/Tabs.d.ts +3 -3
  53. package/core/TextField.d.ts +4 -5
  54. package/core/ThemeProvider.d.ts +2 -2
  55. package/core/Tooltip.d.ts +3 -3
  56. package/core/Tree.d.ts +2 -2
  57. package/core/Typography.d.ts +2 -2
  58. package/core/Zoom.d.ts +3 -3
  59. package/core/types.d.ts +9 -0
  60. package/core/types.js +1 -0
  61. package/package.json +84 -79
  62. package/stories/Advertise.stories.js +31 -0
  63. package/stories/AutoComplete.stories.js +133 -0
  64. package/stories/AutoCompleteLab.stories.js +64 -0
  65. package/stories/Avatar.stories.js +44 -0
  66. package/stories/Badge.stories.js +63 -0
  67. package/stories/Box.stories.js +29 -0
  68. package/stories/Breadcrumb.stories.js +41 -0
  69. package/stories/Button.stories.js +132 -0
  70. package/stories/Card.stories.js +43 -0
  71. package/stories/Checkbox.stories.js +98 -0
  72. package/stories/Chip.stories.js +72 -0
  73. package/stories/ChipField.stories.js +60 -0
  74. package/stories/Collapse.stories.js +70 -0
  75. package/stories/Container.stories.js +24 -0
  76. package/stories/Content.stories.js +28 -0
  77. package/stories/DataTable.stories.js +737 -0
  78. package/stories/Dialog.stories.js +82 -0
  79. package/stories/Divider.stories.js +46 -0
  80. package/stories/Drawer.stories.js +55 -0
  81. package/stories/EditTable.stories.js +149 -0
  82. package/stories/ExpansionPanel.stories.js +54 -0
  83. package/stories/Fab.stories.js +28 -0
  84. package/stories/Fade.stories.js +54 -0
  85. package/stories/Grow.stories.js +63 -0
  86. package/stories/Header.stories.js +41 -0
  87. package/stories/IconButton.stories.js +48 -0
  88. package/stories/InputAdornment.stories.js +28 -0
  89. package/stories/InputBase.stories.js +54 -0
  90. package/stories/Line.stories.js +35 -0
  91. package/stories/List.stories.js +112 -0
  92. package/stories/MaskField.stories.js +58 -0
  93. package/stories/Menu.stories.js +82 -0
  94. package/stories/Node.stories.js +39 -0
  95. package/stories/Pagination.stories.js +39 -0
  96. package/stories/Paper.stories.js +65 -0
  97. package/stories/Progress.stories.js +86 -0
  98. package/stories/Radio.stories.js +52 -0
  99. package/stories/RadioGroup.stories.js +47 -0
  100. package/stories/Select.stories.js +100 -0
  101. package/stories/Sidebar.stories.js +43 -0
  102. package/stories/Slide.stories.js +62 -0
  103. package/stories/Slider.stories.js +69 -0
  104. package/stories/Snackbar.stories.js +102 -0
  105. package/stories/Stepper.stories.js +43 -0
  106. package/stories/Table.stories.js +32 -0
  107. package/stories/Tabs.stories.js +37 -0
  108. package/stories/TextField.stories.js +100 -0
  109. package/stories/Tooltip.stories.js +129 -0
  110. package/stories/Tree.stories.js +45 -0
  111. package/stories/Typography.stories.js +130 -0
  112. package/stories/Zooms.stories.js +54 -0
  113. package/docz/Wrapper.js +0 -25
@@ -1,17 +1,10 @@
1
- import { FC, CSSProperties } from 'react';
2
- export interface IDefault {
3
- style?: CSSProperties;
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<IProps>;
9
+ declare const Advertise: FC<AdvertiseProps>;
17
10
  export default Advertise;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode, FC, ChangeEvent, KeyboardEvent, CSSProperties, Ref, FocusEvent } from 'react';
2
- interface IProps {
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: TSelected;
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
3
- import { BadgeProps } from '@material-ui/core/Badge';
4
- interface IProps extends IDefault, BadgeProps {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
2
+ import type { DefaultProps } from './types';
3
+ interface BoxProps extends DefaultProps {
4
4
  minHeight?: number;
5
5
  }
6
- declare const Box: FC<IProps>;
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 { IDefault } from './Advertise';
3
- export interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
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<IDefault & CardActionAreaProps>;
10
- export declare const CardActions: FC<IDefault & CardActionsProps>;
11
- export declare const CardContent: FC<IDefault & CardContentProps>;
12
- export declare const CardMedia: FC<IDefault & CardMediaProps>;
13
- export declare const CardHeader: FC<IDefault & CardHeaderProps>;
14
- declare const Card: FC<IDefault & CardProps>;
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;
@@ -1,6 +1,6 @@
1
1
  import React, { ChangeEvent, ReactNode } from 'react';
2
- import { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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: IProps) => JSX.Element;
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 { IDefault } from './Advertise';
2
+ import { DefaultProps } from './types';
3
3
  import { ChipProps } from '@material-ui/core/Chip';
4
- interface IProps extends IDefault {
4
+ interface IChipProps extends DefaultProps {
5
5
  square?: boolean;
6
6
  }
7
- declare const Chip: FC<ChipProps & IProps>;
7
+ declare const Chip: FC<ChipProps & IChipProps>;
8
8
  export default Chip;
@@ -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 IProps<T extends TChipValues> {
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: IProps<T>) => JSX.Element;
23
+ declare const ChipField: <T extends TChipValues>(props: ChipFieldProps<T>) => JSX.Element;
24
24
  export default ChipField;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
11
+ declare const Collapse: FC<CollapseProps>;
12
12
  export default Collapse;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { IDefault } from './Advertise';
3
- declare const Container: FC<IDefault>;
2
+ import { DefaultProps } from './types';
3
+ declare const Container: FC<DefaultProps>;
4
4
  export default Container;
package/core/Content.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { IDefault } from './Advertise';
3
- declare const Content: FC<IDefault>;
2
+ import { DefaultProps } from './types';
3
+ declare const Content: FC<DefaultProps>;
4
4
  export default Content;
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import DateFnsUtils from '@date-io/date-fns';
3
- import { IDefault } from './Advertise';
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 TProps = Omit<KeyboardDatePickerProps, 'margin' | 'onChange'> & Omit<KeyboardDateTimePickerProps, 'margin' | 'onChange'> & Omit<KeyboardTimePickerProps, 'margin' | 'onChange'> & IProps & IDefault;
18
- declare const DateTime: FC<TProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
4
- interface IProps extends DrawerProps, IDefault {
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<IProps>;
8
+ declare const Drawer: FC<DrawerProps>;
9
9
  export default Drawer;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Column, Options } from 'material-table';
3
- interface IProps<T extends object> {
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: IProps<T>) => JSX.Element;
29
+ declare const EditableTable: <T extends object>(props: EditableTableProps<T>) => JSX.Element;
30
30
  export default EditableTable;
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode, FC } from 'react';
2
- import { IProps as IPaper } from './Paper';
3
- interface IProps extends IPaper {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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 }: IProps) => JSX.Element;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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 }: IProps) => JSX.Element;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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 }: IProps) => JSX.Element;
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 { IProps as IPaper } from './Paper';
3
- interface IProps extends IPaper {
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<IProps>;
7
+ declare const Header: FC<HeaderProps>;
8
8
  export default Header;
@@ -1,9 +1,9 @@
1
1
  import { FC, MouseEvent } from 'react';
2
- import { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
8
+ declare const IconButton: FC<IconButtonProps>;
9
9
  export default IconButton;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { IDefault } from './Advertise';
3
- export interface IProps extends IDefault {
2
+ import { DefaultProps } from './types';
3
+ export interface InputAdornmentProps extends DefaultProps {
4
4
  position: 'start' | 'end';
5
5
  }
6
- declare const InputAdornment: FC<IProps>;
6
+ declare const InputAdornment: FC<InputAdornmentProps>;
7
7
  export default InputAdornment;
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, ReactNode, FC } from 'react';
2
- import { IDefault } from './Advertise';
3
- export interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
8
+ declare const List: FC<ListProps>;
9
9
  export default List;
@@ -1,7 +1,7 @@
1
1
  import { MouseEvent, FC } from 'react';
2
- import { IDefault } from './Advertise';
2
+ import { DefaultProps } from './types';
3
3
  import { Omit } from 'ramda';
4
- interface IProps extends Omit<IDefault, 'name'> {
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<IProps>;
15
+ declare const ListItem: FC<ListItemProps>;
16
16
  export default ListItem;
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import { IProps } from './TextField';
3
- interface IMaskProps {
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<IProps>;
11
+ customInput?: React.ComponentType<TextFieldProps>;
12
12
  }
13
- declare class MaskField extends Component<IProps & IMaskProps> {
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 { IDefault } from './Advertise';
3
- import { MenuProps } from '@material-ui/core/Menu';
4
- interface IProps extends IDefault, MenuProps {
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps, IState> {
9
+ declare class Node extends Component<NodeProps, IState> {
10
10
  constructor(props: any);
11
11
  handleToggleOpen(): void;
12
12
  renderDropdownIcon(): JSX.Element;
@@ -1,13 +1,13 @@
1
1
  import { Component } from 'react';
2
- import { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps, {}> {
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 { IDefault } from './Advertise';
3
- export interface IProps extends IDefault {
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<IProps>;
7
+ declare const Paper: FC<PaperProps>;
8
8
  export default Paper;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { IDefault } from './Advertise';
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 IProps extends IDefault {
19
+ interface ProgressProps extends DefaultProps {
20
20
  value?: number;
21
21
  linear?: boolean;
22
22
  }
23
- declare const Progress: FC<IProps & ICircular & ILinear>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
10
+ declare const Radio: FC<RadioProps>;
11
11
  export default Radio;
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, FC, ReactNode } from 'react';
2
- import { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<HTMLElement>) => void;
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<IProps>;
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 { IDefault } from './Advertise';
3
- interface IProps extends IDefault {
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<IProps>;
13
+ declare const Select: FC<SelectProps>;
12
14
  export default Select;