@stealthscale/component-charts 0.1.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.
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };
@@ -0,0 +1,11 @@
1
+ //#region src/theme.d.ts
2
+ /**
3
+ * Registers every recipe in the package in the preset an application's style compiler installs.
4
+ *
5
+ * @remarks
6
+ * The list is written by hand. `theme.spec.ts` fails when a recipe file is missing from it, so no
7
+ * generator writes it.
8
+ */
9
+ declare const _default: import("@stealthscale/theme/authoring").Preset;
10
+ //#endregion
11
+ export { _default as default };
package/dist/theme.js ADDED
@@ -0,0 +1,22 @@
1
+ import { E as recipe$1, t as recipe, u as recipe$2 } from "./recipe-ZKqGhtpf.js";
2
+ import { definePreset } from "@stealthscale/theme/authoring";
3
+ //#region src/theme.ts
4
+ /**
5
+ * Registers every recipe in the package in the preset an application's style compiler installs.
6
+ *
7
+ * @remarks
8
+ * The list is written by hand. `theme.spec.ts` fails when a recipe file is missing from it, so no
9
+ * generator writes it.
10
+ */
11
+ var theme_default = definePreset({
12
+ name: "@stealthscale/component-charts",
13
+ theme: { extend: {
14
+ recipes: { spark: recipe },
15
+ slotRecipes: {
16
+ chart: recipe$1,
17
+ heat: recipe$2
18
+ }
19
+ } }
20
+ });
21
+ //#endregion
22
+ export { theme_default as default };
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@stealthscale/component-charts",
3
+ "version": "0.1.0",
4
+ "description": "Renders data as charts over recharts: a figure with a measured plot, a tooltip, a legend that switches series, and series colors from the theme.",
5
+ "keywords": [
6
+ "charts",
7
+ "components",
8
+ "react",
9
+ "recharts"
10
+ ],
11
+ "homepage": "https://github.com/stealth-scale/scale/tree/main/components/charts#readme",
12
+ "bugs": "https://github.com/stealth-scale/scale/issues",
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/stealth-scale/scale.git",
17
+ "directory": "components/charts"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "LICENSE",
22
+ "README.md"
23
+ ],
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "imports": {
27
+ "#*": "./src/*"
28
+ },
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./theme": "./dist/theme.js",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "dependencies": {
38
+ "@internationalized/date": "^3.12",
39
+ "@stealthscale/component-collections": "^0.0.1",
40
+ "@stealthscale/component-data": "^0.1.0",
41
+ "recharts": "^3.10"
42
+ },
43
+ "devDependencies": {
44
+ "@arethetypeswrong/core": "^0.18",
45
+ "@stealthscale/component-primitives": "^0.1.0",
46
+ "@stealthscale/hooks": "^0.1.0",
47
+ "@stealthscale/provider-locale": "^0.1.0",
48
+ "@stealthscale/theme": "^0.3.0",
49
+ "@stealthscale/vite-config": "^0.6.0",
50
+ "@stealthscale/vite-config-i18n": "^0.1.0",
51
+ "@stealthscale/vite-config-react": "^0.8.0",
52
+ "@stealthscale/vite-config-specimen": "^0.1.0",
53
+ "@stealthscale/vite-config-theme": "^0.1.0",
54
+ "@stealthscale/vite-config-typescript": "^0.3.0",
55
+ "@testing-library/react": "^16.3",
56
+ "@types/react": "^19.3",
57
+ "@types/react-dom": "^19.3",
58
+ "happy-dom": "^20.14",
59
+ "lucide-react": "^1.48",
60
+ "oxc-transform-react": "^0.151",
61
+ "publint": "^0.3",
62
+ "react": "^19.3",
63
+ "react-dom": "^19.3",
64
+ "react-is": "^19.3",
65
+ "typescript": "^7.0",
66
+ "vitest": "5.0.1"
67
+ },
68
+ "peerDependencies": {
69
+ "@stealthscale/component-primitives": "^0.1.0",
70
+ "@stealthscale/hooks": "^0.1.0",
71
+ "@stealthscale/provider-locale": "^0.1.0",
72
+ "@stealthscale/theme": "^0.3.0",
73
+ "react": "^19.3",
74
+ "react-is": "^19.3"
75
+ },
76
+ "engines": {
77
+ "node": ">=26.0.0"
78
+ },
79
+ "scripts": {
80
+ "build": "vp pack",
81
+ "check": "vp check",
82
+ "test": "vp test"
83
+ }
84
+ }