skygraph-react 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SkyGraph Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,36 @@
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
package/dist/index.cjs ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/index.ts
18
+ var src_exports = {};
19
+ module.exports = __toCommonJS(src_exports);
20
+ var import_styles = require("@skygraph/styles");
21
+ __reExport(src_exports, require("@skygraph/react"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("@skygraph/react")
25
+ });
26
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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":[]}
@@ -0,0 +1 @@
1
+ export * from '@skygraph/react';
@@ -0,0 +1 @@
1
+ export * from '@skygraph/react';
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ // src/index.ts
2
+ import "@skygraph/styles";
3
+ export * from "@skygraph/react";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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":[]}
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "skygraph-react",
3
+ "version": "0.5.0",
4
+ "description": "SkyGraph for React — components, hooks and styles in a single install",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./styles": {
17
+ "default": "@skygraph/styles"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "sideEffects": [
24
+ "./dist/index.js",
25
+ "./dist/index.cjs"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "author": "Ruslan Sinkevich",
31
+ "homepage": "https://skygraph.ruslansinkevich.ru/react/",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/RuslanSinkevich/skygraph-public.git",
35
+ "directory": "packages/skygraph-react"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/RuslanSinkevich/skygraph-public/issues"
39
+ },
40
+ "keywords": [
41
+ "react",
42
+ "ui",
43
+ "components",
44
+ "form",
45
+ "table",
46
+ "tree",
47
+ "design-system",
48
+ "skygraph"
49
+ ],
50
+ "dependencies": {
51
+ "@skygraph/core": "0.4.0",
52
+ "@skygraph/react": "0.4.0",
53
+ "@skygraph/styles": "0.1.0"
54
+ },
55
+ "peerDependencies": {
56
+ "react": ">=18.0.0",
57
+ "react-dom": ">=18.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@types/react": "^18.0.0",
61
+ "@types/react-dom": "^18.0.0",
62
+ "react": "^18.0.0",
63
+ "react-dom": "^18.0.0",
64
+ "rimraf": "^5.0.0",
65
+ "tsup": "^8.0.0",
66
+ "typescript": "^5.4.0",
67
+ "vitest": "^2.0.0"
68
+ },
69
+ "scripts": {
70
+ "build": "tsup",
71
+ "test": "vitest run --passWithNoTests",
72
+ "typecheck": "tsc --noEmit",
73
+ "clean": "rimraf dist"
74
+ }
75
+ }