@synerise/ds-result 0.5.77 → 0.6.3
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 +35 -0
- package/dist/Result.js +11 -17
- package/dist/Result.styles.js +1 -1
- package/dist/Result.types.js +1 -0
- package/package.json +5 -5
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.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.2...@synerise/ds-result@0.6.3) (2021-12-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **result:** chenge icon in no-result option ([1374ffd](https://github.com/Synerise/synerise-design/commit/1374ffd7acc20a05927c358b58258e4c362907ab))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-result
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @synerise/ds-result
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [0.6.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.5.77...@synerise/ds-result@0.6.0) (2021-11-09)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @synerise/ds-result
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [0.5.77](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.5.75...@synerise/ds-result@0.5.77) (2021-10-26)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @synerise/ds-result
|
package/dist/Result.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
var _excluded = ["IconComponent"];
|
|
2
2
|
|
|
3
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; }
|
|
4
4
|
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import Icon from '@synerise/ds-icon';
|
|
7
|
-
import WarningM from '@synerise/ds-icon/dist/icons/WarningM';
|
|
8
|
-
import CheckM from '@synerise/ds-icon/dist/icons/CheckM';
|
|
9
|
-
import HourglassM from '@synerise/ds-icon/dist/icons/HourglassM';
|
|
10
|
-
import SearchNoResultsM from '@synerise/ds-icon/dist/icons/SearchNoResultsM';
|
|
11
|
-
import InfoM from '@synerise/ds-icon/dist/icons/InfoM';
|
|
6
|
+
import Icon, { WarningM, CheckM, HourglassM, InformationNoSearchResultL, InfoM } from '@synerise/ds-icon';
|
|
12
7
|
import * as S from './Result.styles';
|
|
13
8
|
var mapTypeToStatus = {
|
|
14
9
|
info: {
|
|
@@ -37,9 +32,8 @@ var mapTypeToStatus = {
|
|
|
37
32
|
background: 'grey-100'
|
|
38
33
|
},
|
|
39
34
|
'no-results': {
|
|
40
|
-
IconComponent:
|
|
41
|
-
iconColor: 'grey-600'
|
|
42
|
-
background: 'grey-100'
|
|
35
|
+
IconComponent: InformationNoSearchResultL,
|
|
36
|
+
iconColor: 'grey-600'
|
|
43
37
|
}
|
|
44
38
|
};
|
|
45
39
|
|
|
@@ -57,15 +51,15 @@ var Result = function Result(_ref) {
|
|
|
57
51
|
|
|
58
52
|
var _mapTypeToStatus$type = mapTypeToStatus[type],
|
|
59
53
|
IconComponent = _mapTypeToStatus$type.IconComponent,
|
|
60
|
-
iconContainerStyles =
|
|
54
|
+
iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
|
|
61
55
|
|
|
62
|
-
return React.createElement(S.ResultContainer, {
|
|
63
|
-
className: "ds-result "
|
|
56
|
+
return /*#__PURE__*/React.createElement(S.ResultContainer, {
|
|
57
|
+
className: "ds-result " + (className || ''),
|
|
64
58
|
noSearchResults: noSearchResults
|
|
65
|
-
}, React.createElement(S.MainPanel, null, React.createElement(S.ResultIconContainer, null, customIcon || React.createElement(S.StatusIconContainer, iconContainerStyles, React.createElement(Icon, {
|
|
66
|
-
component: React.createElement(IconComponent, null),
|
|
67
|
-
size: 24
|
|
68
|
-
}))), title && React.createElement(S.Title, null, title), description && React.createElement(S.Description, null, description), panel && React.createElement(S.PanelContainer, null, panel), buttons && React.createElement(S.ButtonContainer, null, buttons)));
|
|
59
|
+
}, /*#__PURE__*/React.createElement(S.MainPanel, null, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
|
|
60
|
+
component: /*#__PURE__*/React.createElement(IconComponent, null),
|
|
61
|
+
size: mapTypeToStatus['no-results'] ? 48 : 24
|
|
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)));
|
|
69
63
|
};
|
|
70
64
|
|
|
71
65
|
export default Result;
|
package/dist/Result.styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { AntdButton as StyledButtonContainer } from '@synerise/ds-button/dist/Button.styles';
|
|
3
|
-
import { IconContainer } from '@synerise/ds-icon
|
|
3
|
+
import { IconContainer } from '@synerise/ds-icon';
|
|
4
4
|
import * as T from '@synerise/ds-typography';
|
|
5
5
|
export var MainPanel = styled.div.withConfig({
|
|
6
6
|
displayName: "Resultstyles__MainPanel",
|
package/dist/Result.types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-result",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.3",
|
|
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.
|
|
36
|
-
"@synerise/ds-icon": "^0.
|
|
37
|
-
"@synerise/ds-typography": "^0.
|
|
35
|
+
"@synerise/ds-button": "^0.16.3",
|
|
36
|
+
"@synerise/ds-icon": "^0.46.2",
|
|
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": "
|
|
43
|
+
"gitHead": "a89cd14cdbe25b06949b3b9763e58a080111c160"
|
|
44
44
|
}
|