@lostgradient/cinder 0.22.0 → 0.23.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/CHANGELOG.md +31 -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 +1284 -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 +1284 -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 +17730 -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-93943z3e.js → index.server-151dt1tx.js} +1 -1
- 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-4wweyb2e.js → index.server-8dh2rtnc.js} +1 -1
- 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-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-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-wm8957be.js → index.server-veqke4sq.js} +10 -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 +6 -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
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
@layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;
|
|
2
2
|
@import '../table/table.css';
|
|
3
|
+
@import '../_internal/chart-tooltip.css';
|
|
3
4
|
@layer cinder.components {
|
|
4
5
|
.cinder-area-chart {
|
|
5
6
|
display: grid;
|
|
6
7
|
gap: var(--cinder-space-3);
|
|
7
|
-
color: var(--
|
|
8
|
+
color: var(--_cinder-chart-foreground, currentColor);
|
|
9
|
+
background: var(--_cinder-chart-background, transparent);
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
.cinder-area-chart__description {
|
|
11
13
|
margin: 0;
|
|
12
|
-
color: var(--
|
|
14
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
15
|
+
opacity: 0.72;
|
|
13
16
|
font-size: var(--cinder-text-sm);
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -25,8 +28,8 @@
|
|
|
25
28
|
gap: var(--cinder-space-1);
|
|
26
29
|
border: 1px solid var(--cinder-border);
|
|
27
30
|
border-radius: var(--cinder-radius-sm);
|
|
28
|
-
background: var(--
|
|
29
|
-
color:
|
|
31
|
+
background: var(--_cinder-chart-background, transparent);
|
|
32
|
+
color: inherit;
|
|
30
33
|
cursor: pointer;
|
|
31
34
|
font: inherit;
|
|
32
35
|
font-size: var(--cinder-text-sm);
|
|
@@ -54,22 +57,25 @@
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.cinder-area-chart__area {
|
|
57
|
-
|
|
60
|
+
transition: d 0.3s ease;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.cinder-area-chart__line {
|
|
61
64
|
fill: none;
|
|
62
65
|
stroke-width: 2;
|
|
66
|
+
transition: d 0.3s ease;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
.cinder-area-chart__gridline {
|
|
66
|
-
stroke: var(--
|
|
70
|
+
stroke: var(--_cinder-chart-grid, currentColor);
|
|
67
71
|
stroke-width: 1;
|
|
72
|
+
opacity: 0.22;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
.cinder-area-chart__crosshair {
|
|
71
|
-
stroke: var(--
|
|
76
|
+
stroke: var(--_cinder-chart-muted, currentColor);
|
|
72
77
|
stroke-dasharray: 4 4;
|
|
78
|
+
opacity: 0.72;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
.cinder-area-chart__hit-surface {
|
|
@@ -142,32 +148,30 @@
|
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
150
|
|
|
145
|
-
.cinder-area-chart__tick-label
|
|
146
|
-
|
|
151
|
+
.cinder-area-chart__tick-label,
|
|
152
|
+
.cinder-area-chart__axis-title {
|
|
153
|
+
fill: var(--_cinder-chart-muted, currentColor);
|
|
147
154
|
font-size: var(--cinder-text-xs);
|
|
148
155
|
}
|
|
149
156
|
|
|
157
|
+
.cinder-area-chart__tick-label {
|
|
158
|
+
opacity: 0.72;
|
|
159
|
+
}
|
|
160
|
+
|
|
150
161
|
.cinder-area-chart__state {
|
|
151
162
|
position: absolute;
|
|
152
163
|
inset: 0;
|
|
153
164
|
display: grid;
|
|
154
165
|
place-items: center;
|
|
155
|
-
color: var(--
|
|
156
|
-
background:
|
|
166
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
167
|
+
background: var(--_cinder-chart-background, transparent);
|
|
157
168
|
z-index: 1;
|
|
158
169
|
}
|
|
159
170
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
border: 1px solid var(--cinder-border);
|
|
166
|
-
border-radius: var(--cinder-radius-sm);
|
|
167
|
-
background: var(--cinder-surface-raised);
|
|
168
|
-
box-shadow: var(--cinder-shadow-md);
|
|
169
|
-
font-size: var(--cinder-text-sm);
|
|
170
|
-
padding: var(--cinder-space-2);
|
|
171
|
-
pointer-events: none;
|
|
171
|
+
@media (prefers-reduced-motion: reduce) {
|
|
172
|
+
.cinder-area-chart__area,
|
|
173
|
+
.cinder-area-chart__line {
|
|
174
|
+
transition: none;
|
|
175
|
+
}
|
|
172
176
|
}
|
|
173
177
|
}
|
|
@@ -76,6 +76,9 @@ var schema = {
|
|
|
76
76
|
},
|
|
77
77
|
tickCount: {
|
|
78
78
|
type: "number"
|
|
79
|
+
},
|
|
80
|
+
tickLabelRotation: {
|
|
81
|
+
type: "number"
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
additionalProperties: false,
|
|
@@ -121,6 +124,35 @@ var schema = {
|
|
|
121
124
|
type: "number",
|
|
122
125
|
description: "Maximum number of interactive focus targets before keyboard navigation is disabled. Default `500`."
|
|
123
126
|
},
|
|
127
|
+
theme: {
|
|
128
|
+
type: "object",
|
|
129
|
+
properties: {
|
|
130
|
+
foreground: {
|
|
131
|
+
type: "string"
|
|
132
|
+
},
|
|
133
|
+
muted: {
|
|
134
|
+
type: "string"
|
|
135
|
+
},
|
|
136
|
+
grid: {
|
|
137
|
+
type: "string"
|
|
138
|
+
},
|
|
139
|
+
background: {
|
|
140
|
+
type: "string"
|
|
141
|
+
},
|
|
142
|
+
palette: {
|
|
143
|
+
type: "array",
|
|
144
|
+
items: {
|
|
145
|
+
type: "string"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
additionalProperties: false,
|
|
150
|
+
description: "Partial visual theme override. Omitted fields inherit the surrounding application."
|
|
151
|
+
},
|
|
152
|
+
tooltip: {
|
|
153
|
+
type: "boolean",
|
|
154
|
+
description: "Enable the default visual tooltip. Custom snippet tooltips are available in the TypeScript API."
|
|
155
|
+
},
|
|
124
156
|
class: {
|
|
125
157
|
type: "string",
|
|
126
158
|
description: "Custom class applied to the root element."
|
|
@@ -191,6 +223,11 @@ var schema = {
|
|
|
191
223
|
{
|
|
192
224
|
name: "loadingContent",
|
|
193
225
|
reason: "function-or-snippet"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "mark",
|
|
229
|
+
reason: "function-or-snippet",
|
|
230
|
+
description: "Per-series renderer override. The chart retains scales, guides, focus, and data-table semantics."
|
|
194
231
|
}
|
|
195
232
|
]
|
|
196
233
|
}
|
|
@@ -200,4 +237,4 @@ export {
|
|
|
200
237
|
area_chart_schema_default as default
|
|
201
238
|
};
|
|
202
239
|
|
|
203
|
-
//# debugId=
|
|
240
|
+
//# debugId=5FB34A33D111162164756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AreaChartMode, ChartAxisSchemaConfiguration, ChartCartesianSeries, ChartDataTableVisibility, ChartJsonXValue, ChartLegendPosition, ChartSharedProps } from '../chart.types.ts';
|
|
1
|
+
import type { AreaChartMode, ChartAxisSchemaConfiguration, ChartCartesianSeries, ChartDataTableVisibility, ChartJsonXValue, ChartLegendPosition, ChartSharedProps, ChartThemeSchema, ChartXAxisSchemaConfiguration } from '../chart.types.ts';
|
|
2
2
|
export type AreaChartProps = ChartSharedProps & {
|
|
3
3
|
/** Series rendered as independent filled areas or stacked areas. */
|
|
4
4
|
series: ChartCartesianSeries[];
|
|
@@ -25,7 +25,7 @@ export type AreaChartSchemaProps = {
|
|
|
25
25
|
/** Pixel height of the chart viewport. Default `280`. */
|
|
26
26
|
height?: number;
|
|
27
27
|
/** Configuration for the x-axis label and tick count. */
|
|
28
|
-
xAxis?:
|
|
28
|
+
xAxis?: ChartXAxisSchemaConfiguration;
|
|
29
29
|
/** Configuration for the y-axis label and tick count. */
|
|
30
30
|
yAxis?: ChartAxisSchemaConfiguration;
|
|
31
31
|
/** Where to render the series legend relative to the chart. Default `top`. */
|
|
@@ -40,6 +40,10 @@ export type AreaChartSchemaProps = {
|
|
|
40
40
|
dataTableVisibility?: ChartDataTableVisibility;
|
|
41
41
|
/** Maximum number of interactive focus targets before keyboard navigation is disabled. Default `500`. */
|
|
42
42
|
maximumInteractivePoints?: number;
|
|
43
|
+
/** Partial visual theme override. Omitted fields inherit the surrounding application. */
|
|
44
|
+
theme?: ChartThemeSchema;
|
|
45
|
+
/** Enable the default visual tooltip. Custom snippet tooltips are available in the TypeScript API. */
|
|
46
|
+
tooltip?: boolean;
|
|
43
47
|
/** Custom class applied to the root element. */
|
|
44
48
|
class?: string;
|
|
45
49
|
/** Series rendered as independent filled areas or stacked areas. */
|