@equinor/echo-components 0.5.8-rc2 → 0.5.11
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/LICENSE +21 -21
- package/README.md +62 -62
- package/dist/components/buttonWithPopover/ButtonWithPopover.d.ts +21 -21
- package/dist/components/contextMenu/ContextMenu.d.ts +35 -35
- package/dist/components/contextMenuPopover/DataInfoButton.d.ts +19 -19
- package/dist/components/contextMenuPopover/DataInfoPopover.d.ts +18 -18
- package/dist/components/datePicker/PopupHeader.d.ts +19 -19
- package/dist/components/datePicker/ReactDatePicker.d.ts +19 -19
- package/dist/components/dialogGenerator/DialogGenerator.d.ts +26 -26
- package/dist/components/dropdown/Dropdown.d.ts +37 -37
- package/dist/components/echoBottomBar/EchoBottomBar.d.ts +7 -7
- package/dist/components/echoCard/Body.d.ts +7 -7
- package/dist/components/echoCard/DateSection.d.ts +8 -8
- package/dist/components/echoCard/EchoCard.d.ts +7 -7
- package/dist/components/echoCard/LinkSection.d.ts +8 -8
- package/dist/components/echoCard/Title.d.ts +13 -13
- package/dist/components/echoCard/index.d.ts +14 -14
- package/dist/components/echoHeader/EchoHeader.d.ts +20 -20
- package/dist/components/floatingActionButton/FloatingActionButton.d.ts +29 -29
- package/dist/components/floatingSearchBar/FloatingSearchBar.d.ts +31 -0
- package/dist/components/index.d.ts +20 -17
- package/dist/components/inlineTagIconLink/InlineTagIconLink.d.ts +12 -12
- package/dist/components/listItem/ListItem.d.ts +50 -50
- package/dist/components/listItem/index.d.ts +1 -1
- package/dist/components/listRow/ListRow.d.ts +29 -29
- package/dist/components/rightPanel/PanelContextWrapper.d.ts +19 -19
- package/dist/components/rightPanel/index.d.ts +5 -5
- package/dist/components/rightPanel/menuButton/MenuButton.d.ts +26 -26
- package/dist/components/rightPanel/panel/Panel.d.ts +18 -18
- package/dist/components/rightPanel/panelContent/PanelContent.d.ts +21 -21
- package/dist/components/rightPanel/panelWrapper/PanelWrapper.d.ts +21 -21
- package/dist/components/rightPanel/usePanelContext.d.ts +8 -8
- package/dist/components/sidebarButton/SidebarButton.d.ts +61 -41
- package/dist/components/sidesheet/enums.d.ts +5 -5
- package/dist/components/sidesheet/index.d.ts +11 -11
- package/dist/components/sidesheet/sheet/Sheet.d.ts +19 -19
- package/dist/components/sidesheet/sheet/index.d.ts +1 -1
- package/dist/components/sidesheet/sheet/utils.d.ts +2 -2
- package/dist/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +16 -16
- package/dist/components/sidesheet/sheetTopArea/index.d.ts +1 -1
- package/dist/components/splitView/SplitView.d.ts +10 -0
- package/dist/components/splitView/index.d.ts +8 -0
- package/dist/components/splitView/left/SplitViewLeft.d.ts +7 -0
- package/dist/components/tagContextMenu/TagContextMenu.d.ts +30 -30
- package/dist/components/timePicker/TimePicker.d.ts +12 -12
- package/dist/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +18 -18
- package/dist/elements/icon/Icon.d.ts +20 -20
- package/dist/elements/index.d.ts +8 -8
- package/dist/elements/radioButtonGroup/RadioButtonGroup.d.ts +20 -20
- package/dist/elements/roundIconButton/RoundIconButton.d.ts +13 -13
- package/dist/elements/sliderField/SliderField.d.ts +25 -25
- package/dist/elements/tagIcon/TagIcon.d.ts +16 -16
- package/dist/elements/tagIcon/TagIconShadow.d.ts +13 -13
- package/dist/elements/textIconButton/TextIconButton.d.ts +19 -19
- package/dist/helpers/classnames.d.ts +5 -5
- package/dist/helpers/getIcon.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/tagCategoryIcon.d.ts +38 -38
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useEventListener.d.ts +3 -0
- package/dist/hooks/useKeyboardNavigation.d.ts +21 -0
- package/dist/icons/echoAssets/external.d.ts +5 -3
- package/dist/icons/echoAssets/index.d.ts +3 -2
- package/dist/icons/echoAssets/notifications.d.ts +9 -0
- package/dist/icons/echoAssets/workOrders.d.ts +11 -0
- package/dist/icons/index.d.ts +3 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1789 -580
- package/dist/index.js.map +1 -1
- package/dist/setupTests.d.ts +1 -1
- package/dist/structure/iconList/IconList.d.ts +32 -32
- package/dist/structure/iconList/createListRow.d.ts +14 -14
- package/dist/structure/index.d.ts +3 -3
- package/dist/structure/linkCard/LinkCard.d.ts +26 -26
- package/dist/structure/optionsList/OptionsList.d.ts +24 -24
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeConst.d.ts +65 -65
- package/dist/types/actionButton.d.ts +6 -6
- package/dist/types/dataInformation.d.ts +8 -8
- package/dist/types/draggableItem.d.ts +5 -5
- package/dist/types/expandableRowProps.d.ts +6 -6
- package/dist/types/iconItem.d.ts +4 -4
- package/dist/types/iconListItem.d.ts +6 -6
- package/dist/types/index.d.ts +10 -10
- package/dist/types/linkCardItem.d.ts +5 -5
- package/dist/types/menuItem.d.ts +9 -9
- package/dist/types/optionsItem.d.ts +6 -6
- package/dist/types/radioButtonItem.d.ts +4 -4
- package/package.json +126 -126
- package/dist/icons/echoAssets/data.d.ts +0 -3
package/dist/setupTests.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import './index';
|
|
1
|
+
import './index';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { IconItem, IconListItem } from '../..';
|
|
3
|
-
export interface IconListProps {
|
|
4
|
-
style?: CSSProperties;
|
|
5
|
-
title: string;
|
|
6
|
-
items: IconListItem[];
|
|
7
|
-
isDraggable: boolean;
|
|
8
|
-
expandedIcons?: IconItem[];
|
|
9
|
-
onUpdatedOrder: (itemsInNewOrder: IconListItem[]) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface IconListState {
|
|
12
|
-
orderedItems: IconListItem[];
|
|
13
|
-
expandedIndex: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Component that renders an IconList of rows, that can be draggable and/or expandable
|
|
17
|
-
*
|
|
18
|
-
* @param {IconListProps} {
|
|
19
|
-
* style: the style to override the IconList wrapper
|
|
20
|
-
* title: The title of the list
|
|
21
|
-
* items: { The items to be rendered in the row
|
|
22
|
-
* title: the title of the item in the row
|
|
23
|
-
* subtitle: the subtitle of the item in the row
|
|
24
|
-
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
25
|
-
* }[]
|
|
26
|
-
* isDraggable: flag to indicate if the elements in the list should be draggable
|
|
27
|
-
* expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
|
|
28
|
-
* onUpdatedOrder: method that will be called when the order of the list has changed
|
|
29
|
-
* }
|
|
30
|
-
* @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
|
|
31
|
-
*/
|
|
32
|
-
export declare const IconList: React.FC<IconListProps>;
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { IconItem, IconListItem } from '../..';
|
|
3
|
+
export interface IconListProps {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
title: string;
|
|
6
|
+
items: IconListItem[];
|
|
7
|
+
isDraggable: boolean;
|
|
8
|
+
expandedIcons?: IconItem[];
|
|
9
|
+
onUpdatedOrder: (itemsInNewOrder: IconListItem[]) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface IconListState {
|
|
12
|
+
orderedItems: IconListItem[];
|
|
13
|
+
expandedIndex: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Component that renders an IconList of rows, that can be draggable and/or expandable
|
|
17
|
+
*
|
|
18
|
+
* @param {IconListProps} {
|
|
19
|
+
* style: the style to override the IconList wrapper
|
|
20
|
+
* title: The title of the list
|
|
21
|
+
* items: { The items to be rendered in the row
|
|
22
|
+
* title: the title of the item in the row
|
|
23
|
+
* subtitle: the subtitle of the item in the row
|
|
24
|
+
* icons: the icons that will be displayed on the same row, and their respective actions
|
|
25
|
+
* }[]
|
|
26
|
+
* isDraggable: flag to indicate if the elements in the list should be draggable
|
|
27
|
+
* expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
|
|
28
|
+
* onUpdatedOrder: method that will be called when the order of the list has changed
|
|
29
|
+
* }
|
|
30
|
+
* @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
|
|
31
|
+
*/
|
|
32
|
+
export declare const IconList: React.FC<IconListProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconItem } from '../..';
|
|
3
|
-
import { IconListState } from './IconList';
|
|
4
|
-
/**
|
|
5
|
-
* Helper method that will return a list row given some input values. Used in IconList component for rendering rows
|
|
6
|
-
*
|
|
7
|
-
* @param {boolean} isDraggable flag to indicate that the row is draggable
|
|
8
|
-
* @param {number} index the index of the list
|
|
9
|
-
* @param {IconListState} iconListState the state from the IconList component used to create the row and its interactions
|
|
10
|
-
* @param {(value: React.SetStateAction<IconListState>) => void} setIconListState the action to update the state from the IconList component
|
|
11
|
-
* @param {IconItem[]} expandedIcons the icons to be displayed if the row is expandable. Is undefined if the row should not be expandable
|
|
12
|
-
* @return {*} {React.ReactNode} A list row component created from the input parameters
|
|
13
|
-
*/
|
|
14
|
-
export declare const createListRow: (isDraggable: boolean, index: number, iconListState: IconListState, setIconListState: (value: React.SetStateAction<IconListState>) => void, expandedIcons?: IconItem[]) => React.ReactNode;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconItem } from '../..';
|
|
3
|
+
import { IconListState } from './IconList';
|
|
4
|
+
/**
|
|
5
|
+
* Helper method that will return a list row given some input values. Used in IconList component for rendering rows
|
|
6
|
+
*
|
|
7
|
+
* @param {boolean} isDraggable flag to indicate that the row is draggable
|
|
8
|
+
* @param {number} index the index of the list
|
|
9
|
+
* @param {IconListState} iconListState the state from the IconList component used to create the row and its interactions
|
|
10
|
+
* @param {(value: React.SetStateAction<IconListState>) => void} setIconListState the action to update the state from the IconList component
|
|
11
|
+
* @param {IconItem[]} expandedIcons the icons to be displayed if the row is expandable. Is undefined if the row should not be expandable
|
|
12
|
+
* @return {*} {React.ReactNode} A list row component created from the input parameters
|
|
13
|
+
*/
|
|
14
|
+
export declare const createListRow: (isDraggable: boolean, index: number, iconListState: IconListState, setIconListState: (value: React.SetStateAction<IconListState>) => void, expandedIcons?: IconItem[]) => React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { IconList } from './iconList/IconList';
|
|
2
|
-
export * from './linkCard/LinkCard';
|
|
3
|
-
export * from './optionsList/OptionsList';
|
|
1
|
+
export { IconList } from './iconList/IconList';
|
|
2
|
+
export * from './linkCard/LinkCard';
|
|
3
|
+
export * from './optionsList/OptionsList';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { LinkCardItem } from '../../types/linkCardItem';
|
|
3
|
-
export interface LinkCardProps {
|
|
4
|
-
image: string;
|
|
5
|
-
title: string;
|
|
6
|
-
subTitle: string;
|
|
7
|
-
links: LinkCardItem[];
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Component that renders a card with an image and a list of links
|
|
12
|
-
*
|
|
13
|
-
* @param {LinkCardProps} {
|
|
14
|
-
* style: style element to override wrapper style
|
|
15
|
-
* image: the image scr of the image to be displayed
|
|
16
|
-
* title: the title of the card
|
|
17
|
-
* subTitle: the subtitle of the cars
|
|
18
|
-
* links { A list of links to display
|
|
19
|
-
* title: the text of the link
|
|
20
|
-
* url: the url to the link
|
|
21
|
-
* target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* @return {*} {JSX.Element} a card element with an image and some provided links
|
|
25
|
-
*/
|
|
26
|
-
export declare const LinkCard: React.FC<LinkCardProps>;
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { LinkCardItem } from '../../types/linkCardItem';
|
|
3
|
+
export interface LinkCardProps {
|
|
4
|
+
image: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle: string;
|
|
7
|
+
links: LinkCardItem[];
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Component that renders a card with an image and a list of links
|
|
12
|
+
*
|
|
13
|
+
* @param {LinkCardProps} {
|
|
14
|
+
* style: style element to override wrapper style
|
|
15
|
+
* image: the image scr of the image to be displayed
|
|
16
|
+
* title: the title of the card
|
|
17
|
+
* subTitle: the subtitle of the cars
|
|
18
|
+
* links { A list of links to display
|
|
19
|
+
* title: the text of the link
|
|
20
|
+
* url: the url to the link
|
|
21
|
+
* target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* @return {*} {JSX.Element} a card element with an image and some provided links
|
|
25
|
+
*/
|
|
26
|
+
export declare const LinkCard: React.FC<LinkCardProps>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { OptionsItem } from '../../types/optionsItem';
|
|
3
|
-
export interface OptionsListProps {
|
|
4
|
-
style?: CSSProperties;
|
|
5
|
-
items: OptionsItem[];
|
|
6
|
-
titles: string[];
|
|
7
|
-
columns: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that renders a list with a set number of radio buttons for each row in the list
|
|
11
|
-
*
|
|
12
|
-
* @param {OptionsListProps} {
|
|
13
|
-
* items:{ the items that should be shown in the list
|
|
14
|
-
* title: the text displayed for a row in the list
|
|
15
|
-
* color: the background color used in the badge in front of the title of the item
|
|
16
|
-
* selectedColumnIndex: specifies witch radio button should have selected state. Should not be larger than the columns input property
|
|
17
|
-
* }
|
|
18
|
-
* style: Optional parameter that can override the wrapper style
|
|
19
|
-
* titles: list of title that should be shown for the different columns in the list
|
|
20
|
-
* columns: the number of columns the list should have
|
|
21
|
-
* }
|
|
22
|
-
* @return {*} {JSX.Element} a list of rows with a set of radio buttons
|
|
23
|
-
*/
|
|
24
|
-
export declare const OptionsList: React.FC<OptionsListProps>;
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { OptionsItem } from '../../types/optionsItem';
|
|
3
|
+
export interface OptionsListProps {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
items: OptionsItem[];
|
|
6
|
+
titles: string[];
|
|
7
|
+
columns: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Component that renders a list with a set number of radio buttons for each row in the list
|
|
11
|
+
*
|
|
12
|
+
* @param {OptionsListProps} {
|
|
13
|
+
* items:{ the items that should be shown in the list
|
|
14
|
+
* title: the text displayed for a row in the list
|
|
15
|
+
* color: the background color used in the badge in front of the title of the item
|
|
16
|
+
* selectedColumnIndex: specifies witch radio button should have selected state. Should not be larger than the columns input property
|
|
17
|
+
* }
|
|
18
|
+
* style: Optional parameter that can override the wrapper style
|
|
19
|
+
* titles: list of title that should be shown for the different columns in the list
|
|
20
|
+
* columns: the number of columns the list should have
|
|
21
|
+
* }
|
|
22
|
+
* @return {*} {JSX.Element} a list of rows with a set of radio buttons
|
|
23
|
+
*/
|
|
24
|
+
export declare const OptionsList: React.FC<OptionsListProps>;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './themeConst';
|
|
1
|
+
export * from './themeConst';
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export declare const themeConst: {
|
|
2
|
-
black: string;
|
|
3
|
-
white: string;
|
|
4
|
-
equiBlue1: string;
|
|
5
|
-
equiBlue2: string;
|
|
6
|
-
equiBlue3: string;
|
|
7
|
-
equiGray1: string;
|
|
8
|
-
equiGray2: string;
|
|
9
|
-
equiGray3: string;
|
|
10
|
-
equiGray4: string;
|
|
11
|
-
equiGray5: string;
|
|
12
|
-
equiRed1: string;
|
|
13
|
-
darkEquiRed: string;
|
|
14
|
-
equiGreen1: string;
|
|
15
|
-
equiGreen2: string;
|
|
16
|
-
equiGreen3: string;
|
|
17
|
-
echoText: string;
|
|
18
|
-
disabledBackgroundColor: string;
|
|
19
|
-
disabledColor: string;
|
|
20
|
-
pm01: string;
|
|
21
|
-
pm02: string;
|
|
22
|
-
pm03: string;
|
|
23
|
-
pm04: string;
|
|
24
|
-
pm05: string;
|
|
25
|
-
pm06: string;
|
|
26
|
-
pm010: string;
|
|
27
|
-
pm015: string;
|
|
28
|
-
pm020: string;
|
|
29
|
-
onGoing: string;
|
|
30
|
-
done: string;
|
|
31
|
-
asBuilt: string;
|
|
32
|
-
planned: string;
|
|
33
|
-
future: string;
|
|
34
|
-
historic: string;
|
|
35
|
-
outOfService: string;
|
|
36
|
-
reserved: string;
|
|
37
|
-
voided: string;
|
|
38
|
-
default: string;
|
|
39
|
-
ok: string;
|
|
40
|
-
os: string;
|
|
41
|
-
pa: string;
|
|
42
|
-
pb: string;
|
|
43
|
-
unknown: string;
|
|
44
|
-
priorityHigh: string;
|
|
45
|
-
priorityMedium: string;
|
|
46
|
-
systems: string;
|
|
47
|
-
locations: string;
|
|
48
|
-
ofpDark: string;
|
|
49
|
-
ofpLight: string;
|
|
50
|
-
warningText: string;
|
|
51
|
-
warningIcon: string;
|
|
52
|
-
warningBackground: string;
|
|
53
|
-
dropDownButtonBackground: string;
|
|
54
|
-
dropDownTextColor: string;
|
|
55
|
-
searchBarBackground: string;
|
|
56
|
-
highSeverity: string;
|
|
57
|
-
mediumSeverity: string;
|
|
58
|
-
lowSeverity: string;
|
|
59
|
-
defaultSeverity: string;
|
|
60
|
-
toggleActive: string;
|
|
61
|
-
toggleInactive: string;
|
|
62
|
-
hoverIcon: string;
|
|
63
|
-
hoverIconWithNotification: string;
|
|
64
|
-
tertiaryText: string;
|
|
65
|
-
};
|
|
1
|
+
export declare const themeConst: {
|
|
2
|
+
black: string;
|
|
3
|
+
white: string;
|
|
4
|
+
equiBlue1: string;
|
|
5
|
+
equiBlue2: string;
|
|
6
|
+
equiBlue3: string;
|
|
7
|
+
equiGray1: string;
|
|
8
|
+
equiGray2: string;
|
|
9
|
+
equiGray3: string;
|
|
10
|
+
equiGray4: string;
|
|
11
|
+
equiGray5: string;
|
|
12
|
+
equiRed1: string;
|
|
13
|
+
darkEquiRed: string;
|
|
14
|
+
equiGreen1: string;
|
|
15
|
+
equiGreen2: string;
|
|
16
|
+
equiGreen3: string;
|
|
17
|
+
echoText: string;
|
|
18
|
+
disabledBackgroundColor: string;
|
|
19
|
+
disabledColor: string;
|
|
20
|
+
pm01: string;
|
|
21
|
+
pm02: string;
|
|
22
|
+
pm03: string;
|
|
23
|
+
pm04: string;
|
|
24
|
+
pm05: string;
|
|
25
|
+
pm06: string;
|
|
26
|
+
pm010: string;
|
|
27
|
+
pm015: string;
|
|
28
|
+
pm020: string;
|
|
29
|
+
onGoing: string;
|
|
30
|
+
done: string;
|
|
31
|
+
asBuilt: string;
|
|
32
|
+
planned: string;
|
|
33
|
+
future: string;
|
|
34
|
+
historic: string;
|
|
35
|
+
outOfService: string;
|
|
36
|
+
reserved: string;
|
|
37
|
+
voided: string;
|
|
38
|
+
default: string;
|
|
39
|
+
ok: string;
|
|
40
|
+
os: string;
|
|
41
|
+
pa: string;
|
|
42
|
+
pb: string;
|
|
43
|
+
unknown: string;
|
|
44
|
+
priorityHigh: string;
|
|
45
|
+
priorityMedium: string;
|
|
46
|
+
systems: string;
|
|
47
|
+
locations: string;
|
|
48
|
+
ofpDark: string;
|
|
49
|
+
ofpLight: string;
|
|
50
|
+
warningText: string;
|
|
51
|
+
warningIcon: string;
|
|
52
|
+
warningBackground: string;
|
|
53
|
+
dropDownButtonBackground: string;
|
|
54
|
+
dropDownTextColor: string;
|
|
55
|
+
searchBarBackground: string;
|
|
56
|
+
highSeverity: string;
|
|
57
|
+
mediumSeverity: string;
|
|
58
|
+
lowSeverity: string;
|
|
59
|
+
defaultSeverity: string;
|
|
60
|
+
toggleActive: string;
|
|
61
|
+
toggleInactive: string;
|
|
62
|
+
hoverIcon: string;
|
|
63
|
+
hoverIconWithNotification: string;
|
|
64
|
+
tertiaryText: string;
|
|
65
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface ActionButton {
|
|
2
|
-
title: string;
|
|
3
|
-
onClick: () => void;
|
|
4
|
-
variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
|
|
5
|
-
color?: 'danger' | 'primary' | 'secondary';
|
|
6
|
-
}
|
|
1
|
+
export interface ActionButton {
|
|
2
|
+
title: string;
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
|
|
5
|
+
color?: 'danger' | 'primary' | 'secondary';
|
|
6
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface DataInformation {
|
|
2
|
-
numberOfItems: number;
|
|
3
|
-
label: string;
|
|
4
|
-
ariaLabel?: string;
|
|
5
|
-
onTagInfoClicked: () => void;
|
|
6
|
-
itemType: string;
|
|
7
|
-
itemButtonClassName?: string;
|
|
8
|
-
}
|
|
1
|
+
export interface DataInformation {
|
|
2
|
+
numberOfItems: number;
|
|
3
|
+
label: string;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
onTagInfoClicked: () => void;
|
|
6
|
+
itemType: string;
|
|
7
|
+
itemButtonClassName?: string;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface DraggableItem {
|
|
3
|
-
id: number;
|
|
4
|
-
element: React.ReactNode;
|
|
5
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DraggableItem {
|
|
3
|
+
id: number;
|
|
4
|
+
element: React.ReactNode;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IconItem } from './iconItem';
|
|
2
|
-
export interface ExpandableRowProps {
|
|
3
|
-
iconItems: IconItem[];
|
|
4
|
-
expanded: boolean;
|
|
5
|
-
setExpanded: (status: boolean) => void;
|
|
6
|
-
}
|
|
1
|
+
import { IconItem } from './iconItem';
|
|
2
|
+
export interface ExpandableRowProps {
|
|
3
|
+
iconItems: IconItem[];
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
setExpanded: (status: boolean) => void;
|
|
6
|
+
}
|
package/dist/types/iconItem.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IconItem {
|
|
2
|
-
icon: string;
|
|
3
|
-
onClick: () => void;
|
|
4
|
-
}
|
|
1
|
+
export interface IconItem {
|
|
2
|
+
icon: string;
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IconItem } from './iconItem';
|
|
2
|
-
export interface IconListItem {
|
|
3
|
-
title?: string;
|
|
4
|
-
subTitle?: string;
|
|
5
|
-
icons: IconItem[];
|
|
6
|
-
}
|
|
1
|
+
import { IconItem } from './iconItem';
|
|
2
|
+
export interface IconListItem {
|
|
3
|
+
title?: string;
|
|
4
|
+
subTitle?: string;
|
|
5
|
+
icons: IconItem[];
|
|
6
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './actionButton';
|
|
2
|
-
export * from './dataInformation';
|
|
3
|
-
export * from './draggableItem';
|
|
4
|
-
export * from './expandableRowProps';
|
|
5
|
-
export * from './iconItem';
|
|
6
|
-
export * from './iconListItem';
|
|
7
|
-
export * from './linkCardItem';
|
|
8
|
-
export * from './menuItem';
|
|
9
|
-
export * from './optionsItem';
|
|
10
|
-
export * from './radioButtonItem';
|
|
1
|
+
export * from './actionButton';
|
|
2
|
+
export * from './dataInformation';
|
|
3
|
+
export * from './draggableItem';
|
|
4
|
+
export * from './expandableRowProps';
|
|
5
|
+
export * from './iconItem';
|
|
6
|
+
export * from './iconListItem';
|
|
7
|
+
export * from './linkCardItem';
|
|
8
|
+
export * from './menuItem';
|
|
9
|
+
export * from './optionsItem';
|
|
10
|
+
export * from './radioButtonItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface LinkCardItem {
|
|
2
|
-
title: string;
|
|
3
|
-
url: string;
|
|
4
|
-
target?: '_blank' | '_self';
|
|
5
|
-
}
|
|
1
|
+
export interface LinkCardItem {
|
|
2
|
+
title: string;
|
|
3
|
+
url: string;
|
|
4
|
+
target?: '_blank' | '_self';
|
|
5
|
+
}
|
package/dist/types/menuItem.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface MenuItem {
|
|
3
|
-
labelId: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon: string | React.ReactNode;
|
|
6
|
-
panelSize?: PanelSize;
|
|
7
|
-
component: React.FC<Record<string, unknown>>;
|
|
8
|
-
}
|
|
9
|
-
export declare type PanelSize = 'narrow' | 'wide';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MenuItem {
|
|
3
|
+
labelId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: string | React.ReactNode;
|
|
6
|
+
panelSize?: PanelSize;
|
|
7
|
+
component: React.FC<Record<string, unknown>>;
|
|
8
|
+
}
|
|
9
|
+
export declare type PanelSize = 'narrow' | 'wide';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface OptionsItem {
|
|
2
|
-
color?: string;
|
|
3
|
-
title: string;
|
|
4
|
-
selectedColumnIndex: number;
|
|
5
|
-
onSelected: (rowIndex: number, columnIndex: number) => void;
|
|
6
|
-
}
|
|
1
|
+
export interface OptionsItem {
|
|
2
|
+
color?: string;
|
|
3
|
+
title: string;
|
|
4
|
+
selectedColumnIndex: number;
|
|
5
|
+
onSelected: (rowIndex: number, columnIndex: number) => void;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface RadioButtonItem {
|
|
2
|
-
title: string;
|
|
3
|
-
isChecked: boolean;
|
|
4
|
-
}
|
|
1
|
+
export interface RadioButtonItem {
|
|
2
|
+
title: string;
|
|
3
|
+
isChecked: boolean;
|
|
4
|
+
}
|