@synerise/ds-result 1.0.17 → 1.0.18

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,17 @@
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.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-result@1.0.17...@synerise/ds-result@1.0.18) (2025-07-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **result:** fix styles to match figma ([1b17374](https://github.com/Synerise/synerise-design/commit/1b173747daf73f5a768241a3116ba7b3c7c90eb1))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-result
package/dist/Result.js CHANGED
@@ -42,10 +42,10 @@ var Result = function Result(_ref) {
42
42
  iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
43
43
  return /*#__PURE__*/React.createElement(S.ResultContainer, {
44
44
  className: "ds-result " + (className || '')
45
- }, /*#__PURE__*/React.createElement(S.MainPanel, null, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
45
+ }, /*#__PURE__*/React.createElement(S.ResultIconContainer, null, customIcon || /*#__PURE__*/React.createElement(S.StatusIconContainer, iconContainerStyles, /*#__PURE__*/React.createElement(Icon, {
46
46
  component: /*#__PURE__*/React.createElement(IconComponent, null),
47
47
  size: mapTypeToStatus['no-results'] ? 48 : 24,
48
48
  color: iconContainerStyles.iconColor
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)));
49
+ }))), (title || description) && /*#__PURE__*/React.createElement(S.ResultContent, null, 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));
50
50
  };
51
51
  export default Result;
@@ -1,7 +1,6 @@
1
- export declare const MainPanel: import("styled-components").StyledComponent<"div", any, {}, never>;
2
1
  export declare const Title: import("styled-components").StyledComponent<"h4", any, {}, never>;
3
2
  export declare const Description: import("styled-components").StyledComponent<"div", any, {
4
- disabled?: boolean | undefined;
3
+ disabled?: boolean;
5
4
  }, never>;
6
5
  export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
6
  export declare const PanelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -10,3 +9,4 @@ export declare const StatusIconContainer: import("styled-components").StyledComp
10
9
  iconColor: string;
11
10
  }, never>;
12
11
  export declare const ResultContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const ResultContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,41 +1,41 @@
1
1
  import styled from 'styled-components';
2
2
  import { ButtonStyles } from '@synerise/ds-button';
3
3
  import * as T from '@synerise/ds-typography';
4
- export var MainPanel = styled.div.withConfig({
5
- displayName: "Resultstyles__MainPanel",
6
- componentId: "sc-wep21m-0"
7
- })(["display:flex;flex-direction:column;align-items:center;justify-content:center;> div:last-of-type{margin-bottom:0;}"]);
8
4
  export var Title = styled.h4.withConfig({
9
5
  displayName: "Resultstyles__Title",
10
- componentId: "sc-wep21m-1"
11
- })(["", ";margin:0 0 8px;text-align:center;word-break:break-word;"], T.macro.h500);
6
+ componentId: "sc-wep21m-0"
7
+ })(["", ";margin:0;text-align:center;word-break:break-word;"], T.macro.h500);
12
8
  export var Description = styled(T.Description).withConfig({
13
9
  displayName: "Resultstyles__Description",
14
- componentId: "sc-wep21m-2"
15
- })(["padding:0;text-align:center;margin:0 0 24px;"]);
10
+ componentId: "sc-wep21m-1"
11
+ })(["padding:0;text-align:center;"]);
16
12
  export var ButtonContainer = styled.div.withConfig({
17
13
  displayName: "Resultstyles__ButtonContainer",
18
- componentId: "sc-wep21m-3"
14
+ componentId: "sc-wep21m-2"
19
15
  })(["text-align:center;width:100%;", "{margin:0 4px;&:first-of-type{margin-left:0;}&:last-of-type{margin-right:0;}}"], ButtonStyles.Button.AntdButton);
20
16
  export var PanelContainer = styled.div.withConfig({
21
17
  displayName: "Resultstyles__PanelContainer",
22
- componentId: "sc-wep21m-4"
23
- })(["margin:0 0 24px;width:100%;&&&{textarea{max-height:234px;background-color:", ";}}.ant-list{border:1px solid ", ";border-radius:3px;padding:8px;}"], function (props) {
18
+ componentId: "sc-wep21m-3"
19
+ })(["width:100%;&&&{textarea{max-height:234px;background-color:", ";}}.ant-list{border:1px solid ", ";border-radius:3px;padding:8px;}"], function (props) {
24
20
  return props.theme.palette.white;
25
21
  }, function (props) {
26
22
  return props.theme.palette['grey-300'];
27
23
  });
28
24
  export var ResultIconContainer = styled.div.withConfig({
29
25
  displayName: "Resultstyles__ResultIconContainer",
30
- componentId: "sc-wep21m-5"
31
- })(["margin:0 0 12px;"]);
26
+ componentId: "sc-wep21m-4"
27
+ })([""]);
32
28
  export var StatusIconContainer = styled.div.withConfig({
33
29
  displayName: "Resultstyles__StatusIconContainer",
34
- componentId: "sc-wep21m-6"
30
+ componentId: "sc-wep21m-5"
35
31
  })(["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
32
  return props.theme.palette[props.iconColor];
37
33
  });
38
34
  export var ResultContainer = styled.div.withConfig({
39
35
  displayName: "Resultstyles__ResultContainer",
36
+ componentId: "sc-wep21m-6"
37
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:24px;max-width:440px;"]);
38
+ export var ResultContent = styled.div.withConfig({
39
+ displayName: "Resultstyles__ResultContent",
40
40
  componentId: "sc-wep21m-7"
41
- })(["width:100%;padding:24px;position:relative;"]);
41
+ })(["display:flex;flex-direction:column;align-items:center;gap:8px;"]);
@@ -2,7 +2,7 @@ import type React from 'react';
2
2
  export type ResultProps = {
3
3
  className?: string;
4
4
  title?: string | React.ReactNode;
5
- type: string | 'info' | 'warning' | 'error' | 'success' | 'progress' | 'no-results';
5
+ type: 'info' | 'warning' | 'error' | 'success' | 'progress' | 'no-results';
6
6
  description?: string | React.ReactNode;
7
7
  buttons?: React.ReactNode;
8
8
  panel?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-result",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Result UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,15 +34,15 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.4.5",
38
- "@synerise/ds-icon": "^1.6.1",
39
- "@synerise/ds-typography": "^1.0.16",
40
- "@synerise/ds-utils": "^1.3.1"
37
+ "@synerise/ds-button": "^1.4.6",
38
+ "@synerise/ds-icon": "^1.6.2",
39
+ "@synerise/ds-typography": "^1.0.17",
40
+ "@synerise/ds-utils": "^1.4.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@synerise/ds-core": "*",
44
44
  "react": ">=16.9.0 <= 18.3.1",
45
45
  "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "4e851d649cb25346f2f8e0575dde91cc50f43bc4"
47
+ "gitHead": "b35b1875727156fe9f5b3bad55aed5ca447c8c8d"
48
48
  }