@cashub/ui 0.23.0 → 0.24.1

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.
Binary file
@@ -56,6 +56,7 @@ const ModalContent = _ref2 => {
56
56
  const [id] = (0, _react.useState)((0, _lodash.default)('SD-'));
57
57
  let Icon = _bs.BsCheckCircle;
58
58
  if (type === 'error') Icon = _fa.FaRegTimesCircle;
59
+ if (type === 'danger') Icon = _bs.BsExclamationTriangle;
59
60
  if (type === 'warning') Icon = _bs.BsExclamationCircle;
60
61
  const handleDismiss = event => {
61
62
  if (event.target === refWrapper.current && allowDismiss === true) {
@@ -108,6 +109,7 @@ const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3
108
109
  } = _ref3;
109
110
  switch (type) {
110
111
  case 'error':
112
+ case 'danger':
111
113
  return 'color: var(--color-danger);';
112
114
  case 'warning':
113
115
  return 'color: var(--color-warning);';
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.23.0",
3
+ "version": "0.24.1",
4
4
  "private": false,
5
- "author": "CASHUB Team",
6
- "description": "CASHUB UI components library",
5
+ "author": "CasHUB Team",
6
+ "description": "CasHUB UI components library",
7
7
  "main": "index.js",
8
8
  "keywords": [
9
- "CASHUB"
9
+ "CasHUB"
10
10
  ],
11
11
  "license": "MIT",
12
12
  "dependencies": {