@connectif/ui-components 2.0.10 → 2.0.12

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, fullGrid, axisFontSize, axisFontColor, yAxisPosition, xAxisMargin, chartRef }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
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: fullGrid ? 0 : 16,
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: {
@@ -24230,8 +24230,7 @@ var Loader = ({
24230
24230
  var Loader_default = Loader;
24231
24231
 
24232
24232
  // src/components/markdown/MarkdownRenderer.tsx
24233
- import ReactMarkdown from "react-markdown";
24234
- import remarkGfm from "remark-gfm";
24233
+ import Markdown from "markdown-to-jsx";
24235
24234
  import { styled as styled8 } from "@mui/material/styles";
24236
24235
  import { jsx as jsx136 } from "react/jsx-runtime";
24237
24236
  var MarkdownContainer = styled8("div")(
@@ -24297,7 +24296,15 @@ var MarkdownContainer = styled8("div")(
24297
24296
  var MarkdownRenderer = ({
24298
24297
  text,
24299
24298
  ...rest
24300
- }) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(ReactMarkdown, { remarkPlugins: [remarkGfm], skipHtml: true, children: text }) });
24299
+ }) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(
24300
+ Markdown,
24301
+ {
24302
+ options: {
24303
+ forceBlock: true
24304
+ },
24305
+ children: text
24306
+ }
24307
+ ) });
24301
24308
  var MarkdownRenderer_default = MarkdownRenderer;
24302
24309
 
24303
24310
  // src/components/navbar/Navbar.tsx
@@ -26378,7 +26385,7 @@ react-is/cjs/react-is.development.js:
26378
26385
 
26379
26386
  @mui/styled-engine/esm/index.js:
26380
26387
  (**
26381
- * @mui/styled-engine v7.2.0
26388
+ * @mui/styled-engine v7.3.0
26382
26389
  *
26383
26390
  * @license MIT
26384
26391
  * This source code is licensed under the MIT license found in the
@@ -26387,7 +26394,7 @@ react-is/cjs/react-is.development.js:
26387
26394
 
26388
26395
  @mui/system/esm/index.js:
26389
26396
  (**
26390
- * @mui/system v7.2.0
26397
+ * @mui/system v7.3.0
26391
26398
  *
26392
26399
  * @license MIT
26393
26400
  * This source code is licensed under the MIT license found in the