@galaxy-io/dls 1.5.11 → 1.5.12
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.
|
@@ -13,7 +13,7 @@ import { match } from "ts-pattern";
|
|
|
13
13
|
*/
|
|
14
14
|
/** Resolve a palette slot to a concrete color for the active theme. */
|
|
15
15
|
function resolveChartPaletteColor(theme, palette) {
|
|
16
|
-
return match(palette).with(ChartPalette.PURPLE, () => theme.color.icon.purple).with(ChartPalette.PINK, () => theme.color.icon.pink).with(ChartPalette.BLUE, () => theme.color.icon.blue).with(ChartPalette.TEAL, () => theme.color.icon.teal).with(ChartPalette.LIME, () => theme.color.icon.lime).with(ChartPalette.ORANGE, () => theme.color.icon.orange).with(ChartPalette.YELLOW, () => theme.color.icon.yellow).with(ChartPalette.GREEN, () => theme.color.icon.success).with(ChartPalette.RED, () => theme.color.icon.error).exhaustive();
|
|
16
|
+
return match(palette).with(ChartPalette.PURPLE, () => theme.color.icon.purple).with(ChartPalette.PINK, () => theme.color.icon.pink).with(ChartPalette.BLUE, () => theme.color.icon.blue).with(ChartPalette.TEAL, () => theme.color.icon.teal).with(ChartPalette.LIME, () => theme.color.icon.lime).with(ChartPalette.ORANGE, () => theme.color.icon.orange).with(ChartPalette.YELLOW, () => theme.color.icon.yellow).with(ChartPalette.GREEN, () => theme.color.icon.success).with(ChartPalette.RED, () => theme.color.icon.error).with(ChartPalette.PRIMARY, () => theme.color.icon.primary).with(ChartPalette.SECONDARY, () => theme.color.icon.secondary).with(ChartPalette.TERTIARY, () => theme.color.icon.tertiary).with(ChartPalette.WARNING, () => theme.color.icon.warning).exhaustive();
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Resolve the color for a series, honoring an explicit slot and otherwise
|
package/dist/charts/types.d.ts
CHANGED
|
@@ -46,7 +46,11 @@ export declare enum ChartPalette {
|
|
|
46
46
|
ORANGE = "ORANGE",
|
|
47
47
|
YELLOW = "YELLOW",
|
|
48
48
|
GREEN = "GREEN",
|
|
49
|
-
RED = "RED"
|
|
49
|
+
RED = "RED",
|
|
50
|
+
PRIMARY = "PRIMARY",
|
|
51
|
+
SECONDARY = "SECONDARY",
|
|
52
|
+
TERTIARY = "TERTIARY",
|
|
53
|
+
WARNING = "WARNING"
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* Built-in value formats. Supplies an `Intl`-based default for axis ticks,
|
package/dist/charts/types.js
CHANGED
|
@@ -47,6 +47,10 @@ var ChartPalette = /* @__PURE__ */ function(ChartPalette) {
|
|
|
47
47
|
ChartPalette["YELLOW"] = "YELLOW";
|
|
48
48
|
ChartPalette["GREEN"] = "GREEN";
|
|
49
49
|
ChartPalette["RED"] = "RED";
|
|
50
|
+
ChartPalette["PRIMARY"] = "PRIMARY";
|
|
51
|
+
ChartPalette["SECONDARY"] = "SECONDARY";
|
|
52
|
+
ChartPalette["TERTIARY"] = "TERTIARY";
|
|
53
|
+
ChartPalette["WARNING"] = "WARNING";
|
|
50
54
|
return ChartPalette;
|
|
51
55
|
}({});
|
|
52
56
|
/**
|