@synerise/ds-result 0.5.76 → 0.6.2

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,38 @@
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.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.6.1...@synerise/ds-result@0.6.2) (2021-11-22)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-result
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-result
17
+
18
+
19
+
20
+
21
+
22
+ # [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)
23
+
24
+ **Note:** Version bump only for package @synerise/ds-result
25
+
26
+
27
+
28
+
29
+
30
+ ## [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)
31
+
32
+ **Note:** Version bump only for package @synerise/ds-result
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.5.76](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@0.5.75...@synerise/ds-result@0.5.76) (2021-10-19)
7
39
 
8
40
  **Note:** Version bump only for package @synerise/ds-result
package/dist/Result.js CHANGED
@@ -1,14 +1,9 @@
1
- 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; }
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, SearchNoResultsM, InfoM } from '@synerise/ds-icon';
12
7
  import * as S from './Result.styles';
13
8
  var mapTypeToStatus = {
14
9
  info: {
@@ -57,15 +52,15 @@ var Result = function Result(_ref) {
57
52
 
58
53
  var _mapTypeToStatus$type = mapTypeToStatus[type],
59
54
  IconComponent = _mapTypeToStatus$type.IconComponent,
60
- iconContainerStyles = _objectWithoutProperties(_mapTypeToStatus$type, ["IconComponent"]);
55
+ iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
61
56
 
62
- return React.createElement(S.ResultContainer, {
63
- className: "ds-result ".concat(className || ''),
57
+ return /*#__PURE__*/React.createElement(S.ResultContainer, {
58
+ className: "ds-result " + (className || ''),
64
59
  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),
60
+ }, /*#__PURE__*/React.createElement(S.MainPanel, null, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
61
+ component: /*#__PURE__*/React.createElement(IconComponent, null),
67
62
  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)));
63
+ }))), 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
64
  };
70
65
 
71
66
  export default Result;
@@ -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/dist/Icon.styles';
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",
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-result",
3
- "version": "0.5.76",
3
+ "version": "0.6.2",
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.14.0",
36
- "@synerise/ds-icon": "^0.45.1",
37
- "@synerise/ds-typography": "^0.11.9"
35
+ "@synerise/ds-button": "^0.16.2",
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": "b69adf958dccdf8cc697fbba1a47acc96218f40e"
43
+ "gitHead": "2468359677783819939fb9f1ef5acc36667ecd1a"
44
44
  }