@synerise/ds-toast 1.2.13 → 1.3.0

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,12 @@
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.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toast@1.2.13...@synerise/ds-toast@1.3.0) (2026-01-20)
7
+
8
+ ### Features
9
+
10
+ - **toast:** new styles of toast ([c3f3316](https://github.com/Synerise/synerise-design/commit/c3f331605f9e03c841ff40af0b7efcdd0251a90f))
11
+
6
12
  ## [1.2.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-toast@1.2.12...@synerise/ds-toast@1.2.13) (2026-01-15)
7
13
 
8
14
  **Note:** Version bump only for package @synerise/ds-toast
@@ -1,38 +1,26 @@
1
1
  import styled, { keyframes } from 'styled-components';
2
2
  import { UnorderedList } from '@synerise/ds-unordered-list/dist/Unordered-list.styles';
3
- import { hexToRgba } from '@synerise/ds-utils';
4
- var getDescriptionColorForType = function getDescriptionColorForType(_ref) {
3
+ var getIconColorForType = function getIconColorForType(_ref) {
5
4
  var toastType = _ref.toastType,
6
5
  theme = _ref.theme;
7
6
  switch (toastType) {
8
7
  case 'informative':
9
8
  return theme.palette['grey-600'];
10
9
  case 'negative':
11
- case 'success':
10
+ return theme.palette['red-500'];
12
11
  case 'warning':
12
+ return theme.palette['yellow-600'];
13
+ case 'success':
13
14
  default:
14
- return theme.palette.white;
15
+ return theme.palette['green-600'];
15
16
  }
16
17
  };
17
- var getIconColorForType = function getIconColorForType(_ref2) {
18
+ var getBackgroundColorForType = function getBackgroundColorForType(_ref2) {
18
19
  var toastType = _ref2.toastType,
19
20
  theme = _ref2.theme;
20
21
  switch (toastType) {
21
22
  case 'informative':
22
23
  return theme.palette['grey-600'];
23
- case 'negative':
24
- case 'success':
25
- case 'warning':
26
- default:
27
- return theme.palette.white;
28
- }
29
- };
30
- var getBackgroundColorForType = function getBackgroundColorForType(_ref3) {
31
- var toastType = _ref3.toastType,
32
- theme = _ref3.theme;
33
- switch (toastType) {
34
- case 'informative':
35
- return theme.palette['grey-050'];
36
24
  case 'negative':
37
25
  return theme.palette['red-500'];
38
26
  case 'warning':
@@ -119,7 +107,7 @@ export var Wrapper = styled.div.withConfig({
119
107
  displayName: "Toaststyles__Wrapper",
120
108
  componentId: "sc-wwaizr-11"
121
109
  })(["color:", ";"], function (props) {
122
- return props.theme.palette['grey-050'];
110
+ return props.theme.palette['grey-600'];
123
111
  });
124
112
  export var AnimationContainer = styled.div.withConfig({
125
113
  displayName: "Toaststyles__AnimationContainer",
@@ -148,6 +136,14 @@ export var AlertDescription = styled.div.withConfig({
148
136
  export var Container = styled.div.withConfig({
149
137
  displayName: "Toaststyles__Container",
150
138
  componentId: "sc-wwaizr-16"
151
- })(["display:flex;flex-direction:row;max-width:500px;align-items:flex-start;justify-content:center;background-color:", ";border-radius:4px;box-shadow:", ";", ",", ",", "{svg{fill:", ";}}", ",", ",", ":hover,", "{color:", ";}", ":hover{", "{background-image:linear-gradient( to right,", " 20%,rgba(255,255,255,0) 10% );color:", ";}}", "{svg{color:", ";fill:", ";}}"], getBackgroundColorForType, function (props) {
152
- return props.color ? "0px 16px 32px 5px " + hexToRgba(props.theme.palette['grey-900'], 0.2) : 'none';
153
- }, IconExpanderWrapper, IconOrderWrapper, IconCloseWrapper, getDescriptionColorForType, OrderWrapper, AlertMessage, NumberWrapper, AlertDescription, getDescriptionColorForType, OrderWrapper, NumberWrapper, getDescriptionColorForType, getDescriptionColorForType, IconWrapper, getIconColorForType, getIconColorForType);
139
+ })(["display:flex;flex-direction:row;max-width:500px;align-items:flex-start;justify-content:center;border-top:solid 2px ", ";background-color:", ";border-radius:4px;box-shadow:0 16px 32px 0 rgba(35,41,54,0.12);", ",", ",", "{svg{fill:", ";}}", ",", ",", ",", ":hover,", "{color:", ";}", ":hover{", "{background-image:linear-gradient( to right,", ";20%,rgba(255,255,255,0) 10% );color:", ";}}", "{svg{color:", ";fill:", ";}}"], getBackgroundColorForType, function (props) {
140
+ return props.theme.palette.white;
141
+ }, IconExpanderWrapper, IconOrderWrapper, IconCloseWrapper, function (props) {
142
+ return props.theme.palette['grey-600'];
143
+ }, OrderWrapper, AlertMessage, ListWrapper, NumberWrapper, AlertDescription, function (props) {
144
+ return props.theme.palette['grey-600'];
145
+ }, OrderWrapper, NumberWrapper, function (props) {
146
+ return props.theme.palette['grey-600'];
147
+ }, function (props) {
148
+ return props.theme.palette['grey-600'];
149
+ }, IconWrapper, getIconColorForType, getIconColorForType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-toast",
3
- "version": "1.2.13",
3
+ "version": "1.3.0",
4
4
  "description": "Toast UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -44,5 +44,5 @@
44
44
  "@synerise/ds-core": "*",
45
45
  "react": ">=16.9.0 <= 18.3.1"
46
46
  },
47
- "gitHead": "4cde643d1f63a4b47e84707a13b1b1d138730d53"
47
+ "gitHead": "db758824923a2a231a0de460f0d6d10739514cda"
48
48
  }