skygraph-react 0.5.1 → 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 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/dist/index.cjs CHANGED
@@ -17,7 +17,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
17
17
  // src/index.ts
18
18
  var src_exports = {};
19
19
  module.exports = __toCommonJS(src_exports);
20
- var import_styles = require("@skygraph/styles");
20
+ var import_styles = require("@skygraph/styles/index.css");
21
21
  __reExport(src_exports, require("@skygraph/react"), module.exports);
22
22
  // Annotate the CommonJS export names for ESM import in node:
23
23
  0 && (module.exports = {
@@ -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. Re-exports below mirror the entire public API of\n// `@skygraph/react`, so existing imports from `@skygraph/react` keep\n// working unchanged.\nimport '@skygraph/styles'\n\nexport * from '@skygraph/react'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAKA,oBAAO;AAEP,wBAAc,4BAPd;","names":[]}
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":[]}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // src/index.ts
2
- import "@skygraph/styles";
2
+ import "@skygraph/styles/index.css";
3
3
  export * from "@skygraph/react";
4
4
  //# sourceMappingURL=index.js.map
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. Re-exports below mirror the entire public API of\n// `@skygraph/react`, so existing imports from `@skygraph/react` keep\n// working unchanged.\nimport '@skygraph/styles'\n\nexport * from '@skygraph/react'\n"],"mappings":";AAKA,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\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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skygraph-react",
3
- "version": "0.5.1",
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/core": "0.4.0",
52
- "@skygraph/react": "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",