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.
- package/README.md +58 -36
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,36 +1,58 @@
|
|
|
1
|
-
# skygraph-react
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
importing from `skygraph-react`.
|
|
26
|
-
|
|
27
|
-
## What's inside
|
|
28
|
-
|
|
29
|
-
`skygraph-react` re-exports the full public API of `@skygraph/react`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# skygraph-react
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/skygraph-react)
|
|
4
|
+
[](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.
|
|
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/
|
|
52
|
-
"@skygraph/
|
|
53
|
-
"@skygraph/styles": "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",
|