@roadlittledawn/docs-design-system-react 0.13.0 → 0.14.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/USAGE.md +2 -0
- package/dist/components/CollapserGroup.js +1 -1
- package/package.json +7 -7
package/USAGE.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Hand-maintained reference for AI tools and human contributors. Covers when to use each component, when not to, how to choose between similar components, and full prop coverage.
|
|
4
4
|
|
|
5
|
+
> **Requires React 19** (`react` and `react-dom` ≥ 19.0.0).
|
|
6
|
+
|
|
5
7
|
```
|
|
6
8
|
// CLAUDE.md or equivalent:
|
|
7
9
|
// Component usage guide: packages/react/USAGE.md (or https://raw.githubusercontent.com/roadlittledawn/docs-design-system/main/packages/react/USAGE.md)
|
|
@@ -49,7 +49,7 @@ export var CollapserGroup = function (_a) {
|
|
|
49
49
|
return child;
|
|
50
50
|
// Only inject props if child is a Collapser component
|
|
51
51
|
if (((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'Collapser') {
|
|
52
|
-
return cloneElement(child, __assign(
|
|
52
|
+
return cloneElement(child, __assign({ open: openIndexes.includes(index), onToggle: function () { return handleToggle(index); } }, (numbered ? { stepNumber: index + 1 } : {})));
|
|
53
53
|
}
|
|
54
54
|
return child;
|
|
55
55
|
}) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roadlittledawn/docs-design-system-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React components for documentation design system",
|
|
6
6
|
"repository": {
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"prismjs": "^1.29.0",
|
|
28
|
-
"react": "^
|
|
29
|
-
"react-dom": "^
|
|
28
|
+
"react": "^19.0.0",
|
|
29
|
+
"react-dom": "^19.0.0",
|
|
30
30
|
"slug": "^9.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/react": "^
|
|
34
|
-
"@types/react-dom": "^
|
|
33
|
+
"@types/react": "^19.0.0",
|
|
34
|
+
"@types/react-dom": "^19.0.0",
|
|
35
35
|
"@types/slug": "^5.0.9",
|
|
36
36
|
"postcss": "^8.4.0",
|
|
37
37
|
"postcss-cli": "^11.0.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react": "^
|
|
44
|
-
"react-dom": "^
|
|
43
|
+
"react": "^19.0.0",
|
|
44
|
+
"react-dom": "^19.0.0"
|
|
45
45
|
},
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|