@molecule/app-status-timeline-react 4.0.2 → 4.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/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-16T01:07:49.071Z
6
+ Generated: 2026-11-25T00:25:48.175Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-status-timeline-react
@@ -42,7 +42,7 @@ import { StatusTimeline } from '@molecule/app-status-timeline-react'
42
42
  ## Installation
43
43
 
44
44
  ```bash
45
- npm install @molecule/app-status-timeline-react @molecule/app-react @molecule/app-ui react
45
+ npm install @molecule/app-status-timeline-react @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
46
46
  npm install -D @types/react
47
47
  ```
48
48
 
@@ -112,12 +112,14 @@ Peer dependencies:
112
112
 
113
113
  - `@molecule/app-react` ^4.0.0
114
114
  - `@molecule/app-ui` ^1.3.11
115
+ - `@molecule/app-ui-react` ^4.4.0
115
116
  - `react` ^18.0.0 || ^19.0.0
116
117
 
117
118
  ### Runtime Dependencies
118
119
 
119
120
  - `@molecule/app-react`
120
121
  - `@molecule/app-ui`
122
+ - `@molecule/app-ui-react`
121
123
  - `react`
122
124
 
123
125
  - Requires a wired ClassMap bond (`getClassMap()` throws before
@@ -1 +1 @@
1
- {"version":3,"file":"StatusTimeline.d.ts","sourceRoot":"","sources":["../src/StatusTimeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAA;IACX,4FAA4F;IAC5F,KAAK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,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getClassMap } from '@molecule/app-ui';
3
+ import { Box, Text } from '@molecule/app-ui-react/elements';
3
4
  /**
4
5
  * Vertical ordered-step status timeline.
5
6
  *
@@ -12,9 +13,9 @@ import { getClassMap } from '@molecule/app-ui';
12
13
  export function StatusTimeline({ steps, currentKey, ariaLabel, className, dataMolId, }) {
13
14
  const cm = getClassMap();
14
15
  const currentIdx = steps.findIndex((s) => s.key === currentKey);
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
+ return (_jsx(Box, { as: "ol", className: cm.cn(cm.statusTimelineList, cm.textSize('sm'), className), "aria-label": ariaLabel, "data-mol-id": dataMolId, children: steps.map((step, i) => {
16
17
  const reached = currentIdx >= 0 && i <= currentIdx;
17
18
  const isCurrent = i === currentIdx;
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
+ return (_jsxs(Box, { as: "li", className: cm.flex({ align: 'center', gap: 'sm' }), children: [_jsx(Box, { as: "span", className: cm.cn(cm.roundedFull, cm.statusTimelineDot, reached ? cm.bgPrimary : cm.statusTimelineDotIdle), "aria-hidden": true }), _jsx(Text, { as: "span", className: cm.cn(reached ? '' : cm.textMuted, isCurrent ? cm.fontWeight('semibold') : ''), children: step.label })] }, step.key));
19
20
  }) }));
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-status-timeline-react",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
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",
@@ -36,11 +36,13 @@
36
36
  "peerDependencies": {
37
37
  "@molecule/app-react": "^4.0.0",
38
38
  "@molecule/app-ui": "^1.3.11",
39
+ "@molecule/app-ui-react": "^4.4.0",
39
40
  "react": "^18.0.0 || ^19.0.0"
40
41
  },
41
42
  "devDependencies": {
42
- "@molecule/app-react": "4.7.1",
43
- "@molecule/app-ui": "1.4.0",
43
+ "@molecule/app-react": "4.17.0",
44
+ "@molecule/app-ui": "1.13.0",
45
+ "@molecule/app-ui-react": "4.11.0",
44
46
  "@types/node": "26.6.5",
45
47
  "@types/react": "19.3.0",
46
48
  "@types/react-dom": "19.3.0",