dfh-ui-library 1.13.125 → 1.13.127

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.
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { AccountPopoverMenuItem } from '../../shared/models/components/common.model';
3
+ interface ArrowDropdownProps {
4
+ username?: string;
5
+ themeColor?: string;
6
+ handleLogout?: () => void;
7
+ userImage?: string;
8
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
9
+ version?: {
10
+ app?: string;
11
+ env?: string;
12
+ } | null;
13
+ environmentList?: {
14
+ name: string;
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
+ };
25
+ showRestore?: boolean;
26
+ handleEnvironmentChange?: (environment: {
27
+ name: string;
28
+ tag: string;
29
+ version: string;
30
+ id: string;
31
+ }) => void;
32
+ handleRestore?: () => void;
33
+ }
34
+ declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
35
+ export default ArrowDropdown;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ declare function EnvironmentSelector({ showRestore, environmentList, selectedEnvironment, handleEnvironmentChange, handleRestore }: {
3
+ showRestore: boolean;
4
+ environmentList?: {
5
+ name: string;
6
+ tag?: string;
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;
22
+ handleRestore?: () => void;
23
+ }): React.JSX.Element;
24
+ export default EnvironmentSelector;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { TabNavigationProps } from "../../shared/models/components/common.model";
3
- declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems, onHelpClick }: TabNavigationProps & {
3
+ declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems, version, environmentList, selectedEnvironment, currentEnvironment, onHelpClick, handleEnvironmentChange }: TabNavigationProps & {
4
4
  onHelpClick?: () => void;
5
5
  }) => React.JSX.Element;
6
6
  export default NavBar;
@@ -52,7 +52,7 @@ export interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp
52
52
  * Set font-color of the content
53
53
  */
54
54
  color?: string;
55
- onClick?: () => void;
55
+ onClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
56
56
  disabled?: boolean;
57
57
  }
58
58
  export interface ITyphographyFormGenProps extends IChildrenProp, IAdditionalClassesProp {
@@ -111,6 +111,34 @@ export interface TabNavigationProps extends AdditionalClassesProp {
111
111
  username?: string;
112
112
  themeColor?: string;
113
113
  accountPopoverMenuItems?: AccountPopoverMenuItem[];
114
+ version?: {
115
+ app?: string;
116
+ env?: string;
117
+ } | null;
118
+ environmentList?: {
119
+ name: string;
120
+ tag?: string;
121
+ version?: string;
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;
114
142
  }
115
143
  export interface TabNavItemProps {
116
144
  isActive: boolean;
package/dist/index.d.ts CHANGED
@@ -98,6 +98,34 @@ interface TabNavigationProps extends AdditionalClassesProp$1 {
98
98
  username?: string;
99
99
  themeColor?: string;
100
100
  accountPopoverMenuItems?: AccountPopoverMenuItem[];
101
+ version?: {
102
+ app?: string;
103
+ env?: string;
104
+ } | null;
105
+ environmentList?: {
106
+ name: string;
107
+ tag?: string;
108
+ version?: string;
109
+ id: string;
110
+ }[];
111
+ selectedEnvironment?: {
112
+ name: string;
113
+ tag?: string;
114
+ version?: string;
115
+ id: string;
116
+ };
117
+ currentEnvironment?: {
118
+ name: string;
119
+ tag?: string;
120
+ version?: string;
121
+ id: string;
122
+ };
123
+ handleEnvironmentChange?: (environment: {
124
+ name: string;
125
+ tag: string;
126
+ version: string;
127
+ id: string;
128
+ }) => void;
101
129
  }
102
130
  interface MessageProps {
103
131
  type: string;
@@ -940,7 +968,7 @@ interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp {
940
968
  * Set font-color of the content
941
969
  */
942
970
  color?: string;
943
- onClick?: () => void;
971
+ onClick?: (e?: React__default.MouseEvent<HTMLButtonElement>) => void;
944
972
  disabled?: boolean;
945
973
  }
946
974
  interface ITyphographyFormGenProps extends IChildrenProp, IAdditionalClassesProp {
@@ -1562,7 +1590,7 @@ declare const Logo: React__default.FC<LogoProps>;
1562
1590
 
1563
1591
  declare const LoadingSpinner: React__default.FC<AdditionalClassesProp$1>;
1564
1592
 
1565
- declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems, onHelpClick }: TabNavigationProps & {
1593
+ declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems, version, environmentList, selectedEnvironment, currentEnvironment, onHelpClick, handleEnvironmentChange }: TabNavigationProps & {
1566
1594
  onHelpClick?: () => void;
1567
1595
  }) => React__default.JSX.Element;
1568
1596
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.13.125",
3
+ "version": "1.13.127",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { AccountPopoverMenuItem } from '../../shared/models/components/common.model';
3
- interface ArrowDropdownProps {
4
- username?: string;
5
- themeColor?: string;
6
- handleLogout?: () => void;
7
- userImage?: string;
8
- accountPopoverMenuItems?: AccountPopoverMenuItem[];
9
- }
10
- declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
11
- export default ArrowDropdown;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { AccountPopoverMenuItem } from '../../shared/models/components/common.model';
3
- interface ArrowDropdownProps {
4
- username?: string;
5
- themeColor?: string;
6
- handleLogout?: () => void;
7
- userImage?: string;
8
- accountPopoverMenuItems?: AccountPopoverMenuItem[];
9
- }
10
- declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
11
- export default ArrowDropdown;