@equinor/echo-components 0.10.0-beta-0 → 0.10.0-beta-2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-components",
|
|
3
|
-
"version": "0.10.0-beta-
|
|
3
|
+
"version": "0.10.0-beta-2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"chart.js": "4.4.0",
|
|
6
6
|
"react-window": "1.8.9",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
|
|
11
|
-
"@equinor/eds-core-react": "
|
|
12
|
-
"@equinor/eds-icons": "
|
|
11
|
+
"@equinor/eds-core-react": "0.34.0",
|
|
12
|
+
"@equinor/eds-icons": "0.19.3",
|
|
13
13
|
"react": ">= 17.0.2",
|
|
14
14
|
"react-dom": ">= 17.0.2",
|
|
15
15
|
"zustand": "4.4.6",
|
|
@@ -7,6 +7,7 @@ export declare function Tabs(props: TabListProps): import("react/jsx-runtime").J
|
|
|
7
7
|
/** Returns a button that acts like a tab button in a tab list. */
|
|
8
8
|
export declare const Tab: import("react").ForwardRefExoticComponent<{
|
|
9
9
|
active?: boolean | undefined;
|
|
10
|
+
value?: string | number | undefined;
|
|
10
11
|
disabled?: boolean | undefined;
|
|
11
12
|
as?: import("react").ElementType | undefined;
|
|
12
13
|
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<unknown>>;
|
package/src/structure/index.d.ts
CHANGED
package/src/types/index.d.ts
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
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: ({ items, style, titles, columns }: OptionsListProps) => React.JSX.Element;
|