skygraph-react 0.5.2 → 0.6.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 +58 -36
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,36 +1,58 @@
1
- # skygraph-react
2
-
3
- SkyGraph for React — UI components, hooks and the matching CSS bundle in
4
- a single package.
5
-
6
- ```bash
7
- npm install skygraph-react
8
- ```
9
-
10
- ```tsx
11
- import { Form, Field, SubmitButton } from 'skygraph-react'
12
-
13
- function App() {
14
- return (
15
- <Form defaultValues={{ email: '' }}>
16
- <Field name="email" label="Email" />
17
- <SubmitButton>Submit</SubmitButton>
18
- </Form>
19
- )
20
- }
21
- ```
22
-
23
- That's it — no extra `@skygraph/styles` import, no separate `@skygraph/core`
24
- install. The styles are pulled in automatically as a side effect of
25
- importing from `skygraph-react`.
26
-
27
- ## What's inside
28
-
29
- `skygraph-react` re-exports the full public API of `@skygraph/react`
30
- and ships the same `@skygraph/core` runtime plus the shared CSS. Existing
31
- imports from `@skygraph/core` / `@skygraph/react` / `@skygraph/styles`
32
- keep working — this package is purely additive.
33
-
34
- ## License
35
-
36
- MIT
1
+ # skygraph-react
2
+
3
+ [![npm](https://img.shields.io/npm/v/skygraph-react.svg)](https://www.npmjs.com/package/skygraph-react)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/RuslanSinkevich/skygraph-public/blob/master/LICENSE)
5
+
6
+ UI components for React — tables, forms, charts, calendars, diagrams and 78+ more. One install, styles included.
7
+
8
+ ```bash
9
+ npm install skygraph-react
10
+ ```
11
+
12
+ ```tsx
13
+ import { Form, Field, SubmitButton } from 'skygraph-react'
14
+
15
+ function App() {
16
+ return (
17
+ <Form defaultValues={{ email: '' }}>
18
+ <Field name="email" label="Email" rules={[{ type: 'email' }]} />
19
+ <SubmitButton>Submit</SubmitButton>
20
+ </Form>
21
+ )
22
+ }
23
+ ```
24
+
25
+ That's it. No extra `@skygraph/styles` import, no separate `@skygraph/core` install. The styles are pulled in automatically as a side effect of importing from `skygraph-react`.
26
+
27
+ ## What's inside
28
+
29
+ `skygraph-react` re-exports the full public API of [`@skygraph/react`](https://www.npmjs.com/package/@skygraph/react) and ships [`@skygraph/core`](https://www.npmjs.com/package/@skygraph/core) and [`@skygraph/styles`](https://www.npmjs.com/package/@skygraph/styles) as transitive dependencies. Existing imports from `@skygraph/*` keep working — this package is purely additive.
30
+
31
+ ## Components (78+)
32
+
33
+ Button, Input, Select, DatePicker, Table, DataGrid, Tree, Transfer, Modal, Drawer, Notification, Tabs, Form, FormList, SchemaForm, SchemaFormEditor, Diagram, LineChart, BarChart, AreaChart, PieChart, Dashboard, Gantt, EventTimeline, ResourceCalendar — and the rest of an AntD-shaped surface.
34
+
35
+ ## Theming
36
+
37
+ CSS Variables, no CSS-in-JS:
38
+
39
+ ```css
40
+ :root {
41
+ --sg-color-primary: #7c3aed;
42
+ --sg-border-radius: 8px;
43
+ }
44
+ ```
45
+
46
+ Dark mode via one attribute:
47
+
48
+ ```html
49
+ <html data-sg-theme="dark"> ... </html>
50
+ ```
51
+
52
+ ## Repository
53
+
54
+ [github.com/RuslanSinkevich/skygraph-public](https://github.com/RuslanSinkevich/skygraph-public) · [docs](https://skygraph.ruslansinkevich.ru/) · [Vue version](https://www.npmjs.com/package/skygraph-vue)
55
+
56
+ ## License
57
+
58
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skygraph-react",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "SkyGraph for React — components, hooks and styles in a single install",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,9 +48,9 @@
48
48
  "skygraph"
49
49
  ],
50
50
  "dependencies": {
51
- "@skygraph/react": "0.4.0",
52
- "@skygraph/core": "0.4.0",
53
- "@skygraph/styles": "0.1.0"
51
+ "@skygraph/core": "0.5.0",
52
+ "@skygraph/react": "0.5.0",
53
+ "@skygraph/styles": "0.2.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": ">=18.0.0",