cortex-react-ui 0.2.16 → 0.2.18
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/Dialog/DialogActions.d.ts +2 -2
- package/lib/cjs/Dialog/DialogTitle.d.ts +3 -3
- package/lib/cjs/Input/Input.d.ts +1 -1
- package/lib/cjs/Menu/AuthDownloadLink.d.ts +2 -2
- package/lib/cjs/TextField/TextFieldInput.d.ts +1 -1
- package/lib/cjs/Tooltip/Tooltip.d.ts +1 -1
- package/lib/cjs/Transition/CSSTransition.d.ts +1 -1
- package/lib/cjs/Transition/Fade.d.ts +1 -1
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +6 -6
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/forwardRef.d.ts +35 -0
- package/lib/cjs/utils/setRef.d.ts +9 -2
- package/lib/cjs/utils/useForkRef.d.ts +9 -1
- package/lib/esm/Dialog/DialogActions.d.ts +2 -2
- package/lib/esm/Dialog/DialogTitle.d.ts +3 -3
- package/lib/esm/Input/Input.d.ts +1 -1
- package/lib/esm/Menu/AuthDownloadLink.d.ts +2 -2
- package/lib/esm/TextField/TextFieldInput.d.ts +1 -1
- package/lib/esm/Tooltip/Tooltip.d.ts +1 -1
- package/lib/esm/Transition/CSSTransition.d.ts +1 -1
- package/lib/esm/Transition/Fade.d.ts +1 -1
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +7 -7
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/forwardRef.d.ts +35 -0
- package/lib/esm/utils/setRef.d.ts +9 -2
- package/lib/esm/utils/useForkRef.d.ts +9 -1
- package/lib/index.d.ts +111 -76
- package/package.json +18 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DialogActionsProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const DialogActions: React.FC<
|
|
6
|
+
declare const DialogActions: React.FC<DialogActionsProps>;
|
|
7
7
|
export default DialogActions;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DialogTitleProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
closeDisable?: boolean;
|
|
6
6
|
onClose?: (() => void);
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const DialogTitle: React.FC<DialogTitleProps>;
|
|
9
|
+
export default DialogTitle;
|
package/lib/cjs/Input/Input.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import React from 'react';
|
|
|
2
2
|
export interface AuthDownloadLinkProps {
|
|
3
3
|
url: string;
|
|
4
4
|
queryParams?: {
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: string | number | boolean;
|
|
6
6
|
};
|
|
7
7
|
token: string;
|
|
8
8
|
label?: string;
|
|
9
9
|
onStart?: (event: React.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
10
10
|
onCompleted?: () => void;
|
|
11
|
-
onError?: (error:
|
|
11
|
+
onError?: (error: Error) => void;
|
|
12
12
|
}
|
|
13
13
|
declare const AuthDownloadLink: React.FC<AuthDownloadLinkProps>;
|
|
14
14
|
export default AuthDownloadLink;
|
|
@@ -4,7 +4,7 @@ export interface TextFieldInputProps {
|
|
|
4
4
|
value?: string;
|
|
5
5
|
onFocus?: () => void;
|
|
6
6
|
onBlur?: () => void;
|
|
7
|
-
onChange?: (value:
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
8
|
}
|
|
9
9
|
declare const TextFieldInput: React.FC<TextFieldInputProps>;
|
|
10
10
|
export default TextFieldInput;
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -19,3 +19,5 @@ export { default as MenuGroup } from './Menu/MenuGroup';
|
|
|
19
19
|
export { default as AuthDownloadLink } from './Menu/AuthDownloadLink';
|
|
20
20
|
export { default as Dialog, DialogContent, DialogHeader, DialogFooter, ConfirmDialog, ErrorDialog, WarningDialog, DialogActions, DialogTitle } from './Dialog';
|
|
21
21
|
export { ChevronDownIcon, ChevronRightIcon, ChevronLeftIcon, CrossIcon } from './Icons';
|
|
22
|
+
export { forwardRef } from './utils/forwardRef';
|
|
23
|
+
export type { ForwardRefProps, ForwardRefRenderFunction } from './utils/forwardRef';
|