trepur_components 0.2.48 → 0.2.49

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.
@@ -29,7 +29,8 @@ const AlertBar = _ref => {
29
29
  leftIconColor,
30
30
  rightIconColor,
31
31
  textCenter,
32
- isDismissable
32
+ isDismissable,
33
+ onDismissClick
33
34
  } = _ref;
34
35
  let bgColor;
35
36
  if (!['success', 'warning', 'error', 'info'].includes(type)) bgColor = 'bg-brand-info-light';
@@ -47,6 +48,7 @@ const AlertBar = _ref => {
47
48
 
48
49
  const closeAlertBar = () => {
49
50
  document.getElementById(id ? id : 'alertBar').classList.add('hidden');
51
+ onDismissClick();
50
52
  };
51
53
 
52
54
  rightIcon = isDismissable ? 'multiply' : rightIcon;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "trepur_components",
3
3
  "description": "component lib",
4
4
  "author": "trepur_ttenneb",
5
- "version": "0.2.48",
5
+ "version": "0.2.49",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",