skygraph-vue 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-vue
2
-
3
- SkyGraph for Vue 3 — components, composables and the matching CSS bundle
4
- in a single package.
5
-
6
- ```bash
7
- npm install skygraph-vue
8
- ```
9
-
10
- ```vue
11
- <script setup lang="ts">
12
- import { SgForm, SgField, SgSubmitButton } from 'skygraph-vue'
13
- </script>
14
-
15
- <template>
16
- <SgForm :default-values="{ email: '' }">
17
- <SgField name="email" label="Email" />
18
- <SgSubmitButton>Submit</SgSubmitButton>
19
- </SgForm>
20
- </template>
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-vue`.
26
-
27
- ## What's inside
28
-
29
- `skygraph-vue` re-exports the full public API of `@skygraph/vue` and
30
- ships the same `@skygraph/core` runtime plus the shared CSS. Existing
31
- imports from `@skygraph/core` / `@skygraph/vue` / `@skygraph/styles`
32
- keep working — this package is purely additive.
33
-
34
- ## License
35
-
36
- MIT
1
+ # skygraph-vue
2
+
3
+ [![npm](https://img.shields.io/npm/v/skygraph-vue.svg)](https://www.npmjs.com/package/skygraph-vue)
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 Vue 3 — tables, forms, charts, calendars, diagrams and 66+ more. One install, styles included.
7
+
8
+ ```bash
9
+ npm install skygraph-vue
10
+ ```
11
+
12
+ ```vue
13
+ <script setup lang="ts">
14
+ import { SgForm, SgField, SgSubmitButton } from 'skygraph-vue'
15
+ </script>
16
+
17
+ <template>
18
+ <SgForm :default-values="{ email: '' }">
19
+ <SgField name="email" label="Email" />
20
+ <SgSubmitButton>Submit</SgSubmitButton>
21
+ </SgForm>
22
+ </template>
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-vue`.
26
+
27
+ ## What's inside
28
+
29
+ `skygraph-vue` re-exports the full public API of [`@skygraph/vue`](https://www.npmjs.com/package/@skygraph/vue) 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 (66+)
32
+
33
+ SgButton, SgInput, SgSelect, SgDatePicker, SgTable, SgDataGrid, SgTree, SgList, SgModal, SgDrawer, SgNotification, SgTabs, SgForm, SgFormList, SgSchemaForm, SgSchemaFormEditor, SgDiagram, SgLineChart, SgBarChart, SgAreaChart, SgPieChart, SgDashboard, SgGantt, SgEventTimeline, SgResourceCalendar — and the rest of an AntD-shaped surface with the `Sg*` prefix.
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/) · [React version](https://www.npmjs.com/package/skygraph-react)
55
+
56
+ ## License
57
+
58
+ MIT
package/dist/index.cjs CHANGED
@@ -1,2 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@skygraph/styles");const t=require("@skygraph/vue");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
2
- //# sourceMappingURL=index.cjs.map
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/index.css");
21
+ __reExport(src_exports, require("@skygraph/vue"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("@skygraph/vue")
25
+ });
26
+ //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
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-vue` 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/vue`,\n// so existing imports from `@skygraph/vue` keep working unchanged.\nimport '@skygraph/styles/index.css'\n\nexport * from '@skygraph/vue'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAOA,oBAAO;AAEP,wBAAc,0BATd;","names":[]}
@@ -0,0 +1 @@
1
+ export * from '@skygraph/vue';
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from '@skygraph/vue';
2
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
- import "@skygraph/styles";
1
+ // src/index.ts
2
+ import "@skygraph/styles/index.css";
2
3
  export * from "@skygraph/vue";
3
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
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-vue` 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/vue`,\n// so existing imports from `@skygraph/vue` keep working unchanged.\nimport '@skygraph/styles/index.css'\n\nexport * from '@skygraph/vue'\n"],"mappings":";AAOA,OAAO;AAEP,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skygraph-vue",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "SkyGraph for Vue 3 — components, composables and styles in a single install",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,27 +49,24 @@
49
49
  "skygraph"
50
50
  ],
51
51
  "dependencies": {
52
- "@skygraph/core": "0.4.0",
53
- "@skygraph/styles": "0.1.0",
54
- "@skygraph/vue": "0.5.0"
52
+ "@skygraph/core": "0.5.0",
53
+ "@skygraph/styles": "0.2.0",
54
+ "@skygraph/vue": "0.6.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "vue": "^3.4.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@vitejs/plugin-vue": "^5.0.0",
61
60
  "rimraf": "^5.0.0",
61
+ "tsup": "^8.0.0",
62
62
  "typescript": "^5.4.0",
63
- "vite": "^5.4.0",
64
- "vite-plugin-dts": "^4.0.0",
65
63
  "vitest": "^2.0.0",
66
- "vue": "^3.4.0",
67
- "vue-tsc": "^2.0.0"
64
+ "vue": "^3.4.0"
68
65
  },
69
66
  "scripts": {
70
- "build": "vite build",
67
+ "build": "tsup",
71
68
  "test": "vitest run --passWithNoTests",
72
- "typecheck": "vue-tsc --noEmit",
69
+ "typecheck": "tsc --noEmit",
73
70
  "clean": "rimraf dist"
74
71
  }
75
72
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,kBAAkB,CAAA;AAEzB,cAAc,eAAe,CAAA"}