@bysages/charts 0.2.3 → 0.3.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/dist/index.d.mts CHANGED
@@ -30,4 +30,8 @@ export declare const chartColors: {
30
30
  export declare const chartSeriesRange: string[];
31
31
  /** The quiet ink for grids, guides, and secondary marks. */
32
32
  export declare const chartHairline = "var(--bs-color-border)";
33
+ /** Annotation ink — mean lines, guides, footnotes on the plot. A
34
+ * reference line is a remark, not a mark, so it never borrows a
35
+ * pigment that carries state. */
36
+ export declare const chartMuted = "var(--bs-color-text-tertiary)";
33
37
  //#endregion
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as chartSeriesRange, i as chartHairline, n as injectChartTheme, r as chartColors, t as chartThemeCss } from "./theme-Qki1v0k8.mjs";
1
+ import { a as chartMuted, i as chartHairline, n as injectChartTheme, o as chartSeriesRange, r as chartColors, t as chartThemeCss } from "./theme-CFrCaCRx.mjs";
2
2
  export * from "@tanstack/charts";
3
- export { chartColors, chartHairline, chartSeriesRange, chartThemeCss, injectChartTheme };
3
+ export { chartColors, chartHairline, chartMuted, chartSeriesRange, chartThemeCss, injectChartTheme };
@@ -1,4 +1,4 @@
1
- import { n as injectChartTheme } from "../theme-Qki1v0k8.mjs";
1
+ import { n as injectChartTheme } from "../theme-CFrCaCRx.mjs";
2
2
  import { Chart } from "@tanstack/charts/react";
3
3
  //#region src/react/chart.ts
4
4
  injectChartTheme();
@@ -0,0 +1,2 @@
1
+ import { BandScale, scaleBand } from "@tanstack/charts/scales/band";
2
+ export { type BandScale, scaleBand };
@@ -0,0 +1,2 @@
1
+ import { scaleBand } from "@tanstack/charts/scales/band";
2
+ export { scaleBand };
@@ -0,0 +1,2 @@
1
+ import { LinearScale, scaleLinear } from "@tanstack/charts/scales/linear";
2
+ export { type LinearScale, scaleLinear };
@@ -0,0 +1,2 @@
1
+ import { scaleLinear } from "@tanstack/charts/scales/linear";
2
+ export { scaleLinear };
@@ -0,0 +1,2 @@
1
+ import { OrdinalScale, scaleOrdinal } from "@tanstack/charts/scales/ordinal";
2
+ export { type OrdinalScale, scaleOrdinal };
@@ -0,0 +1,2 @@
1
+ import { scaleOrdinal } from "@tanstack/charts/scales/ordinal";
2
+ export { scaleOrdinal };
@@ -0,0 +1,2 @@
1
+ import { PointScale, scalePoint } from "@tanstack/charts/scales/point";
2
+ export { type PointScale, scalePoint };
@@ -0,0 +1,2 @@
1
+ import { scalePoint } from "@tanstack/charts/scales/point";
2
+ export { scalePoint };
@@ -1,4 +1,4 @@
1
- import { n as injectChartTheme } from "../theme-Qki1v0k8.mjs";
1
+ import { n as injectChartTheme } from "../theme-CFrCaCRx.mjs";
2
2
  import { Chart } from "@tanstack/charts/solid";
3
3
  //#region src/solid/chart.ts
4
4
  injectChartTheme();
@@ -1,4 +1,4 @@
1
- import { n as injectChartTheme } from "../theme-Qki1v0k8.mjs";
1
+ import { n as injectChartTheme } from "../theme-CFrCaCRx.mjs";
2
2
  import { Chart } from "@tanstack/charts/svelte";
3
3
  //#region src/svelte/chart.ts
4
4
  injectChartTheme();
@@ -18,6 +18,10 @@ const chartColors = {
18
18
  const chartSeriesRange = Object.values(chartColors);
19
19
  /** The quiet ink for grids, guides, and secondary marks. */
20
20
  const chartHairline = "var(--bs-color-border)";
21
+ /** Annotation ink — mean lines, guides, footnotes on the plot. A
22
+ * reference line is a remark, not a mark, so it never borrows a
23
+ * pigment that carries state. */
24
+ const chartMuted = "var(--bs-color-text-tertiary)";
21
25
  /** Bridge the chart engine's surface variables onto the paper-and-ink
22
26
  * tokens: its tooltip dresses like every other popup vessel, and its
23
27
  * crosshair and focus takes the primary ink. The marks themselves carry
@@ -72,4 +76,4 @@ function injectChartTheme() {
72
76
  injected = true;
73
77
  }
74
78
  //#endregion
75
- export { chartSeriesRange as a, chartHairline as i, injectChartTheme as n, chartColors as r, chartThemeCss as t };
79
+ export { chartMuted as a, chartHairline as i, injectChartTheme as n, chartSeriesRange as o, chartColors as r, chartThemeCss as t };
@@ -0,0 +1,2 @@
1
+ import { ChartTooltipExtension, ChartTooltipExtensionContext, ChartTooltipExtensionInstance, ChartTooltipPaintContext, tooltip } from "@tanstack/charts/tooltip";
2
+ export { type ChartTooltipExtension, type ChartTooltipExtensionContext, type ChartTooltipExtensionInstance, type ChartTooltipPaintContext, tooltip };
@@ -0,0 +1,2 @@
1
+ import { tooltip } from "@tanstack/charts/tooltip";
2
+ export { tooltip };
@@ -1,4 +1,4 @@
1
- import { n as injectChartTheme } from "../theme-Qki1v0k8.mjs";
1
+ import { n as injectChartTheme } from "../theme-CFrCaCRx.mjs";
2
2
  import { Chart } from "@tanstack/charts/vue";
3
3
  //#region src/vue/chart.ts
4
4
  injectChartTheme();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bysages/charts",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Token-themed charts for By Sages Elements — TanStack Charts dressed in the paper-and-ink system: one token bridge plus thin framework adapters",
5
5
  "keywords": [
6
6
  "charts",
@@ -36,6 +36,26 @@
36
36
  "types": "./dist/index.d.mts",
37
37
  "import": "./dist/index.mjs"
38
38
  },
39
+ "./scales/band": {
40
+ "types": "./dist/scales/band.d.mts",
41
+ "import": "./dist/scales/band.mjs"
42
+ },
43
+ "./scales/linear": {
44
+ "types": "./dist/scales/linear.d.mts",
45
+ "import": "./dist/scales/linear.mjs"
46
+ },
47
+ "./scales/ordinal": {
48
+ "types": "./dist/scales/ordinal.d.mts",
49
+ "import": "./dist/scales/ordinal.mjs"
50
+ },
51
+ "./scales/point": {
52
+ "types": "./dist/scales/point.d.mts",
53
+ "import": "./dist/scales/point.mjs"
54
+ },
55
+ "./tooltip": {
56
+ "types": "./dist/tooltip.d.mts",
57
+ "import": "./dist/tooltip.mjs"
58
+ },
39
59
  "./vue": {
40
60
  "types": "./dist/vue/chart.d.mts",
41
61
  "import": "./dist/vue/chart.mjs"
@@ -55,7 +75,7 @@
55
75
  },
56
76
  "dependencies": {
57
77
  "@tanstack/charts": "0.18.0",
58
- "@bysages/core": "0.2.3"
78
+ "@bysages/core": "0.3.0"
59
79
  },
60
80
  "devDependencies": {
61
81
  "@sveltejs/vite-plugin-svelte": "7.3.1",