@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
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
.cinder-matrix-chart {
|
|
5
5
|
display: grid;
|
|
6
6
|
gap: var(--cinder-space-3);
|
|
7
|
-
color: var(--
|
|
7
|
+
color: var(--_cinder-chart-foreground, currentColor);
|
|
8
|
+
background: var(--_cinder-chart-background, transparent);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.cinder-matrix-chart__description {
|
|
11
12
|
margin: 0;
|
|
12
|
-
color: var(--
|
|
13
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
13
14
|
font-size: var(--cinder-text-sm);
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
|
|
26
27
|
.cinder-matrix-chart__cell {
|
|
27
28
|
rx: 2;
|
|
28
|
-
stroke: var(--
|
|
29
|
+
stroke: var(--_cinder-chart-grid, currentColor);
|
|
29
30
|
stroke-width: 1.5;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -33,13 +34,18 @@
|
|
|
33
34
|
filter: brightness(1.15);
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
.cinder-matrix-chart__cell-group {
|
|
38
|
+
isolation: isolate;
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
.cinder-matrix-chart__cell-label {
|
|
37
42
|
font-size: var(--cinder-text-xs);
|
|
43
|
+
mix-blend-mode: difference;
|
|
38
44
|
pointer-events: none;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.cinder-matrix-chart__tick-label {
|
|
42
|
-
fill: var(--
|
|
48
|
+
fill: var(--_cinder-chart-muted, currentColor);
|
|
43
49
|
font-size: var(--cinder-text-xs);
|
|
44
50
|
}
|
|
45
51
|
|
|
@@ -48,8 +54,8 @@
|
|
|
48
54
|
inset: 0;
|
|
49
55
|
display: grid;
|
|
50
56
|
place-items: center;
|
|
51
|
-
color: var(--
|
|
52
|
-
background:
|
|
57
|
+
color: var(--_cinder-chart-muted, currentColor);
|
|
58
|
+
background: var(--_cinder-chart-background, transparent);
|
|
53
59
|
z-index: 1;
|
|
54
60
|
}
|
|
55
61
|
}
|
|
@@ -125,6 +125,31 @@ var schema = {
|
|
|
125
125
|
description: "Controls data table visibility. Default `screen-reader-only`.",
|
|
126
126
|
default: "screen-reader-only"
|
|
127
127
|
},
|
|
128
|
+
theme: {
|
|
129
|
+
type: "object",
|
|
130
|
+
properties: {
|
|
131
|
+
foreground: {
|
|
132
|
+
type: "string"
|
|
133
|
+
},
|
|
134
|
+
muted: {
|
|
135
|
+
type: "string"
|
|
136
|
+
},
|
|
137
|
+
grid: {
|
|
138
|
+
type: "string"
|
|
139
|
+
},
|
|
140
|
+
background: {
|
|
141
|
+
type: "string"
|
|
142
|
+
},
|
|
143
|
+
palette: {
|
|
144
|
+
type: "array",
|
|
145
|
+
items: {
|
|
146
|
+
type: "string"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
additionalProperties: false,
|
|
151
|
+
description: "Partial visual theme override."
|
|
152
|
+
},
|
|
128
153
|
class: {
|
|
129
154
|
type: "string",
|
|
130
155
|
description: "Custom class applied to the root element."
|
|
@@ -152,4 +177,4 @@ export {
|
|
|
152
177
|
matrix_chart_schema_default as default
|
|
153
178
|
};
|
|
154
179
|
|
|
155
|
-
//# debugId=
|
|
180
|
+
//# debugId=8E8E8D8B3D791FCF64756E2164756E21
|
|
@@ -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 MatrixColorScale = 'sequential' | 'diverging';
|
|
5
5
|
export type MatrixChartDatum = Record<string, string | number | null | undefined>;
|
|
6
6
|
export type MatrixChartProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
@@ -28,6 +28,8 @@ export type MatrixChartProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
|
28
28
|
dataTableCaption?: string;
|
|
29
29
|
/** Controls data table visibility. Default `screen-reader-only`. */
|
|
30
30
|
dataTableVisibility?: ChartDataTableVisibility;
|
|
31
|
+
/** Partial visual theme override. */
|
|
32
|
+
theme?: ChartTheme;
|
|
31
33
|
/** Custom class applied to the root element. */
|
|
32
34
|
class?: string;
|
|
33
35
|
/** Snippet rendered when the chart has no data. */
|
|
@@ -60,6 +62,8 @@ export type MatrixChartSchemaProps = {
|
|
|
60
62
|
dataTableCaption?: string;
|
|
61
63
|
/** Controls data table visibility. Default `screen-reader-only`. @default "screen-reader-only" */
|
|
62
64
|
dataTableVisibility?: ChartDataTableVisibility;
|
|
65
|
+
/** Partial visual theme override. */
|
|
66
|
+
theme?: ChartThemeSchema;
|
|
63
67
|
/** Custom class applied to the root element. */
|
|
64
68
|
class?: string;
|
|
65
69
|
};
|
|
@@ -304,7 +304,7 @@ var rest_excludes = new Set([
|
|
|
304
304
|
"$$legacy",
|
|
305
305
|
"variant",
|
|
306
306
|
"size",
|
|
307
|
-
"
|
|
307
|
+
"monospace",
|
|
308
308
|
"subscriptionState",
|
|
309
309
|
"class",
|
|
310
310
|
"children"
|
|
@@ -321,7 +321,7 @@ function Badge($$anchor, $$props) {
|
|
|
321
321
|
expired: { variant: "danger", label: "Expired" },
|
|
322
322
|
refunded: { variant: "neutral", label: "Refunded" }
|
|
323
323
|
};
|
|
324
|
-
let variant = $8.prop($$props, "variant", 3, "neutral"), size = $8.prop($$props, "size", 3, "md"),
|
|
324
|
+
let variant = $8.prop($$props, "variant", 3, "neutral"), size = $8.prop($$props, "size", 3, "md"), monospace = $8.prop($$props, "monospace", 3, false), rest = $8.rest_props($$props, rest_excludes);
|
|
325
325
|
const subscriptionStateConfiguration = $8.derived(() => $$props.subscriptionState === undefined ? undefined : subscriptionStateConfigurations[$$props.subscriptionState]);
|
|
326
326
|
const resolvedVariant = $8.derived(() => $8.get(subscriptionStateConfiguration)?.variant ?? variant());
|
|
327
327
|
var span = root_1();
|
|
@@ -329,7 +329,7 @@ function Badge($$anchor, $$props) {
|
|
|
329
329
|
class: $0,
|
|
330
330
|
"data-cinder-variant": $8.get(resolvedVariant),
|
|
331
331
|
"data-cinder-size": size(),
|
|
332
|
-
"data-cinder-
|
|
332
|
+
"data-cinder-monospace": monospace() ? "" : undefined,
|
|
333
333
|
"data-cinder-subscription-state": $$props.subscriptionState,
|
|
334
334
|
...rest
|
|
335
335
|
}), [() => classNames("cinder-badge", $$props.class)]);
|
|
@@ -1301,4 +1301,4 @@ export {
|
|
|
1301
1301
|
Payload_inspector as PayloadInspector
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
1304
|
-
//# debugId=
|
|
1304
|
+
//# debugId=2BC75AFAC212845D64756E2164756E21
|
|
@@ -304,7 +304,7 @@ var rest_excludes = new Set([
|
|
|
304
304
|
"$$legacy",
|
|
305
305
|
"variant",
|
|
306
306
|
"size",
|
|
307
|
-
"
|
|
307
|
+
"monospace",
|
|
308
308
|
"subscriptionState",
|
|
309
309
|
"class",
|
|
310
310
|
"children"
|
|
@@ -321,7 +321,7 @@ function Badge($$anchor, $$props) {
|
|
|
321
321
|
expired: { variant: "danger", label: "Expired" },
|
|
322
322
|
refunded: { variant: "neutral", label: "Refunded" }
|
|
323
323
|
};
|
|
324
|
-
let variant = $8.prop($$props, "variant", 3, "neutral"), size = $8.prop($$props, "size", 3, "md"),
|
|
324
|
+
let variant = $8.prop($$props, "variant", 3, "neutral"), size = $8.prop($$props, "size", 3, "md"), monospace = $8.prop($$props, "monospace", 3, false), rest = $8.rest_props($$props, rest_excludes);
|
|
325
325
|
const subscriptionStateConfiguration = $8.derived(() => $$props.subscriptionState === undefined ? undefined : subscriptionStateConfigurations[$$props.subscriptionState]);
|
|
326
326
|
const resolvedVariant = $8.derived(() => $8.get(subscriptionStateConfiguration)?.variant ?? variant());
|
|
327
327
|
var span = root_1();
|
|
@@ -329,7 +329,7 @@ function Badge($$anchor, $$props) {
|
|
|
329
329
|
class: $0,
|
|
330
330
|
"data-cinder-variant": $8.get(resolvedVariant),
|
|
331
331
|
"data-cinder-size": size(),
|
|
332
|
-
"data-cinder-
|
|
332
|
+
"data-cinder-monospace": monospace() ? "" : undefined,
|
|
333
333
|
"data-cinder-subscription-state": $$props.subscriptionState,
|
|
334
334
|
...rest
|
|
335
335
|
}), [() => classNames("cinder-badge", $$props.class)]);
|
|
@@ -1379,7 +1379,7 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
1379
1379
|
Badge($$anchor3, {
|
|
1380
1380
|
variant: "neutral",
|
|
1381
1381
|
size: "xs",
|
|
1382
|
-
|
|
1382
|
+
monospace: true,
|
|
1383
1383
|
children: ($$anchor4, $$slotProps) => {
|
|
1384
1384
|
$15.next();
|
|
1385
1385
|
var text_6 = $15.text();
|
|
@@ -1400,7 +1400,7 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
1400
1400
|
Badge($$anchor3, {
|
|
1401
1401
|
variant: "neutral",
|
|
1402
1402
|
size: "xs",
|
|
1403
|
-
|
|
1403
|
+
monospace: true,
|
|
1404
1404
|
children: ($$anchor4, $$slotProps) => {
|
|
1405
1405
|
$15.next();
|
|
1406
1406
|
var text_7 = $15.text();
|
|
@@ -1940,4 +1940,4 @@ export {
|
|
|
1940
1940
|
Run_step_timeline as RunStepTimeline
|
|
1941
1941
|
};
|
|
1942
1942
|
|
|
1943
|
-
//# debugId=
|
|
1943
|
+
//# debugId=2BEB9788D8A21B7C64756E2164756E21
|