@molecule/app-status-timeline-react 4.0.0 → 4.0.2
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/README.md +2 -2
- package/dist/StatusTimeline.js +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-16T01:07:49.071Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-status-timeline-react
|
|
@@ -111,7 +111,7 @@ function StatusTimeline({
|
|
|
111
111
|
Peer dependencies:
|
|
112
112
|
|
|
113
113
|
- `@molecule/app-react` ^4.0.0
|
|
114
|
-
- `@molecule/app-ui` ^1.
|
|
114
|
+
- `@molecule/app-ui` ^1.3.11
|
|
115
115
|
- `react` ^18.0.0 || ^19.0.0
|
|
116
116
|
|
|
117
117
|
### Runtime Dependencies
|
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.2",
|
|
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",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@molecule/app-react": "^4.0.0",
|
|
38
|
-
"@molecule/app-ui": "^1.
|
|
38
|
+
"@molecule/app-ui": "^1.3.11",
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@molecule/app-react": "4.
|
|
43
|
-
"@molecule/app-ui": "1.
|
|
42
|
+
"@molecule/app-react": "4.7.1",
|
|
43
|
+
"@molecule/app-ui": "1.4.0",
|
|
44
44
|
"@types/node": "26.6.5",
|
|
45
45
|
"@types/react": "19.3.0",
|
|
46
46
|
"@types/react-dom": "19.3.0",
|