@auth0/quantum-charts 1.0.7 → 1.0.8
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/esm/line-chart/index.js +3 -3
- package/line-chart/index.js +3 -3
- package/package.json +2 -2
package/esm/line-chart/index.js
CHANGED
|
@@ -174,9 +174,9 @@ export function LineChart(props) {
|
|
|
174
174
|
threshold &&
|
|
175
175
|
breaches[threshold.evaluated_metric].map(function (breach, index) {
|
|
176
176
|
return (React.createElement(React.Fragment, null,
|
|
177
|
-
React.createElement(ReferenceLine, { key: index, x: breach.start, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
178
|
-
React.createElement(ReferenceArea, { key: index, x1: breach.start, x2: breach.end, fill: getThresholdColor(lineVisibility, theme.tokens.color_bg_state_neutral), fillOpacity: 0.1, visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
179
|
-
React.createElement(ReferenceLine, { key: index, x: breach.end, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' })));
|
|
177
|
+
React.createElement(ReferenceLine, { key: "".concat(index, "_start"), x: breach.start, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
178
|
+
React.createElement(ReferenceArea, { key: "".concat(index, "_area"), x1: breach.start, x2: breach.end, fill: getThresholdColor(lineVisibility, theme.tokens.color_bg_state_neutral), fillOpacity: 0.1, visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
179
|
+
React.createElement(ReferenceLine, { key: "".concat(index, "_end"), x: breach.end, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' })));
|
|
180
180
|
}))) : (React.createElement("div", { style: {
|
|
181
181
|
display: 'grid',
|
|
182
182
|
placeItems: 'center',
|
package/line-chart/index.js
CHANGED
|
@@ -203,9 +203,9 @@ function LineChart(props) {
|
|
|
203
203
|
threshold &&
|
|
204
204
|
breaches[threshold.evaluated_metric].map(function (breach, index) {
|
|
205
205
|
return (React.createElement(React.Fragment, null,
|
|
206
|
-
React.createElement(recharts_1.ReferenceLine, { key: index, x: breach.start, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
207
|
-
React.createElement(recharts_1.ReferenceArea, { key: index, x1: breach.start, x2: breach.end, fill: getThresholdColor(lineVisibility, theme.tokens.color_bg_state_neutral), fillOpacity: 0.1, visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
208
|
-
React.createElement(recharts_1.ReferenceLine, { key: index, x: breach.end, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' })));
|
|
206
|
+
React.createElement(recharts_1.ReferenceLine, { key: "".concat(index, "_start"), x: breach.start, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
207
|
+
React.createElement(recharts_1.ReferenceArea, { key: "".concat(index, "_area"), x1: breach.start, x2: breach.end, fill: getThresholdColor(lineVisibility, theme.tokens.color_bg_state_neutral), fillOpacity: 0.1, visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' }),
|
|
208
|
+
React.createElement(recharts_1.ReferenceLine, { key: "".concat(index, "_end"), x: breach.end, stroke: getThresholdColor(lineVisibility, theme.tokens.color_border_state_neutral), strokeDasharray: "3 3", visibility: !lineVisibility['thresholdControl'] ? 'visible' : 'hidden' })));
|
|
209
209
|
}))) : (React.createElement("div", { style: {
|
|
210
210
|
display: 'grid',
|
|
211
211
|
placeItems: 'center',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth0/quantum-charts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@auth0/quantum-product": "^2.1.5",
|
|
20
20
|
"@formatjs/intl": "^2.5.1",
|
|
21
21
|
"date-fns": "^2.29.3",
|
|
22
|
-
"recharts": "^2.
|
|
22
|
+
"recharts": "^2.12.7"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "*",
|