dfh-ui-library 1.13.128 → 1.13.129
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/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/NavBar/ArrowDropDown.d.ts +4 -19
- package/dist/cjs/types/components/NavBar/EnvironmentSelector.d.ts +4 -18
- package/dist/cjs/types/shared/models/components/common.model.d.ts +10 -24
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/NavBar/ArrowDropDown.d.ts +4 -19
- package/dist/esm/types/components/NavBar/EnvironmentSelector.d.ts +4 -18
- package/dist/esm/types/shared/models/components/common.model.d.ts +10 -24
- package/dist/index.d.ts +10 -24
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { AccountPopoverMenuItem } from '../../shared/models/components/common.model';
|
2
|
+
import { AccountPopoverMenuItem, Environment } from '../../shared/models/components/common.model';
|
3
3
|
interface ArrowDropdownProps {
|
4
4
|
username?: string;
|
5
5
|
themeColor?: string;
|
@@ -10,25 +10,10 @@ interface ArrowDropdownProps {
|
|
10
10
|
app?: string;
|
11
11
|
env?: string;
|
12
12
|
} | null;
|
13
|
-
environmentList?:
|
14
|
-
|
15
|
-
tag?: string;
|
16
|
-
version?: string;
|
17
|
-
id: string;
|
18
|
-
}[];
|
19
|
-
selectedEnvironment?: {
|
20
|
-
name: string;
|
21
|
-
tag?: string;
|
22
|
-
version?: string;
|
23
|
-
id: string;
|
24
|
-
};
|
13
|
+
environmentList?: Environment[];
|
14
|
+
selectedEnvironment?: Environment;
|
25
15
|
showRestore?: boolean;
|
26
|
-
handleEnvironmentChange?: (environment:
|
27
|
-
name: string;
|
28
|
-
tag: string;
|
29
|
-
version: string;
|
30
|
-
id: string;
|
31
|
-
}) => void;
|
16
|
+
handleEnvironmentChange?: (environment: Environment) => void;
|
32
17
|
handleRestore?: () => void;
|
33
18
|
}
|
34
19
|
declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
|
@@ -1,24 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { Environment } from '../../shared/models/components/common.model';
|
2
3
|
declare function EnvironmentSelector({ showRestore, environmentList, selectedEnvironment, handleEnvironmentChange, handleRestore }: {
|
3
4
|
showRestore: boolean;
|
4
|
-
environmentList?:
|
5
|
-
|
6
|
-
|
7
|
-
version?: string;
|
8
|
-
id: string;
|
9
|
-
}[] | [];
|
10
|
-
selectedEnvironment?: {
|
11
|
-
name: string;
|
12
|
-
tag?: string;
|
13
|
-
version?: string;
|
14
|
-
id: string;
|
15
|
-
};
|
16
|
-
handleEnvironmentChange?: (environment: {
|
17
|
-
name: string;
|
18
|
-
tag: string;
|
19
|
-
version: string;
|
20
|
-
id: string;
|
21
|
-
}) => void;
|
5
|
+
environmentList?: Environment[] | [];
|
6
|
+
selectedEnvironment?: Environment;
|
7
|
+
handleEnvironmentChange?: (environment: Environment) => void;
|
22
8
|
handleRestore?: () => void;
|
23
9
|
}): React.JSX.Element;
|
24
10
|
export default EnvironmentSelector;
|
@@ -104,6 +104,12 @@ export interface AccountPopoverMenuItem {
|
|
104
104
|
additionalClasses?: string;
|
105
105
|
hidePopover?: boolean;
|
106
106
|
}
|
107
|
+
export interface Environment {
|
108
|
+
environment: string;
|
109
|
+
tag?: string;
|
110
|
+
version?: string;
|
111
|
+
id: string;
|
112
|
+
}
|
107
113
|
export interface TabNavigationProps extends AdditionalClassesProp {
|
108
114
|
navigationData: any[];
|
109
115
|
navItemClick?: (url?: string) => void;
|
@@ -115,30 +121,10 @@ export interface TabNavigationProps extends AdditionalClassesProp {
|
|
115
121
|
app?: string;
|
116
122
|
env?: string;
|
117
123
|
} | null;
|
118
|
-
environmentList?:
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
id: string;
|
123
|
-
}[];
|
124
|
-
selectedEnvironment?: {
|
125
|
-
name: string;
|
126
|
-
tag?: string;
|
127
|
-
version?: string;
|
128
|
-
id: string;
|
129
|
-
};
|
130
|
-
currentEnvironment?: {
|
131
|
-
name: string;
|
132
|
-
tag?: string;
|
133
|
-
version?: string;
|
134
|
-
id: string;
|
135
|
-
};
|
136
|
-
handleEnvironmentChange?: (environment: {
|
137
|
-
name: string;
|
138
|
-
tag: string;
|
139
|
-
version: string;
|
140
|
-
id: string;
|
141
|
-
}) => void;
|
124
|
+
environmentList?: Environment[];
|
125
|
+
selectedEnvironment?: Environment;
|
126
|
+
currentEnvironment?: Environment;
|
127
|
+
handleEnvironmentChange?: (environment: Environment) => void;
|
142
128
|
}
|
143
129
|
export interface TabNavItemProps {
|
144
130
|
isActive: boolean;
|