@equinor/echo-cli 0.9.0-rc-0 → 0.9.0-rc-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/README.md +2 -0
- package/package.json +1 -1
- package/lib/test1/.env +0 -0
- package/lib/test1/.gitattributes +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/README.md +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/index.esm.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/index.esm.js +0 -7433
- package/lib/test1/.yalc/@equinor/echo-components/package.json +0 -26
- package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/svgrMock.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/workOrderItem.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/src/components/blackLink/BlackLink.d.ts +0 -11
- package/lib/test1/.yalc/@equinor/echo-components/src/components/buttonWithPopover/ButtonWithPopover.d.ts +0 -21
- package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/LineChart.d.ts +0 -22
- package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/lineChartConfig.d.ts +0 -16
- package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/rawData.d.ts +0 -26
- package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/utils.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenu/ContextMenu.d.ts +0 -35
- package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoButton.d.ts +0 -19
- package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoPopover.d.ts +0 -18
- package/lib/test1/.yalc/@equinor/echo-components/src/components/copyToClipboard/CopyToClipboard.d.ts +0 -9
- package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/PopupHeader.d.ts +0 -19
- package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/ReactDatePicker.d.ts +0 -19
- package/lib/test1/.yalc/@equinor/echo-components/src/components/dialogGenerator/DialogGenerator.d.ts +0 -26
- package/lib/test1/.yalc/@equinor/echo-components/src/components/dropdown/Dropdown.d.ts +0 -37
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoBottomBar/EchoBottomBar.d.ts +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Body.d.ts +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/DateSection.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/EchoCard.d.ts +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/LinkSection.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Title.d.ts +0 -13
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/index.d.ts +0 -14
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoHeader/EchoHeader.d.ts +0 -20
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/Tooltip.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/useTooltip.d.ts +0 -22
- package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/index.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/floatingActionButton/FloatingActionButton.d.ts +0 -33
- package/lib/test1/.yalc/@equinor/echo-components/src/components/index.d.ts +0 -27
- package/lib/test1/.yalc/@equinor/echo-components/src/components/inlineTagIconLink/InlineTagIconLink.d.ts +0 -12
- package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/MainLegend.d.ts +0 -22
- package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/index.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/LayerLegend.d.ts +0 -33
- package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/ListItem.d.ts +0 -52
- package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/components/listRow/ListRow.d.ts +0 -29
- package/lib/test1/.yalc/@equinor/echo-components/src/components/pcMatrix/PCMatrix.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/PanelStore.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/index.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/menuButton/MenuButton.d.ts +0 -24
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panel/Panel.d.ts +0 -25
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContent.d.ts +0 -23
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContentWrapper.d.ts +0 -16
- package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelWrapper/PanelWrapper.d.ts +0 -21
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SearchSuggestions.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SuggestionGroup.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/types.d.ts +0 -26
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/floatingSearchBar/FloatingSearchBar.d.ts +0 -28
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/index.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/responsiveSearchBar/ResponsiveSearchBar.d.ts +0 -28
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidebarButton/SidebarButton.d.ts +0 -70
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/enums.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/index.d.ts +0 -11
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/Sheet.d.ts +0 -19
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/utils.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +0 -16
- package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/SplitView.d.ts +0 -14
- package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/index.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/left/SplitViewLeft.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/tagContextMenu/TagContextMenu.d.ts +0 -30
- package/lib/test1/.yalc/@equinor/echo-components/src/components/timePicker/TimePicker.d.ts +0 -12
- package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderListItem.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderStatusLabel.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +0 -18
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/icon/Icon.d.ts +0 -20
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/index.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/radioButtonGroup/RadioButtonGroup.d.ts +0 -20
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/roundIconButton/RoundIconButton.d.ts +0 -13
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/sliderField/SliderField.d.ts +0 -25
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIcon.d.ts +0 -16
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIconShadow.d.ts +0 -13
- package/lib/test1/.yalc/@equinor/echo-components/src/elements/textIconButton/TextIconButton.d.ts +0 -19
- package/lib/test1/.yalc/@equinor/echo-components/src/helpers/classnames.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/helpers/getIcon.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/helpers/index.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/helpers/tagCategoryIcon.d.ts +0 -38
- package/lib/test1/.yalc/@equinor/echo-components/src/hooks/index.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useEventListener.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useIsMobile.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useKeyboardNavigation.d.ts +0 -18
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/external.d.ts +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/general.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/index.d.ts +0 -7
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/maps.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/misc.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/notifications.d.ts +0 -9
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/punches.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/workOrders.d.ts +0 -11
- package/lib/test1/.yalc/@equinor/echo-components/src/icons/index.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/index.d.ts +0 -10
- package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/IconList.d.ts +0 -32
- package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/createListRow.d.ts +0 -14
- package/lib/test1/.yalc/@equinor/echo-components/src/structure/index.d.ts +0 -3
- package/lib/test1/.yalc/@equinor/echo-components/src/structure/linkCard/LinkCard.d.ts +0 -26
- package/lib/test1/.yalc/@equinor/echo-components/src/structure/optionsList/OptionsList.d.ts +0 -24
- package/lib/test1/.yalc/@equinor/echo-components/src/theme/index.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/theme/themeConst.d.ts +0 -66
- package/lib/test1/.yalc/@equinor/echo-components/src/types/actionButton.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/types/charts.d.ts +0 -77
- package/lib/test1/.yalc/@equinor/echo-components/src/types/dataInformation.d.ts +0 -8
- package/lib/test1/.yalc/@equinor/echo-components/src/types/draggableItem.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/types/expandableRowProps.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/types/iconItem.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/src/types/iconListItem.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/types/index.d.ts +0 -12
- package/lib/test1/.yalc/@equinor/echo-components/src/types/legend.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/src/types/linkCardItem.d.ts +0 -5
- package/lib/test1/.yalc/@equinor/echo-components/src/types/menuItem.d.ts +0 -11
- package/lib/test1/.yalc/@equinor/echo-components/src/types/optionsItem.d.ts +0 -6
- package/lib/test1/.yalc/@equinor/echo-components/src/types/radioButtonItem.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/src/types/workOrderItem.d.ts +0 -16
- package/lib/test1/.yalc/@equinor/echo-components/src/utils/date.d.ts +0 -1
- package/lib/test1/.yalc/@equinor/echo-components/src/utils/index.d.ts +0 -2
- package/lib/test1/.yalc/@equinor/echo-components/src/utils/workorder.d.ts +0 -4
- package/lib/test1/.yalc/@equinor/echo-components/yalc.sig +0 -1
- package/lib/test1/build/echoModuleManifest.json +0 -12
- package/lib/test1/build/index.js +0 -144
- package/lib/test1/build/index.js.map +0 -1
- package/lib/test1/echoModule.config.json +0 -22
- package/lib/test1/echoModuleId.json +0 -3
- package/lib/test1/env.sh +0 -54
- package/lib/test1/package.json +0 -40
- package/lib/test1/readme.md +0 -47
- package/lib/test1/src/app.module.css +0 -5
- package/lib/test1/src/app.tsx +0 -36
- package/lib/test1/src/index.ts +0 -6
- package/lib/test1/tsconfig.json +0 -25
- package/lib/test1/yalc.lock +0 -10
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "0.8.0-beta-5",
|
|
4
|
-
"dependencies": {
|
|
5
|
-
"@floating-ui/react": "0.25.2",
|
|
6
|
-
"chart.js": "4.3.0",
|
|
7
|
-
"react-datepicker": "4.17.0",
|
|
8
|
-
"react-window": "1.8.9"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
|
|
12
|
-
"@equinor/eds-core-react": "=0.25.0",
|
|
13
|
-
"@equinor/eds-icons": "=0.17.0",
|
|
14
|
-
"react": ">= 17.0.2",
|
|
15
|
-
"react-dom": ">= 17.0.2",
|
|
16
|
-
"zustand": "4.4.1",
|
|
17
|
-
"lodash": "4.17.21",
|
|
18
|
-
"react-sortablejs": "6.1.4",
|
|
19
|
-
"sortablejs": "1.15.0",
|
|
20
|
-
"classnames": "2.3.2"
|
|
21
|
-
},
|
|
22
|
-
"module": "./index.esm.js",
|
|
23
|
-
"type": "module",
|
|
24
|
-
"main": "./index.esm.js",
|
|
25
|
-
"yalcSig": "d5f8364840d8a8fb7a4752af466ed07f"
|
|
26
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface LinkProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
/** The external link. */
|
|
4
|
-
href: string;
|
|
5
|
-
/** The link label. */
|
|
6
|
-
linkText: string;
|
|
7
|
-
/** If true, the link is opened in the same window or tab. */
|
|
8
|
-
preserveTab?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const BlackLink: ({ className, href, linkText, preserveTab }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataInformation } from '../../types/dataInformation';
|
|
3
|
-
export interface ButtonWithPopoverProps {
|
|
4
|
-
onShowMoreClicked: () => void;
|
|
5
|
-
fetchedData: DataInformation[];
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
expanded: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Component that renders a round button, that opens a popover upon being clicked
|
|
11
|
-
*
|
|
12
|
-
* @param {ButtonWithPopoverProps} {
|
|
13
|
-
* onShowMoreClicked: method called upon button clicked
|
|
14
|
-
* fetchedData: array of DataInformation that popover should be displayed when button is clicked.
|
|
15
|
-
* Meant to be the return value of the fetchDataToShow method
|
|
16
|
-
* isLoading: flag to show loading state if data fetch takes some time
|
|
17
|
-
* expanded: flag to determine if popover should be expanded or not
|
|
18
|
-
* @return {*} {JSX.Element} Round button with belonging popover to display data information buttons
|
|
19
|
-
*/
|
|
20
|
-
export declare const ButtonWithPopover: ({ onShowMoreClicked, fetchedData, isLoading, expanded }: ButtonWithPopoverProps) => React.JSX.Element;
|
|
21
|
-
export default ButtonWithPopover;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LineChart } from './lineChart/LineChart';
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/LineChart.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Chart, { ChartData, Defaults } from 'chart.js/auto';
|
|
2
|
-
import { ChartCallbacks, LineChartConfig } from '../../../types/charts';
|
|
3
|
-
interface Props {
|
|
4
|
-
initialSize: {
|
|
5
|
-
height: number;
|
|
6
|
-
width: number;
|
|
7
|
-
};
|
|
8
|
-
chartDataSet?: ChartData;
|
|
9
|
-
chartTitle?: string;
|
|
10
|
-
xAxisTitle?: string;
|
|
11
|
-
yAxisTitle?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
testId?: string;
|
|
14
|
-
chartConfigs?: {
|
|
15
|
-
defaults?: Defaults;
|
|
16
|
-
callbacks?: ChartCallbacks;
|
|
17
|
-
};
|
|
18
|
-
lineChartConfig?: LineChartConfig;
|
|
19
|
-
onChartInstance?: (chartInstance: Chart | undefined) => void;
|
|
20
|
-
}
|
|
21
|
-
declare function LineChart({ initialSize, chartDataSet, chartTitle, xAxisTitle, yAxisTitle, id, testId, chartConfigs, lineChartConfig, onChartInstance }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export { LineChart };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const chartDataSet: {
|
|
2
|
-
labels: string[];
|
|
3
|
-
datasets: {
|
|
4
|
-
label: string;
|
|
5
|
-
data: number[];
|
|
6
|
-
borderColor: string;
|
|
7
|
-
pointBackgroundColor: string;
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
fill: boolean;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
export declare const tooltip: {
|
|
13
|
-
callbacks: {
|
|
14
|
-
title: (tooltipItems: [Chart.ChartTooltipItem]) => string | undefined;
|
|
15
|
-
};
|
|
16
|
-
};
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/rawData.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const raw: {
|
|
2
|
-
DATA1: {
|
|
3
|
-
id: string;
|
|
4
|
-
value: number;
|
|
5
|
-
timestamp: string;
|
|
6
|
-
status: number;
|
|
7
|
-
}[];
|
|
8
|
-
DATA2: {
|
|
9
|
-
id: string;
|
|
10
|
-
value: number;
|
|
11
|
-
timestamp: string;
|
|
12
|
-
status: number;
|
|
13
|
-
}[];
|
|
14
|
-
DATA3: {
|
|
15
|
-
id: string;
|
|
16
|
-
value: number;
|
|
17
|
-
timestamp: string;
|
|
18
|
-
status: number;
|
|
19
|
-
}[];
|
|
20
|
-
DATA4: {
|
|
21
|
-
id: string;
|
|
22
|
-
value: number;
|
|
23
|
-
timestamp: string;
|
|
24
|
-
status: number;
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChartData } from 'chart.js/auto';
|
|
2
|
-
import { ChartCallbacks, LineChartConfig } from '../../../types/charts';
|
|
3
|
-
export type ChartConfigOptions = {
|
|
4
|
-
dataConfig: ChartData;
|
|
5
|
-
chartTitle: string;
|
|
6
|
-
xAxisTitle: string;
|
|
7
|
-
yAxisTitle: string;
|
|
8
|
-
chartCallbacks?: ChartCallbacks;
|
|
9
|
-
};
|
|
10
|
-
export declare const generateChartConfig: ({ dataConfig, chartTitle, xAxisTitle, yAxisTitle, chartCallbacks }: ChartConfigOptions) => LineChartConfig;
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenu/ContextMenu.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
interface ContextMenuProps {
|
|
3
|
-
icon: JSX.Element;
|
|
4
|
-
legendColor: string;
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
setExpanded: (expanded: boolean) => void;
|
|
7
|
-
tagNo: string;
|
|
8
|
-
description: string;
|
|
9
|
-
positionStyle: CSSProperties;
|
|
10
|
-
openTagInformation: () => void;
|
|
11
|
-
selectedClassName?: string;
|
|
12
|
-
selected: boolean;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Component that renders full context menu functionality, meant for displaying tag context menu.
|
|
17
|
-
* With the ability to provide more information button and related popover that should be wrapped with the context menu
|
|
18
|
-
*
|
|
19
|
-
* @param {ContextMenuProps} {
|
|
20
|
-
* icon: icon to be displayed
|
|
21
|
-
* expanded: flag to determine if context menu should be expanded or not
|
|
22
|
-
* legendColor: color used for the tag icon
|
|
23
|
-
* setExpanded: method to update expanded flag
|
|
24
|
-
* tagNo: The tag number to display
|
|
25
|
-
* description: The tag description to display
|
|
26
|
-
* positionStyle: The position styling element used to position the context menu
|
|
27
|
-
* openTagInformation: Method that will be called when expanded context menu is clicked
|
|
28
|
-
* selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
|
|
29
|
-
* selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
|
|
30
|
-
* children: Related elements to display, e.g. more information button
|
|
31
|
-
* }
|
|
32
|
-
* @return {*} {JSX.Element} Context menu with relevant children wrapped
|
|
33
|
-
*/
|
|
34
|
-
export declare const ContextMenu: React.FC<ContextMenuProps>;
|
|
35
|
-
export default ContextMenu;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataInformation } from '../../types/dataInformation';
|
|
3
|
-
export interface DataInfoButtonProps {
|
|
4
|
-
data: DataInformation;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Component that renders a data information button with a badge to indicate the number of items under that scoped type
|
|
8
|
-
*
|
|
9
|
-
* @param {DataInfoButtonProps} { data } Contains data information related to how the button should be rendered
|
|
10
|
-
* numberOfItems: If number is 1 or less no badge will be displayed on the button. If number is over 99,
|
|
11
|
-
* then the text 99+ will be displayed. Otherwise the provided number will be displayed
|
|
12
|
-
* label: The name of the data type, will be displayed on the button
|
|
13
|
-
* ariaLabel: The aria label set on the button, if empty the label will be used
|
|
14
|
-
* onTagInfoClicked: The method to be called when button is pressed
|
|
15
|
-
* itemButtonClassName: Used to style button if default styling is not wanted. class name might need higher precedence for overriding existing styling e.g. "div.itemButtonClassName { background-color: blue !important}"
|
|
16
|
-
* @return {*} {JSX.Element} Data information button with or without a badge based on the provided data object
|
|
17
|
-
*/
|
|
18
|
-
export declare const DataInfoButton: React.FC<DataInfoButtonProps>;
|
|
19
|
-
export default DataInfoButton;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataInformation } from '../../types/dataInformation';
|
|
3
|
-
export interface DataInfoPopoverProps {
|
|
4
|
-
dataToShow: DataInformation[];
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Component that renders a popover with data information buttons
|
|
9
|
-
*
|
|
10
|
-
* @param {DataInfoPopoverProps} {
|
|
11
|
-
* dataToShow: list of DataInformation objects to be displayed.
|
|
12
|
-
* The itemType in these objects are used to group them together in the popover
|
|
13
|
-
* isLoading: loading flag that tells if a dot progress should be displayed if data is being fetched
|
|
14
|
-
* }
|
|
15
|
-
* @return {*} {JSX.Element} Popover with data information buttons based on the provided DataInformation objects
|
|
16
|
-
*/
|
|
17
|
-
declare const DataInfoPopover: React.FC<DataInfoPopoverProps>;
|
|
18
|
-
export default DataInfoPopover;
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/copyToClipboard/CopyToClipboard.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface CopyToClipboardProps {
|
|
3
|
-
copyableText: string;
|
|
4
|
-
variant?: 'neutral' | 'warning' | 'error' | 'success';
|
|
5
|
-
multiline?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const CopyToClipboard: (props: CopyToClipboardProps) => React.JSX.Element;
|
|
9
|
-
export { CopyToClipboard };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface PopupHeaderProps {
|
|
3
|
-
monthDate: Date;
|
|
4
|
-
date: Date;
|
|
5
|
-
changeYear: (year: number) => void;
|
|
6
|
-
changeMonth: (month: number) => void;
|
|
7
|
-
customHeaderCount: number;
|
|
8
|
-
decreaseMonth: VoidFunction;
|
|
9
|
-
increaseMonth: VoidFunction;
|
|
10
|
-
prevMonthButtonDisabled: boolean;
|
|
11
|
-
nextMonthButtonDisabled: boolean;
|
|
12
|
-
decreaseYear: VoidFunction;
|
|
13
|
-
increaseYear: VoidFunction;
|
|
14
|
-
prevYearButtonDisabled: boolean;
|
|
15
|
-
nextYearButtonDisabled: boolean;
|
|
16
|
-
changeDate?: (date: Date) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const PopupHeader: React.FC<PopupHeaderProps>;
|
|
19
|
-
export default PopupHeader;
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/ReactDatePicker.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
3
|
-
import './reactDatePicker.css';
|
|
4
|
-
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';
|
|
5
|
-
export interface DatePickerProps {
|
|
6
|
-
id: string;
|
|
7
|
-
value: Date | undefined | null;
|
|
8
|
-
label: string;
|
|
9
|
-
onChanged(date: Date | null): void;
|
|
10
|
-
disableFuture?: boolean;
|
|
11
|
-
disableBeforeDate?: Date;
|
|
12
|
-
className?: string;
|
|
13
|
-
popperPlacement?: PopperPlacement;
|
|
14
|
-
showTimeSelect?: boolean;
|
|
15
|
-
maxDate?: Date;
|
|
16
|
-
minDate?: Date;
|
|
17
|
-
}
|
|
18
|
-
export declare const ReactDatePicker: React.FC<DatePickerProps>;
|
|
19
|
-
export {};
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/dialogGenerator/DialogGenerator.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { ActionButton } from '../../types/actionButton';
|
|
3
|
-
export interface DialogGeneratorProps {
|
|
4
|
-
dialogStyle?: CSSProperties;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
title: string;
|
|
7
|
-
actionButtons: ActionButton[];
|
|
8
|
-
open: boolean;
|
|
9
|
-
isDismissable?: boolean;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Component that renders a dialog box based on input properties
|
|
14
|
-
*
|
|
15
|
-
* @param {DialogGeneratorProps} {
|
|
16
|
-
* dialogStyle: style property to override existing styling on the dialog wrapper
|
|
17
|
-
* title: the title of the dialog
|
|
18
|
-
* children: The main content of the dialog
|
|
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
|
|
23
|
-
* }
|
|
24
|
-
* @return {*} {JSX.Element} Dialog component
|
|
25
|
-
*/
|
|
26
|
-
export declare const DialogGenerator: React.FC<DialogGeneratorProps>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface DropdownItemProps {
|
|
3
|
-
selected: string;
|
|
4
|
-
setSelected: (selected: string) => void;
|
|
5
|
-
data: any[];
|
|
6
|
-
openDownWards: boolean;
|
|
7
|
-
placeholder: string;
|
|
8
|
-
filterFunc?: (data: any[], filter: string) => any[];
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
disabledText?: string;
|
|
11
|
-
maxCharacterCount?: number;
|
|
12
|
-
variant?: 'compact' | 'default';
|
|
13
|
-
showSearch: boolean;
|
|
14
|
-
position?: 'relative' | 'absolute';
|
|
15
|
-
triggerOpen?: (value: boolean) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Component that renders a dropdown menu, e.g., for a plant selector.
|
|
19
|
-
* Additional possibility to make the list searchable by adding a search field.
|
|
20
|
-
* @param {DropdownItemProps} {
|
|
21
|
-
* selected: The item that is currently selected from the list.
|
|
22
|
-
* data: The list of data items to be displayed in the dropdown.
|
|
23
|
-
* placeholder: Placeholder text to be displayed when no item is selected.
|
|
24
|
-
* openDownWards: Flag which decides if the menu is opened downwards or upwards.
|
|
25
|
-
* filterFunc: Function which filters the list of data based on the value of the search field.
|
|
26
|
-
* setSelected: Function for setting the selected item.
|
|
27
|
-
* isDisabled: Flag which disables the dropdown.
|
|
28
|
-
* disabledText: The title text that displays when the dropdown is disabled.
|
|
29
|
-
* variant: Decides which style the dropdown should have. Either default or compact.
|
|
30
|
-
* showSearch: Flag which decides whether we should include the search field or not.
|
|
31
|
-
* position: Determines if the dropdown position should be relative or absolute.
|
|
32
|
-
* triggerOpen: Callback to trigger when the dropdown is opened.
|
|
33
|
-
* }
|
|
34
|
-
* @return {*} {JSX.Element} The dropdown component.
|
|
35
|
-
*/
|
|
36
|
-
export declare const Dropdown: React.FC<DropdownItemProps>;
|
|
37
|
-
export default Dropdown;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type DateSectionProps = {
|
|
3
|
-
date?: Date | null;
|
|
4
|
-
dateSectionText?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const DateSection: ({ dateSectionText, date, children, className }: Partial<DateSectionProps>) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardIcons } from './Title';
|
|
3
|
-
export type LinkSectionProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
linkSectionIcons?: CardIcons[];
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const LinkSection: ({ children, className, linkSectionIcons }: Partial<LinkSectionProps>) => JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface CardIcons {
|
|
3
|
-
name: string;
|
|
4
|
-
color: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export type TitleProps = {
|
|
8
|
-
headerTitle?: string;
|
|
9
|
-
onHeaderClick?: () => void;
|
|
10
|
-
headerIcons?: CardIcons[];
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const Title: ({ headerTitle, headerIcons, className, onHeaderClick }: Partial<TitleProps>) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Body, BodyProps } from './Body';
|
|
2
|
-
import { DateSection, DateSectionProps } from './DateSection';
|
|
3
|
-
import { EchoCard as BaseEchoCard, EchoCardProps } from './EchoCard';
|
|
4
|
-
import { LinkSection } from './LinkSection';
|
|
5
|
-
import { Title, TitleProps } from './Title';
|
|
6
|
-
type CardType = typeof BaseEchoCard & {
|
|
7
|
-
Title: typeof Title;
|
|
8
|
-
Body: typeof Body;
|
|
9
|
-
LinkSection: typeof LinkSection;
|
|
10
|
-
DateSection: typeof DateSection;
|
|
11
|
-
};
|
|
12
|
-
declare const EchoCard: CardType;
|
|
13
|
-
export { EchoCard };
|
|
14
|
-
export type { EchoCardProps, TitleProps, DateSectionProps, BodyProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface EchoHeaderProps {
|
|
3
|
-
moduleTitle: string;
|
|
4
|
-
moduleIcon: string | React.FC;
|
|
5
|
-
plantName?: string;
|
|
6
|
-
customHeaderSection?: React.FC;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Component that renders the Echo header
|
|
10
|
-
*
|
|
11
|
-
* @param {EchoHeaderProps} {
|
|
12
|
-
* moduleTitle: the title of the module
|
|
13
|
-
* moduleIcon: the module Icon
|
|
14
|
-
* plantName: show the plant name next to the module title
|
|
15
|
-
* customSection: a section in the header where there can be custom components
|
|
16
|
-
* }
|
|
17
|
-
* @returns {*} {JSX.Element} Echo header with custom section
|
|
18
|
-
*/
|
|
19
|
-
export declare const EchoHeader: ({ moduleTitle, moduleIcon, plantName, customHeaderSection }: EchoHeaderProps) => React.JSX.Element;
|
|
20
|
-
export default EchoHeader;
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/Tooltip.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
-
import { TooltipOptions } from './useTooltip';
|
|
3
|
-
declare function Tooltip({ children, ...options }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
} & TooltipOptions): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const TooltipAnchor: import("react").ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & {
|
|
7
|
-
asChild?: boolean | undefined;
|
|
8
|
-
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
9
|
-
declare const TooltipContent: import("react").ForwardRefExoticComponent<Omit<HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export { Tooltip, TooltipAnchor, TooltipContent };
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/useTooltip.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Placement, UseFloatingReturn } from '@floating-ui/react';
|
|
3
|
-
export interface TooltipOptions {
|
|
4
|
-
initialOpen?: boolean;
|
|
5
|
-
placement?: Placement;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
onOpenChange?: (open: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
export type ContextType = ReturnType<typeof useTooltip> | null;
|
|
10
|
-
type UseTooltipReturn = {
|
|
11
|
-
open: boolean;
|
|
12
|
-
setOpen: (open: boolean) => void;
|
|
13
|
-
} & UseFloatingReturn<any> & UseInteractionsReturn;
|
|
14
|
-
type UseInteractionsReturn = {
|
|
15
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
16
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
17
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
18
|
-
};
|
|
19
|
-
declare function useTooltip({ initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen }?: TooltipOptions): UseTooltipReturn;
|
|
20
|
-
declare const TooltipContext: import("react").Context<ContextType>;
|
|
21
|
-
declare const useTooltipContext: () => UseTooltipReturn;
|
|
22
|
-
export { TooltipContext, useTooltip, useTooltipContext };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Tooltip } from './Tooltip/Tooltip';
|
|
3
|
-
declare const EchoTooltip: Readonly<{
|
|
4
|
-
Tooltip: typeof Tooltip;
|
|
5
|
-
TooltipAnchor: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLElement> & {
|
|
6
|
-
asChild?: boolean | undefined;
|
|
7
|
-
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
8
|
-
TooltipContent: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
}>;
|
|
10
|
-
export { EchoTooltip };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WithLabel {
|
|
3
|
-
variant: 'square_icon_with_text' | 'square_icon_with_text_below';
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface WithoutLabel {
|
|
7
|
-
variant: 'circle_icon' | 'square_icon';
|
|
8
|
-
label?: never;
|
|
9
|
-
}
|
|
10
|
-
type MutuallyExclusiveVariantLabel = WithLabel | WithoutLabel;
|
|
11
|
-
export type FloatingActionButtonProps = MutuallyExclusiveVariantLabel & {
|
|
12
|
-
iconName: string;
|
|
13
|
-
ariaLabel?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Disable button if true
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Show button as active if true
|
|
20
|
-
*/
|
|
21
|
-
active?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The method to be called when button is pressed
|
|
24
|
-
*/
|
|
25
|
-
onClick: () => void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Floating actions buttons exists within the viewport, seperated from any sheet, dialog or menu
|
|
29
|
-
* and are typically used for special actions pertaining to the module they are used in.
|
|
30
|
-
* @return {*} {JSX.Element} Floating actions button
|
|
31
|
-
*/
|
|
32
|
-
export declare const FloatingActionButton: ({ label, iconName, ariaLabel, variant, disabled, active, onClick }: FloatingActionButtonProps) => React.JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './blackLink/BlackLink';
|
|
2
|
-
export * from './buttonWithPopover/ButtonWithPopover';
|
|
3
|
-
export * from './charts';
|
|
4
|
-
export * from './contextMenu/ContextMenu';
|
|
5
|
-
export * from './contextMenuPopover/DataInfoButton';
|
|
6
|
-
export * from './copyToClipboard/CopyToClipboard';
|
|
7
|
-
export { ReactDatePicker } from './datePicker/ReactDatePicker';
|
|
8
|
-
export * from './dialogGenerator/DialogGenerator';
|
|
9
|
-
export * from './dropdown/Dropdown';
|
|
10
|
-
export * from './echoBottomBar/EchoBottomBar';
|
|
11
|
-
export * from './echoCard/index';
|
|
12
|
-
export * from './echoHeader/EchoHeader';
|
|
13
|
-
export * from './echoTooltip';
|
|
14
|
-
export * from './floatingActionButton/FloatingActionButton';
|
|
15
|
-
export * from './inlineTagIconLink/InlineTagIconLink';
|
|
16
|
-
export * from './legend';
|
|
17
|
-
export * from './listItem';
|
|
18
|
-
export * from './listRow/ListRow';
|
|
19
|
-
export * from './pcMatrix/PCMatrix';
|
|
20
|
-
export * from './rightPanel';
|
|
21
|
-
export * from './searchBar';
|
|
22
|
-
export * from './sidebarButton/SidebarButton';
|
|
23
|
-
export * from './sidesheet';
|
|
24
|
-
export * from './splitView';
|
|
25
|
-
export * from './tagContextMenu/TagContextMenu';
|
|
26
|
-
export * from './timePicker/TimePicker';
|
|
27
|
-
export * from './workOrderListItem/WorkOrderListItem';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface InlineTagIconLinkProps {
|
|
3
|
-
onClickHandler?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4
|
-
tagNo: string;
|
|
5
|
-
description: string;
|
|
6
|
-
tagCategoryDescription?: string;
|
|
7
|
-
icon?: string | React.ReactNode;
|
|
8
|
-
legendColor: string;
|
|
9
|
-
disableHover?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const InlineTagIconLink: ({ onClickHandler, tagNo, description, tagCategoryDescription, icon, legendColor, disableHover }: InlineTagIconLinkProps) => React.JSX.Element;
|
|
12
|
-
export default InlineTagIconLink;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { LayerInfo } from '../../types';
|
|
3
|
-
interface MainLegendProps {
|
|
4
|
-
/**
|
|
5
|
-
* Layer legends appearing above the main legend
|
|
6
|
-
*/
|
|
7
|
-
legends: React.ReactNode[];
|
|
8
|
-
/**
|
|
9
|
-
* Layer information
|
|
10
|
-
*/
|
|
11
|
-
layers: LayerInfo[];
|
|
12
|
-
/**
|
|
13
|
-
* Styling for the main legend
|
|
14
|
-
*/
|
|
15
|
-
legendStyle?: CSSProperties;
|
|
16
|
-
/**
|
|
17
|
-
* Styling for the content of the legend
|
|
18
|
-
*/
|
|
19
|
-
legendContentStyle?: CSSProperties;
|
|
20
|
-
}
|
|
21
|
-
declare function MainLegend({ legends, layers, legendStyle, legendContentStyle }: MainLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export { MainLegend };
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/LayerLegend.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
interface LayerLegendProps {
|
|
3
|
-
/**
|
|
4
|
-
* Layer title
|
|
5
|
-
*/
|
|
6
|
-
title: string;
|
|
7
|
-
/**
|
|
8
|
-
* Layer icon name
|
|
9
|
-
*/
|
|
10
|
-
iconName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Number of items on layer
|
|
13
|
-
*/
|
|
14
|
-
itemsCount: number;
|
|
15
|
-
/**
|
|
16
|
-
* Name of the items presented on layer
|
|
17
|
-
*/
|
|
18
|
-
itemsTitle?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Content presented on layer legend
|
|
21
|
-
*/
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Used to disable layer legend usage
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Styling for the content of the legend
|
|
29
|
-
*/
|
|
30
|
-
style?: CSSProperties;
|
|
31
|
-
}
|
|
32
|
-
declare function LayerLegend({ title, iconName, itemsCount, itemsTitle, children, disabled, style }: LayerLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export { LayerLegend };
|
package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LayerLegend';
|