@synerise/ds-insight 2.0.8 → 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 +11 -0
- package/CLAUDE.md +5 -5
- package/dist/Insight.styles.js +3 -3
- package/package.json +4 -4
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
|
+
# [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-insight@2.0.8...@synerise/ds-insight@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
|
+
|
|
6
17
|
## [2.0.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-insight@2.0.7...@synerise/ds-insight@2.0.8) (2026-10-26)
|
|
7
18
|
|
|
8
19
|
|
package/CLAUDE.md
CHANGED
|
@@ -26,7 +26,7 @@ src/
|
|
|
26
26
|
| `headerRightSide` | `ReactNode` | `undefined` | Rendered at the far right of the header bar (e.g. edit button). |
|
|
27
27
|
| `content` | `InlineAlertProps[] \| ReactNode` | `undefined` | Card body. If an `InlineAlertProps[]` is passed, each item is automatically rendered as `<InlineAlert>`. Otherwise treated as a plain ReactNode. |
|
|
28
28
|
| `footer` | `ReactNode` | `undefined` | Rendered at the bottom of the card. |
|
|
29
|
-
| `onClick` | `() => void` | `undefined` | Makes the entire card hoverable (
|
|
29
|
+
| `onClick` | `() => void` | `undefined` | Makes the entire card hoverable (`--ds-color-background-base-defaulthover` background on hover). Only applied when truthy. |
|
|
30
30
|
| `className` | `string` | `undefined` | Extra class names appended to `ds-insight <className>`. |
|
|
31
31
|
|
|
32
32
|
All standard `HTMLDivElement` attributes are also accepted and spread onto the root element via `WithHTMLAttributes<HTMLDivElement, ..>`.
|
|
@@ -68,10 +68,10 @@ import Insight from '@synerise/ds-insight';
|
|
|
68
68
|
|
|
69
69
|
## Styling
|
|
70
70
|
|
|
71
|
-
Styles live in `Insight.styles.tsx`. Uses `
|
|
72
|
-
- Container: `
|
|
73
|
-
- Hover state:
|
|
74
|
-
- `Title` renders as a `<label>` element (not a heading) with `font-weight: 500; font-size: 14px; color:
|
|
71
|
+
Styles live in `Insight.styles.tsx`. Uses `var(--ds-*)` tokens for all colours:
|
|
72
|
+
- Container: `--ds-color-background-base-default` background, `--ds-color-border-base-default` bottom border
|
|
73
|
+
- Hover state: `--ds-color-background-base-defaulthover` background — only added when `hasHover` is `true` (i.e. `onClick` is provided)
|
|
74
|
+
- `Title` renders as a `<label>` element (not a heading) with `font-weight: 500; font-size: 14px; color: var(--ds-color-text-base-default)`
|
|
75
75
|
- Gaps: `24px` padding, `16px` gap between sections, `4px` gap between content items
|
|
76
76
|
|
|
77
77
|
## Key dependencies
|
package/dist/Insight.styles.js
CHANGED
|
@@ -2,8 +2,8 @@ import styled from "styled-components";
|
|
|
2
2
|
const InsightContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Insightstyles__InsightContainer",
|
|
4
4
|
componentId: "sc-4cncfc-0"
|
|
5
|
-
})(["display:flex;flex-direction:column;background-color:
|
|
6
|
-
background-color:
|
|
5
|
+
})(["display:flex;flex-direction:column;background-color:var(--ds-color-background-base-default);gap:16px;padding:24px;width:100%;border-bottom:solid 1px var(--ds-color-border-base-default);", ";"], (props) => props.hasHover && `&:hover {
|
|
6
|
+
background-color: var(--ds-color-background-base-defaulthover);
|
|
7
7
|
}`);
|
|
8
8
|
const InsightContent = /* @__PURE__ */ styled.div.withConfig({
|
|
9
9
|
displayName: "Insightstyles__InsightContent",
|
|
@@ -16,7 +16,7 @@ const SubTitle = /* @__PURE__ */ styled.div.withConfig({
|
|
|
16
16
|
const Title = /* @__PURE__ */ styled.label.withConfig({
|
|
17
17
|
displayName: "Insightstyles__Title",
|
|
18
18
|
componentId: "sc-4cncfc-3"
|
|
19
|
-
})(["color:
|
|
19
|
+
})(["color:var(--ds-color-text-base-default);font-weight:500;display:block;font-size:14px;"]);
|
|
20
20
|
const InsightHeaderBar = /* @__PURE__ */ styled.div.withConfig({
|
|
21
21
|
displayName: "Insightstyles__InsightHeaderBar",
|
|
22
22
|
componentId: "sc-4cncfc-4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-insight",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Insight 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-inline-alert": "^2.0
|
|
45
|
-
"@synerise/ds-utils": "^2.
|
|
44
|
+
"@synerise/ds-inline-alert": "^2.1.0",
|
|
45
|
+
"@synerise/ds-utils": "^2.3.0"
|
|
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": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
56
56
|
}
|