@connectif/ui-components 2.0.10 → 2.0.11
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.
|
@@ -92,10 +92,6 @@ export type LineChartProps = CategorizedChartProps & {
|
|
|
92
92
|
* Option to disable split lines on X axe.
|
|
93
93
|
*/
|
|
94
94
|
disableSplitLine?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Option to enable full grid on the chart.
|
|
97
|
-
*/
|
|
98
|
-
fullGrid?: boolean;
|
|
99
95
|
/**
|
|
100
96
|
* Font size to format the label of the Y axis.
|
|
101
97
|
*/
|
|
@@ -116,10 +112,19 @@ export type LineChartProps = CategorizedChartProps & {
|
|
|
116
112
|
* Reference to chart component
|
|
117
113
|
*/
|
|
118
114
|
chartRef?: React.RefObject<ReactEChartsCore>;
|
|
115
|
+
/**
|
|
116
|
+
* Set grid internal margin
|
|
117
|
+
*/
|
|
118
|
+
gridMargin?: {
|
|
119
|
+
left?: number;
|
|
120
|
+
top?: number;
|
|
121
|
+
bottom?: number;
|
|
122
|
+
right?: number;
|
|
123
|
+
};
|
|
119
124
|
};
|
|
120
125
|
/**
|
|
121
126
|
* A line chart component to display numeric data grouped by categories and series.
|
|
122
127
|
* Commonly, categories use to be sorted dates.
|
|
123
128
|
*/
|
|
124
|
-
declare const LineChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, ySecondaryAxisLabelFormatter, onClick, disableSeriesNames, disableAxes, disableSplitLine,
|
|
129
|
+
declare const LineChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, ySecondaryAxisLabelFormatter, onClick, disableSeriesNames, disableAxes, disableSplitLine, axisFontSize, axisFontColor, yAxisPosition, xAxisMargin, chartRef, gridMargin }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
125
130
|
export default LineChart;
|
package/dist/index.js
CHANGED
|
@@ -12302,12 +12302,12 @@ var LineChart2 = ({
|
|
|
12302
12302
|
disableSeriesNames = false,
|
|
12303
12303
|
disableAxes = false,
|
|
12304
12304
|
disableSplitLine = false,
|
|
12305
|
-
fullGrid = false,
|
|
12306
12305
|
axisFontSize = "11px",
|
|
12307
12306
|
axisFontColor = grey400,
|
|
12308
12307
|
yAxisPosition = "right",
|
|
12309
12308
|
xAxisMargin,
|
|
12310
|
-
chartRef
|
|
12309
|
+
chartRef,
|
|
12310
|
+
gridMargin
|
|
12311
12311
|
}) => {
|
|
12312
12312
|
const theme2 = useTheme3();
|
|
12313
12313
|
const cursor2 = onClick ? "pointer" : "default";
|
|
@@ -12470,10 +12470,10 @@ var LineChart2 = ({
|
|
|
12470
12470
|
formatter: tooltipFormatter
|
|
12471
12471
|
},
|
|
12472
12472
|
grid: {
|
|
12473
|
-
left: 0,
|
|
12474
|
-
right: 0,
|
|
12475
|
-
top:
|
|
12476
|
-
bottom: 0,
|
|
12473
|
+
left: gridMargin?.left || 0,
|
|
12474
|
+
right: gridMargin?.right || 0,
|
|
12475
|
+
top: gridMargin?.top || 16,
|
|
12476
|
+
bottom: gridMargin?.bottom || 0,
|
|
12477
12477
|
containLabel: true
|
|
12478
12478
|
},
|
|
12479
12479
|
xAxis: {
|
|
@@ -24233,6 +24233,8 @@ var Loader_default = Loader;
|
|
|
24233
24233
|
import ReactMarkdown from "react-markdown";
|
|
24234
24234
|
import remarkGfm from "remark-gfm";
|
|
24235
24235
|
import { styled as styled8 } from "@mui/material/styles";
|
|
24236
|
+
import remarkMath from "remark-math";
|
|
24237
|
+
import rehypeKatex from "rehype-katex";
|
|
24236
24238
|
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
24237
24239
|
var MarkdownContainer = styled8("div")(
|
|
24238
24240
|
({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
|
|
@@ -24291,13 +24293,24 @@ var MarkdownContainer = styled8("div")(
|
|
|
24291
24293
|
},
|
|
24292
24294
|
"& a:hover": {
|
|
24293
24295
|
textDecoration: "underline"
|
|
24296
|
+
},
|
|
24297
|
+
"& .katex .katex-html": {
|
|
24298
|
+
display: "none"
|
|
24294
24299
|
}
|
|
24295
24300
|
})
|
|
24296
24301
|
);
|
|
24297
24302
|
var MarkdownRenderer = ({
|
|
24298
24303
|
text,
|
|
24299
24304
|
...rest
|
|
24300
|
-
}) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(
|
|
24305
|
+
}) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(
|
|
24306
|
+
ReactMarkdown,
|
|
24307
|
+
{
|
|
24308
|
+
remarkPlugins: [remarkGfm, remarkMath],
|
|
24309
|
+
rehypePlugins: [rehypeKatex],
|
|
24310
|
+
skipHtml: true,
|
|
24311
|
+
children: text
|
|
24312
|
+
}
|
|
24313
|
+
) });
|
|
24301
24314
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
24302
24315
|
|
|
24303
24316
|
// src/components/navbar/Navbar.tsx
|
|
@@ -26378,7 +26391,7 @@ react-is/cjs/react-is.development.js:
|
|
|
26378
26391
|
|
|
26379
26392
|
@mui/styled-engine/esm/index.js:
|
|
26380
26393
|
(**
|
|
26381
|
-
* @mui/styled-engine v7.
|
|
26394
|
+
* @mui/styled-engine v7.3.0
|
|
26382
26395
|
*
|
|
26383
26396
|
* @license MIT
|
|
26384
26397
|
* This source code is licensed under the MIT license found in the
|
|
@@ -26387,7 +26400,7 @@ react-is/cjs/react-is.development.js:
|
|
|
26387
26400
|
|
|
26388
26401
|
@mui/system/esm/index.js:
|
|
26389
26402
|
(**
|
|
26390
|
-
* @mui/system v7.
|
|
26403
|
+
* @mui/system v7.3.0
|
|
26391
26404
|
*
|
|
26392
26405
|
* @license MIT
|
|
26393
26406
|
* This source code is licensed under the MIT license found in the
|