@agilekit/ui 0.0.432-alpha.0 → 0.0.442-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/index.js.LICENSE.txt +15 -10
- package/lib/src/components/ActionList/components/Item/Item.d.ts +1 -1
- package/lib/src/components/ActionList/components/Section/Section.d.ts +1 -1
- package/lib/src/components/AgileTable/stories/components/AgileTableSimpleForm.d.ts +0 -1
- package/lib/src/components/AppFrame/stories/AppFrame.stories.d.ts +0 -1
- package/lib/src/components/Backdrop/Backdrop.d.ts +1 -1
- package/lib/src/components/Badge/Badge.d.ts +3 -4
- package/lib/src/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/src/components/Button/Button.d.ts +1 -1
- package/lib/src/components/Button/stories/Button.dev.stories.d.ts +1 -1
- package/lib/src/components/Button/stories/Button.stories.d.ts +1 -1
- package/lib/src/components/Calendar/Calendar.d.ts +1 -1
- package/lib/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/src/components/Checkbox/stories/Checkbox.stories.d.ts +1 -1
- package/lib/src/components/Choice/Choice.d.ts +2 -2
- package/lib/src/components/CollapsibleItem/CollapsibleItem.d.ts +0 -1
- package/lib/src/components/Drawer/Drawer.d.ts +1 -1
- package/lib/src/components/Drawer/components/CloseButton/CloseButton.d.ts +1 -1
- package/lib/src/components/Drawer/components/Dialog/Dialog.d.ts +1 -1
- package/lib/src/components/Drawer/components/Footer/Footer.d.ts +1 -1
- package/lib/src/components/Dropdown/Dropdown.d.ts +1 -2
- package/lib/src/components/Form/Form.d.ts +2 -2
- package/lib/src/components/Grid/components/Col/Col.d.ts +23 -4
- package/lib/src/components/Grid/components/Row/Row.d.ts +27 -5
- package/lib/src/components/Grid/stories/Grid.stories.d.ts +2 -2
- package/lib/src/components/Heading/Heading.d.ts +2 -2
- package/lib/src/components/Heading/stories/Heading.stories.d.ts +1 -1
- package/lib/src/components/Icon/iconClass.d.ts +2 -2
- package/lib/src/components/Image/Image.d.ts +2 -2
- package/lib/src/components/Label/Label.d.ts +1 -1
- package/lib/src/components/Labelled/Labelled.d.ts +1 -1
- package/lib/src/components/Link/Link.d.ts +1 -2
- package/lib/src/components/Modal/Modal.d.ts +1 -1
- package/lib/src/components/MultiSelect/MultiSelect.styles.d.ts +1 -1
- package/lib/src/components/MultiTextField/MultiTextField.styles.d.ts +1 -1
- package/lib/src/components/Navigation/Navigation.d.ts +2 -2
- package/lib/src/components/Navigation/components/NavFilter/NavFilter.d.ts +1 -1
- package/lib/src/components/Navigation/components/NavFilterItem/NavFilterItem.d.ts +1 -1
- package/lib/src/components/OldSelect/OldSelect.d.ts +2 -2
- package/lib/src/components/OldTextField/OldTextField.d.ts +2 -2
- package/lib/src/components/OutsideClickDetector/OutsideClickDetector.d.ts +14 -3
- package/lib/src/components/Pagination/Pagination.d.ts +1 -1
- package/lib/src/components/Pagination/components/PageEllipsis/PageEllipsis.d.ts +1 -1
- package/lib/src/components/Pagination/components/PageMove/PageMove.d.ts +1 -1
- package/lib/src/components/Pagination/components/PageNumber/PageNumber.d.ts +1 -1
- package/lib/src/components/Pagination/stories/Pagination.stories.d.ts +1 -1
- package/lib/src/components/Popover/stories/Popover.stories.d.ts +2 -0
- package/lib/src/components/Portal/Portal.d.ts +1 -1
- package/lib/src/components/Select/Select.styles.d.ts +1 -1
- package/lib/src/components/Skeleton/Skeleton.d.ts +0 -1
- package/lib/src/components/Skeleton/stories/Skeleton.stories.d.ts +0 -1
- package/lib/src/components/Slider/Slider.d.ts +2 -2
- package/lib/src/components/Slider/stories/Slider.stories.d.ts +2 -2
- package/lib/src/components/Switch/Switch.d.ts +3 -4
- package/lib/src/components/Switch/stories/Switch.stories.d.ts +1 -1
- package/lib/src/components/TableList/TableList.d.ts +14 -1
- package/lib/src/components/TableList/components/Cell/Cell.d.ts +2 -2
- package/lib/src/components/TableList/components/ColumnHeader/ColumnHeader.d.ts +2 -2
- package/lib/src/components/Tabs/TabPanel.d.ts +0 -1
- package/lib/src/components/Tabs/stories/components/TabsResponsive.d.ts +0 -1
- package/lib/src/components/Tabs/stories/components/TabsStyledOutside.d.ts +0 -1
- package/lib/src/components/TextField/TextField.d.ts +1 -1
- package/lib/src/components/TextField/TextField.styles.d.ts +2 -2
- package/lib/src/components/TextField/stories/TextField.dev.stories.d.ts +1 -1
- package/lib/src/components/TextField/stories/TextField.stories.d.ts +1 -1
- package/lib/src/components/TextField/stories/components/CompleteForm.d.ts +0 -1
- package/lib/src/components/TextField/stories/components/WithDatePicker.d.ts +0 -1
- package/lib/src/components/TextStyle/TextStyle.d.ts +1 -1
- package/lib/src/components/TopBar/TopBar.d.ts +1 -1
- package/lib/src/components/TopBar/components/UserMenu/UserMenu.d.ts +1 -1
- package/lib/src/components/TopBar/stories/TopBar.stories.d.ts +0 -1
- package/lib/src/components/UnstyledLink/UnstyledLink.d.ts +1 -1
- package/lib/src/index.d.ts +0 -5
- package/lib/src/types.d.ts +1 -1
- package/package.json +35 -39
package/lib/index.js.LICENSE.txt
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* A better abstraction over CSS.
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
* LICENSE file in the root directory of this source tree.
|
|
26
31
|
*/
|
|
27
32
|
|
|
28
|
-
/** @license React v17.0.
|
|
33
|
+
/** @license React v17.0.1
|
|
29
34
|
* react-is.production.min.js
|
|
30
35
|
*
|
|
31
36
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export declare type Size = 'small' | 'medium';
|
|
1
|
+
export type Status = 'success' | 'info' | 'attention' | 'warning' | 'new';
|
|
2
|
+
export type Progress = 'incomplete' | 'partiallyComplete' | 'complete';
|
|
3
|
+
export type Size = 'small' | 'medium';
|
|
5
4
|
export interface IBadgeProps {
|
|
6
5
|
children?: string;
|
|
7
6
|
status?: Status;
|
|
@@ -18,5 +18,5 @@ export interface IButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
18
18
|
startIcon?: React.ReactNode;
|
|
19
19
|
onClick?(event?: any): void;
|
|
20
20
|
}
|
|
21
|
-
declare const Button: React.
|
|
21
|
+
declare const Button: React.SFC<IButtonProps>;
|
|
22
22
|
export default Button;
|
|
@@ -4,6 +4,6 @@ import 'react-calendar/dist/Calendar.css';
|
|
|
4
4
|
interface AgileProps {
|
|
5
5
|
onClick?: any;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
type AgileCalendarProps = CalendarProps & AgileProps;
|
|
8
8
|
declare const Calendar: React.FC<AgileCalendarProps>;
|
|
9
9
|
export default Calendar;
|
|
@@ -4,12 +4,12 @@ export interface IChoiceProps {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
error?: Error | boolean
|
|
7
|
+
error?: Error | boolean;
|
|
8
8
|
labelHidden?: boolean;
|
|
9
9
|
labelIcon?: IconName;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
helpText?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare const Choice: React.
|
|
13
|
+
declare const Choice: React.SFC<IChoiceProps>;
|
|
14
14
|
export default Choice;
|
|
15
15
|
export declare function helpTextID(id: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Size = 'small' | 'medium' | 'large' | 'xlarge' | 'full' | 'viewport';
|
|
3
3
|
export interface IDrawerProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
anchor: 'bottom' | 'left' | 'right' | 'top';
|
|
@@ -5,9 +5,8 @@ export interface DropdownProps {
|
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
startIcon?: React.ReactNode;
|
|
8
|
-
value?: string
|
|
8
|
+
value?: Record<string, any>;
|
|
9
9
|
onChange?: (value: string) => void;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
10
|
}
|
|
12
11
|
declare const Dropdown: React.FC<DropdownProps>;
|
|
13
12
|
export default Dropdown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Method = 'post' | 'get' | 'action';
|
|
3
3
|
export interface IFormProps {
|
|
4
4
|
action?: string;
|
|
5
5
|
autoComplete?: boolean;
|
|
@@ -10,5 +10,5 @@ export interface IFormProps {
|
|
|
10
10
|
preventDefault?: boolean;
|
|
11
11
|
onSubmit(event: React.FormEvent<HTMLFormElement>): void;
|
|
12
12
|
}
|
|
13
|
-
declare const Form: React.
|
|
13
|
+
declare const Form: React.SFC<IFormProps>;
|
|
14
14
|
export default Form;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PropTypes from 'prop-types';
|
|
3
|
+
type ColSpanType = number | string;
|
|
3
4
|
export interface IColSize {
|
|
4
5
|
span?: ColSpanType;
|
|
5
6
|
order?: ColSpanType;
|
|
@@ -21,5 +22,23 @@ export interface IColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
21
22
|
xxl?: ColSpanType | IColSize;
|
|
22
23
|
prefixCls?: string;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
export default class Col extends React.Component<IColProps, any> {
|
|
26
|
+
static propTypes: {
|
|
27
|
+
span: PropTypes.Requireable<number>;
|
|
28
|
+
order: PropTypes.Requireable<number>;
|
|
29
|
+
offset: PropTypes.Requireable<number>;
|
|
30
|
+
push: PropTypes.Requireable<number>;
|
|
31
|
+
pull: PropTypes.Requireable<number>;
|
|
32
|
+
className: PropTypes.Requireable<string>;
|
|
33
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
34
|
+
xs: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
35
|
+
sm: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
36
|
+
md: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
37
|
+
lg: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
38
|
+
xl: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
39
|
+
xxl: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
40
|
+
};
|
|
41
|
+
renderCol: () => JSX.Element;
|
|
42
|
+
render(): JSX.Element;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PropTypes from 'prop-types';
|
|
2
3
|
import { BoxProps } from '@material-ui/core';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
4
|
+
export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
5
|
+
export type BreakpointMap = Partial<Record<Breakpoint, string>>;
|
|
5
6
|
declare const RowAligns: ["top", "middle", "bottom"];
|
|
6
7
|
declare const RowJustify: ["start", "end", "center", "space-around", "space-between"];
|
|
7
8
|
export interface IRowProps extends BoxProps {
|
|
@@ -15,5 +16,26 @@ export interface IRowProps extends BoxProps {
|
|
|
15
16
|
export interface IRowState {
|
|
16
17
|
screens: BreakpointMap;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
export default class Row extends React.Component<IRowProps, IRowState> {
|
|
20
|
+
static defaultProps: {
|
|
21
|
+
gutter: number;
|
|
22
|
+
};
|
|
23
|
+
static propTypes: {
|
|
24
|
+
type: PropTypes.Requireable<"flex">;
|
|
25
|
+
noWrap: PropTypes.Requireable<boolean>;
|
|
26
|
+
align: PropTypes.Requireable<"bottom" | "top" | "middle">;
|
|
27
|
+
justify: PropTypes.Requireable<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
28
|
+
className: PropTypes.Requireable<string>;
|
|
29
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
|
+
gutter: PropTypes.Requireable<NonNullable<number | object | null | undefined>>;
|
|
31
|
+
prefixCls: PropTypes.Requireable<string>;
|
|
32
|
+
};
|
|
33
|
+
state: IRowState;
|
|
34
|
+
queryListener(screen: any): void;
|
|
35
|
+
componentDidMount(): void;
|
|
36
|
+
componentWillUnmount(): void;
|
|
37
|
+
getGutter(): number | undefined;
|
|
38
|
+
renderRow: () => JSX.Element;
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Col } from '../components/Col';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
4
|
+
component: typeof Col;
|
|
5
5
|
parameters: {
|
|
6
6
|
docs: {
|
|
7
7
|
page: (props: any) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Color } from '../Icon/iconClass';
|
|
3
|
-
export
|
|
3
|
+
export type HeadingTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
4
4
|
export interface IHeadingProps {
|
|
5
5
|
element?: HeadingTagName;
|
|
6
6
|
level?: number;
|
|
@@ -8,5 +8,5 @@ export interface IHeadingProps {
|
|
|
8
8
|
customColor?: string;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare const Heading: React.
|
|
11
|
+
declare const Heading: React.SFC<IHeadingProps>;
|
|
12
12
|
export default Heading;
|
|
@@ -65,5 +65,5 @@ export declare const ICONS: {
|
|
|
65
65
|
store: string;
|
|
66
66
|
sliders: string;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
69
|
-
export
|
|
68
|
+
export type IconName = 'activity' | 'arrows' | 'arrowLongRight' | 'atmCard' | 'bankSolid' | 'briefcase' | 'calendar' | 'chat' | 'check' | 'checkAlt' | 'chevronDown' | 'chevronUp' | 'creditCard' | 'creditCardSolid' | 'exclamation' | 'close' | 'cogSolid' | 'database' | 'dollarSolid' | 'dollar' | 'fileLandscapeAlt' | 'globe' | 'grid' | 'invoice' | 'keyholeSquare' | 'lock' | 'logIn' | 'logOut' | 'mail' | 'mapPin' | 'menu' | 'minus' | 'minusAlt' | 'more' | 'package' | 'phone' | 'plus' | 'plusAlt' | 'question' | 'settings' | 'search' | 'shield' | 'shoppingCart' | 'slashSolid' | 'slash' | 'star' | 'trendingUp' | 'users' | 'xAlt' | 'pen' | 'mobileAndroid' | 'info' | 'helpCircle' | 'hash' | 'gridSolid' | 'desktop' | 'circle' | 'circleSolid' | 'bell' | 'calendarAlt' | 'userCircle' | 'tablet' | 'store' | 'sliders';
|
|
69
|
+
export type Color = 'white' | 'black' | 'grayRegent' | 'grayIron' | 'blueRoyal' | 'whisper' | 'green' | 'orange' | 'redCoral' | 'B050' | 'B075' | 'B100' | 'B200' | 'B300' | 'B400' | 'B500' | 'R050' | 'R075' | 'R100' | 'R200' | 'R300' | 'R400' | 'R500' | 'Y050' | 'Y075' | 'Y100' | 'Y200' | 'Y300' | 'Y400' | 'Y500' | 'T050' | 'T075' | 'T100' | 'T200' | 'T300' | 'T400' | 'T500' | 'P050' | 'P075' | 'P100' | 'P200' | 'P300' | 'P400' | 'P500' | 'G050' | 'G075' | 'G100' | 'G200' | 'G300' | 'G400' | 'G500' | 'N000' | 'N010' | 'N020' | 'N030' | 'N040' | 'N050' | 'N060' | 'N070' | 'N080' | 'N090' | 'N100' | 'N200' | 'N300' | 'N400' | 'N500' | 'N600' | 'N700' | 'N800' | 'N900';
|
|
@@ -3,7 +3,7 @@ export interface ISourceSet {
|
|
|
3
3
|
source: string;
|
|
4
4
|
descriptor?: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined;
|
|
7
7
|
export interface IImageProps extends React.HTMLProps<HTMLImageElement> {
|
|
8
8
|
alt: string;
|
|
9
9
|
source: string;
|
|
@@ -13,5 +13,5 @@ export interface IImageProps extends React.HTMLProps<HTMLImageElement> {
|
|
|
13
13
|
onLoad?(): void;
|
|
14
14
|
onError?(): void;
|
|
15
15
|
}
|
|
16
|
-
declare const Image: React.
|
|
16
|
+
declare const Image: React.SFC<IImageProps>;
|
|
17
17
|
export default Image;
|
|
@@ -9,6 +9,6 @@ export interface ILabelledProps {
|
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
labelHidden?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const Labelled: React.
|
|
12
|
+
declare const Labelled: React.SFC<ILabelledProps>;
|
|
13
13
|
export default Labelled;
|
|
14
14
|
export declare function helpTextID(id: string): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ModalProps } from '@material-ui/core';
|
|
3
|
-
export
|
|
3
|
+
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
export interface IModalProps extends ModalProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
title?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useSelectStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"icon" | "select" | "
|
|
1
|
+
declare const useSelectStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"icon" | "select" | "containerNotFull" | "asteriskRequired" | "multiselect" | "multiSelectError">;
|
|
2
2
|
export default useSelectStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"helperText" | "
|
|
1
|
+
declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"helperText" | "asteriskRequired" | "inputBase" | "inputLabel" | "inputLabelFocused" | "secondaryLabel" | "withFocus">;
|
|
2
2
|
export default useStyles;
|
|
@@ -17,8 +17,8 @@ interface INavigationProps {
|
|
|
17
17
|
}
|
|
18
18
|
declare class Navigation extends React.Component<INavigationProps> {
|
|
19
19
|
static Section: typeof Section;
|
|
20
|
-
static Filter: React.
|
|
21
|
-
static FilterItem: React.
|
|
20
|
+
static Filter: React.SFC<import("./components/NavFilter/NavFilter").INavFilterProp>;
|
|
21
|
+
static FilterItem: React.SFC<import("./components/NavFilterItem/NavFilterItem").INavFilterItemProp>;
|
|
22
22
|
render(): JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
export default Navigation;
|
|
@@ -4,7 +4,7 @@ interface IOptionItem {
|
|
|
4
4
|
label: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type SelectOption = string | IOptionItem;
|
|
8
8
|
export interface ISelectProps {
|
|
9
9
|
selectRef?: (input: HTMLInputElement | null | undefined) => any;
|
|
10
10
|
options?: IOptionItem[];
|
|
@@ -21,5 +21,5 @@ export interface ISelectProps {
|
|
|
21
21
|
onFocus?(): void;
|
|
22
22
|
onBlur?(): void;
|
|
23
23
|
}
|
|
24
|
-
declare const Select: React.
|
|
24
|
+
declare const Select: React.SFC<ISelectProps>;
|
|
25
25
|
export default Select;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IconName } from '../Icon/iconClass';
|
|
3
|
-
export
|
|
3
|
+
export type Type = 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency';
|
|
4
4
|
export interface ITextFieldProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
5
5
|
inputRef?: (input: HTMLInputElement | null | undefined) => any;
|
|
6
6
|
prepend?: React.ReactNode;
|
|
@@ -29,5 +29,5 @@ export interface ITextFieldProps extends React.HTMLAttributes<HTMLInputElement>
|
|
|
29
29
|
onBlur?: any;
|
|
30
30
|
onChange?(e: React.ChangeEvent<any> | string, id?: string): void;
|
|
31
31
|
}
|
|
32
|
-
declare const OldTextField: React.
|
|
32
|
+
declare const OldTextField: React.SFC<ITextFieldProps>;
|
|
33
33
|
export default OldTextField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, EventHandler, MouseEvent as ReactMouseEvent, ReactElement } from 'react';
|
|
2
2
|
export interface IEvent extends Event {
|
|
3
3
|
euiGeneratedBy: string[];
|
|
4
4
|
}
|
|
@@ -11,5 +11,16 @@ interface IProps {
|
|
|
11
11
|
onTouchStart?: (event: ReactMouseEvent<any, IEvent>) => void;
|
|
12
12
|
onTouchEnd?: (event: ReactMouseEvent<any, IEvent>) => void;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
export default class OutsideClickDetector extends Component<IProps> {
|
|
15
|
+
private id;
|
|
16
|
+
private capturedDownIds;
|
|
17
|
+
constructor(props: IProps);
|
|
18
|
+
onClickOutside: EventHandler<any>;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
componentWillUnmount(): void;
|
|
21
|
+
onChildClick: (event: ReactMouseEvent<any, IEvent>, cb: (event: ReactMouseEvent<any, IEvent>) => void) => void;
|
|
22
|
+
onChildMouseDown: (event: ReactMouseEvent<any, IEvent>) => void;
|
|
23
|
+
onChildMouseUp: (event: ReactMouseEvent<any, IEvent>) => void;
|
|
24
|
+
render(): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -10,5 +10,5 @@ export interface IPaginationProps {
|
|
|
10
10
|
collapseRange?: (pages: React.ReactNode[], max: number, ellipsis: (key: any) => React.ReactNode, current: number) => React.ReactNode[];
|
|
11
11
|
onPageChange?: (event: React.SyntheticEvent, page: any) => void;
|
|
12
12
|
}
|
|
13
|
-
declare const Pagination: React.
|
|
13
|
+
declare const Pagination: React.SFC<IPaginationProps>;
|
|
14
14
|
export default Pagination;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useSelectStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"icon" | "select" | "
|
|
1
|
+
declare const useSelectStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"icon" | "select" | "containerNotFull" | "asteriskRequired">;
|
|
2
2
|
export default useSelectStyles;
|