@tensor_1/react 2.0.0 → 2.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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @tensor_1/react
2
+
3
+ Thin React wrappers over the UIx v2 CSS component library — every component is driven by the [`@tensor_1/tokens`](https://www.npmjs.com/package/@tensor_1/tokens) `--uix-*` contract.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm i @tensor_1/react @tensor_1/tokens
9
+ ```
10
+ Peer deps: `react` / `react-dom` (`^18` or `^19`).
11
+
12
+ ## Use
13
+
14
+ Load the token CSS once (see [`@tensor_1/tokens`](https://www.npmjs.com/package/@tensor_1/tokens)), then import components:
15
+
16
+ ```tsx
17
+ import { Button, Card } from "@tensor_1/react";
18
+
19
+ export default function Example() {
20
+ return (
21
+ <Card>
22
+ <Button>Save</Button>
23
+ </Card>
24
+ );
25
+ }
26
+ ```
27
+
28
+ Charts (ECharts) live behind a separate entry so they stay out of the main bundle:
29
+
30
+ ```tsx
31
+ import { Chart } from "@tensor_1/react/chart";
32
+ ```
33
+
34
+ Ships **ESM + CJS + types**, with per-file `"use client"` so it's safe under React Server Components. Part of the **[UIx v2 styleguide](https://github.com/COx-ORG-H/UIx)**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",