@synerise/ds-stepper 2.0.10 → 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,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.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@2.0.11...@synerise/ds-stepper@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.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@2.0.10...@synerise/ds-stepper@2.0.11) (2026-10-28)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-stepper
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-stepper@2.0.9...@synerise/ds-stepper@2.0.10) (2026-10-26)
7
26
 
8
27
 
package/CLAUDE.md CHANGED
@@ -76,7 +76,7 @@ import Stepper from '@synerise/ds-stepper';
76
76
 
77
77
  ## Styling
78
78
 
79
- `Stepper.styles.ts` and `Step/Step.styles.ts`. All colours come from `theme.palette`. Status colours: `validated` → `red-600`, `warning` → `yellow-600`, `done` → `green-600`, `active` → `grey-700`. Priority order (highest wins visually): `validated > warning > done > active`.
79
+ `Stepper.styles.ts` and `Step/Step.styles.ts`. All colours come from `var(--ds-stepper-step-*)` tokens. Status colours use the `circle-border-<state>` / `circle-content-<state>` / `label-<state>` tokens for `validated` (`-validation`), `warning`, `done` and `active`. Priority order (highest wins visually): `validated > warning > done > active`.
80
80
 
81
81
  `size='small'` with `orientation='horizontal'`: step labels have `max-width: 0; opacity: 0` (hidden) except for the active step, which reveals to `max-width: 100px`. Useful for compact nav bars.
82
82
 
package/dist/Step/Step.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useEffect } from "react";
3
3
  import AnimateHeight from "react-animate-height";
4
- import { theme } from "@synerise/ds-core";
5
4
  import Icon, { CheckS, WarningFillS } from "@synerise/ds-icon";
6
5
  import Tooltip from "@synerise/ds-tooltip";
7
6
  import { ORIENTATIONS } from "../Stepper.types.js";
@@ -33,10 +32,10 @@ const Step = ({
33
32
  }, [active, wasActive]);
34
33
  return /* @__PURE__ */ jsxs(Step$1, { className: "ds-step", active: Boolean(active), wasActive, done: Boolean(done), warning: Boolean(warning), validated: Boolean(validated), hasChildren: Boolean(children), size, orientation, clickable: Boolean(onClick), children: [
35
34
  /* @__PURE__ */ jsxs(StepWrapper, { onClick: handleClick, children: [
36
- /* @__PURE__ */ jsx(Tooltip, { trigger: ["hover"], title: label, children: /* @__PURE__ */ jsx(StepPrefix, { noMargin: !label, children: done && !validated ? /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(CheckS, {}), color: warning ? theme.palette["yellow-600"] : theme.palette["green-600"] }) : /* @__PURE__ */ jsx(StepNumber, { children: stepNumber }) }) }),
35
+ /* @__PURE__ */ jsx(Tooltip, { trigger: ["hover"], title: label, children: /* @__PURE__ */ jsx(StepPrefix, { noMargin: !label, children: done && !validated ? /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(CheckS, {}), color: warning ? "var(--ds-stepper-step-circle-content-warning)" : "var(--ds-stepper-step-circle-content-done)" }) : /* @__PURE__ */ jsx(StepNumber, { children: stepNumber }) }) }),
37
36
  /* @__PURE__ */ jsxs(StepName, { "data-label": label, children: [
38
37
  /* @__PURE__ */ jsx(StepLabel, { children: label }),
39
- tooltip && active && /* @__PURE__ */ jsx(Tooltip, { trigger: ["hover"], title: tooltip, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(WarningFillS, {}), color: theme.palette["yellow-600"] }) })
38
+ tooltip && active && /* @__PURE__ */ jsx(Tooltip, { trigger: ["hover"], title: tooltip, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(WarningFillS, {}), color: "var(--ds-stepper-step-label-warning)" }) })
40
39
  ] })
41
40
  ] }),
42
41
  /* @__PURE__ */ jsx(StepContent, { children: /* @__PURE__ */ jsx(AnimateHeight, { className: "ds-step-content", duration: 200, height: active ? "auto" : 0, children }) })
@@ -3,11 +3,11 @@ import { ORIENTATIONS } from "../Stepper.types.js";
3
3
  const StepPrefix = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "Stepstyles__StepPrefix",
5
5
  componentId: "sc-1sayddf-0"
6
- })(["width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;border-width:1px;border-style:solid;border-color:", ";margin-right:", ";text-align:center;transition:border-color 0.2s ease-in-out,margin-right 0.2s ease-in-out;"], (props) => props.theme.palette["grey-400"], (props) => props.noMargin ? "0" : "8px");
6
+ })(["width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;border-width:1px;border-style:solid;border-color:var(--ds-stepper-step-circle-border-default);margin-right:", ";text-align:center;transition:border-color 0.2s ease-in-out,margin-right 0.2s ease-in-out;"], (props) => props.noMargin ? "0" : "8px");
7
7
  const StepNumber = /* @__PURE__ */ styled.span.withConfig({
8
8
  displayName: "Stepstyles__StepNumber",
9
9
  componentId: "sc-1sayddf-1"
10
- })(["font-size:13px;display:inline-flex;text-align:center;width:10px;position:absolute;line-height:24px;justify-content:center;align-items:center;transition:color 0.2s ease-in-out;color:", ";"], (props) => props.theme.palette["grey-400"]);
10
+ })(["font-size:13px;display:inline-flex;text-align:center;width:10px;position:absolute;line-height:24px;justify-content:center;align-items:center;transition:color 0.2s ease-in-out;color:var(--ds-stepper-step-circle-content-default);"]);
11
11
  const StepName = /* @__PURE__ */ styled.span.withConfig({
12
12
  displayName: "Stepstyles__StepName",
13
13
  componentId: "sc-1sayddf-2"
@@ -15,7 +15,7 @@ const StepName = /* @__PURE__ */ styled.span.withConfig({
15
15
  const StepLabel = /* @__PURE__ */ styled.span.withConfig({
16
16
  displayName: "Stepstyles__StepLabel",
17
17
  componentId: "sc-1sayddf-3"
18
- })(["transition:color 0.2s ease-in-out;color:", ";overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;width:100%;"], (props) => props.theme.palette["grey-400"]);
18
+ })(["transition:color 0.2s ease-in-out;color:var(--ds-stepper-step-label-default);overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;width:100%;"]);
19
19
  const StepWrapper = /* @__PURE__ */ styled.div.withConfig({
20
20
  displayName: "Stepstyles__StepWrapper",
21
21
  componentId: "sc-1sayddf-4"
@@ -23,7 +23,7 @@ const StepWrapper = /* @__PURE__ */ styled.div.withConfig({
23
23
  const StepContent = /* @__PURE__ */ styled.div.withConfig({
24
24
  displayName: "Stepstyles__StepContent",
25
25
  componentId: "sc-1sayddf-5"
26
- })(["display:flex;padding:0 0 0 20px;transition:padding 0.2s ease-in-out;min-height:16px;position:relative;margin-left:12px;outline:0;&&{border-left:1px solid ", ";}"], (props) => props.theme.palette["grey-400"]);
26
+ })(["display:flex;padding:0 0 0 20px;transition:padding 0.2s ease-in-out;min-height:16px;position:relative;margin-left:12px;outline:0;&&{border-left:1px solid var(--ds-stepper-step-separator-default);}"]);
27
27
  const Step = /* @__PURE__ */ styled.div.withConfig({
28
28
  displayName: "Stepstyles__Step",
29
29
  componentId: "sc-1sayddf-6"
@@ -50,18 +50,18 @@ const Step = /* @__PURE__ */ styled.div.withConfig({
50
50
  return false;
51
51
  }, (props) => {
52
52
  if (props.validated) {
53
- return css(["", "{border-color:", ";}", "", ",", "", "{color:", ";font-weight:400;}"], StepPrefix, props.theme.palette["red-600"], StepNumber, StepNumber, StepLabel, StepLabel, props.theme.palette["red-600"]);
53
+ return css(["", "{border-color:var(--ds-stepper-step-circle-border-validation);}", "", "{color:var(--ds-stepper-step-circle-content-validation);font-weight:400;}", "", "{color:var(--ds-stepper-step-label-validation);font-weight:400;}"], StepPrefix, StepNumber, StepNumber, StepLabel, StepLabel);
54
54
  }
55
55
  if (props.warning) {
56
- return css(["", "{border-color:", ";}", "", ",", "", "{color:", ";font-weight:400;}"], StepPrefix, props.theme.palette["yellow-600"], StepNumber, StepNumber, StepLabel, StepLabel, props.theme.palette["yellow-600"]);
56
+ return css(["", "{border-color:var(--ds-stepper-step-circle-border-warning);}", "", "{color:var(--ds-stepper-step-circle-content-warning);font-weight:400;}", "", "{color:var(--ds-stepper-step-label-warning);font-weight:400;}"], StepPrefix, StepNumber, StepNumber, StepLabel, StepLabel);
57
57
  }
58
58
  if (props.done) {
59
- return css(["", "{border-color:", ";}", ",", "{color:", ";font-weight:400;}"], StepPrefix, props.theme.palette["green-600"], StepNumber, StepLabel, props.theme.palette["green-600"]);
59
+ return css(["", "{border-color:var(--ds-stepper-step-circle-border-done);}", "{color:var(--ds-stepper-step-circle-content-done);font-weight:400;}", "{color:var(--ds-stepper-step-label-done);font-weight:400;}"], StepPrefix, StepNumber, StepLabel);
60
60
  }
61
61
  if (props.active) {
62
- return css(["", "{border-color:", ";}", "{color:", ";font-weight:500;}", "{&::before{border-color:", ";color:", ";visibility:visible;}", "{visibility:hidden;}}"], StepPrefix, props.theme.palette["grey-700"], StepNumber, props.theme.palette["grey-700"], StepName, props.theme.palette["grey-700"], props.theme.palette["grey-700"], StepLabel);
62
+ return css(["", "{border-color:var(--ds-stepper-step-circle-border-active);}", "{color:var(--ds-stepper-step-circle-content-active);font-weight:500;}", "{&::before{border-color:var(--ds-stepper-step-circle-border-active);color:var(--ds-stepper-step-label-active);visibility:visible;}", "{visibility:hidden;}}"], StepPrefix, StepNumber, StepName, StepLabel);
63
63
  }
64
- return props.clickable && css(["&:hover{", "{border-color:", ";}", ",", "{color:", ";font-weight:400;}}"], StepPrefix, props.theme.palette["grey-700"], StepNumber, StepLabel, props.theme.palette["grey-700"]);
64
+ return props.clickable && css(["&:hover{", "{border-color:var(--ds-stepper-step-circle-border-hover);}", "{color:var(--ds-stepper-step-circle-content-hover);font-weight:400;}", "{color:var(--ds-stepper-step-label-hover);font-weight:400;}}"], StepPrefix, StepNumber, StepLabel);
65
65
  }, StepContent, StepWrapper, (props) => props.clickable ? "pointer" : "default");
66
66
  export {
67
67
  Step,
@@ -8,7 +8,7 @@ const StepperWrapper = /* @__PURE__ */ styled.div.withConfig({
8
8
  const StepDivider = /* @__PURE__ */ styled.div.withConfig({
9
9
  displayName: "Stepperstyles__StepDivider",
10
10
  componentId: "sc-2yak4n-1"
11
- })(["display:flex;flex:1;margin:0 8px;max-width:48px;min-width:8px;height:24px;position:relative;&:after{position:absolute;top:12px;height:1px;width:100%;content:'';background-color:", ";}"], (props) => props.theme.palette["grey-400"]);
11
+ })(["display:flex;flex:1;margin:0 8px;max-width:48px;min-width:8px;height:24px;position:relative;&:after{position:absolute;top:12px;height:1px;width:100%;content:'';background-color:var(--ds-stepper-step-separator-default);}"]);
12
12
  export {
13
13
  StepDivider,
14
14
  StepperWrapper
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-stepper",
3
- "version": "2.0.10",
3
+ "version": "2.1.0",
4
4
  "description": "Stepper UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-icon": "^2.2.3",
46
- "@synerise/ds-tooltip": "^2.0.10",
45
+ "@synerise/ds-icon": "^2.3.0",
46
+ "@synerise/ds-tooltip": "^2.1.0",
47
47
  "react-animate-height": "^2.0.23"
48
48
  },
49
49
  "devDependencies": {
@@ -54,5 +54,5 @@
54
54
  "react": ">=16.9.0 <= 18.3.1",
55
55
  "styled-components": "^5.3.3"
56
56
  },
57
- "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
57
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
58
58
  }