@synerise/ds-inline-alert 2.0.7 → 2.1.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,28 @@
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
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@2.0.8...@synerise/ds-inline-alert@2.1.0) (2026-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.0.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@2.0.7...@synerise/ds-inline-alert@2.0.8) (2026-10-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.0.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@2.0.6...@synerise/ds-inline-alert@2.0.7) (2026-10-20)
7
29
 
8
30
  **Note:** Version bump only for package @synerise/ds-inline-alert
package/CLAUDE.md CHANGED
@@ -68,16 +68,16 @@ import InlineAlert from '@synerise/ds-inline-alert';
68
68
 
69
69
  ## Styling
70
70
 
71
- All styles in `InlineAlert.styles.tsx`. Key colour mapping (from `theme.palette`):
71
+ All styles in `InlineAlert.styles.tsx`. Key colour mapping (`--ds-inline-alert-*` module tokens):
72
72
 
73
73
  | Type | Normal | Hover (`hoverButton`) |
74
74
  |------|--------|-----------------------|
75
- | `success` | `green-600` | `green-700` |
76
- | `warning` | `yellow-600` | `yellow-700` |
77
- | `alert` | `red-600` | `red-700` |
78
- | `info` | `grey-600` | `grey-700` |
75
+ | `success` | `--ds-inline-alert-icon-success-default` | `--ds-inline-alert-icon-success-hover` |
76
+ | `warning` | `--ds-inline-alert-icon-warning-default` | `--ds-inline-alert-icon-warning-hover` |
77
+ | `alert` | `--ds-inline-alert-icon-error-default` | `--ds-inline-alert-icon-error-hover` |
78
+ | `info` | `--ds-inline-alert-icon-informative-default` | `--ds-inline-alert-icon-informative-hover` |
79
79
 
80
- The **icon** inherits the type colour; the **message text** is always `grey-600` regardless of type.
80
+ The **icon** inherits the type colour; the **message text** is always `--ds-message-text-description` (the shared `message` module) regardless of type.
81
81
 
82
82
  `withLink` content is underlined and inherits the icon colour. `withEmphasis` content is `font-weight: 500` and also inherits the icon colour.
83
83
 
@@ -1,15 +1,15 @@
1
1
  import styled, { css } from "styled-components";
2
- const COLORS = {
3
- success: "green-600",
4
- warning: "yellow-600",
5
- alert: "red-600",
6
- info: "grey-600"
2
+ const COLOR_TOKENS = {
3
+ success: "var(--ds-inline-alert-icon-success-default)",
4
+ warning: "var(--ds-inline-alert-icon-warning-default)",
5
+ alert: "var(--ds-inline-alert-icon-error-default)",
6
+ info: "var(--ds-inline-alert-icon-informative-default)"
7
7
  };
8
8
  const COLORS_HOVER = {
9
- success: "green-700",
10
- warning: "yellow-700",
11
- alert: "red-700",
12
- info: "grey-700"
9
+ success: "var(--ds-inline-alert-icon-success-hover)",
10
+ warning: "var(--ds-inline-alert-icon-warning-hover)",
11
+ alert: "var(--ds-inline-alert-icon-error-hover)",
12
+ info: "var(--ds-inline-alert-icon-informative-hover)"
13
13
  };
14
14
  const Message = /* @__PURE__ */ styled.span.withConfig({
15
15
  displayName: "InlineAlertstyles__Message",
@@ -18,7 +18,7 @@ const Message = /* @__PURE__ */ styled.span.withConfig({
18
18
  const InlineAlertWrapper = /* @__PURE__ */ styled.span.withConfig({
19
19
  displayName: "InlineAlertstyles__InlineAlertWrapper",
20
20
  componentId: "sc-cu91um-1"
21
- })(["display:flex;justify-content:flex-start;flex-direction:row;&:hover{cursor:", ";color:", ";}&:active{color:", ";}color:", ";", ";", "{color:", ";}"], (props) => props.hoverButton ? "pointer" : "auto", (props) => props.hoverButton ? props.theme.palette[COLORS_HOVER[props.type]] : props.theme.palette[COLORS[props.type]], (props) => props.theme.palette[COLORS[props.type]], (props) => props.theme.palette[COLORS[props.type]], (props) => !!props.disabled && css(["pointer-events:none;opacity:0.4;"]), Message, (props) => props.theme.palette["grey-600"]);
21
+ })(["display:flex;justify-content:flex-start;flex-direction:row;&:hover{cursor:", ";color:", ";}&:active{color:", ";}color:", ";", ";", "{color:var(--ds-message-text-description);}"], (props) => props.hoverButton ? "pointer" : "auto", (props) => props.hoverButton ? COLORS_HOVER[props.type] : COLOR_TOKENS[props.type], (props) => COLOR_TOKENS[props.type], (props) => COLOR_TOKENS[props.type], (props) => !!props.disabled && css(["pointer-events:none;opacity:var(--ds-opacity-disabled);"]), Message);
22
22
  const EmphasisWrapper = /* @__PURE__ */ styled.span.withConfig({
23
23
  displayName: "InlineAlertstyles__EmphasisWrapper",
24
24
  componentId: "sc-cu91um-2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-inline-alert",
3
- "version": "2.0.7",
3
+ "version": "2.1.0",
4
4
  "description": "InlineAlert UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -41,14 +41,16 @@
41
41
  ],
42
42
  "types": "dist/index.d.ts",
43
43
  "dependencies": {
44
- "@synerise/ds-icon": "^2.2.2",
45
- "@synerise/ds-utils": "^2.2.1"
44
+ "@synerise/ds-icon": "^2.3.0",
45
+ "@synerise/ds-utils": "^2.3.0"
46
+ },
47
+ "devDependencies": {
48
+ "vitest": "4"
46
49
  },
47
50
  "peerDependencies": {
48
51
  "@synerise/ds-core": "*",
49
52
  "react": ">=16.9.0 <= 18.3.1",
50
- "styled-components": "^5.3.3",
51
- "vitest": "4"
53
+ "styled-components": "^5.3.3"
52
54
  },
53
- "gitHead": "ac1a96b3cd66d2836b0639b3d9920fc0ebd7f8f3"
55
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
54
56
  }