@synerise/ds-result 0.6.1 → 0.6.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.4...@synerise/ds-result@0.6.5) (2022-02-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-result
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.3...@synerise/ds-result@0.6.4) (2022-01-17)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-result
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.6.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.2...@synerise/ds-result@0.6.3) (2021-12-22)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **result:** chenge icon in no-result option ([1374ffd](https://github.com/Synerise/synerise-design/commit/1374ffd7acc20a05927c358b58258e4c362907ab))
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.6.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.1...@synerise/ds-result@0.6.2) (2021-11-22)
34
+
35
+ **Note:** Version bump only for package @synerise/ds-result
36
+
37
+
38
+
39
+
40
+
6
41
  ## [0.6.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.5.77...@synerise/ds-result@0.6.1) (2021-11-09)
7
42
 
8
43
  **Note:** Version bump only for package @synerise/ds-result
package/dist/Result.js CHANGED
@@ -1,11 +1,9 @@
1
1
  var _excluded = ["IconComponent"];
2
2
 
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
-
5
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
4
 
7
5
  import * as React from 'react';
8
- import Icon, { WarningM, CheckM, HourglassM, SearchNoResultsM, InfoM } from '@synerise/ds-icon';
6
+ import Icon, { WarningM, CheckM, HourglassM, InformationNoSearchResultL, InfoM } from '@synerise/ds-icon';
9
7
  import * as S from './Result.styles';
10
8
  var mapTypeToStatus = {
11
9
  info: {
@@ -34,9 +32,8 @@ var mapTypeToStatus = {
34
32
  background: 'grey-100'
35
33
  },
36
34
  'no-results': {
37
- IconComponent: SearchNoResultsM,
38
- iconColor: 'grey-600',
39
- background: 'grey-100'
35
+ IconComponent: InformationNoSearchResultL,
36
+ iconColor: 'grey-600'
40
37
  }
41
38
  };
42
39
 
@@ -54,14 +51,14 @@ var Result = function Result(_ref) {
54
51
 
55
52
  var _mapTypeToStatus$type = mapTypeToStatus[type],
56
53
  IconComponent = _mapTypeToStatus$type.IconComponent,
57
- iconContainerStyles = _objectWithoutProperties(_mapTypeToStatus$type, _excluded);
54
+ iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
58
55
 
59
56
  return /*#__PURE__*/React.createElement(S.ResultContainer, {
60
- className: "ds-result ".concat(className || ''),
57
+ className: "ds-result " + (className || ''),
61
58
  noSearchResults: noSearchResults
62
59
  }, /*#__PURE__*/React.createElement(S.MainPanel, null, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
63
60
  component: /*#__PURE__*/React.createElement(IconComponent, null),
64
- size: 24
61
+ size: mapTypeToStatus['no-results'] ? 48 : 24
65
62
  }))), title && /*#__PURE__*/React.createElement(S.Title, null, title), description && /*#__PURE__*/React.createElement(S.Description, null, description), panel && /*#__PURE__*/React.createElement(S.PanelContainer, null, panel), buttons && /*#__PURE__*/React.createElement(S.ButtonContainer, null, buttons)));
66
63
  };
67
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-result",
3
- "version": "0.6.1",
3
+ "version": "0.6.5",
4
4
  "description": "Result UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,13 +32,13 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.16.1",
36
- "@synerise/ds-icon": "^0.46.1",
37
- "@synerise/ds-typography": "^0.12.1"
35
+ "@synerise/ds-button": "^0.16.5",
36
+ "@synerise/ds-icon": "^0.47.1",
37
+ "@synerise/ds-typography": "^0.12.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@synerise/ds-core": "*",
41
41
  "react": ">=16.9.0 < 17.0.0"
42
42
  },
43
- "gitHead": "14733fd96fcf0727a2baf45444e54e9a490d64f4"
43
+ "gitHead": "27ef26e44f1814e7fc97b46668078e9a78e8f217"
44
44
  }