@roadlittledawn/docs-design-system-react 0.6.0 → 0.6.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/README.md +4 -0
- package/dist/components/CodeBlock.js +1 -0
- package/dist/components/Collapser.js +1 -0
- package/dist/components/CollapserGroup.js +1 -0
- package/dist/components/Popover.js +1 -0
- package/dist/components/Tabs.js +1 -0
- package/dist/hooks/useKeyPress.js +1 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@ Full component documentation with live examples, usage guidelines, and API docum
|
|
|
35
35
|
|
|
36
36
|
**[View Component Documentation →](https://docs-design-system-storybook.netlify.app/?path=/docs/components-button--docs)**
|
|
37
37
|
|
|
38
|
+
## Next.js / React Server Components
|
|
39
|
+
|
|
40
|
+
Interactive components (`Collapser`, `CollapserGroup`, `CodeBlock`, `Tabs`, `Popover`) are pre-marked with `'use client'`, so they work in Next.js App Router without any extra setup. Stateless components (`Button`, `Callout`, `Card`, `CardGrid`, `Heading`, `Link`, `List`, `Typography`) have no directive and are fully usable as Server Components.
|
|
41
|
+
|
|
38
42
|
## Dark Mode
|
|
39
43
|
|
|
40
44
|
The package includes built-in dark mode support. All components use transparent backgrounds (unless background color specified via props) in dark mode so they don't clash with your site's own dark theme.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/components/Tabs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roadlittledawn/docs-design-system-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React components for documentation design system",
|
|
6
6
|
"repository": {
|
|
@@ -37,9 +37,10 @@
|
|
|
37
37
|
"postcss-import": "^16.0.0",
|
|
38
38
|
"typescript": "^5.0.0"
|
|
39
39
|
},
|
|
40
|
+
"sideEffects": false,
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"react": "^18.0.0",
|
|
42
|
-
"react-dom": "^18.0.0"
|
|
42
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
43
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
43
44
|
},
|
|
44
45
|
"exports": {
|
|
45
46
|
".": {
|