@kausal/themes 0.6.2 → 0.6.3
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 +5 -0
- package/types.ts +7 -4
package/package.json
CHANGED
package/props.js
CHANGED
|
@@ -177,6 +177,11 @@ 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
|
+
}),
|
|
180
185
|
}),
|
|
181
186
|
};
|
|
182
187
|
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,10 @@ 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
|
+
};
|
|
163
166
|
};
|
|
164
167
|
}
|