skygraph-react 0.6.3 → 0.6.6
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 +61 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,58 +1,61 @@
|
|
|
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
|
|
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
|
|
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
|
-
##
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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 more. One install, styles included. The same DOM and `.sg-*` CSS contract is shared with the Vue adapter, so the look stays identical across frameworks.
|
|
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
|
|
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
|
+
## Links
|
|
53
|
+
|
|
54
|
+
- Docs & live demos — [skygraph.ruslansinkevich.ru](https://skygraph.ruslansinkevich.ru/)
|
|
55
|
+
- Source — [github.com/RuslanSinkevich/skygraph-public](https://github.com/RuslanSinkevich/skygraph-public)
|
|
56
|
+
- Vue version — [skygraph-vue](https://www.npmjs.com/package/skygraph-vue)
|
|
57
|
+
- Author — [ruslansinkevich.ru](https://ruslansinkevich.ru/)
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
MIT
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Side-effect import: pulls the shared CSS into the consumer's bundle so\n// `npm install skygraph-react` is the only step required to render styled\n// components. The explicit `.css` suffix matters — without it, Vite's\n// dev-mode esbuild pre-bundle drops the side-effect import as \"unused\",\n// which leaves consumers staring at unstyled HTML on `npm run dev`.\n// Re-exports below mirror the entire public API of `@skygraph/react`,\n// so existing imports from `@skygraph/react` keep working unchanged.\nimport '@skygraph/styles/index.css'\n\nexport * from '@skygraph/react'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAOA,oBAAO;AAEP,wBAAc,4BATd;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Side-effect import: pulls the shared CSS into the consumer's bundle so\r\n// `npm install skygraph-react` is the only step required to render styled\r\n// components. The explicit `.css` suffix matters — without it, Vite's\r\n// dev-mode esbuild pre-bundle drops the side-effect import as \"unused\",\r\n// which leaves consumers staring at unstyled HTML on `npm run dev`.\r\n// Re-exports below mirror the entire public API of `@skygraph/react`,\r\n// so existing imports from `@skygraph/react` keep working unchanged.\r\nimport '@skygraph/styles/index.css'\r\n\r\nexport * from '@skygraph/react'\r\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAOA,oBAAO;AAEP,wBAAc,4BATd;","names":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Side-effect import: pulls the shared CSS into the consumer's bundle so\n// `npm install skygraph-react` is the only step required to render styled\n// components. The explicit `.css` suffix matters — without it, Vite's\n// dev-mode esbuild pre-bundle drops the side-effect import as \"unused\",\n// which leaves consumers staring at unstyled HTML on `npm run dev`.\n// Re-exports below mirror the entire public API of `@skygraph/react`,\n// so existing imports from `@skygraph/react` keep working unchanged.\nimport '@skygraph/styles/index.css'\n\nexport * from '@skygraph/react'\n"],"mappings":";AAOA,OAAO;AAEP,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Side-effect import: pulls the shared CSS into the consumer's bundle so\r\n// `npm install skygraph-react` is the only step required to render styled\r\n// components. The explicit `.css` suffix matters — without it, Vite's\r\n// dev-mode esbuild pre-bundle drops the side-effect import as \"unused\",\r\n// which leaves consumers staring at unstyled HTML on `npm run dev`.\r\n// Re-exports below mirror the entire public API of `@skygraph/react`,\r\n// so existing imports from `@skygraph/react` keep working unchanged.\r\nimport '@skygraph/styles/index.css'\r\n\r\nexport * from '@skygraph/react'\r\n"],"mappings":";AAOA,OAAO;AAEP,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skygraph-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
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/core": "0.
|
|
52
|
-
"@skygraph/
|
|
53
|
-
"@skygraph/
|
|
51
|
+
"@skygraph/core": "0.6.6",
|
|
52
|
+
"@skygraph/react": "0.6.6",
|
|
53
|
+
"@skygraph/styles": "0.6.6"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": ">=18.0.0",
|