@equinor/echo-components 0.11.8 → 0.11.9
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/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/components/listItem/ListItem.d.ts +1 -0
- package/src/components/multilineTabs/MultilineTabs.d.ts +7 -5
- package/src/components/titleAndStatusLabel/titleAndStatusLabel.d.ts +1 -1
- package/src/icons/echoAssets/index.d.ts +1 -0
- package/src/icons/echoAssets/xld.d.ts +2 -0
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@ interface ListItemBaseProps {
|
|
|
46
46
|
*/
|
|
47
47
|
className?: string;
|
|
48
48
|
style?: CSSProperties;
|
|
49
|
+
footer?: React.ReactNode;
|
|
49
50
|
}
|
|
50
51
|
export type ListItemProps = ListItemBaseProps & WithVisualOrIconOptions;
|
|
51
52
|
declare function ListItem(props: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TabProps } from '@equinor/eds-core-react';
|
|
2
|
-
import {
|
|
1
|
+
import { TabProps, Tabs } from '@equinor/eds-core-react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
3
|
export type PredefinedTab = {
|
|
4
4
|
title: string;
|
|
5
5
|
options?: TabProps;
|
|
@@ -9,17 +9,19 @@ export interface MultilineTabsProps {
|
|
|
9
9
|
tabs: PredefinedTab[];
|
|
10
10
|
activeTabIndex: number;
|
|
11
11
|
onTabChange: (index: number) => void;
|
|
12
|
-
|
|
12
|
+
initiallyExpanded?: boolean;
|
|
13
|
+
children: ReactElement<typeof Tabs.Panels>;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* An EDS Tabs component that can be expanded to show overflow in multiple lines.
|
|
16
17
|
*
|
|
17
18
|
* @param {MultilineTabsProps} {
|
|
18
|
-
* className: Style overrides
|
|
19
|
+
* className: Style overrides on tab list.
|
|
19
20
|
* tabs: Tab titles and options
|
|
20
21
|
* activeTabIndex: The current active tab index. Can be overridden with options.active.
|
|
21
22
|
* onTabChange: Callback for when the tab index changes.
|
|
22
|
-
*
|
|
23
|
+
* initiallyExpanded: The tab panel is expanded on mount.
|
|
24
|
+
* children: The sectioned tab content.
|
|
23
25
|
* }
|
|
24
26
|
* @returns {*} {JSX.Element} Returns a custom EDS Tab bar and sectioned content.
|
|
25
27
|
*/
|