@equinor/echo-components 4.1.1 → 5.0.0-beta-r19
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/{1dd428dbc8752224.svg → 04852fb8014a9692.svg} +19 -19
- package/{246374c510469011.svg → 0a6a2110d0267d69.svg} +142 -142
- package/README.md +278 -278
- package/{8ddc7d44de9795fc.svg → bb2d3aa591e687f9.svg} +112 -112
- package/{c283d1a6c49e1d97.svg → fb72d3eecaa74688.svg} +82 -82
- package/index.cjs.js +1 -1
- package/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/components/accordionWithSwitch/AccordionWithSwitch.d.ts +1 -1
- package/src/components/buttonWithPopover/ButtonWithPopover.d.ts +1 -1
- package/src/components/contextMenu/ContextMenu.d.ts +2 -2
- package/src/components/contextMenuPopover/DataInfoButton.d.ts +1 -1
- package/src/components/contextMenuPopover/DataInfoPopover.d.ts +1 -1
- package/src/components/datePicker/ReactDatePicker.d.ts +1 -0
- package/src/components/dialogGenerator/DialogGenerator.d.ts +1 -1
- package/src/components/dropdown/Dropdown.d.ts +1 -1
- package/src/components/echoButton/EchoActionButton.d.ts +3 -1
- package/src/components/echoButton/EchoButton.d.ts +3 -11
- package/src/components/echoButton/EchoToggleButton.d.ts +9 -4
- package/src/components/echoCard/Body.d.ts +1 -1
- package/src/components/echoCard/DateSection.d.ts +1 -1
- package/src/components/echoCard/LinkSection.d.ts +1 -1
- package/src/components/echoCard/Title.d.ts +1 -1
- package/src/components/echoHeader/EchoHeader.d.ts +1 -1
- package/src/components/floatingActionButton/FloatingActionButton.d.ts +1 -1
- package/src/components/horizontalTabView/HorizontalTabView.d.ts +5 -7
- package/src/components/iconLink/compactIconLink/CompactIconLink.d.ts +1 -1
- package/src/components/itemMarker/ItemMarker.d.ts +1 -1
- package/src/components/itemMarker/MultipleItemMarkers.d.ts +1 -1
- package/src/components/itemMarker/utils/itemMarkerUtils.d.ts +1 -1
- package/src/components/itemMarkerPopover/OldItemMarkerPopover.d.ts +2 -2
- package/src/components/legendChip/LegendChip.d.ts +1 -1
- package/src/components/legendSelector/LegendSelector.d.ts +5 -5
- package/src/components/legendSelectorAccordion/LegendSelectorAccordion.d.ts +3 -3
- package/src/components/legendSelectorMenu/LegendSelectorMenu.d.ts +2 -2
- package/src/components/listRow/ListRow.d.ts +1 -1
- package/src/components/markedContent/MarkedContent.d.ts +2 -2
- package/src/components/mediaViewer/MediaViewer.d.ts +1 -1
- package/src/components/multilineTabs/MultilineTabs.d.ts +1 -1
- package/src/components/rightPanel/menuButton/MenuButton.d.ts +8 -3
- package/src/components/rightPanel/panel/Panel.d.ts +1 -1
- package/src/components/rightPanel/panelContent/PanelContent.d.ts +1 -1
- package/src/components/rightPanel/panelContent/PanelContentWrapper.d.ts +1 -1
- package/src/components/rightPanel/panelWrapper/PanelWrapper.d.ts +1 -1
- package/src/components/searchBar/floatingSearchBar/FloatingSearchBar.d.ts +2 -2
- package/src/components/searchBar/responsiveSearchBar/ResponsiveSearchBar.d.ts +1 -1
- package/src/components/sidebarButton/SidebarButton.d.ts +1 -1
- package/src/components/sidesheet/index.d.ts +1 -1
- package/src/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +1 -1
- package/src/components/splitView/SplitView.d.ts +2 -2
- package/src/components/splitView/left/SplitViewLeft.d.ts +1 -1
- package/src/components/tagContextMenu/TagContextMenu.d.ts +1 -1
- package/src/components/titleAndStatusLabel/titleAndStatusLabel.d.ts +1 -1
- package/src/components/visualTextIcon/visualTextIcon.d.ts +1 -1
- package/src/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +1 -1
- package/src/elements/icon/Icon.d.ts +1 -1
- package/src/elements/radioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/src/elements/sliderField/SliderField.d.ts +1 -1
- package/src/elements/tagIcon/TagIcon.d.ts +2 -2
- package/src/elements/tagIcon/TagIconShadow.d.ts +1 -1
- package/src/elements/textIconButton/TextIconButton.d.ts +1 -1
- package/src/helpers/tagCategoryIcon.d.ts +2 -2
- package/src/structure/iconList/IconList.d.ts +1 -1
- package/src/structure/linkCard/LinkCard.d.ts +1 -1
|
@@ -15,6 +15,6 @@ export interface IconProps {
|
|
|
15
15
|
* color: The color the icon should have (optional - defaults to CSS-controlled color)
|
|
16
16
|
* size: The wanted size of the icon. Possible values are 16, 24, 32, 40 and 48
|
|
17
17
|
* }
|
|
18
|
-
* @return {*} {JSX.Element} A icon for the provided information
|
|
18
|
+
* @return {*} {React.JSX.Element} A icon for the provided information
|
|
19
19
|
*/
|
|
20
20
|
export declare const Icon: React.FC<IconProps>;
|
|
@@ -15,6 +15,6 @@ export interface RadioButtonGroupProps {
|
|
|
15
15
|
* style: Style element to override wrapper style,
|
|
16
16
|
* onSelected: Method to be called when the selected value is changed
|
|
17
17
|
* }
|
|
18
|
-
* @return {*} {JSX.Element}
|
|
18
|
+
* @return {*} {React.JSX.Element}
|
|
19
19
|
*/
|
|
20
20
|
export declare const RadioButtonGroup: React.FC<RadioButtonGroupProps>;
|
|
@@ -20,6 +20,6 @@ export interface SliderFieldProps {
|
|
|
20
20
|
* onChange: Method that will be called if the slider value is changed,
|
|
21
21
|
* style: style element to override wrapper style
|
|
22
22
|
* }
|
|
23
|
-
* @return {*} {JSX.Element}
|
|
23
|
+
* @return {*} {React.JSX.Element}
|
|
24
24
|
*/
|
|
25
25
|
export declare const SliderField: React.FC<SliderFieldProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface TagIconProps {
|
|
3
|
-
icon: JSX.Element;
|
|
3
|
+
icon: React.JSX.Element;
|
|
4
4
|
legendColor: string;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -10,7 +10,7 @@ interface TagIconProps {
|
|
|
10
10
|
* icon: Icon to be wrapped
|
|
11
11
|
* legendColor: background color to apply. Need to be valid css color
|
|
12
12
|
* }
|
|
13
|
-
* @return {*} {JSX.Element} Wrapped icon with provided color
|
|
13
|
+
* @return {*} {React.JSX.Element} Wrapped icon with provided color
|
|
14
14
|
*/
|
|
15
15
|
export declare const TagIcon: React.FC<TagIconProps>;
|
|
16
16
|
export {};
|
|
@@ -7,7 +7,7 @@ interface TagIconShadowWrapperProps {
|
|
|
7
7
|
* Should be used to add shadow to the tagIcon component
|
|
8
8
|
*
|
|
9
9
|
* @param {TagIconShadowWrapperProps} { children } Child element to wrap
|
|
10
|
-
* @return {*} {JSX.Element} wrapped child element in a shadow
|
|
10
|
+
* @return {*} {React.JSX.Element} wrapped child element in a shadow
|
|
11
11
|
*/
|
|
12
12
|
export declare const TagIconShadowWrapper: React.FC<TagIconShadowWrapperProps>;
|
|
13
13
|
export {};
|
|
@@ -14,6 +14,6 @@ export interface TextIconButtonProps {
|
|
|
14
14
|
* onClick: the function that will be called when user clicks the button
|
|
15
15
|
* style: Optional parameter that will override the button style
|
|
16
16
|
* }
|
|
17
|
-
* @return {*} {JSX.Element} A button with the provided icon and text
|
|
17
|
+
* @return {*} {React.JSX.Element} A button with the provided icon and text
|
|
18
18
|
*/
|
|
19
19
|
export declare const TextIconButton: React.FC<TextIconButtonProps>;
|
|
@@ -18,7 +18,7 @@ export declare enum TagCategoryType {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Method that returns the relevant Icon for the tagCategoryDescription provided
|
|
21
|
-
* Tag icon is the default JSX.Element Icon returned
|
|
21
|
+
* Tag icon is the default React.JSX.Element Icon returned
|
|
22
22
|
* @export
|
|
23
23
|
* @param {('electrical'
|
|
24
24
|
* | 'main equipment'
|
|
@@ -32,7 +32,7 @@ export declare enum TagCategoryType {
|
|
|
32
32
|
* | 'telecom'
|
|
33
33
|
* | 'junction box'
|
|
34
34
|
* | 'administrative'
|
|
35
|
-
* @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
|
|
35
|
+
* @return {*} {React.JSX.Element} Relevant icon for the provided tagCategoryDescription
|
|
36
36
|
*/
|
|
37
37
|
export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
|
|
38
38
|
export {};
|
|
@@ -27,6 +27,6 @@ export interface IconListState {
|
|
|
27
27
|
* expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
|
|
28
28
|
* onUpdatedOrder: method that will be called when the order of the list has changed
|
|
29
29
|
* }
|
|
30
|
-
* @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
|
|
30
|
+
* @return {*} {React.JSX.Element} a list of items that can be draggable and/or expandable
|
|
31
31
|
*/
|
|
32
32
|
export declare const IconList: React.FC<IconListProps>;
|
|
@@ -21,6 +21,6 @@ export interface LinkCardProps {
|
|
|
21
21
|
* target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
|
|
22
22
|
* }
|
|
23
23
|
* }
|
|
24
|
-
* @return {*} {JSX.Element} a card element with an image and some provided links
|
|
24
|
+
* @return {*} {React.JSX.Element} a card element with an image and some provided links
|
|
25
25
|
*/
|
|
26
26
|
export declare const LinkCard: ({ style, image, title, subTitle, links }: LinkCardProps) => React.JSX.Element;
|