@synerise/ds-result 1.0.16 → 1.0.17

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,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
+ ## [1.0.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@1.0.16...@synerise/ds-result@1.0.17) (2025-07-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-result
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@1.0.15...@synerise/ds-result@1.0.16) (2025-07-15)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-result
package/dist/Result.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type ResultProps } from './Result.types';
3
- declare const Result: React.FC<ResultProps>;
3
+ declare const Result: ({ className, type, title, description, panel, buttons, customIcon, }: ResultProps) => React.JSX.Element;
4
4
  export default Result;
package/dist/Result.js CHANGED
@@ -1,33 +1,28 @@
1
1
  var _excluded = ["IconComponent"];
2
2
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
3
  import React from 'react';
4
- import Icon, { CheckM, HourglassM, InfoM, InformationNoSearchResultL, WarningM } from '@synerise/ds-icon';
4
+ import Icon, { CheckL, InfoL, InformationNoSearchResultL, TimeL, WarningL } from '@synerise/ds-icon';
5
5
  import * as S from './Result.styles';
6
6
  var mapTypeToStatus = {
7
7
  info: {
8
- IconComponent: InfoM,
9
- iconColor: 'blue-600',
10
- background: 'blue-050'
8
+ IconComponent: InfoL,
9
+ iconColor: 'blue-600'
11
10
  },
12
11
  warning: {
13
- IconComponent: WarningM,
14
- iconColor: 'yellow-600',
15
- background: 'yellow-100'
12
+ IconComponent: WarningL,
13
+ iconColor: 'yellow-600'
16
14
  },
17
15
  error: {
18
- IconComponent: WarningM,
19
- iconColor: 'red-600',
20
- background: 'red-100'
16
+ IconComponent: WarningL,
17
+ iconColor: 'red-600'
21
18
  },
22
19
  success: {
23
- IconComponent: CheckM,
24
- iconColor: 'green-600',
25
- background: 'green-100'
20
+ IconComponent: CheckL,
21
+ iconColor: 'green-600'
26
22
  },
27
23
  progress: {
28
- IconComponent: HourglassM,
29
- iconColor: 'grey-600',
30
- background: 'grey-100'
24
+ IconComponent: TimeL,
25
+ iconColor: 'grey-600'
31
26
  },
32
27
  'no-results': {
33
28
  IconComponent: InformationNoSearchResultL,
@@ -41,19 +36,16 @@ var Result = function Result(_ref) {
41
36
  description = _ref.description,
42
37
  panel = _ref.panel,
43
38
  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;
39
+ customIcon = _ref.customIcon;
48
40
  var _mapTypeToStatus$type = mapTypeToStatus[type],
49
41
  IconComponent = _mapTypeToStatus$type.IconComponent,
50
42
  iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
51
43
  return /*#__PURE__*/React.createElement(S.ResultContainer, {
52
- className: "ds-result " + (className || ''),
53
- noSearchResults: noSearchResults
44
+ className: "ds-result " + (className || '')
54
45
  }, /*#__PURE__*/React.createElement(S.MainPanel, null, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
55
46
  component: /*#__PURE__*/React.createElement(IconComponent, null),
56
- size: mapTypeToStatus['no-results'] ? 48 : 24
47
+ size: mapTypeToStatus['no-results'] ? 48 : 24,
48
+ color: iconContainerStyles.iconColor
57
49
  }))), 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)));
58
50
  };
59
51
  export default Result;
@@ -8,8 +8,5 @@ export declare const PanelContainer: import("styled-components").StyledComponent
8
8
  export declare const ResultIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
9
  export declare const StatusIconContainer: import("styled-components").StyledComponent<"div", any, {
10
10
  iconColor: string;
11
- background: string;
12
- }, never>;
13
- export declare const ResultContainer: import("styled-components").StyledComponent<"div", any, {
14
- noSearchResults: boolean;
15
11
  }, never>;
12
+ export declare const ResultContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
- import styled, { css } from 'styled-components';
1
+ import styled from 'styled-components';
2
2
  import { ButtonStyles } from '@synerise/ds-button';
3
3
  import * as T from '@synerise/ds-typography';
4
4
  export var MainPanel = styled.div.withConfig({
@@ -8,7 +8,7 @@ export var MainPanel = styled.div.withConfig({
8
8
  export var Title = styled.h4.withConfig({
9
9
  displayName: "Resultstyles__Title",
10
10
  componentId: "sc-wep21m-1"
11
- })(["", ";margin:0 0 24px;text-align:center;word-break:break-word;"], T.macro.h500);
11
+ })(["", ";margin:0 0 8px;text-align:center;word-break:break-word;"], T.macro.h500);
12
12
  export var Description = styled(T.Description).withConfig({
13
13
  displayName: "Resultstyles__Description",
14
14
  componentId: "sc-wep21m-2"
@@ -28,18 +28,14 @@ export var PanelContainer = styled.div.withConfig({
28
28
  export var ResultIconContainer = styled.div.withConfig({
29
29
  displayName: "Resultstyles__ResultIconContainer",
30
30
  componentId: "sc-wep21m-5"
31
- })(["margin:0 0 24px;"]);
31
+ })(["margin:0 0 12px;"]);
32
32
  export var StatusIconContainer = styled.div.withConfig({
33
33
  displayName: "Resultstyles__StatusIconContainer",
34
34
  componentId: "sc-wep21m-6"
35
- })(["background-color:", ";width:40px;height:40px;border-radius:20px;text-align:center;display:flex;align-items:center;justify-content:center;margin:0 auto;color:", ";"], function (props) {
36
- return props.theme.palette[props.background];
37
- }, function (props) {
35
+ })(["width:40px;height:40px;border-radius:20px;text-align:center;display:flex;align-items:center;justify-content:center;margin:0 auto;color:", ";"], function (props) {
38
36
  return props.theme.palette[props.iconColor];
39
37
  });
40
38
  export var ResultContainer = styled.div.withConfig({
41
39
  displayName: "Resultstyles__ResultContainer",
42
40
  componentId: "sc-wep21m-7"
43
- })(["width:100%;padding:24px;position:relative;", ""], function (props) {
44
- return props.noSearchResults && css(["", "{margin:0 0 16px;}", "{margin:0 0 16px;}", "{margin:0 0 16px;font-size:14px;line-height:1.43;color:", ";}"], ResultIconContainer, Title, Description, props.theme.palette['grey-600']);
45
- });
41
+ })(["width:100%;padding:24px;position:relative;"]);
@@ -7,5 +7,6 @@ export type ResultProps = {
7
7
  buttons?: React.ReactNode;
8
8
  panel?: React.ReactNode;
9
9
  customIcon?: React.ReactElement;
10
+ /** @deprecated */
10
11
  noSearchResults?: boolean;
11
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-result",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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": "^1.4.4",
38
- "@synerise/ds-icon": "^1.6.0",
39
- "@synerise/ds-typography": "^1.0.15",
37
+ "@synerise/ds-button": "^1.4.5",
38
+ "@synerise/ds-icon": "^1.6.1",
39
+ "@synerise/ds-typography": "^1.0.16",
40
40
  "@synerise/ds-utils": "^1.3.1"
41
41
  },
42
42
  "peerDependencies": {
@@ -44,5 +44,5 @@
44
44
  "react": ">=16.9.0 <= 18.3.1",
45
45
  "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "f7c362a4f370d86b51df9aba9e91ac8f7fe4ed8f"
47
+ "gitHead": "4e851d649cb25346f2f8e0575dde91cc50f43bc4"
48
48
  }