@opendata-ai/openchart-core 6.28.6 → 7.0.2
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.ts +673 -111
- package/dist/index.js +163 -66
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/colors/__tests__/contrast.test.ts +2 -2
- package/src/colors/__tests__/palettes.test.ts +22 -2
- package/src/colors/index.ts +1 -0
- package/src/colors/palettes.ts +52 -20
- package/src/helpers/spec-builders.ts +3 -1
- package/src/layout/chrome.ts +91 -10
- package/src/styles/base.css +11 -1
- package/src/styles/chrome.css +127 -2
- package/src/styles/dark.css +27 -10
- package/src/styles/tokens.css +57 -14
- package/src/styles/tooltip.css +66 -22
- package/src/theme/__tests__/dark-mode.test.ts +53 -8
- package/src/theme/__tests__/defaults.test.ts +43 -17
- package/src/theme/dark-mode.ts +76 -16
- package/src/theme/defaults.ts +44 -30
- package/src/theme/index.ts +1 -1
- package/src/theme/resolve.ts +2 -0
- package/src/types/__tests__/spec.test.ts +85 -18
- package/src/types/index.ts +16 -0
- package/src/types/layout.ts +151 -5
- package/src/types/spec.ts +519 -85
- package/src/types/theme.ts +5 -0
package/src/types/theme.ts
CHANGED
|
@@ -29,6 +29,10 @@ export interface ThemeColors {
|
|
|
29
29
|
annotationFill: string;
|
|
30
30
|
/** Annotation text color. */
|
|
31
31
|
annotationText: string;
|
|
32
|
+
/** Semantic color for positive/up-trend values (e.g. sparkline trend coloring). */
|
|
33
|
+
positive: string;
|
|
34
|
+
/** Semantic color for negative/down-trend values (e.g. sparkline trend coloring). */
|
|
35
|
+
negative: string;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
// ---------------------------------------------------------------------------
|
|
@@ -109,6 +113,7 @@ export interface ChromeDefaults {
|
|
|
109
113
|
|
|
110
114
|
/** Default chrome styles for each element type. */
|
|
111
115
|
export interface ThemeChromeDefaults {
|
|
116
|
+
eyebrow: ChromeDefaults;
|
|
112
117
|
title: ChromeDefaults;
|
|
113
118
|
subtitle: ChromeDefaults;
|
|
114
119
|
source: ChromeDefaults;
|