@synerise/ds-metric-card 2.0.12 → 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,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-metric-card@2.0.12...@synerise/ds-metric-card@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.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-metric-card@2.0.11...@synerise/ds-metric-card@2.0.12) (2026-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-metric-card
package/CLAUDE.md CHANGED
@@ -57,7 +57,7 @@ import MetricCard from '@synerise/ds-metric-card';
57
57
 
58
58
  ## Styling
59
59
 
60
- `MetricCard.styles.tsx`. Root is a `Panel` with `p="8px 8px 14px 24px"` and `radius={3}`. Value font size is `32px`, `font-weight: 500`, colour `grey-800`.
60
+ `MetricCard.styles.tsx`. Root is a `Panel` with `p="8px 8px 14px 24px"` and `radius={3}`. Value font size is `32px`, `font-weight: 500`, colour `var(--ds-color-text-base-default)`.
61
61
 
62
62
  Hover behaviour is pure CSS class toggle: `MetricContent.hovered` class shows `WrapperNumber` and hides `WrapperFormattedNumber` (and vice versa). The `CopyIcon` uses `visibility + opacity` transition so it doesn't shift layout.
63
63
 
@@ -37,7 +37,7 @@ const MetricContent = /* @__PURE__ */ styled.div.withConfig({
37
37
  const MetricValue = /* @__PURE__ */ styled(Text).withConfig({
38
38
  displayName: "MetricCardstyles__MetricValue",
39
39
  componentId: "sc-1g748a8-7"
40
- })(["color:", ";font-size:32px;line-height:100%;padding-bottom:2px;align-items:center;cursor:pointer;font-weight:500;justify-content:start;"], (props) => props.theme.palette["grey-800"]);
40
+ })(["color:var(--ds-color-text-base-default);font-size:32px;line-height:100%;padding-bottom:2px;align-items:center;cursor:pointer;font-weight:500;justify-content:start;"]);
41
41
  const MetricHeaderBar = /* @__PURE__ */ styled.div.withConfig({
42
42
  displayName: "MetricCardstyles__MetricHeaderBar",
43
43
  componentId: "sc-1g748a8-8"
@@ -49,7 +49,7 @@ const TitleWrapper = /* @__PURE__ */ styled.div.withConfig({
49
49
  const IconWrapper = /* @__PURE__ */ styled.span.withConfig({
50
50
  displayName: "MetricCardstyles__IconWrapper",
51
51
  componentId: "sc-1g748a8-10"
52
- })(["display:inline-block;color:", ";cursor:pointer;"], (props) => props.theme.palette["grey-400"]);
52
+ })(["display:inline-block;color:var(--ds-form-label-icon-color);cursor:pointer;"]);
53
53
  const HeaderRightSide = /* @__PURE__ */ styled.div.withConfig({
54
54
  displayName: "MetricCardstyles__HeaderRightSide",
55
55
  componentId: "sc-1g748a8-11"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-metric-card",
3
- "version": "2.0.12",
3
+ "version": "2.1.0",
4
4
  "description": "MetricCard UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,14 +42,14 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-copy-icon": "^2.0.11",
46
- "@synerise/ds-icon": "^2.2.3",
47
- "@synerise/ds-inline-alert": "^2.0.8",
48
- "@synerise/ds-panel": "^2.0.12",
49
- "@synerise/ds-skeleton": "^2.0.11",
50
- "@synerise/ds-tooltip": "^2.0.11",
51
- "@synerise/ds-typography": "^2.0.11",
52
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-copy-icon": "^2.1.0",
46
+ "@synerise/ds-icon": "^2.3.0",
47
+ "@synerise/ds-inline-alert": "^2.1.0",
48
+ "@synerise/ds-panel": "^2.1.0",
49
+ "@synerise/ds-skeleton": "^2.1.0",
50
+ "@synerise/ds-tooltip": "^2.1.0",
51
+ "@synerise/ds-typography": "^2.1.0",
52
+ "@synerise/ds-utils": "^2.3.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "vitest": "4"
@@ -60,5 +60,5 @@
60
60
  "react-intl": ">=3.12.0 <= 6.8",
61
61
  "styled-components": "^5.3.3"
62
62
  },
63
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
63
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
64
64
  }