@molecule/app-status-timeline-react 4.0.0 → 4.0.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/dist/StatusTimeline.js +2 -2
- package/package.json +3 -3
package/dist/StatusTimeline.js
CHANGED
|
@@ -12,9 +12,9 @@ import { getClassMap } from '@molecule/app-ui';
|
|
|
12
12
|
export function StatusTimeline({ steps, currentKey, ariaLabel, className, dataMolId, }) {
|
|
13
13
|
const cm = getClassMap();
|
|
14
14
|
const currentIdx = steps.findIndex((s) => s.key === currentKey);
|
|
15
|
-
return (_jsx("ol", { className: cm.cn(
|
|
15
|
+
return (_jsx("ol", { className: cm.cn(cm.statusTimelineList, cm.textSize('sm'), className), "aria-label": ariaLabel, "data-mol-id": dataMolId, children: steps.map((step, i) => {
|
|
16
16
|
const reached = currentIdx >= 0 && i <= currentIdx;
|
|
17
17
|
const isCurrent = i === currentIdx;
|
|
18
|
-
return (_jsxs("li", { className: cm.flex({ align: 'center', gap: 'sm' }), children: [_jsx("span", { className: cm.cn(cm.roundedFull,
|
|
18
|
+
return (_jsxs("li", { className: cm.flex({ align: 'center', gap: 'sm' }), children: [_jsx("span", { className: cm.cn(cm.roundedFull, cm.statusTimelineDot, reached ? cm.bgPrimary : cm.statusTimelineDotIdle), "aria-hidden": "true" }), _jsx("span", { className: cm.cn(reached ? '' : cm.textMuted, isCurrent ? cm.fontWeight('semibold') : ''), children: step.label })] }, step.key));
|
|
19
19
|
}) }));
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-status-timeline-react",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Vertical ordered-step status timeline: dots colored by reached state, current step bolded — generic for orders, workflows, kanban progressions",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-status-timeline-react",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@molecule/app-react": "4.
|
|
43
|
-
"@molecule/app-ui": "1.3.
|
|
42
|
+
"@molecule/app-react": "4.1.2",
|
|
43
|
+
"@molecule/app-ui": "1.3.11",
|
|
44
44
|
"@types/node": "26.6.5",
|
|
45
45
|
"@types/react": "19.3.0",
|
|
46
46
|
"@types/react-dom": "19.3.0",
|