@equinor/echo-components 0.3.0 → 0.4.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/dist/components/datePicker/ReactDatePicker.d.ts +4 -1
- package/dist/components/dialogGenerator/DialogGenerator.d.ts +6 -0
- package/dist/components/echoBottomBar/EchoBottomBar.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +202 -1269
- package/package.json +48 -41
- package/CHANGELOG.md +0 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
3
3
|
import './reactDatePicker.css';
|
|
4
|
+
declare type PopperPlacement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
|
|
4
5
|
export interface DatePickerProps {
|
|
5
6
|
id: string;
|
|
6
7
|
value: Date | undefined | null;
|
|
@@ -9,8 +10,10 @@ export interface DatePickerProps {
|
|
|
9
10
|
disableFuture?: boolean;
|
|
10
11
|
disableBeforeDate?: Date;
|
|
11
12
|
className?: string;
|
|
12
|
-
popperPlacement?:
|
|
13
|
+
popperPlacement?: PopperPlacement;
|
|
13
14
|
showTimeSelect?: boolean;
|
|
15
|
+
maxDate?: Date;
|
|
16
|
+
minDate?: Date;
|
|
14
17
|
}
|
|
15
18
|
export declare const ReactDatePicker: React.FC<DatePickerProps>;
|
|
16
19
|
export default ReactDatePicker;
|
|
@@ -5,6 +5,9 @@ export interface DialogGeneratorProps {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
title: string;
|
|
7
7
|
actionButtons: ActionButton[];
|
|
8
|
+
open: boolean;
|
|
9
|
+
isDismissable?: boolean;
|
|
10
|
+
onClose?: () => void;
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
13
|
* Component that renders a dialog box based on input properties
|
|
@@ -14,6 +17,9 @@ export interface DialogGeneratorProps {
|
|
|
14
17
|
* title: the title of the dialog
|
|
15
18
|
* children: The main content of the dialog
|
|
16
19
|
* actionButtons: the buttons to show in the dialog
|
|
20
|
+
* open: if the dialog should be open
|
|
21
|
+
* isDismissable: if the modal is closable by clicking aside or by hitting ESC key
|
|
22
|
+
* onClose: callback to be called when the dialog is closed
|
|
17
23
|
* }
|
|
18
24
|
* @return {*} {JSX.Element} Dialog component
|
|
19
25
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { DataInfoButton } from './components/contextMenuPopover/DataInfoButton';
|
|
|
4
4
|
export { ReactDatePicker } from './components/datePicker/ReactDatePicker';
|
|
5
5
|
export { DialogGenerator } from './components/dialogGenerator/DialogGenerator';
|
|
6
6
|
export { Dropdown } from './components/dropdown/Dropdown';
|
|
7
|
+
export { EchoBottomBar } from './components/echoBottomBar/EchoBottomBar';
|
|
7
8
|
export { EchoCard } from './components/echoCard/index';
|
|
8
9
|
export { EchoHeader } from './components/echoHeader/EchoHeader';
|
|
9
10
|
export { InlineTagIconLink } from './components/inlineTagIconLink/InlineTagIconLink';
|