@lostgradient/cinder 0.22.0 → 0.23.1
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/CHANGELOG.md +63 -0
- package/components.json +1 -1
- package/dist/_internal/chart/chart-bar-model.d.ts +24 -0
- package/dist/_internal/chart/chart-cartesian-model.d.ts +16 -0
- package/dist/_internal/chart/chart-layout.d.ts +23 -0
- package/dist/_internal/chart/chart-model-utilities.d.ts +157 -0
- package/dist/_internal/chart/chart-scale.d.ts +37 -0
- package/dist/_internal/chart/chart-utilities.d.ts +7 -164
- package/dist/_internal/chart/heatmap-utilities.d.ts +5 -4
- package/dist/components/_internal/chart-tooltip.css +21 -0
- package/dist/components/_internal/chart-tooltip.svelte.d.ts +11 -0
- package/dist/components/approval-card/index.js +5 -5
- package/dist/components/area-chart/area-chart.css +27 -23
- package/dist/components/area-chart/area-chart.schema.js +38 -1
- package/dist/components/area-chart/area-chart.types.d.ts +6 -2
- package/dist/components/area-chart/index.js +1589 -768
- package/dist/components/badge/badge.css +2 -2
- package/dist/components/badge/badge.schema.js +2 -2
- package/dist/components/badge/badge.types.d.ts +3 -3
- package/dist/components/badge/index.js +4 -4
- package/dist/components/bar-chart/bar-chart.css +27 -21
- package/dist/components/bar-chart/bar-chart.schema.js +38 -1
- package/dist/components/bar-chart/bar-chart.types.d.ts +7 -3
- package/dist/components/bar-chart/index.js +1544 -740
- package/dist/components/chart.types.d.ts +98 -2
- package/dist/components/json-schema-editor/index.js +4 -4
- package/dist/components/line-chart/index.js +1587 -785
- package/dist/components/line-chart/line-chart.css +25 -24
- package/dist/components/line-chart/line-chart.schema.js +38 -1
- package/dist/components/line-chart/line-chart.types.d.ts +6 -2
- package/dist/components/matrix-chart/index.js +1038 -429
- package/dist/components/matrix-chart/matrix-chart.css +12 -6
- package/dist/components/matrix-chart/matrix-chart.schema.js +26 -1
- package/dist/components/matrix-chart/matrix-chart.types.d.ts +5 -1
- package/dist/components/payload-inspector/index.js +4 -4
- package/dist/components/run-step-timeline/index.js +6 -6
- package/dist/components/sparkbar/index.js +1291 -4
- package/dist/components/sparkbar/sparkbar.css +5 -4
- package/dist/components/sparkbar/sparkbar.schema.js +26 -1
- package/dist/components/sparkbar/sparkbar.types.d.ts +5 -0
- package/dist/components/spectrogram/index.js +1076 -437
- package/dist/components/spectrogram/spectrogram.css +7 -6
- package/dist/components/spectrogram/spectrogram.schema.js +26 -1
- package/dist/components/spectrogram/spectrogram.types.d.ts +5 -1
- package/dist/components/spectrum-chart/index.js +1037 -423
- package/dist/components/spectrum-chart/spectrum-chart.css +8 -7
- package/dist/components/spectrum-chart/spectrum-chart.schema.js +26 -1
- package/dist/components/spectrum-chart/spectrum-chart.types.d.ts +5 -1
- package/dist/components/statistic/index.js +1288 -2
- package/dist/components/statistic/statistic.css +6 -5
- package/dist/components/statistic/statistic.schema.js +26 -1
- package/dist/components/statistic/statistic.types.d.ts +5 -0
- package/dist/components/statistic-group/index.js +1288 -2
- package/dist/components/waveform/index.js +1004 -404
- package/dist/components/waveform/waveform.css +8 -7
- package/dist/components/waveform/waveform.schema.js +26 -1
- package/dist/components/waveform/waveform.types.d.ts +5 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17734 -16540
- package/dist/server/components/approval-card/index.js +3 -3
- package/dist/server/components/area-chart/index.js +3 -3
- package/dist/server/components/badge/index.js +2 -2
- package/dist/server/components/bar-chart/index.js +3 -3
- package/dist/server/components/json-schema-editor/index.js +2 -2
- package/dist/server/components/line-chart/index.js +3 -3
- package/dist/server/components/matrix-chart/index.js +3 -3
- package/dist/server/components/payload-inspector/index.js +3 -3
- package/dist/server/components/run-step-timeline/index.js +2 -2
- package/dist/server/components/sparkbar/index.js +3 -2
- package/dist/server/components/spectrogram/index.js +3 -3
- package/dist/server/components/spectrum-chart/index.js +2 -2
- package/dist/server/components/statistic/index.js +4 -3
- package/dist/server/components/statistic-group/index.js +4 -3
- package/dist/server/components/waveform/index.js +2 -2
- package/dist/server/index.js +21 -21
- package/dist/server/{index.server-3dkwzkd3.js → index.server-10r7yf13.js} +110 -27
- package/dist/server/{index.server-pp2n6def.js → index.server-2y0xz53g.js} +37 -14
- package/dist/server/{index.server-bd8rcgf0.js → index.server-4hvjet4z.js} +1 -1
- package/dist/server/{index.server-bsm39gpy.js → index.server-5d83fkyg.js} +75 -21
- package/dist/server/{index.server-abqbstkt.js → index.server-9gj583qs.js} +41 -14
- package/dist/server/{index.server-2nmwsacy.js → index.server-9scm7zf9.js} +4 -4
- package/dist/server/{index.server-5j6jv7rm.js → index.server-9vwxyy06.js} +108 -29
- package/dist/server/{index.server-abjsjsw8.js → index.server-afpjvfz1.js} +111 -35
- package/dist/server/{index.server-wm8957be.js → index.server-bp0vzxby.js} +14 -1
- package/dist/server/{index.server-86sw5ea6.js → index.server-dw9bz17h.js} +4 -4
- package/dist/server/{index.server-d26jzn2m.js → index.server-en31rprd.js} +3 -3
- package/dist/server/{index.server-dx58qant.js → index.server-f3a0ecqg.js} +72 -9
- package/dist/server/{index.server-d63pwytk.js → index.server-kz8aeeq5.js} +18 -10
- package/dist/server/index.server-mmmrgvyd.js +1274 -0
- package/dist/server/{index.server-93943z3e.js → index.server-rx9aszk6.js} +1 -1
- package/dist/server/{index.server-1221p7e4.js → index.server-scahngwv.js} +13 -1
- package/dist/server/{index.server-nj8kk5bv.js → index.server-t73q59c1.js} +1 -1
- package/dist/server/{index.server-5schb2vt.js → index.server-tdrncj5e.js} +16 -6
- package/dist/server/{index.server-4wweyb2e.js → index.server-vnr1h5g5.js} +1 -1
- package/dist/server/{index.server-fphvzcfb.js → index.server-wqajghn9.js} +1 -1
- package/dist/server/{index.server-yd9shwqq.js → index.server-zjcjzcv6.js} +1 -1
- package/package.json +1 -1
- package/src/_internal/chart/chart-bar-model.ts +330 -0
- package/src/_internal/chart/chart-cartesian-model.ts +450 -0
- package/src/_internal/chart/chart-interaction.svelte.ts +25 -6
- package/src/_internal/chart/chart-layout.ts +348 -0
- package/src/_internal/chart/chart-model-utilities.ts +357 -0
- package/src/_internal/chart/chart-scale.ts +487 -0
- package/src/_internal/chart/chart-utilities.ts +22 -1078
- package/src/_internal/chart/heatmap-utilities.ts +21 -17
- package/src/components/_internal/chart-tooltip.css +21 -0
- package/src/components/_internal/chart-tooltip.svelte +44 -0
- package/src/components/approval-card/approval-card.svelte +1 -1
- package/src/components/area-chart/area-chart.css +27 -23
- package/src/components/area-chart/area-chart.examples.json +1 -1
- package/src/components/area-chart/area-chart.schema.json +37 -0
- package/src/components/area-chart/area-chart.schema.ts +40 -0
- package/src/components/area-chart/area-chart.svelte +103 -35
- package/src/components/area-chart/area-chart.types.ts +7 -1
- package/src/components/badge/badge.css +2 -2
- package/src/components/badge/badge.schema.json +1 -1
- package/src/components/badge/badge.schema.ts +1 -1
- package/src/components/badge/badge.svelte +2 -2
- package/src/components/badge/badge.types.ts +3 -3
- package/src/components/bar-chart/bar-chart.css +27 -21
- package/src/components/bar-chart/bar-chart.schema.json +37 -0
- package/src/components/bar-chart/bar-chart.schema.ts +40 -0
- package/src/components/bar-chart/bar-chart.svelte +94 -33
- package/src/components/bar-chart/bar-chart.types.ts +9 -2
- package/src/components/chart.types.ts +112 -2
- package/src/components/line-chart/line-chart.css +25 -24
- package/src/components/line-chart/line-chart.examples.json +1 -1
- package/src/components/line-chart/line-chart.schema.json +37 -0
- package/src/components/line-chart/line-chart.schema.ts +40 -0
- package/src/components/line-chart/line-chart.svelte +95 -40
- package/src/components/line-chart/line-chart.types.ts +7 -1
- package/src/components/matrix-chart/matrix-chart.css +12 -6
- package/src/components/matrix-chart/matrix-chart.schema.json +25 -0
- package/src/components/matrix-chart/matrix-chart.schema.ts +25 -0
- package/src/components/matrix-chart/matrix-chart.svelte +30 -12
- package/src/components/matrix-chart/matrix-chart.types.ts +5 -1
- package/src/components/run-step-timeline/run-step-timeline.svelte +2 -2
- package/src/components/sparkbar/sparkbar.css +5 -4
- package/src/components/sparkbar/sparkbar.schema.json +25 -0
- package/src/components/sparkbar/sparkbar.schema.ts +26 -0
- package/src/components/sparkbar/sparkbar.svelte +8 -1
- package/src/components/sparkbar/sparkbar.types.ts +5 -0
- package/src/components/spectrogram/spectrogram.css +7 -6
- package/src/components/spectrogram/spectrogram.schema.json +25 -0
- package/src/components/spectrogram/spectrogram.schema.ts +25 -0
- package/src/components/spectrogram/spectrogram.svelte +73 -28
- package/src/components/spectrogram/spectrogram.types.ts +5 -1
- package/src/components/spectrum-chart/spectrum-chart.css +8 -7
- package/src/components/spectrum-chart/spectrum-chart.schema.json +25 -0
- package/src/components/spectrum-chart/spectrum-chart.schema.ts +26 -0
- package/src/components/spectrum-chart/spectrum-chart.svelte +38 -12
- package/src/components/spectrum-chart/spectrum-chart.types.ts +5 -1
- package/src/components/statistic/statistic.css +6 -5
- package/src/components/statistic/statistic.schema.json +25 -0
- package/src/components/statistic/statistic.schema.ts +26 -0
- package/src/components/statistic/statistic.svelte +42 -1
- package/src/components/statistic/statistic.types.ts +5 -0
- package/src/components/waveform/waveform.css +8 -7
- package/src/components/waveform/waveform.schema.json +25 -0
- package/src/components/waveform/waveform.schema.ts +26 -0
- package/src/components/waveform/waveform.svelte +16 -3
- package/src/components/waveform/waveform.types.ts +5 -1
- package/src/index.ts +8 -0
- package/dist/server/index.server-6vbpz6dd.js +0 -690
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
.cinder-waveform {
|
|
4
4
|
display: grid;
|
|
5
5
|
gap: var(--cinder-space-2);
|
|
6
|
-
color: var(--
|
|
6
|
+
color: var(--_cinder-chart-foreground, currentColor);
|
|
7
|
+
background: var(--_cinder-chart-background, transparent);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.cinder-waveform__description {
|
|
10
11
|
margin: 0;
|
|
11
|
-
color: var(--
|
|
12
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
12
13
|
font-size: var(--cinder-text-sm);
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -23,13 +24,13 @@
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.cinder-waveform__baseline {
|
|
26
|
-
stroke: var(--
|
|
27
|
+
stroke: var(--_cinder-chart-grid, currentColor);
|
|
27
28
|
stroke-width: 1;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.cinder-waveform__path {
|
|
31
32
|
fill: none;
|
|
32
|
-
stroke: var(--
|
|
33
|
+
stroke: var(--_cinder-chart-series-color, currentColor);
|
|
33
34
|
stroke-width: 1.5;
|
|
34
35
|
stroke-linecap: round;
|
|
35
36
|
stroke-linejoin: round;
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.cinder-waveform__bar {
|
|
40
|
-
fill: var(--
|
|
41
|
+
fill: var(--_cinder-chart-series-color, currentColor);
|
|
41
42
|
rx: 1;
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
inset: 0;
|
|
47
48
|
display: grid;
|
|
48
49
|
place-items: center;
|
|
49
|
-
color: var(--
|
|
50
|
-
background:
|
|
50
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
51
|
+
background: var(--_cinder-chart-background, transparent);
|
|
51
52
|
z-index: 1;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -91,6 +91,31 @@ var schema = {
|
|
|
91
91
|
type: "string",
|
|
92
92
|
description: "Custom data table caption; falls back to `label`."
|
|
93
93
|
},
|
|
94
|
+
theme: {
|
|
95
|
+
type: "object",
|
|
96
|
+
properties: {
|
|
97
|
+
foreground: {
|
|
98
|
+
type: "string"
|
|
99
|
+
},
|
|
100
|
+
muted: {
|
|
101
|
+
type: "string"
|
|
102
|
+
},
|
|
103
|
+
grid: {
|
|
104
|
+
type: "string"
|
|
105
|
+
},
|
|
106
|
+
background: {
|
|
107
|
+
type: "string"
|
|
108
|
+
},
|
|
109
|
+
palette: {
|
|
110
|
+
type: "array",
|
|
111
|
+
items: {
|
|
112
|
+
type: "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
additionalProperties: false,
|
|
117
|
+
description: "Partial visual theme override. Omitted fields inherit the surrounding application."
|
|
118
|
+
},
|
|
94
119
|
class: {
|
|
95
120
|
type: "string",
|
|
96
121
|
description: "Custom class applied to the root element."
|
|
@@ -118,4 +143,4 @@ export {
|
|
|
118
143
|
waveform_schema_default as default
|
|
119
144
|
};
|
|
120
145
|
|
|
121
|
-
//# debugId=
|
|
146
|
+
//# debugId=F61687D16C5ECE0D64756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import type { ChartDataTableVisibility } from '../chart.types.ts';
|
|
3
|
+
import type { ChartDataTableVisibility, ChartTheme, ChartThemeSchema } from '../chart.types.ts';
|
|
4
4
|
export type WaveformRenderMode = 'path' | 'bars';
|
|
5
5
|
export type WaveformProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
6
6
|
/** Accessible label for the waveform. Required for screen readers. */
|
|
@@ -22,6 +22,8 @@ export type WaveformProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
|
22
22
|
dataTableVisibility?: ChartDataTableVisibility;
|
|
23
23
|
/** Custom data table caption; falls back to `label`. */
|
|
24
24
|
dataTableCaption?: string;
|
|
25
|
+
/** Partial visual theme override. Omitted fields inherit the surrounding application. */
|
|
26
|
+
theme?: ChartTheme;
|
|
25
27
|
/** Custom class applied to the root element. */
|
|
26
28
|
class?: string;
|
|
27
29
|
/** Snippet rendered when the chart has no data. */
|
|
@@ -46,6 +48,8 @@ export type WaveformSchemaProps = {
|
|
|
46
48
|
dataTableVisibility?: ChartDataTableVisibility;
|
|
47
49
|
/** Custom data table caption; falls back to `label`. */
|
|
48
50
|
dataTableCaption?: string;
|
|
51
|
+
/** Partial visual theme override. Omitted fields inherit the surrounding application. */
|
|
52
|
+
theme?: ChartThemeSchema;
|
|
49
53
|
/** Custom class applied to the root element. */
|
|
50
54
|
class?: string;
|
|
51
55
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { default as Banner } from './components/banner/index.ts';
|
|
|
30
30
|
export type { BannerProps, BannerVariant } from './components/banner/index.ts';
|
|
31
31
|
export { default as BarChart } from './components/bar-chart/index.ts';
|
|
32
32
|
export type { ChartDataTableVisibility as BarChartDataTableVisibility, BarChartProps, BarChartSchemaProps, } from './components/bar-chart/index.ts';
|
|
33
|
-
export type { AreaChartMode, BarChartDatum, BarChartMode, BarChartOrientation, BarChartSchemaDatum, BarChartSchemaSeries, BarChartSeries, ChartAxisConfiguration, ChartAxisSchemaConfiguration, ChartCartesianSchemaSeries, ChartCartesianSeries, ChartDataTableVisibility, ChartFormatterContext, ChartJsonValue, ChartJsonXValue, ChartLegendPosition, ChartNumericValue, ChartPoint, ChartSchemaPoint, ChartSharedProps, ChartTickFormatter, ChartValueFormatter, ChartXValue, } from './components/chart.types.ts';
|
|
33
|
+
export type { AreaChartMode, BarChartDatum, BarChartMode, BarChartOrientation, BarChartPlacedBar, BarChartSchemaDatum, BarChartSchemaSeries, BarChartSeries, ChartAxisConfiguration, ChartAxisSchemaConfiguration, ChartCartesianSchemaSeries, ChartCartesianSeries, ChartDataTableVisibility, ChartFormatterContext, ChartGeometry, ChartJsonValue, ChartJsonXValue, ChartLegendPosition, ChartMarkContext, ChartNumericValue, ChartPoint, ChartSchemaPoint, ChartSharedProps, ChartTarget, ChartTheme, ChartTickFormatter, ChartValueFormatter, ChartXAxisConfiguration, ChartXValue, NormalizedXValue, PlacedPoint, } from './components/chart.types.ts';
|
|
34
34
|
export { default as BentoCell } from './components/bento-cell/index.ts';
|
|
35
35
|
export type { BentoCellProps } from './components/bento-cell/index.ts';
|
|
36
36
|
export { default as BentoGrid } from './components/bento-grid/index.ts';
|