@bytebrand/fe-ui-core 4.1.68 → 4.1.70

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/common.ts CHANGED
@@ -111,6 +111,7 @@ export { default as StarButton } from './source/components/_common/StarButton/St
111
111
  export { default as TabPanel } from './source/components/_common/Tabs/TabPanel';
112
112
 
113
113
  export { default as MaterialDatePicker } from './source/components/_common/MaterialDatePicker/MaterialDatePicker';
114
+ export { default as CookieModal } from './source/components/_common/Modal/CookieModal';
114
115
 
115
116
  // common material
116
117
  import { StyledComponent } from './source/framework/utils/StyledComponent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.68",
3
+ "version": "4.1.70",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -82,6 +82,7 @@ const MaterialMenu = ({ menuItems, headerComponent, onChange, isLang, containerC
82
82
  }}
83
83
  isSelect={isSelect}
84
84
  Link={Link}
85
+ handleClose={handleClose}
85
86
  { ...listItemProps }
86
87
  />;
87
88
  })}
@@ -17,7 +17,7 @@ interface IListItem {
17
17
  Link?: any;
18
18
  }
19
19
 
20
- const ListItem = ({ icon, label, amount, divider, onClick, href, isComponent, Link }: IListItem) => {
20
+ const ListItem = ({ icon, label, amount, divider, onClick, href, isComponent, Link, handleClose }: IListItem) => {
21
21
  return !!href ? (
22
22
  <Link color='#4C4E64DE' variant='caption' to={href} underline='none' onClick={onClick}>
23
23
  <MenuItem
@@ -34,7 +34,10 @@ const ListItem = ({ icon, label, amount, divider, onClick, href, isComponent, Li
34
34
  </Link>
35
35
  ) : (
36
36
  <MenuItem
37
- onClick={onClick}
37
+ onClick={() => {
38
+ onClick();
39
+ handleClose();
40
+ }}
38
41
  divider={divider}
39
42
  disableRipple={isComponent ? true : false}
40
43
  isComponent={isComponent}