@helioviewer/superset-plugin-chart-big-calendar 3.0.0 → 3.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.
@@ -154,7 +154,10 @@ export default function SupersetPluginChartBigCalendar(props) {
154
154
  orient: 'horizontal',
155
155
  left: 'center',
156
156
  top: 0,
157
- backgroundColor: props.legendBackgroundColor ? `rgba(${props.legendBackgroundColor.r}, ${props.legendBackgroundColor.g}, ${props.legendBackgroundColor.b}, ${props.legendBackgroundColor.a})` : 'rgba(238, 238, 238, 1)',
157
+ backgroundColor: props.legendBackgroundColor ? `rgba(${props.legendBackgroundColor.r}, ${props.legendBackgroundColor.g}, ${props.legendBackgroundColor.b}, ${props.legendBackgroundColor.a})` : isDarkMode ? 'rgba(50, 50, 50, 1)' : 'rgba(238, 238, 238, 1)',
158
+ textStyle: {
159
+ color: axisLabelColor
160
+ },
158
161
  padding: parseInt(props.legendPadding) || 5,
159
162
  inRange: {
160
163
  color: props.colorRange ? props.colorRange.map(v => `rgba(${v.r}, ${v.g}, ${v.b}, ${v.a})`) : ['rgba(173, 216, 230, 1)', 'rgba(135, 206, 235, 1)', 'rgba(0, 191, 255, 1)', 'rgba(30, 144, 255, 1)', 'rgba(0, 0, 255, 1)']
@@ -1 +1 @@
1
- {"version":3,"file":"SupersetPluginChartBigCalendar.d.ts","sourceRoot":"","sources":["../src/SupersetPluginChartBigCalendar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,mCAAmC,EAA6C,MAAM,SAAS,CAAC;AAuEzG,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,KAAK,EAAE,mCAAmC,qBAiGhG"}
1
+ {"version":3,"file":"SupersetPluginChartBigCalendar.d.ts","sourceRoot":"","sources":["../src/SupersetPluginChartBigCalendar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,mCAAmC,EAA6C,MAAM,SAAS,CAAC;AAuEzG,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,KAAK,EAAE,mCAAmC,qBAoGhG"}
@@ -158,7 +158,10 @@ function SupersetPluginChartBigCalendar(props) {
158
158
  orient: 'horizontal',
159
159
  left: 'center',
160
160
  top: 0,
161
- backgroundColor: props.legendBackgroundColor ? `rgba(${props.legendBackgroundColor.r}, ${props.legendBackgroundColor.g}, ${props.legendBackgroundColor.b}, ${props.legendBackgroundColor.a})` : 'rgba(238, 238, 238, 1)',
161
+ backgroundColor: props.legendBackgroundColor ? `rgba(${props.legendBackgroundColor.r}, ${props.legendBackgroundColor.g}, ${props.legendBackgroundColor.b}, ${props.legendBackgroundColor.a})` : isDarkMode ? 'rgba(50, 50, 50, 1)' : 'rgba(238, 238, 238, 1)',
162
+ textStyle: {
163
+ color: axisLabelColor
164
+ },
162
165
  padding: parseInt(props.legendPadding) || 5,
163
166
  inRange: {
164
167
  color: props.colorRange ? props.colorRange.map(v => `rgba(${v.r}, ${v.g}, ${v.b}, ${v.a})`) : ['rgba(173, 216, 230, 1)', 'rgba(135, 206, 235, 1)', 'rgba(0, 191, 255, 1)', 'rgba(30, 144, 255, 1)', 'rgba(0, 0, 255, 1)']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helioviewer/superset-plugin-chart-big-calendar",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Big Calendar Heatmap",
5
5
  "sideEffects": false,
6
6
  "main": "lib/index.js",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@airbnb/config-babel": "*",
33
- "@superset-ui/chart-controls": "^0.18.5",
34
- "@superset-ui/core": "^0.18.5",
33
+ "@superset-ui/chart-controls": "*",
34
+ "@superset-ui/core": "*",
35
35
  "nanoid": "*",
36
36
  "react": "*"
37
37
  },