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/Select.js
CHANGED
|
@@ -13,26 +13,38 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _InputAdornment = _interopRequireDefault(require("@material-ui/core/InputAdornment"));
|
|
19
|
+
|
|
20
|
+
var _Select = _interopRequireDefault(require("@material-ui/core/Select"));
|
|
19
21
|
|
|
20
22
|
var _styles = require("@material-ui/core/styles");
|
|
21
23
|
|
|
24
|
+
var _Clear = _interopRequireDefault(require("@material-ui/icons/Clear"));
|
|
25
|
+
|
|
26
|
+
var _react = _interopRequireDefault(require("react"));
|
|
27
|
+
|
|
22
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
23
29
|
|
|
24
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
25
31
|
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
var iconStyle = {
|
|
33
|
+
right: '2px'
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var renderEndAdornment = function renderEndAdornment(onClear) {
|
|
37
|
+
return /*#__PURE__*/_react["default"].createElement(_InputAdornment["default"], {
|
|
38
|
+
position: "end"
|
|
39
|
+
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
40
|
+
onClick: onClear,
|
|
41
|
+
size: "small"
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_Clear["default"], {
|
|
43
|
+
style: {
|
|
44
|
+
fontSize: '15px'
|
|
33
45
|
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
46
|
+
})));
|
|
47
|
+
};
|
|
36
48
|
|
|
37
49
|
var Select = function Select(_ref) {
|
|
38
50
|
var children = _ref.children,
|
|
@@ -40,11 +52,28 @@ var Select = function Select(_ref) {
|
|
|
40
52
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
41
53
|
margin = _ref.margin,
|
|
42
54
|
padding = _ref.padding,
|
|
55
|
+
hasClear = _ref.hasClear,
|
|
56
|
+
onClear = _ref.onClear,
|
|
43
57
|
_ref$variant = _ref.variant,
|
|
44
58
|
variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
|
|
45
|
-
otherProps = (0, _objectWithoutProperties2["default"])(_ref, ["children", "style", "margin", "padding", "variant"]);
|
|
59
|
+
otherProps = (0, _objectWithoutProperties2["default"])(_ref, ["children", "style", "margin", "padding", "hasClear", "onClear", "variant"]);
|
|
60
|
+
var useStyles = (0, _styles.makeStyles)(function () {
|
|
61
|
+
return {
|
|
62
|
+
root: {
|
|
63
|
+
padding: "10px 24px 10px ".concat(hasClear ? '20' : '12', "px")
|
|
64
|
+
},
|
|
65
|
+
iconOutlined: hasClear ? _objectSpread(_objectSpread({}, iconStyle), {}, {
|
|
66
|
+
position: 'relative',
|
|
67
|
+
marginLeft: '-20px'
|
|
68
|
+
}) : iconStyle
|
|
69
|
+
};
|
|
70
|
+
});
|
|
46
71
|
var classes = useStyles();
|
|
47
|
-
|
|
72
|
+
var hasValue = !!otherProps.value;
|
|
73
|
+
var endAdornment = hasValue && hasClear ? {
|
|
74
|
+
endAdornment: renderEndAdornment(onClear)
|
|
75
|
+
} : {};
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], (0, _extends2["default"])({}, endAdornment, {
|
|
48
77
|
variant: variant,
|
|
49
78
|
classes: {
|
|
50
79
|
root: classes.root,
|
package/core/Sidebar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
import { ButtonProps } from './Button';
|
|
4
|
+
interface SidebarProps extends DefaultProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
expanded?: boolean;
|
|
7
7
|
showButton?: boolean;
|
|
@@ -14,8 +14,8 @@ interface IProps extends IDefault {
|
|
|
14
14
|
top?: number | string;
|
|
15
15
|
paperClasses?: object;
|
|
16
16
|
name?: string;
|
|
17
|
-
ButtonProps?:
|
|
17
|
+
ButtonProps?: ButtonProps;
|
|
18
18
|
onToggle: () => void;
|
|
19
19
|
}
|
|
20
|
-
declare const Sidebar: FC<
|
|
20
|
+
declare const Sidebar: FC<SidebarProps>;
|
|
21
21
|
export default Sidebar;
|
package/core/Sidebar.js
CHANGED
|
@@ -115,7 +115,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
115
115
|
variant = _ref$variant === void 0 ? 'permanent' : _ref$variant,
|
|
116
116
|
ButtonProps = _ref.ButtonProps,
|
|
117
117
|
onToggle = _ref.onToggle,
|
|
118
|
-
children = _ref.children
|
|
118
|
+
children = _ref.children,
|
|
119
|
+
name = _ref.name;
|
|
119
120
|
var classes = useStyles();
|
|
120
121
|
|
|
121
122
|
var renderAction = function renderAction() {
|
package/core/Slide.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface SlideProps extends DefaultProps {
|
|
4
4
|
in: boolean;
|
|
5
5
|
direction: 'left' | 'right' | 'up' | 'down';
|
|
6
6
|
timeout?: number | {
|
|
@@ -9,5 +9,5 @@ interface IProps extends IDefault {
|
|
|
9
9
|
};
|
|
10
10
|
children?: React.ReactElement<{}>;
|
|
11
11
|
}
|
|
12
|
-
declare const Slide: ({ children, direction, margin, padding, style, ...otherProps }:
|
|
12
|
+
declare const Slide: ({ children, direction, margin, padding, style, ...otherProps }: SlideProps) => JSX.Element;
|
|
13
13
|
export default Slide;
|
package/core/Slider.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { SliderProps } from '@material-ui/core/Slider';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
|
+
interface ISliderProps {
|
|
5
5
|
defaultValue?: number | number[];
|
|
6
6
|
}
|
|
7
|
-
declare const Slider: FC<Omit<SliderProps, 'defaultValue'> &
|
|
7
|
+
declare const Slider: FC<Omit<SliderProps, 'defaultValue'> & DefaultProps & ISliderProps>;
|
|
8
8
|
export default Slider;
|
package/core/Snackbar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, FC, FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
import { TransitionProps } from '@material-ui/core/transitions/transition';
|
|
4
|
-
interface
|
|
4
|
+
interface SnackBarProps extends DefaultProps {
|
|
5
5
|
autoHide?: number;
|
|
6
6
|
message: ReactNode;
|
|
7
7
|
open: boolean;
|
|
@@ -21,5 +21,5 @@ interface IProps extends IDefault {
|
|
|
21
21
|
onClose?(): void;
|
|
22
22
|
onClick?(): void;
|
|
23
23
|
}
|
|
24
|
-
declare const SnackBar: FC<
|
|
24
|
+
declare const SnackBar: FC<SnackBarProps>;
|
|
25
25
|
export default SnackBar;
|
package/core/Stepper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface StepperProps extends DefaultProps {
|
|
4
4
|
active?: number;
|
|
5
5
|
steps: Array<string | TStep>;
|
|
6
6
|
bottomLabel?: boolean;
|
|
@@ -10,7 +10,7 @@ declare type TStep = {
|
|
|
10
10
|
label: JSX.Element | string;
|
|
11
11
|
icon: JSX.Element | ((active?: boolean) => JSX.Element);
|
|
12
12
|
};
|
|
13
|
-
declare class Stepper extends Component<
|
|
13
|
+
declare class Stepper extends Component<StepperProps, {}> {
|
|
14
14
|
static defaultProps: {
|
|
15
15
|
active: number;
|
|
16
16
|
};
|
package/core/Tab.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface TabProps extends DefaultProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
icon?: string | JSX.Element;
|
|
6
6
|
label?: string;
|
|
7
7
|
value?: unknown;
|
|
8
8
|
disableRipple?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare class Tab extends Component<
|
|
10
|
+
declare class Tab extends Component<TabProps> {
|
|
11
11
|
static defaultProps: {
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
margin: string;
|
package/core/Table.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TableProps } from '@material-ui/core/Table';
|
|
1
|
+
import { TableProps as MuiTableProps } from '@material-ui/core/Table';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
5
|
-
spacing?:
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
|
+
interface TableProps extends DefaultProps {
|
|
5
|
+
spacing?: MuiTableProps['padding'];
|
|
6
6
|
}
|
|
7
|
-
declare const Table: FC<
|
|
7
|
+
declare const Table: FC<MuiTableProps & TableProps>;
|
|
8
8
|
export default Table;
|
package/core/TableBody.d.ts
CHANGED
package/core/TableCell.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TableCellProps } from '@material-ui/core/TableCell';
|
|
1
|
+
import { TableCellProps as MuiTableCellProps } from '@material-ui/core/TableCell';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
4
|
import { Omit } from 'ramda';
|
|
5
|
-
interface
|
|
5
|
+
interface TableCellProps extends DefaultProps {
|
|
6
6
|
numeric?: boolean;
|
|
7
7
|
variant?: 'head' | 'body' | 'footer';
|
|
8
|
-
spacing?:
|
|
8
|
+
spacing?: MuiTableCellProps['padding'];
|
|
9
9
|
padding?: number | string;
|
|
10
10
|
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
|
11
11
|
}
|
|
12
|
-
declare const TableCell: FC<Omit<
|
|
12
|
+
declare const TableCell: FC<Omit<MuiTableCellProps, 'padding'> & TableCellProps>;
|
|
13
13
|
export default TableCell;
|
package/core/TableHead.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface TableHeadProps extends DefaultProps, ISort {
|
|
4
4
|
color?: 'primary' | 'secondary' | 'default' | 'inherit';
|
|
5
5
|
classes: {
|
|
6
6
|
default: string;
|
|
@@ -19,5 +19,5 @@ interface ISort {
|
|
|
19
19
|
onSort?(name: string): void;
|
|
20
20
|
}
|
|
21
21
|
export declare const SortContext: React.Context<ISort>;
|
|
22
|
-
declare const _default: React.ComponentType<Pick<React.PropsWithChildren<
|
|
22
|
+
declare const _default: React.ComponentType<Pick<React.PropsWithChildren<TableHeadProps>, "children" | "style" | "padding" | "margin" | "className" | "name" | "id" | "color" | "active" | "direction" | "onSort"> & import("@material-ui/core/styles").StyledComponentProps<"inherit" | "default" | "primary" | "secondary">>;
|
|
23
23
|
export default _default;
|
package/core/TableRow.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TableRowProps } from '@material-ui/core/TableRow';
|
|
1
|
+
import { TableRowProps as MuiTableRowProps } from '@material-ui/core/TableRow';
|
|
2
2
|
import { FC, MouseEvent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { DefaultProps } from './types';
|
|
4
|
+
interface TableRowProps extends DefaultProps {
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
hover?: boolean;
|
|
7
7
|
background?: string;
|
|
8
8
|
onClick?: (event: MouseEvent<HTMLTableRowElement>) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const TableRow: FC<
|
|
10
|
+
declare const TableRow: FC<MuiTableRowProps & TableRowProps>;
|
|
11
11
|
export default TableRow;
|
package/core/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface TabsProps extends DefaultProps {
|
|
4
4
|
centered?: boolean;
|
|
5
5
|
value: string | number;
|
|
6
6
|
color?: 'default' | 'inherit' | 'primary' | 'secondary';
|
|
@@ -18,5 +18,5 @@ interface IClasses {
|
|
|
18
18
|
indicator: string;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
declare const Tabs: FC<
|
|
21
|
+
declare const Tabs: FC<TabsProps & IClasses>;
|
|
22
22
|
export default Tabs;
|
package/core/TextField.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEvent, KeyboardEvent, FC, FocusEvent, ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
export interface TextFieldProps extends DefaultProps {
|
|
4
4
|
autoComplete?: string;
|
|
5
5
|
autoFocus?: boolean;
|
|
6
6
|
defaultValue?: string | number;
|
|
@@ -32,12 +32,11 @@ export interface IProps extends IDefault {
|
|
|
32
32
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
33
33
|
onKeyDown?: (event: KeyboardEvent) => void;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
interface IHelperProps extends Pick<TProps, 'helperIcon'> {
|
|
35
|
+
interface IHelperProps extends Pick<TextFieldProps, 'helperIcon'> {
|
|
37
36
|
onHelperClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
38
37
|
}
|
|
39
38
|
export declare const useStyles: (props?: any) => Record<"input" | "outlinedInput" | "outlinedLabel" | "outlinedMultiline" | "iconOutlined", string>;
|
|
40
39
|
export declare const TextFieldWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
41
40
|
export declare const HelperBox: (props: IHelperProps) => JSX.Element;
|
|
42
|
-
declare const TextField: FC<
|
|
41
|
+
declare const TextField: FC<TextFieldProps>;
|
|
43
42
|
export default TextField;
|
package/core/ThemeProvider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ThemeOptions } from '@material-ui/core/styles/createMuiTheme';
|
|
3
|
-
interface
|
|
3
|
+
interface ThemeProviderProps {
|
|
4
4
|
options?: ThemeOptions;
|
|
5
5
|
}
|
|
6
|
-
declare const ThemeProvider: FC<
|
|
6
|
+
declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
7
7
|
export default ThemeProvider;
|
package/core/Tooltip.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement, CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface TooltipProps extends DefaultProps {
|
|
4
4
|
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
5
5
|
title: React.ReactNode;
|
|
6
6
|
withWrapper?: boolean;
|
|
@@ -11,5 +11,5 @@ interface IProps extends IDefault {
|
|
|
11
11
|
children: ReactElement<{}>;
|
|
12
12
|
enterDelay?: number;
|
|
13
13
|
}
|
|
14
|
-
declare const Tooltip: ({ children, withWrapper, wrapperStyle, enterDelay, title, ...otherProps }:
|
|
14
|
+
declare const Tooltip: ({ children, withWrapper, wrapperStyle, enterDelay, title, ...otherProps }: TooltipProps) => JSX.Element;
|
|
15
15
|
export default Tooltip;
|
package/core/Tree.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ interface INode {
|
|
|
4
4
|
name: string;
|
|
5
5
|
nodes?: INode[];
|
|
6
6
|
}
|
|
7
|
-
interface
|
|
7
|
+
interface TreeProps {
|
|
8
8
|
nodes?: INode[];
|
|
9
9
|
}
|
|
10
|
-
declare class Tree extends Component<
|
|
10
|
+
declare class Tree extends Component<TreeProps, {}> {
|
|
11
11
|
renderNode(node: any, index: any, root?: boolean): JSX.Element;
|
|
12
12
|
render(): JSX.Element[];
|
|
13
13
|
}
|
package/core/Typography.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
3
|
import { TypographyProps } from '@material-ui/core/Typography';
|
|
4
|
-
declare const Typography: FC<TypographyProps &
|
|
4
|
+
declare const Typography: FC<TypographyProps & DefaultProps>;
|
|
5
5
|
export default Typography;
|
package/core/Zoom.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { DefaultProps } from './types';
|
|
3
|
+
interface ZoomProps 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 Zoom: ({ children, padding, margin, style, ...otherProps }:
|
|
11
|
+
declare const Zoom: ({ children, padding, margin, style, ...otherProps }: ZoomProps) => JSX.Element;
|
|
12
12
|
export default Zoom;
|
package/core/types.d.ts
ADDED
package/core/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,81 +1,86 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
2
|
+
"name": "flipper-ui",
|
|
3
|
+
"version": "0.25.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"homepage": "https://flipper-ui.vercel.app",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/nginformatica/flipper-ui.git"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "jest --coverage",
|
|
13
|
+
"start": "start-storybook -p 6006",
|
|
14
|
+
"build": "yarn build:ts && yarn build:babel",
|
|
15
|
+
"build:ts": "tsc --emitDeclarationOnly",
|
|
16
|
+
"build:babel": "babel src --out-dir dist --extensions \".ts,.tsx\"",
|
|
17
|
+
"lint": "eslint -c .eslintrc.json 'src/**/*.{ts,tsx}'",
|
|
18
|
+
"lint:fix": "eslint -c .eslintrc.json --fix 'src/**/*.{ts,tsx}'",
|
|
19
|
+
"predeploy": "yarn build && yarn storybook:build",
|
|
20
|
+
"docs:build": "build-storybook -o docs",
|
|
21
|
+
"type-check": "tsc --noEmit",
|
|
22
|
+
"deploy": "gh-pages -d docs",
|
|
23
|
+
"release": "yarn build && node pre-publish.js && npm publish dist --access public"
|
|
24
|
+
},
|
|
25
|
+
"author": "NG Informática",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@date-io/date-fns": "1.3.6",
|
|
29
|
+
"@material-ui/core": "4.11.0",
|
|
30
|
+
"@material-ui/icons": "4.9.1",
|
|
31
|
+
"@material-ui/lab": "4.0.0-alpha.54",
|
|
32
|
+
"@material-ui/pickers": "3.2.6",
|
|
33
|
+
"date-fns": "2.4.1",
|
|
34
|
+
"material-table": "1.69.3",
|
|
35
|
+
"material-ui-chip-input": "2.0.0-beta.2",
|
|
36
|
+
"ramda": "0.25.0",
|
|
37
|
+
"react-number-format": "4.4.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@babel/cli": "7.10.0",
|
|
41
|
+
"@babel/core": "7.9.0",
|
|
42
|
+
"@babel/plugin-transform-runtime": "7.9.0",
|
|
43
|
+
"@babel/preset-env": "7.9.0",
|
|
44
|
+
"@babel/preset-react": "7.9.0",
|
|
45
|
+
"@babel/preset-typescript": "7.9.0",
|
|
46
|
+
"@storybook/addon-actions": "6.3.12",
|
|
47
|
+
"@storybook/addon-essentials": "6.3.12",
|
|
48
|
+
"@storybook/addon-links": "6.3.12",
|
|
49
|
+
"@storybook/react": "6.3.12",
|
|
50
|
+
"@testing-library/react": "9.3.2",
|
|
51
|
+
"@types/jest": "24.0.22",
|
|
52
|
+
"@types/node": "10.9.4",
|
|
53
|
+
"@types/ramda": "0.25.36",
|
|
54
|
+
"@types/react": "16.8.18",
|
|
55
|
+
"@types/styled-components": "4.4.2",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "1.6.0",
|
|
57
|
+
"@typescript-eslint/parser": "1.6.0",
|
|
58
|
+
"babel-loader": "8.2.3",
|
|
59
|
+
"babel-plugin-transform-class-properties": "6.24.1",
|
|
60
|
+
"babel-plugin-transform-imports": "2.0.0",
|
|
61
|
+
"eslint": "5.16.0",
|
|
62
|
+
"eslint-config-prettier": "4.1.0",
|
|
63
|
+
"eslint-plugin-import": "2.16.0",
|
|
64
|
+
"eslint-plugin-prefer-arrow": "1.1.5",
|
|
65
|
+
"eslint-plugin-ramda": "2.5.1",
|
|
66
|
+
"eslint-plugin-react": "7.12.4",
|
|
67
|
+
"fs-extra": "7.0.0",
|
|
68
|
+
"gh-pages": "2.0.0",
|
|
69
|
+
"jest": "24.9.0",
|
|
70
|
+
"node-fetch": "2.6.1",
|
|
71
|
+
"prettier": "1.16.4",
|
|
72
|
+
"react": "16.14.0",
|
|
73
|
+
"react-dom": "16.14.0",
|
|
74
|
+
"styled-components": "5.0.0",
|
|
75
|
+
"typescript": "3.9.5"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"react": "^16.8.0",
|
|
79
|
+
"styled-components": "^5.0.0"
|
|
80
|
+
},
|
|
81
|
+
"jest": {
|
|
82
|
+
"setupFilesAfterEnv": [
|
|
83
|
+
"<rootDir>/src/setupTests.js"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
81
86
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Default = exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Advertise = _interopRequireDefault(require("../core/Advertise"));
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'Advertise',
|
|
16
|
+
component: _Advertise["default"]
|
|
17
|
+
};
|
|
18
|
+
exports["default"] = _default;
|
|
19
|
+
|
|
20
|
+
var Template = function Template(args) {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_Advertise["default"], args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var Default = Template.bind({});
|
|
25
|
+
exports.Default = Default;
|
|
26
|
+
Default.args = {
|
|
27
|
+
comment: 'Be like water. You put water into a cup. \
|
|
28
|
+
It becomes the cup. You put water into a bottle. It becomes the bottle.',
|
|
29
|
+
author: 'Bruce Lee',
|
|
30
|
+
children: 'Advertise'
|
|
31
|
+
};
|