@equinor/echo-components 0.11.0 → 0.11.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/index.cjs.js +1 -1
- package/package.json +7 -7
- package/src/components/blackLink/BlackLink.d.ts +4 -4
- package/src/components/copyToClipboard/CopyToClipboard.d.ts +1 -1
- package/src/components/dialog/ConfirmDialog.d.ts +11 -0
- package/src/components/dialog/SaveAsDialog.d.ts +11 -0
- package/src/components/index.d.ts +2 -0
- package/src/types/actionButton.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"chart.js": "4.4.
|
|
6
|
-
"react-window": "1.8.
|
|
7
|
-
"react-datepicker": "4.
|
|
5
|
+
"chart.js": "4.4.1",
|
|
6
|
+
"react-window": "1.8.10",
|
|
7
|
+
"react-datepicker": "4.25.0"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@equinor/echo-utils": ">= 0.4.0 < 0.5.0",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"@equinor/eds-icons": "0.19.3",
|
|
13
13
|
"react": ">= 17.0.2",
|
|
14
14
|
"react-dom": ">= 17.0.2",
|
|
15
|
-
"zustand": "4.4.
|
|
16
|
-
"lodash": "4.17.21",
|
|
15
|
+
"zustand": ">= 4.4.7 < 5",
|
|
16
|
+
"lodash": ">= 4.17.21 < 5",
|
|
17
17
|
"react-sortablejs": "6.1.4",
|
|
18
|
-
"sortablejs": "1.15.
|
|
18
|
+
"sortablejs": ">= 1.15.1 < 2",
|
|
19
19
|
"classnames": "2.3.2"
|
|
20
20
|
},
|
|
21
21
|
"main": "./index.cjs.js",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TooltipProps } from '@equinor/eds-core-react';
|
|
2
|
+
type LinkProps = Omit<TooltipProps, 'href' | 'children'> & {
|
|
2
3
|
className?: string;
|
|
3
4
|
/** The external link. */
|
|
4
5
|
href: string;
|
|
@@ -8,8 +9,7 @@ interface LinkProps {
|
|
|
8
9
|
preserveTab?: boolean;
|
|
9
10
|
/** The text to be displayed in the tooltip. */
|
|
10
11
|
tooltipText?: string;
|
|
11
|
-
/** The text to be displayed in the tooltip. */
|
|
12
12
|
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, onClick, }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, onClick, enterDelay, placement, ...toolTipRest }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -5,5 +5,5 @@ export interface CopyToClipboardProps {
|
|
|
5
5
|
multiline?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const CopyToClipboard: (
|
|
8
|
+
declare const CopyToClipboard: ({ copyableText, className, multiline, variant }: CopyToClipboardProps) => React.JSX.Element;
|
|
9
9
|
export { CopyToClipboard };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
confirmButtonLabel?: string;
|
|
5
|
+
cancelButtonLabel?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onConfirmClicked: () => void;
|
|
9
|
+
onCloseClicked: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface SaveAsDialogProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onSaveClick: (inputValue: string) => void;
|
|
6
|
+
onCloseClicked: () => void;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
defaultUserInputValue?: string;
|
|
9
|
+
showOverwriteLabel?: (userInputValue: string) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SaveAsDialog: React.FC<SaveAsDialogProps>;
|
|
@@ -5,6 +5,8 @@ export * from './contextMenu/ContextMenu';
|
|
|
5
5
|
export * from './contextMenuPopover/DataInfoButton';
|
|
6
6
|
export * from './copyToClipboard/CopyToClipboard';
|
|
7
7
|
export { ReactDatePicker } from './datePicker/ReactDatePicker';
|
|
8
|
+
export * from './dialog/ConfirmDialog';
|
|
9
|
+
export * from './dialog/SaveAsDialog';
|
|
8
10
|
export * from './dialogGenerator/DialogGenerator';
|
|
9
11
|
export * from './dropdown/Dropdown';
|
|
10
12
|
export * from './echoBottomBar/EchoBottomBar';
|