flipper-ui 0.26.1 → 0.26.7

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 (86) hide show
  1. package/core/Advertise.d.ts +1 -2
  2. package/core/AutoComplete.d.ts +2 -2
  3. package/core/Avatar.d.ts +3 -2
  4. package/core/Badge.d.ts +4 -3
  5. package/core/Box.d.ts +4 -3
  6. package/core/Button.d.ts +3 -2
  7. package/core/Card.d.ts +6 -7
  8. package/core/Chapter.d.ts +4 -3
  9. package/core/Chapter.js +1 -1
  10. package/core/Checkbox.d.ts +1 -1
  11. package/core/Chip.d.ts +2 -3
  12. package/core/ChipField.js +1 -0
  13. package/core/Collapse.d.ts +3 -2
  14. package/core/Container.d.ts +1 -2
  15. package/core/Content.d.ts +1 -2
  16. package/core/DataTable/DataTable.d.ts +1 -1
  17. package/core/DataTable/DataTablePaginationActions.js +0 -2
  18. package/core/DataTable/DataTableQueryPaginated.d.ts +1 -1
  19. package/core/DataTable/DataTableQueryPaginated.js +1 -1
  20. package/core/DataTable/types.d.ts +1 -1
  21. package/core/DataTable/types.js +0 -1
  22. package/core/DataTable/usePaginated.d.ts +6 -3
  23. package/core/DataTable/usePaginated.js +3 -3
  24. package/core/DateTime.d.ts +2 -2
  25. package/core/DateTime.js +1 -1
  26. package/core/Dialog.d.ts +2 -2
  27. package/core/Divider.d.ts +1 -2
  28. package/core/Drawer.d.ts +1 -2
  29. package/core/EditableTable.js +1 -1
  30. package/core/ExpansionPanel.d.ts +3 -3
  31. package/core/ExpansionPanel.js +1 -1
  32. package/core/Fab.d.ts +1 -1
  33. package/core/Fade.d.ts +1 -1
  34. package/core/Grow.d.ts +1 -1
  35. package/core/Header.d.ts +2 -3
  36. package/core/IconButton.d.ts +3 -3
  37. package/core/InputAdornment.d.ts +1 -2
  38. package/core/InputBase.d.ts +2 -2
  39. package/core/Line.d.ts +1 -2
  40. package/core/Line.js +1 -1
  41. package/core/List.d.ts +1 -2
  42. package/core/ListItem.d.ts +2 -2
  43. package/core/MaskField.d.ts +3 -5
  44. package/core/MaskField.js +14 -37
  45. package/core/Menu.d.ts +1 -2
  46. package/core/Node.d.ts +1 -10
  47. package/core/Node.js +32 -64
  48. package/core/Pagination.d.ts +5 -8
  49. package/core/Pagination.js +36 -57
  50. package/core/Paper.d.ts +1 -2
  51. package/core/PinInput.d.ts +1 -1
  52. package/core/PinInput.js +8 -7
  53. package/core/Progress.d.ts +1 -2
  54. package/core/Radio.d.ts +2 -2
  55. package/core/RadioGroup.d.ts +2 -2
  56. package/core/Select.d.ts +3 -2
  57. package/core/Sidebar.d.ts +2 -3
  58. package/core/Sidebar.js +6 -6
  59. package/core/Slider.d.ts +2 -2
  60. package/core/Snackbar.d.ts +3 -3
  61. package/core/Stepper.d.ts +2 -8
  62. package/core/Stepper.js +27 -53
  63. package/core/Tab.d.ts +1 -8
  64. package/core/Tab.js +14 -41
  65. package/core/Table.d.ts +1 -2
  66. package/core/TableBody.d.ts +1 -2
  67. package/core/TableCell.d.ts +1 -2
  68. package/core/TableHead.d.ts +1 -1
  69. package/core/TableRow.d.ts +2 -2
  70. package/core/Tabs.d.ts +2 -2
  71. package/core/TextField.d.ts +2 -2
  72. package/core/ThemeProvider.d.ts +3 -2
  73. package/core/Tree.d.ts +2 -6
  74. package/core/Tree.js +27 -45
  75. package/core/Typography.d.ts +1 -2
  76. package/core/types.d.ts +1 -0
  77. package/index.d.ts +1 -0
  78. package/index.js +8 -1
  79. package/package.json +44 -19
  80. package/stories/Chapter.stories.js +1 -1
  81. package/stories/Collapse.stories.js +1 -1
  82. package/stories/DataTable.stories.js +15 -8
  83. package/stories/DataTableQueryPaginated.stories.js +15 -8
  84. package/stories/Dialog.stories.js +2 -2
  85. package/stories/Slider.stories.js +1 -1
  86. package/stories/TextField.stories.js +3 -3
@@ -1,4 +1,3 @@
1
- import { FC } from 'react';
2
1
  import type { DefaultProps } from './types';
3
2
  interface AdvertiseProps extends DefaultProps {
4
3
  comment: string;
@@ -6,5 +5,5 @@ interface AdvertiseProps extends DefaultProps {
6
5
  commentStyle?: object;
7
6
  authorStyle?: object;
8
7
  }
9
- declare const Advertise: FC<AdvertiseProps>;
8
+ declare const Advertise: ({ comment, author, padding, commentStyle, authorStyle, ...otherProps }: AdvertiseProps) => JSX.Element;
10
9
  export default Advertise;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, FC, ChangeEvent, KeyboardEvent, CSSProperties, Ref, FocusEvent } from 'react';
1
+ import React, { ReactNode, ChangeEvent, KeyboardEvent, CSSProperties, Ref, FocusEvent } from 'react';
2
2
  interface AutoCompleteProps {
3
3
  autoFocus?: boolean;
4
4
  defaultIsOpen?: boolean;
@@ -36,5 +36,5 @@ interface ISelected {
36
36
  subheader?: boolean;
37
37
  }
38
38
  declare type TSelected = ISelected | string;
39
- declare const AutoComplete: FC<AutoCompleteProps>;
39
+ declare const AutoComplete: (props: AutoCompleteProps) => JSX.Element;
40
40
  export default AutoComplete;
package/core/Avatar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import type { DefaultProps } from './types';
3
3
  interface AvatarProps extends DefaultProps {
4
4
  name?: string;
@@ -7,6 +7,7 @@ interface AvatarProps extends DefaultProps {
7
7
  src?: string;
8
8
  imgProps?: object;
9
9
  primary?: boolean;
10
+ children: React.ReactNode;
10
11
  }
11
- declare const Avatar: FC<AvatarProps>;
12
+ declare const Avatar: ({ children, primary, className, ...otherProps }: AvatarProps) => JSX.Element;
12
13
  export default Avatar;
package/core/Badge.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { BadgeProps as MuiBadgeProps } from '@material-ui/core/Badge';
3
3
  import type { DefaultProps } from './types';
4
- interface BadgeProps extends DefaultProps, MuiBadgeProps {
4
+ export interface BadgeProps extends DefaultProps, MuiBadgeProps {
5
+ children: React.ReactNode;
5
6
  max?: number;
6
7
  counter: number | string;
7
8
  position?: {
@@ -11,5 +12,5 @@ interface BadgeProps extends DefaultProps, MuiBadgeProps {
11
12
  right?: number;
12
13
  };
13
14
  }
14
- declare const Badge: FC<BadgeProps>;
15
+ declare const Badge: (props: BadgeProps) => JSX.Element;
15
16
  export default Badge;
package/core/Box.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import type { DefaultProps } from './types';
3
- interface BoxProps extends DefaultProps {
3
+ export interface BoxProps extends DefaultProps {
4
4
  minHeight?: number;
5
+ children: React.ReactNode;
5
6
  }
6
- declare const Box: FC<BoxProps>;
7
+ declare const Box: ({ children, margin, padding, style, minHeight, ...otherProps }: BoxProps) => JSX.Element;
7
8
  export default Box;
package/core/Button.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FC, ElementType, MouseEvent } from 'react';
1
+ import React, { ElementType, MouseEvent } from 'react';
2
2
  import { DefaultProps } from './types';
3
3
  export interface ButtonProps extends DefaultProps {
4
4
  disabled?: boolean;
@@ -11,7 +11,8 @@ export interface ButtonProps extends DefaultProps {
11
11
  fullWidth?: boolean;
12
12
  variant?: 'text' | 'outlined' | 'contained' | 'dashed';
13
13
  target?: string;
14
+ children?: React.ReactNode;
14
15
  onClick?(event: MouseEvent<HTMLButtonElement>): void;
15
16
  }
16
- declare const Button: FC<ButtonProps>;
17
+ declare const Button: ({ children, margin, padding, style, variant, ...otherProps }: ButtonProps) => JSX.Element;
17
18
  export default Button;
package/core/Card.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  import { CardProps } from '@material-ui/core/Card';
4
3
  import { CardActionAreaProps } from '@material-ui/core/CardActionArea';
@@ -6,10 +5,10 @@ import { CardActionsProps } from '@material-ui/core/CardActions';
6
5
  import { CardContentProps } from '@material-ui/core/CardContent';
7
6
  import { CardMediaProps } from '@material-ui/core/CardMedia';
8
7
  import { CardHeaderProps } from '@material-ui/core/CardHeader';
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>;
8
+ export declare const CardActionArea: ({ margin, padding, style, ...otherProps }: DefaultProps & CardActionAreaProps) => JSX.Element;
9
+ export declare const CardActions: ({ margin, padding, style, ...otherProps }: DefaultProps & CardActionsProps) => JSX.Element;
10
+ export declare const CardContent: ({ margin, padding, style, ...otherProps }: DefaultProps & CardContentProps) => JSX.Element;
11
+ export declare const CardMedia: ({ margin, padding, style, ...otherProps }: DefaultProps & CardMediaProps) => JSX.Element;
12
+ export declare const CardHeader: ({ margin, padding, style, ...otherProps }: DefaultProps & CardHeaderProps) => JSX.Element;
13
+ declare const Card: ({ margin, padding, style, ...otherProps }: DefaultProps & CardProps) => JSX.Element;
15
14
  export default Card;
package/core/Chapter.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { CSSProperties, FC } from 'react';
2
- import { DefaultProps } from './types';
3
1
  import type { TypographyProps } from '@material-ui/core/Typography';
2
+ import React, { CSSProperties } from 'react';
3
+ import { DefaultProps } from './types';
4
4
  interface LineProps extends DefaultProps {
5
5
  primary?: boolean;
6
6
  width?: string;
7
7
  variant?: TypographyProps['variant'];
8
8
  childrenStyle?: CSSProperties;
9
+ children?: React.ReactNode;
9
10
  }
10
- declare const Chapter: FC<LineProps>;
11
+ declare const Chapter: ({ padding, margin, style, childrenStyle, children, variant, ...otherProps }: LineProps) => JSX.Element;
11
12
  export default Chapter;
package/core/Chapter.js CHANGED
@@ -17,7 +17,7 @@ var _excluded = ["padding", "margin", "style", "childrenStyle", "children", "var
17
17
  var _templateObject, _templateObject2;
18
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
- var StyledLine = _styledComponents["default"].hr(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n --color: ", ";\n flex: 1;\n min-height: .75px;\n max-height: 3px;\n align-self: center;\n background-color: var(--color);\n"])), function (props) {
20
+ var StyledLine = _styledComponents["default"].hr(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n --color: ", ";\n flex: 1;\n min-height: 0.75px;\n max-height: 3px;\n align-self: center;\n background-color: var(--color);\n"])), function (props) {
21
21
  return props.primary ? _colors.primary.normal : _colors.background.normal;
22
22
  });
23
23
  var Container = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n\n & hr:first-child {\n margin-right: 10px;\n }\n\n & hr:last-child {\n margin-left: 10px;\n }\n"])));
@@ -1,6 +1,6 @@
1
1
  import React, { ChangeEvent, ReactNode } from 'react';
2
2
  import { DefaultProps } from './types';
3
- interface CheckboxProps extends DefaultProps {
3
+ export interface CheckboxProps extends DefaultProps {
4
4
  name: string;
5
5
  label?: ReactNode;
6
6
  color?: 'primary' | 'secondary' | 'default';
package/core/Chip.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  import { ChipProps } from '@material-ui/core/Chip';
4
- interface IChipProps extends DefaultProps {
3
+ export interface IChipProps extends DefaultProps {
5
4
  square?: boolean;
6
5
  }
7
- declare const Chip: FC<ChipProps & IChipProps>;
6
+ declare const Chip: ({ square, padding, margin, style, ...otherProps }: ChipProps & IChipProps) => JSX.Element;
8
7
  export default Chip;
package/core/ChipField.js CHANGED
@@ -22,6 +22,7 @@ var ChipField = function ChipField(props) {
22
22
  });
23
23
  }, [props.values]);
24
24
  return /*#__PURE__*/_react["default"].createElement(StyledChipInput, (0, _extends2["default"])({}, props, {
25
+ id: "chip-field-root",
25
26
  alwaysShowPlaceholder: true,
26
27
  value: values
27
28
  }));
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { DefaultProps } from './types';
3
3
  interface CollapseProps extends DefaultProps {
4
4
  collapsedHeight?: string;
@@ -7,6 +7,7 @@ interface CollapseProps extends DefaultProps {
7
7
  enter?: number;
8
8
  exit?: number;
9
9
  } | 'auto';
10
+ children?: React.ReactNode;
10
11
  }
11
- declare const Collapse: FC<CollapseProps>;
12
+ declare const Collapse: ({ children, padding, margin, style, ...otherProps }: CollapseProps) => JSX.Element;
12
13
  export default Collapse;
@@ -1,4 +1,3 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
- declare const Container: FC<DefaultProps>;
2
+ declare const Container: ({ children, padding, margin, style, ...otherProps }: DefaultProps) => JSX.Element;
4
3
  export default Container;
package/core/Content.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
- declare const Content: FC<DefaultProps>;
2
+ declare const Content: ({ children, padding, margin, style, ...otherProps }: DefaultProps) => JSX.Element;
4
3
  export default Content;
@@ -1,6 +1,6 @@
1
1
  import React, { MutableRefObject, CSSProperties } from 'react';
2
2
  import { ColumnSpec, Data, DataTableController, Errors, PaginationOptions, RowViewComponent, StackView } from './types';
3
- export declare type DataTableProps<D extends Data, V extends StackView = {}> = {
3
+ export declare type DataTableProps<D extends Data, V extends StackView = Record<string, unknown>> = {
4
4
  /**
5
5
  * The data to be shown in the table
6
6
  */
@@ -11,8 +11,6 @@ var _FirstPage = _interopRequireDefault(require("@material-ui/icons/FirstPage"))
11
11
  var _LastPage = _interopRequireDefault(require("@material-ui/icons/LastPage"));
12
12
  var _KeyboardArrowLeft = _interopRequireDefault(require("@material-ui/icons/KeyboardArrowLeft"));
13
13
  var _KeyboardArrowRight = _interopRequireDefault(require("@material-ui/icons/KeyboardArrowRight"));
14
- /* eslint-disable @typescript-eslint/interface-name-prefix */
15
-
16
14
  var PAGINATION_WRAPPER_STYLE = {
17
15
  display: 'flex',
18
16
  marginLeft: '12px'
@@ -1,6 +1,6 @@
1
1
  import React, { MutableRefObject, CSSProperties } from 'react';
2
2
  import { ColumnSpec, Data, DataTableController, Errors, PaginationOptions, RowViewComponent, StackView } from './types';
3
- export declare type DataTableProps<D extends Data, V extends StackView = {}> = {
3
+ export declare type DataTableProps<D extends Data, V extends StackView = Record<string, unknown>> = {
4
4
  /**
5
5
  * The data to be shown in the table
6
6
  */
@@ -71,7 +71,7 @@ var DataTableQueryPaginated = function DataTableQueryPaginated(props) {
71
71
  return data;
72
72
  }
73
73
  return data;
74
- }, [pagination.disabled, data, perPage, page, newRow]);
74
+ }, [pagination.disabled, data]);
75
75
  var _useRowsState = (0, _useRowsState2.useRowsState)(rows, newRow),
76
76
  getRowState = _useRowsState.getRowState,
77
77
  setEditableRowState = _useRowsState.setEditableRowState,
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties, FunctionComponent } from 'react';
2
- declare type RecordUnknown = Record<string, unknown>;
2
+ export declare type RecordUnknown = Record<string, unknown>;
3
3
  export declare type StackView = RecordUnknown;
4
4
  export declare type Identifier = string | number;
5
5
  export interface Data extends RecordUnknown {
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.RowMode = void 0;
7
- /* eslint-disable @typescript-eslint/interface-name-prefix */
8
7
  var RowMode;
9
8
  exports.RowMode = RowMode;
10
9
  (function (RowMode) {
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Data } from './types';
1
3
  export interface IDataProps {
2
4
  id: string;
3
5
  product: string;
@@ -5,14 +7,15 @@ export interface IDataProps {
5
7
  quantity: number;
6
8
  date: Date;
7
9
  }
8
- export declare const generateRandomDate: (size: number) => IDataProps[];
10
+ export declare const generateRandomDate: (size: number) => Data[];
9
11
  export declare const usePaginated: () => {
10
- data: IDataProps[];
11
- setData: (data: any) => void;
12
+ data: Data[];
13
+ setData: import("react").Dispatch<import("react").SetStateAction<Data[]>>;
12
14
  totalElements: number;
13
15
  actualPage: number;
14
16
  size: number;
15
17
  handleChangePage: (newPage: number) => void;
16
18
  handleChangePerPage: (value: number) => void;
17
19
  loading: boolean;
20
+ mockData: Data[];
18
21
  };
@@ -10,14 +10,13 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _faker = _interopRequireDefault(require("faker"));
11
11
  var _splitEvery = _interopRequireDefault(require("ramda/es/splitEvery"));
12
12
  var _react = require("react");
13
- var _uuid = require("uuid");
14
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
15
  var generateRandomDate = function generateRandomDate(size) {
17
16
  var content = [];
18
17
  for (var i = 0; i < size; i++) {
19
18
  content.push({
20
- id: (0, _uuid.v4)(),
19
+ id: i,
21
20
  product: _faker["default"].vehicle.model(),
22
21
  price: _faker["default"].datatype["float"]({
23
22
  min: 0,
@@ -127,7 +126,8 @@ var usePaginated = function usePaginated() {
127
126
  size: state.size,
128
127
  handleChangePage: handleChangePage,
129
128
  handleChangePerPage: handleChangePerPage,
130
- loading: loading
129
+ loading: loading,
130
+ mockData: mockData
131
131
  };
132
132
  };
133
133
  exports.usePaginated = usePaginated;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import React from 'react';
2
2
  import DateFnsUtils from '@date-io/date-fns';
3
3
  import { DefaultProps } from './types';
4
4
  import { KeyboardDatePickerProps } from '@material-ui/pickers/DatePicker';
@@ -15,5 +15,5 @@ interface IProps {
15
15
  onChange(date: MaterialUiPickersDate | null, value?: string): void;
16
16
  }
17
17
  declare type DateTimeProps = Omit<KeyboardDatePickerProps, 'margin' | 'onChange'> & Omit<KeyboardDateTimePickerProps, 'margin' | 'onChange'> & Omit<KeyboardTimePickerProps, 'margin' | 'onChange'> & IProps & DefaultProps;
18
- declare const DateTime: FC<DateTimeProps>;
18
+ declare const DateTime: ({ padding, margin, style, format, variant, inputVariant, ampm, invalidDateMessage, minDateMessage, maxDateMessage, locale, type, ...otherProps }: DateTimeProps) => JSX.Element;
19
19
  export default DateTime;
package/core/DateTime.js CHANGED
@@ -54,7 +54,7 @@ var DateTime = function DateTime(_ref) {
54
54
  padding: padding
55
55
  }, style),
56
56
  inputProps: _objectSpread({
57
- autocomplete: 'off'
57
+ autoComplete: 'off'
58
58
  }, otherProps.inputProps),
59
59
  InputAdornmentProps: _objectSpread({
60
60
  style: {
package/core/Dialog.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode, FC } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  import { DefaultProps } from './types';
3
3
  interface DialogProps extends DefaultProps {
4
4
  open: boolean;
@@ -23,5 +23,5 @@ interface DialogProps extends DefaultProps {
23
23
  scroll?: 'body' | 'paper' | 'unset-paper' | 'unset-body';
24
24
  onClose?: (event: Event) => void;
25
25
  }
26
- declare const Dialog: FC<DialogProps>;
26
+ declare const Dialog: ({ snippet, style, padding, margin, scroll, PaperProps, open, fullScreen, fullWidth, maxWidth, onClose, titleAction, titleWrapperStyle, titleStyle, titleActionStyle, contentStyle, contentTextStyle, actionsStyle, actions, content, text, title, snippetStyle, snippetContentStyle }: DialogProps) => JSX.Element;
27
27
  export default Dialog;
package/core/Divider.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  interface DividerProps extends DefaultProps {
4
3
  inset?: boolean;
5
4
  light?: boolean;
6
5
  }
7
- declare const Divider: FC<DividerProps>;
6
+ declare const Divider: ({ margin, padding, style, ...otherProps }: DividerProps) => JSX.Element;
8
7
  export default Divider;
package/core/Drawer.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { DrawerProps as MuiDrawerProps } from '@material-ui/core/Drawer';
2
- import { FC } from 'react';
3
2
  import { DefaultProps } from './types';
4
3
  interface DrawerProps extends MuiDrawerProps, DefaultProps {
5
4
  top?: number;
6
5
  width?: number;
7
6
  }
8
- declare const Drawer: FC<DrawerProps>;
7
+ declare const Drawer: (props: DrawerProps) => JSX.Element;
9
8
  export default Drawer;
@@ -51,7 +51,7 @@ var CustomRemove = (0, _styledComponents["default"])(_materialTable.MTableEditRo
51
51
  }
52
52
  }
53
53
  });
54
- var CustomRows = (0, _styledComponents["default"])(_materialTable.MTableBodyRow)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n transition: opacity 200ms ease;\n button {\n display: none;\n };\n &:hover {\n background: -moz-linear-gradient(left,", " 0%, ", " 100%);\n background: -webkit-linear-gradient(left,", " 0%,", " 100%);\n background: linear-gradient(to right,", " 0%,", " 100%);\n };\n &:hover button {\n display: inline-block !important;\n };\n td {\n min-width: 64px;\n };\n"])), _colors.DARK, _colors.GREY, _colors.DARK, _colors.GREY, _colors.DARK, _colors.GREY);
54
+ var CustomRows = (0, _styledComponents["default"])(_materialTable.MTableBodyRow)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n transition: opacity 200ms ease;\n button {\n display: none;\n }\n &:hover {\n background: -moz-linear-gradient(left, ", " 0%, ", " 100%);\n background: -webkit-linear-gradient(left, ", " 0%, ", " 100%);\n background: linear-gradient(to right, ", " 0%, ", " 100%);\n }\n &:hover button {\n display: inline-block !important;\n }\n td {\n min-width: 64px;\n }\n"])), _colors.DARK, _colors.GREY, _colors.DARK, _colors.GREY, _colors.DARK, _colors.GREY);
55
55
  var RightPagination = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n & > div {\n display: block;\n float: right;\n }\n"])));
56
56
  var Wrapper = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n & > div {\n justify-content: flex-end;\n }\n"])));
57
57
  var EditableTable = function EditableTable(props) {
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, FC } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { PaperProps } from './Paper';
3
3
  interface ExpansionPanelProps extends PaperProps {
4
4
  actions?: ReactNode;
@@ -14,7 +14,7 @@ interface ExpansionPanelProps extends PaperProps {
14
14
  helperIcon?: React.ReactNode;
15
15
  helperButtonPosition?: 'left' | 'right';
16
16
  onHelperClick?: () => void;
17
- onChange?: (event?: any, expanded?: any) => void;
17
+ onChange?: (event?: React.ChangeEvent<Record<string, unknown>>, expanded?: boolean) => void;
18
18
  }
19
- declare const ExpansionPanel: FC<ExpansionPanelProps>;
19
+ declare const ExpansionPanel: ({ actions, details, expandIcon, margin, padding, style, summary, summaryStyle, detailsStyle, actionsStyle, onHelperClick, helperIcon, helperButtonPosition, ...otherProps }: ExpansionPanelProps) => JSX.Element;
20
20
  export default ExpansionPanel;
@@ -20,7 +20,7 @@ var _excluded = ["actions", "details", "expandIcon", "margin", "padding", "style
20
20
  var _templateObject;
21
21
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
- var ExpansionPanelHeaderWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: rows;\n align-items: center;\n button {\n display: none; \n }\n :hover button {\n display: flex;\n }\n"])));
23
+ var ExpansionPanelHeaderWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: rows;\n align-items: center;\n button {\n display: none;\n }\n :hover button {\n display: flex;\n }\n"])));
24
24
  var ExpansionPanel = function ExpansionPanel(_ref) {
25
25
  var actions = _ref.actions,
26
26
  details = _ref.details,
package/core/Fab.d.ts CHANGED
@@ -8,7 +8,7 @@ interface FabProps extends DefaultProps {
8
8
  href?: string;
9
9
  variant?: 'round' | 'extended';
10
10
  onClick?: (event?: MouseEvent<HTMLElement>) => void;
11
- children: React.ReactElement<{}>;
11
+ children: React.ReactElement<Record<string, unknown>>;
12
12
  }
13
13
  declare const Fab: ({ children, margin, padding, style, variant, ...otherProps }: FabProps) => JSX.Element;
14
14
  export default Fab;
package/core/Fade.d.ts CHANGED
@@ -6,7 +6,7 @@ interface FadeProps extends DefaultProps {
6
6
  enter?: number;
7
7
  exit?: number;
8
8
  };
9
- children?: React.ReactElement<{}>;
9
+ children: React.ReactElement<Record<string, unknown>>;
10
10
  }
11
11
  declare const Fade: ({ children, padding, margin, style, ...otherProps }: FadeProps) => JSX.Element;
12
12
  export default Fade;
package/core/Grow.d.ts CHANGED
@@ -6,7 +6,7 @@ interface GrowProps extends DefaultProps {
6
6
  enter?: number;
7
7
  exit?: number;
8
8
  } | 'auto';
9
- children?: React.ReactElement<{}>;
9
+ children?: React.ReactElement<Record<string, unknown>>;
10
10
  }
11
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,7 @@
1
- import { FC } from 'react';
2
1
  import { PaperProps } from './Paper';
3
- interface HeaderProps extends PaperProps {
2
+ export interface HeaderProps extends PaperProps {
4
3
  position?: 'absolute' | 'fixed' | 'static' | 'sticky';
5
4
  color?: 'default' | 'inherit' | 'primary' | 'secondary';
6
5
  }
7
- declare const Header: FC<HeaderProps>;
6
+ declare const Header: ({ children, padding, margin, style, elevation, ...otherProps }: HeaderProps) => JSX.Element;
8
7
  export default Header;
@@ -1,9 +1,9 @@
1
- import { FC, MouseEvent } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  import { DefaultProps } from './types';
3
- interface IconButtonProps extends DefaultProps {
3
+ export 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<IconButtonProps>;
8
+ declare const IconButton: ({ children, padding, margin, style, ...otherProps }: IconButtonProps) => JSX.Element;
9
9
  export default IconButton;
@@ -1,7 +1,6 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  export interface InputAdornmentProps extends DefaultProps {
4
3
  position: 'start' | 'end';
5
4
  }
6
- declare const InputAdornment: FC<InputAdornmentProps>;
5
+ declare const InputAdornment: ({ children, ...otherProps }: InputAdornmentProps) => JSX.Element;
7
6
  export default InputAdornment;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, ReactNode, FC } from 'react';
1
+ import { ChangeEvent, ReactNode } from 'react';
2
2
  import { DefaultProps } from './types';
3
3
  export interface InputAdornmentProps extends DefaultProps {
4
4
  autoComplete?: string;
@@ -22,5 +22,5 @@ export interface InputAdornmentProps extends DefaultProps {
22
22
  type?: string;
23
23
  value?: string | number | boolean;
24
24
  }
25
- declare const InputAdornment: FC<InputAdornmentProps>;
25
+ declare const InputAdornment: ({ margin, padding, style, autoComplete, ...otherProps }: InputAdornmentProps) => JSX.Element;
26
26
  export default InputAdornment;
package/core/Line.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  interface LineProps extends DefaultProps {
4
3
  primary?: boolean;
5
4
  width?: string;
6
5
  }
7
- declare const Line: FC<LineProps>;
6
+ declare const Line: ({ padding, margin, style, ...otherProps }: LineProps) => JSX.Element;
8
7
  export default Line;
package/core/Line.js CHANGED
@@ -16,7 +16,7 @@ var _excluded = ["padding", "margin", "style"];
16
16
  var _templateObject;
17
17
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
- var StyledLine = _styledComponents["default"].hr(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex: 1;\n border: 1px solid ", ";\n"])), function (props) {
19
+ var StyledLine = _styledComponents["default"].hr(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex: 1;\n border: 1px solid\n ", ";\n"])), function (props) {
20
20
  return props.primary ? _colors.primary.normal : _colors.background.normal;
21
21
  });
22
22
  var Line = function Line(_ref) {
package/core/List.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { FC } from 'react';
2
1
  import { DefaultProps } from './types';
3
2
  interface ListProps extends DefaultProps {
4
3
  title?: string;
5
4
  dense?: boolean;
6
5
  color?: 'primary' | 'secondary' | 'default' | 'inherit';
7
6
  }
8
- declare const List: FC<ListProps>;
7
+ declare const List: ({ title, padding, margin, style, children, className, color, ...otherProps }: ListProps) => JSX.Element;
9
8
  export default List;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, FC } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  import { DefaultProps } from './types';
3
3
  import { Omit } from 'ramda';
4
4
  interface ListItemProps extends Omit<DefaultProps, 'name'> {
@@ -12,5 +12,5 @@ interface ListItemProps extends Omit<DefaultProps, 'name'> {
12
12
  disabled?: boolean;
13
13
  onClick?: (event?: MouseEvent) => void;
14
14
  }
15
- declare const ListItem: FC<ListItemProps>;
15
+ declare const ListItem: (props: ListItemProps) => JSX.Element;
16
16
  export default ListItem;
@@ -1,6 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { TextFieldProps } from './TextField';
3
- interface MaskFieldProps {
3
+ export interface MaskFieldProps {
4
4
  mask?: string;
5
5
  type?: 'text' | 'tel' | 'password';
6
6
  decimalSeparator?: string;
@@ -10,7 +10,5 @@ interface MaskFieldProps {
10
10
  fixedDecimalScale?: boolean;
11
11
  customInput?: React.ComponentType<TextFieldProps>;
12
12
  }
13
- declare class MaskField extends Component<TextFieldProps & MaskFieldProps> {
14
- render(): JSX.Element;
15
- }
13
+ declare const MaskField: (props: TextFieldProps & MaskFieldProps) => JSX.Element;
16
14
  export default MaskField;