sag_components 1.0.1004 → 1.0.1006

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.
@@ -104,14 +104,15 @@ const BarChart = props => {
104
104
  x: 0,
105
105
  dy: showCurrentCampaignStyle ? 20 : 50,
106
106
  fontSize: showCurrentCampaignStyle ? 12 : 16,
107
- fontWeight: showCurrentCampaignStyle ? 500 : 600
107
+ fontWeight: showCurrentCampaignStyle ? 500 : 600,
108
+ fill: showCurrentCampaignStyle && !retailerData[0].isCurrent ? '#8B8989' : '#212121'
108
109
  }, (() => {
109
110
  if (showCurrentCampaignStyle) {
110
111
  var _payload$value2;
111
112
  if (retailerData[0].isCurrent) {
112
113
  var _payload$value;
113
- if ((payload === null || payload === void 0 ? void 0 : (_payload$value = payload.value) === null || _payload$value === void 0 ? void 0 : _payload$value.length) > 7) {
114
- return `${payload.value.slice(0, 7)}...-Current`;
114
+ if ((payload === null || payload === void 0 ? void 0 : (_payload$value = payload.value) === null || _payload$value === void 0 ? void 0 : _payload$value.length) > 6) {
115
+ return `${payload.value.slice(0, 6)}...-Current`;
115
116
  }
116
117
  return `${payload.value}-Current`;
117
118
  }
@@ -144,7 +145,7 @@ const BarChart = props => {
144
145
  x: x + 30,
145
146
  y: y,
146
147
  dy: -8,
147
- fill: stroke,
148
+ fill: showCurrentCampaignStyle ? '#8B8989' : stroke,
148
149
  fontSize: barFontSizeValue,
149
150
  textAnchor: "middle"
150
151
  }, displayFormattedValue(value));
@@ -175,7 +176,7 @@ const BarChart = props => {
175
176
  interval: "preserveEnd",
176
177
  domain: [0, 'auto'],
177
178
  tick: {
178
- fill: '#B1B1B1'
179
+ fill: '#8B8989'
179
180
  },
180
181
  axisLine: false,
181
182
  fontWeight: 400,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.1004",
3
+ "version": "1.0.1006",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {