cortex-react-ui 0.1.174 → 0.1.176
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/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +25 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types/BarLoader/BarLoader.d.ts +10 -0
- package/lib/esm/types/BarLoader/index.d.ts +1 -0
- package/lib/esm/types/Button/Button.d.ts +11 -0
- package/lib/esm/types/Button/index.d.ts +1 -0
- package/lib/esm/types/DatePicker/DatePicker.d.ts +7 -0
- package/lib/esm/types/DatePicker/index.d.ts +1 -0
- package/lib/esm/types/Dialog/ConfirmDialog.d.ts +11 -0
- package/lib/esm/types/Dialog/Dialog.d.ts +12 -0
- package/lib/esm/types/Dialog/DialogActions.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogContent.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogFooter.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogHeader.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogTitle.d.ts +9 -0
- package/lib/esm/types/Dialog/ErrorDialog.d.ts +10 -0
- package/lib/esm/types/Dialog/WarningDialog.d.ts +10 -0
- package/lib/esm/types/Dialog/index.d.ts +9 -0
- package/lib/esm/types/DomContainer/DomContainer.d.ts +7 -0
- package/lib/esm/types/DomContainer/index.d.ts +1 -0
- package/lib/esm/types/Icons/ChevronDownIcon.d.ts +6 -0
- package/lib/esm/types/Icons/ChevronLeftIcon.d.ts +6 -0
- package/lib/esm/types/Icons/ChevronRightIcon.d.ts +6 -0
- package/lib/esm/types/Icons/CrossIcon.d.ts +6 -0
- package/lib/esm/types/Icons/index.d.ts +4 -0
- package/lib/esm/types/Input/Input.d.ts +7 -0
- package/lib/esm/types/Input/index.d.ts +1 -0
- package/lib/esm/types/Menu/AuthDownloadLink.d.ts +14 -0
- package/lib/esm/types/Menu/ContextMenu.d.ts +13 -0
- package/lib/esm/types/Menu/Divider.d.ts +6 -0
- package/lib/esm/types/Menu/Menu.d.ts +10 -0
- package/lib/esm/types/Menu/MenuGroup.d.ts +8 -0
- package/lib/esm/types/Menu/MenuItem.d.ts +14 -0
- package/lib/esm/types/Menu/PopupMenu.d.ts +16 -0
- package/lib/esm/types/Menu/index.d.ts +7 -0
- package/lib/esm/types/Popper/Popper.d.ts +38 -0
- package/lib/esm/types/Popper/index.d.ts +1 -0
- package/lib/esm/types/Scanner/Dialog.d.ts +13 -0
- package/lib/esm/types/Scanner/DialogBody.d.ts +3 -0
- package/lib/esm/types/Scanner/DialogMask.d.ts +3 -0
- package/lib/esm/types/Scanner/ScanConfirmationDialog.d.ts +18 -0
- package/lib/esm/types/Scanner/Scanner.d.ts +11 -0
- package/lib/esm/types/Scanner/index.d.ts +1 -0
- package/lib/esm/types/Select/Select.d.ts +6 -0
- package/lib/esm/types/Select/index.d.ts +1 -0
- package/lib/esm/types/Selected/Selected.d.ts +8 -0
- package/lib/esm/types/Selected/index.d.ts +1 -0
- package/lib/esm/types/Spinner/Spinner.d.ts +7 -0
- package/lib/esm/types/Spinner/index.d.ts +1 -0
- package/lib/esm/types/TagInput/TagInput.d.ts +12 -0
- package/lib/esm/types/TagInput/TagItem.d.ts +9 -0
- package/lib/esm/types/TagInput/TagSearchInput.d.ts +9 -0
- package/lib/esm/types/TagInput/TagSuggestion.d.ts +13 -0
- package/lib/esm/types/TagInput/TagSuggestionGroup.d.ts +8 -0
- package/lib/esm/types/TagInput/TagSuggestionItem.d.ts +8 -0
- package/lib/esm/types/TagInput/index.d.ts +1 -0
- package/lib/esm/types/TagInput/types.d.ts +14 -0
- package/lib/esm/types/TextField/TextField.d.ts +6 -0
- package/lib/esm/types/TextField/TextFieldInput.d.ts +10 -0
- package/lib/esm/types/TextField/index.d.ts +1 -0
- package/lib/esm/types/ToggleButton/ToggleButton.d.ts +11 -0
- package/lib/esm/types/ToggleButton/index.d.ts +1 -0
- package/lib/esm/types/Tooltip/Tooltip.d.ts +12 -0
- package/lib/esm/types/Tooltip/index.d.ts +1 -0
- package/lib/esm/types/Transition/CSSTransition.d.ts +17 -0
- package/lib/esm/types/Transition/Fade.d.ts +13 -0
- package/lib/esm/types/index.d.ts +13 -0
- package/lib/esm/types/utils/classNames.d.ts +1 -0
- package/lib/esm/types/utils/setRef.d.ts +1 -0
- package/lib/esm/types/utils/useClickOutside.d.ts +2 -0
- package/lib/esm/types/utils/useElement.d.ts +2 -0
- package/lib/esm/types/utils/useForkRef.d.ts +2 -0
- package/lib/styles/Scanner/index.scss +110 -0
- package/package.json +7 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BarLoaderProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
|
|
5
|
+
className?: string;
|
|
6
|
+
mode: 'determinate' | 'indeterminate';
|
|
7
|
+
isComplete: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BarLoader: React.FC<BarLoaderProps>;
|
|
10
|
+
export default BarLoader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BarLoader';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
variant?: 'text' | 'contained' | 'outlined';
|
|
4
|
+
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
5
|
+
className?: string;
|
|
6
|
+
disable?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DatePicker } from './DatePicker';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
cancel?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
onClose?: (isOk: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
11
|
+
export default ConfirmDialog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
fullHeight?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
onClose?: (() => void);
|
|
10
|
+
}
|
|
11
|
+
declare const Dialog: React.FC<DialogProps>;
|
|
12
|
+
export default Dialog;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogContentProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
closeDisable?: boolean;
|
|
6
|
+
onClose?: (() => void);
|
|
7
|
+
}
|
|
8
|
+
declare const DialogContent: React.FC<DialogContentProps>;
|
|
9
|
+
export default DialogContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ErrorDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose?: (isOk: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ErrorDialog: React.FC<ErrorDialogProps>;
|
|
10
|
+
export default ErrorDialog;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface WarningDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose?: (isOk: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const WarningDialog: React.FC<WarningDialogProps>;
|
|
10
|
+
export default WarningDialog;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from './Dialog';
|
|
2
|
+
export { default as DialogContent } from './DialogContent';
|
|
3
|
+
export { default as DialogFooter } from './DialogFooter';
|
|
4
|
+
export { default as DialogHeader } from './DialogHeader';
|
|
5
|
+
export { default as DialogTitle } from './DialogTitle';
|
|
6
|
+
export { default as DialogActions } from './DialogActions';
|
|
7
|
+
export { default as ConfirmDialog } from './ConfirmDialog';
|
|
8
|
+
export { default as ErrorDialog } from './ErrorDialog';
|
|
9
|
+
export { default as WarningDialog } from './WarningDialog';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
container?: HTMLElement | (() => HTMLElement);
|
|
5
|
+
};
|
|
6
|
+
declare const DomContainer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export default DomContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DomContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Input';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AuthDownloadLinkProps {
|
|
3
|
+
url: string;
|
|
4
|
+
queryParams?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
token: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
onStart?: (event: React.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
10
|
+
onCompleted?: () => void;
|
|
11
|
+
onError?: (error: any) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const AuthDownloadLink: React.FC<AuthDownloadLinkProps>;
|
|
14
|
+
export default AuthDownloadLink;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopperPlacement } from '../Popper/Popper';
|
|
3
|
+
export interface ContextMenuProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
8
|
+
container?: string | HTMLElement | React.RefObject<HTMLElement>;
|
|
9
|
+
onOpen?: () => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ContextMenu: React.FC<ContextMenuProps>;
|
|
13
|
+
export default ContextMenu;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MenuProps {
|
|
3
|
+
containerRef: React.RefObject<HTMLElement>;
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLUListElement> | undefined) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Menu: React.FC<MenuProps>;
|
|
10
|
+
export default Menu;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export interface MenuItemProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: CSSProperties | undefined;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
label?: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
disable?: boolean;
|
|
10
|
+
itemTemplate?: React.ReactNode;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const MenuItem: React.FC<MenuItemProps>;
|
|
14
|
+
export default MenuItem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopperPlacement } from '../Popper/Popper';
|
|
3
|
+
export interface PopupMenuProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
8
|
+
anchorPosition?: {
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
};
|
|
12
|
+
anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const PopupMenu: React.FC<PopupMenuProps>;
|
|
16
|
+
export default PopupMenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default } from './Menu';
|
|
2
|
+
export { default as AuthDownloadLink } from './AuthDownloadLink';
|
|
3
|
+
export { default as ContextMenu } from './ContextMenu';
|
|
4
|
+
export { default as MenuItem } from './MenuItem';
|
|
5
|
+
export { default as Divider } from './Divider';
|
|
6
|
+
export { default as PopupMenu } from './PopupMenu';
|
|
7
|
+
export { default as MenuGroup } from './MenuGroup';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PopperPlacement: {
|
|
3
|
+
readonly Center: "center";
|
|
4
|
+
readonly BottomCenter: "bottom-center";
|
|
5
|
+
readonly BottomRight: "bottom-right";
|
|
6
|
+
readonly BottomLeft: "bottom-left";
|
|
7
|
+
readonly TopCenter: "top-center";
|
|
8
|
+
readonly TopRight: "top-right";
|
|
9
|
+
readonly TopLeft: "top-left";
|
|
10
|
+
readonly LeftTop: "left-top";
|
|
11
|
+
readonly LeftBottom: "left-bottom";
|
|
12
|
+
readonly LeftCenter: "left-center";
|
|
13
|
+
readonly RightTop: "right-top";
|
|
14
|
+
readonly RightBottom: "right-bottom";
|
|
15
|
+
readonly RightCenter: "right-center";
|
|
16
|
+
};
|
|
17
|
+
declare type Props = {
|
|
18
|
+
anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
|
|
19
|
+
anchorPosition?: {
|
|
20
|
+
top: number;
|
|
21
|
+
left: number;
|
|
22
|
+
};
|
|
23
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
24
|
+
open?: boolean;
|
|
25
|
+
role?: string;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
overflow?: boolean;
|
|
29
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
30
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
31
|
+
onMouseMove?: React.MouseEventHandler<HTMLDivElement>;
|
|
32
|
+
onMouseOut?: React.MouseEventHandler<HTMLDivElement>;
|
|
33
|
+
onMouseOver?: React.MouseEventHandler<HTMLDivElement>;
|
|
34
|
+
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
|
35
|
+
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
|
36
|
+
};
|
|
37
|
+
declare const Popper: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
38
|
+
export default Popper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Popper';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
3
|
+
export declare type DialogTitleProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type DialogProps = DialogTitleProps & {
|
|
7
|
+
open: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
confirmation?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const ScanConfirmationDialog: (props: TScanConfirmDialogProps) => JSX.Element;
|
|
2
|
+
export declare type TScanConfirmDialogLabels = {
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
btnOk?: {
|
|
6
|
+
label: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
btnCancel?: {
|
|
10
|
+
label: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type TScanConfirmDialogProps = {
|
|
15
|
+
open: boolean;
|
|
16
|
+
onConfirm: () => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
} & TScanConfirmDialogLabels;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
|
|
2
|
+
import { TScanConfirmDialogLabels } from './ScanConfirmationDialog';
|
|
3
|
+
declare const Scanner: ({ scanConfirmation, scanTrackerType, ...props }: ScannerProps) => JSX.Element;
|
|
4
|
+
export declare type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
|
|
5
|
+
declare type ScannerProps = {
|
|
6
|
+
scanConfirmation?: boolean;
|
|
7
|
+
scanConfirmDialog?: TScanConfirmDialogLabels;
|
|
8
|
+
scanTrackerType?: TScanTrackerType;
|
|
9
|
+
onScan?: (detectedCodes: IDetectedBarcode[]) => void;
|
|
10
|
+
} & IScannerProps;
|
|
11
|
+
export default Scanner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Scanner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Selected';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Spinner';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cortex } from './types';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
tags?: Cortex.Tag[];
|
|
5
|
+
className?: string;
|
|
6
|
+
suggestions?: Cortex.TagSuggestion[];
|
|
7
|
+
disableFilter?: boolean;
|
|
8
|
+
onTextChange?: (text: string) => void;
|
|
9
|
+
onChange?: (tags: Cortex.Tag[]) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const TagInput: React.FC<TooltipProps>;
|
|
12
|
+
export default TagInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TagSearchInputProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
value: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TagSearchInput: React.ForwardRefExoticComponent<TagSearchInputProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
export default TagSearchInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cortex } from './types';
|
|
3
|
+
export interface TagSuggestionProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
tags?: Cortex.Tag[];
|
|
6
|
+
disableFilter?: boolean;
|
|
7
|
+
suggestions?: Cortex.TagSuggestion[];
|
|
8
|
+
anchorEl?: React.RefObject<HTMLElement>;
|
|
9
|
+
filter?: string;
|
|
10
|
+
onSuggestionClick?: (suggestion: Cortex.TagSuggestion) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const TagSuggestion: React.ForwardRefExoticComponent<TagSuggestionProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
+
export default TagSuggestion;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cortex } from './types';
|
|
3
|
+
export interface TagSuggestionGroupProps {
|
|
4
|
+
group: Cortex.TagSuggestion;
|
|
5
|
+
onClick?: (suggestion: Cortex.TagSuggestion, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const TagSuggestionGroup: React.FC<TagSuggestionGroupProps>;
|
|
8
|
+
export default TagSuggestionGroup;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cortex } from './types';
|
|
3
|
+
export interface TagSuggestionItemProps {
|
|
4
|
+
suggestion: Cortex.TagSuggestion;
|
|
5
|
+
onClick?: (suggestion: Cortex.TagSuggestion, event: React.MouseEvent<HTMLDivElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const TagSuggestionItem: React.FC<TagSuggestionItemProps>;
|
|
8
|
+
export default TagSuggestionItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TagInput';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TextFieldInputProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
onFocus?: () => void;
|
|
6
|
+
onBlur?: () => void;
|
|
7
|
+
onChange?: (value: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TextFieldInput: React.FC<TextFieldInputProps>;
|
|
10
|
+
export default TextFieldInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextField';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ToggleButtonProps {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
value?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onChange?: (value: string | undefined) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ToggleButton: React.FC<ToggleButtonProps>;
|
|
11
|
+
export default ToggleButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ToggleButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
children?: React.ReactElement<any>;
|
|
4
|
+
anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
enterDelay?: number;
|
|
7
|
+
leaveDelay?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
12
|
+
export default Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tooltip';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
trigger: boolean;
|
|
4
|
+
mode: 'appear' | 'disappear';
|
|
5
|
+
children?: React.ReactElement<any>;
|
|
6
|
+
enterTimeout?: number;
|
|
7
|
+
exitTimeout?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
onEnter?: () => void;
|
|
10
|
+
onEntering?: () => void;
|
|
11
|
+
onEntered?: () => void;
|
|
12
|
+
onExit?: () => void;
|
|
13
|
+
onExiting?: () => void;
|
|
14
|
+
onExited?: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const CSSTransition: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
export default CSSTransition;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
trigger: boolean;
|
|
4
|
+
children?: React.ReactElement<any>;
|
|
5
|
+
onEnter?: () => void;
|
|
6
|
+
onEntering?: () => void;
|
|
7
|
+
onEntered?: () => void;
|
|
8
|
+
onExit?: () => void;
|
|
9
|
+
onExiting?: () => void;
|
|
10
|
+
onExited?: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Fade: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
13
|
+
export default Fade;
|