@synerise/ds-result 0.7.14 → 0.7.15
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 +8 -0
- package/dist/Result.js +11 -17
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.7.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.7.14...@synerise/ds-result@0.7.15) (2024-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-result
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.7.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.7.13...@synerise/ds-result@0.7.14) (2024-11-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-result
|
package/dist/Result.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["IconComponent"];
|
|
2
|
-
|
|
3
2
|
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; }
|
|
4
|
-
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import Icon, { WarningM, CheckM, HourglassM, InformationNoSearchResultL, InfoM } from '@synerise/ds-icon';
|
|
7
5
|
import * as S from './Result.styles';
|
|
@@ -36,23 +34,20 @@ var mapTypeToStatus = {
|
|
|
36
34
|
iconColor: 'grey-600'
|
|
37
35
|
}
|
|
38
36
|
};
|
|
39
|
-
|
|
40
37
|
var Result = function Result(_ref) {
|
|
41
38
|
var className = _ref.className,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
type = _ref.type,
|
|
40
|
+
title = _ref.title,
|
|
41
|
+
description = _ref.description,
|
|
42
|
+
panel = _ref.panel,
|
|
43
|
+
buttons = _ref.buttons,
|
|
44
|
+
_ref$customIcon = _ref.customIcon,
|
|
45
|
+
customIcon = _ref$customIcon === void 0 ? null : _ref$customIcon,
|
|
46
|
+
_ref$noSearchResults = _ref.noSearchResults,
|
|
47
|
+
noSearchResults = _ref$noSearchResults === void 0 ? false : _ref$noSearchResults;
|
|
52
48
|
var _mapTypeToStatus$type = mapTypeToStatus[type],
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
IconComponent = _mapTypeToStatus$type.IconComponent,
|
|
50
|
+
iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
|
|
56
51
|
return /*#__PURE__*/React.createElement(S.ResultContainer, {
|
|
57
52
|
className: "ds-result " + (className || ''),
|
|
58
53
|
noSearchResults: noSearchResults
|
|
@@ -61,5 +56,4 @@ var Result = function Result(_ref) {
|
|
|
61
56
|
size: mapTypeToStatus['no-results'] ? 48 : 24
|
|
62
57
|
}))), 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)));
|
|
63
58
|
};
|
|
64
|
-
|
|
65
59
|
export default Result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-result",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.15",
|
|
4
4
|
"description": "Result UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^0.21.
|
|
38
|
-
"@synerise/ds-icon": "^0.67.
|
|
39
|
-
"@synerise/ds-typography": "^0.16.
|
|
37
|
+
"@synerise/ds-button": "^0.21.20",
|
|
38
|
+
"@synerise/ds-icon": "^0.67.1",
|
|
39
|
+
"@synerise/ds-typography": "^0.16.7",
|
|
40
40
|
"@synerise/ds-utils": "^0.31.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"react": ">=16.9.0 <= 17.0.2",
|
|
45
45
|
"styled-components": "5.0.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "4a56ee7ef816c22341ce704154dc7aa65b7d1dcc"
|
|
48
48
|
}
|