@synerise/ds-inline-alert 2.0.8 → 2.1.1
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 +19 -0
- package/CLAUDE.md +6 -6
- package/dist/InlineAlert.styles.js +10 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@2.1.0...@synerise/ds-inline-alert@2.1.1) (2026-11-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-inline-alert
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [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)
|
|
7
26
|
|
|
8
27
|
|
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 (
|
|
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` |
|
|
76
|
-
| `warning` |
|
|
77
|
-
| `alert` |
|
|
78
|
-
| `info` |
|
|
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
|
|
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
|
|
3
|
-
success: "
|
|
4
|
-
warning: "
|
|
5
|
-
alert: "
|
|
6
|
-
info: "
|
|
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: "
|
|
10
|
-
warning: "
|
|
11
|
-
alert: "
|
|
12
|
-
info: "
|
|
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:
|
|
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.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "InlineAlert UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
],
|
|
42
42
|
"types": "dist/index.d.ts",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@synerise/ds-icon": "^2.
|
|
45
|
-
"@synerise/ds-utils": "^2.
|
|
44
|
+
"@synerise/ds-icon": "^2.3.1",
|
|
45
|
+
"@synerise/ds-utils": "^2.3.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"vitest": "4"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react": ">=16.9.0 <= 18.3.1",
|
|
53
53
|
"styled-components": "^5.3.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
|
|
56
56
|
}
|