@kausal/themes 0.6.2 → 0.6.4
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/package.json +1 -1
- package/props.js +6 -0
- package/types.ts +8 -4
package/package.json
CHANGED
package/props.js
CHANGED
|
@@ -177,6 +177,12 @@ export function makeThemePropType(cssv = null) {
|
|
|
177
177
|
cardPlacement: string,
|
|
178
178
|
color: string,
|
|
179
179
|
}),
|
|
180
|
+
graphs: exact({
|
|
181
|
+
lineShape: string,
|
|
182
|
+
areaGraphs: bool,
|
|
183
|
+
customBackground: string,
|
|
184
|
+
showTrendline: bool,
|
|
185
|
+
}),
|
|
180
186
|
}),
|
|
181
187
|
};
|
|
182
188
|
return exact(props);
|
package/types.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { StandardProperties as css } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type cssColor = NonNullable<css['color']>;
|
|
1
|
+
import type { StandardProperties as css } from "csstype";
|
|
5
2
|
|
|
3
|
+
type cssColor = NonNullable<css["color"]>;
|
|
6
4
|
|
|
7
5
|
export interface Theme {
|
|
8
6
|
actionColor: string;
|
|
@@ -160,5 +158,11 @@ export interface Theme {
|
|
|
160
158
|
cardPlacement?: string;
|
|
161
159
|
color?: string;
|
|
162
160
|
};
|
|
161
|
+
graphs?: {
|
|
162
|
+
lineShape?: string;
|
|
163
|
+
areaGraphs?: boolean;
|
|
164
|
+
customBackground?: cssColor;
|
|
165
|
+
showTrendLine?: boolean;
|
|
166
|
+
};
|
|
163
167
|
};
|
|
164
168
|
}
|