@awc-ui/react 1.0.0-beta.8 → 1.0.0-beta.9
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 +7 -5
- package/package.json +25 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @awc-ui/react
|
|
1
|
+
# React Web Components and Next.js SSR — @awc-ui/react
|
|
2
2
|
|
|
3
|
-
React
|
|
3
|
+
Typed React 18+ components for [AWC UI](https://www.npmjs.com/package/@awc-ui/core) — accessible Material Design 3 Web Components with a dedicated Next.js and React SSR entry.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ Requires React 18+.
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```tsx
|
|
16
|
-
import { MdButton } from
|
|
16
|
+
import { MdButton } from "@awc-ui/react";
|
|
17
17
|
|
|
18
18
|
export function Demo() {
|
|
19
19
|
return <MdButton variant="filled">Click me</MdButton>;
|
|
@@ -27,7 +27,7 @@ The components register their underlying custom elements automatically on first
|
|
|
27
27
|
For styled markup on first paint (Next.js App Router and other SSR setups), import the same components from the server entry — they render each component's Declarative Shadow DOM on the server and hydrate on the client:
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
|
-
import { MdButton } from
|
|
30
|
+
import { MdButton } from "@awc-ui/react/server";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Smaller bundles
|
|
@@ -64,4 +64,6 @@ Caveats: no React DevTools/concurrent features, and libraries that touch React i
|
|
|
64
64
|
|
|
65
65
|
## Documentation
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
[React and Next.js SSR guide](https://awc-ui.dev/frameworks/react/) · [All component docs](https://awc-ui.dev/components/)
|
|
68
|
+
|
|
69
|
+
Component manuals and AI-readable documentation also ship with [`@awc-ui/core`](https://www.npmjs.com/package/@awc-ui/core).
|
package/package.json
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awc-ui/react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "React
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
|
+
"description": "Typed React 18+ components for accessible Material Design 3 Web Components, with Next.js SSR, server rendering, and tree-shaking",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
|
+
"react-component",
|
|
7
8
|
"react-components",
|
|
9
|
+
"components",
|
|
8
10
|
"material-design",
|
|
9
11
|
"material-design-3",
|
|
10
12
|
"md3",
|
|
11
13
|
"ui-components",
|
|
12
14
|
"component-library",
|
|
13
15
|
"web-components",
|
|
14
|
-
"design-system"
|
|
16
|
+
"design-system",
|
|
17
|
+
"material-3",
|
|
18
|
+
"react-ui",
|
|
19
|
+
"custom-elements",
|
|
20
|
+
"typescript",
|
|
21
|
+
"accessibility",
|
|
22
|
+
"wcag",
|
|
23
|
+
"ssr",
|
|
24
|
+
"ui-library",
|
|
25
|
+
"react-ui-library",
|
|
26
|
+
"react-ui-components",
|
|
27
|
+
"react-component-library",
|
|
28
|
+
"web-component",
|
|
29
|
+
"react-web-components",
|
|
30
|
+
"react-ssr",
|
|
31
|
+
"server-side-rendering",
|
|
32
|
+
"nextjs",
|
|
33
|
+
"next-js",
|
|
34
|
+
"nextjs-components"
|
|
15
35
|
],
|
|
16
36
|
"publishConfig": {
|
|
17
37
|
"access": "public"
|
|
@@ -58,7 +78,7 @@
|
|
|
58
78
|
"peerDependencies": {
|
|
59
79
|
"react": ">=18",
|
|
60
80
|
"react-dom": ">=18",
|
|
61
|
-
"@awc-ui/core": "1.0.0-beta.
|
|
81
|
+
"@awc-ui/core": "1.0.0-beta.9"
|
|
62
82
|
},
|
|
63
83
|
"devDependencies": {
|
|
64
84
|
"@size-limit/preset-small-lib": "^11.1.6",
|
|
@@ -67,7 +87,7 @@
|
|
|
67
87
|
"@types/react-dom": "~18.2.25",
|
|
68
88
|
"size-limit": "^11.1.6",
|
|
69
89
|
"typescript": "^5.4.0",
|
|
70
|
-
"@awc-ui/core": "1.0.0-beta.
|
|
90
|
+
"@awc-ui/core": "1.0.0-beta.9"
|
|
71
91
|
},
|
|
72
92
|
"license": "MIT",
|
|
73
93
|
"author": "AWC UI",
|