@connectif/ui-components 2.0.0 → 2.0.1
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './EchartsConfig';
|
|
2
2
|
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
3
|
+
import { sizes } from '../../theme/Typography';
|
|
3
4
|
import { IncrementLabelType } from '../../propTypes/IncrementLabel';
|
|
4
5
|
import { ChartTooltipEntryFormatter } from '../../utils/ChartUtils';
|
|
5
6
|
type YAxisLabelFormatter = (value: number) => string;
|
|
@@ -13,6 +14,18 @@ export type BarChartProps = {
|
|
|
13
14
|
* The categories to display on the x axis.
|
|
14
15
|
*/
|
|
15
16
|
categories: string[];
|
|
17
|
+
/**
|
|
18
|
+
* labels color
|
|
19
|
+
*/
|
|
20
|
+
labelColor?: string;
|
|
21
|
+
/**
|
|
22
|
+
* font size to X labels
|
|
23
|
+
*/
|
|
24
|
+
gridLabelSize?: keyof typeof sizes;
|
|
25
|
+
/**
|
|
26
|
+
* Grid lines color
|
|
27
|
+
*/
|
|
28
|
+
gridLineColor?: string;
|
|
16
29
|
/**
|
|
17
30
|
* Optional callback to be called when the chart is clicked.
|
|
18
31
|
*/
|
|
@@ -49,6 +62,10 @@ export type BarChartProps = {
|
|
|
49
62
|
* The text to use for this item as name in tooltip.
|
|
50
63
|
*/
|
|
51
64
|
comparisonTooltipName?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Set to show background color in bar when not is comparison
|
|
67
|
+
*/
|
|
68
|
+
showBackgroundColorBar?: boolean;
|
|
52
69
|
data: {
|
|
53
70
|
/**
|
|
54
71
|
* The value to display in the chart for this serie item.
|
|
@@ -80,5 +97,5 @@ export type BarChartProps = {
|
|
|
80
97
|
/**
|
|
81
98
|
* A bar chart component to display numeric data grouped by categories and series.
|
|
82
99
|
*/
|
|
83
|
-
declare const BarChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
declare const BarChart: ({ style, isLoading, series, categories, labelColor, gridLineColor, gridLabelSize, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
84
101
|
export default BarChart;
|
|
@@ -59,6 +59,24 @@ export type LineChartProps = CategorizedChartProps & {
|
|
|
59
59
|
* The yAxis for this serie
|
|
60
60
|
*/
|
|
61
61
|
yAxisIndex: number;
|
|
62
|
+
/**
|
|
63
|
+
* The area color. With color will be a solid color. With startColor and endColor will be gradient color.
|
|
64
|
+
*/
|
|
65
|
+
areaColor?: {
|
|
66
|
+
color: string;
|
|
67
|
+
startColor?: never;
|
|
68
|
+
endColor?: never;
|
|
69
|
+
} | {
|
|
70
|
+
color?: never;
|
|
71
|
+
startColor: {
|
|
72
|
+
offset: number;
|
|
73
|
+
color: string;
|
|
74
|
+
};
|
|
75
|
+
endColor: {
|
|
76
|
+
offset: number;
|
|
77
|
+
color: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
62
80
|
}[];
|
|
63
81
|
/**
|
|
64
82
|
* Option to disable the display of series names.
|
|
@@ -8,10 +8,14 @@ export type ChatProps = React.PropsWithChildren<{
|
|
|
8
8
|
* Background color
|
|
9
9
|
*/
|
|
10
10
|
backgroundColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Class name to move scroll on new message. If undefined, scroll to bottom.
|
|
13
|
+
*/
|
|
14
|
+
scrollToLastClassName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Scrollbar color
|
|
17
|
+
*/
|
|
18
|
+
scrollbarColor?: string;
|
|
11
19
|
}>;
|
|
12
|
-
|
|
13
|
-
* Shows a list of chat message, in a vertical layout.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
declare const Chat: ({ children, header, backgroundColor }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const Chat: ({ children, header, backgroundColor, scrollToLastClassName, scrollbarColor }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export default Chat;
|
package/dist/index.js
CHANGED
|
@@ -8155,7 +8155,7 @@ function createBox(options = {}) {
|
|
|
8155
8155
|
const BoxRoot = styled2("div", {
|
|
8156
8156
|
shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as"
|
|
8157
8157
|
})(styleFunctionSx_default);
|
|
8158
|
-
const
|
|
8158
|
+
const Box7 = /* @__PURE__ */ React16.forwardRef(function Box8(inProps, ref) {
|
|
8159
8159
|
const theme2 = useTheme_default(defaultTheme);
|
|
8160
8160
|
const {
|
|
8161
8161
|
className,
|
|
@@ -8170,7 +8170,7 @@ function createBox(options = {}) {
|
|
|
8170
8170
|
...other
|
|
8171
8171
|
});
|
|
8172
8172
|
});
|
|
8173
|
-
return
|
|
8173
|
+
return Box7;
|
|
8174
8174
|
}
|
|
8175
8175
|
|
|
8176
8176
|
// node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js
|
|
@@ -8921,6 +8921,7 @@ var typography = {
|
|
|
8921
8921
|
fontSize: 16,
|
|
8922
8922
|
allVariants: {
|
|
8923
8923
|
color: gunMetal,
|
|
8924
|
+
cursor: "inherit",
|
|
8924
8925
|
fontFamily: families.primary,
|
|
8925
8926
|
fontSize: sizes3.md
|
|
8926
8927
|
},
|
|
@@ -11984,6 +11985,9 @@ var BarChart2 = ({
|
|
|
11984
11985
|
isLoading,
|
|
11985
11986
|
series = [],
|
|
11986
11987
|
categories = [],
|
|
11988
|
+
labelColor = grey400,
|
|
11989
|
+
gridLineColor = grey200,
|
|
11990
|
+
gridLabelSize = "sm",
|
|
11987
11991
|
yAxisLabelFormatter = (value) => `${value}`,
|
|
11988
11992
|
tooltipEntryFormatter = ({ data }) => ({
|
|
11989
11993
|
text: `${data.tooltipName}: ${data.tooltipValue}`
|
|
@@ -12117,8 +12121,8 @@ var BarChart2 = ({
|
|
|
12117
12121
|
show: false
|
|
12118
12122
|
},
|
|
12119
12123
|
axisLabel: {
|
|
12120
|
-
color:
|
|
12121
|
-
fontSize: sizes3
|
|
12124
|
+
color: labelColor,
|
|
12125
|
+
fontSize: sizes3[gridLabelSize],
|
|
12122
12126
|
width: (width2 - estimatedYAxisWidth) / categories.length,
|
|
12123
12127
|
overflow: "truncate",
|
|
12124
12128
|
hideOverlap: false,
|
|
@@ -12130,7 +12134,7 @@ var BarChart2 = ({
|
|
|
12130
12134
|
boundaryGap: ["0", "10%"],
|
|
12131
12135
|
splitLine: {
|
|
12132
12136
|
lineStyle: {
|
|
12133
|
-
color:
|
|
12137
|
+
color: gridLineColor
|
|
12134
12138
|
}
|
|
12135
12139
|
},
|
|
12136
12140
|
axisLine: {
|
|
@@ -12140,8 +12144,8 @@ var BarChart2 = ({
|
|
|
12140
12144
|
show: false
|
|
12141
12145
|
},
|
|
12142
12146
|
axisLabel: {
|
|
12143
|
-
color:
|
|
12144
|
-
fontSize: sizes3
|
|
12147
|
+
color: labelColor,
|
|
12148
|
+
fontSize: sizes3[gridLabelSize],
|
|
12145
12149
|
formatter: yAxisLabelFormatter
|
|
12146
12150
|
}
|
|
12147
12151
|
},
|
|
@@ -12151,14 +12155,15 @@ var BarChart2 = ({
|
|
|
12151
12155
|
data,
|
|
12152
12156
|
tooltipName,
|
|
12153
12157
|
comparisonColor,
|
|
12154
|
-
comparisonTooltipName
|
|
12158
|
+
comparisonTooltipName,
|
|
12159
|
+
showBackgroundColorBar
|
|
12155
12160
|
}, serieIndex) => [
|
|
12156
12161
|
...isComparison ? [
|
|
12157
12162
|
{
|
|
12158
12163
|
...defaultBarSeriesOptions,
|
|
12159
12164
|
cursor: cursor2,
|
|
12160
12165
|
silent,
|
|
12161
|
-
showBackground: false,
|
|
12166
|
+
showBackground: showBackgroundColorBar ?? false,
|
|
12162
12167
|
stack: `${serieIndex}`,
|
|
12163
12168
|
data: data.map(
|
|
12164
12169
|
({
|
|
@@ -12190,7 +12195,7 @@ var BarChart2 = ({
|
|
|
12190
12195
|
...defaultBarSeriesOptions,
|
|
12191
12196
|
cursor: cursor2,
|
|
12192
12197
|
silent,
|
|
12193
|
-
showBackground: true,
|
|
12198
|
+
showBackground: showBackgroundColorBar ?? true,
|
|
12194
12199
|
stack: `${serieIndex}`,
|
|
12195
12200
|
data: data.map(
|
|
12196
12201
|
({
|
|
@@ -12246,9 +12251,9 @@ var BarChart_default = BarChart2;
|
|
|
12246
12251
|
|
|
12247
12252
|
// src/components/chart/LineChart.tsx
|
|
12248
12253
|
import * as React31 from "react";
|
|
12254
|
+
import { createRoot } from "react-dom/client";
|
|
12249
12255
|
import ReactEChartsCore2 from "echarts-for-react/lib/core";
|
|
12250
12256
|
import * as echarts3 from "echarts/core";
|
|
12251
|
-
import { renderToString as renderToString3 } from "react-dom/server";
|
|
12252
12257
|
import { ThemeProvider, useTheme as useTheme3 } from "@mui/material/styles";
|
|
12253
12258
|
import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12254
12259
|
var LineChart2 = ({
|
|
@@ -12357,6 +12362,10 @@ var LineChart2 = ({
|
|
|
12357
12362
|
) : /* @__PURE__ */ jsx67("span", {})
|
|
12358
12363
|
] }, serie.name);
|
|
12359
12364
|
};
|
|
12365
|
+
const tooltipReact = React31.useMemo(() => {
|
|
12366
|
+
const domElement = document.createElement("div");
|
|
12367
|
+
return { root: createRoot(domElement), domElement };
|
|
12368
|
+
}, []);
|
|
12360
12369
|
const tooltipFormatter = (datas) => {
|
|
12361
12370
|
const { axisValueLabel, dataIndex } = datas[0];
|
|
12362
12371
|
const { tooltipCategoryLabel, value } = series[0].data[dataIndex];
|
|
@@ -12365,58 +12374,58 @@ var LineChart2 = ({
|
|
|
12365
12374
|
}
|
|
12366
12375
|
const categoryLabel = tooltipCategoryLabel ?? axisValueLabel;
|
|
12367
12376
|
const hasGroup = groups.some((group) => group !== "");
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
{
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
{
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
marginBottom: "8px"
|
|
12386
|
-
}
|
|
12387
|
-
}
|
|
12388
|
-
),
|
|
12389
|
-
group !== "" && /* @__PURE__ */ jsx67(
|
|
12390
|
-
Typography_default,
|
|
12391
|
-
{
|
|
12392
|
-
variant: "body2-semibold",
|
|
12393
|
-
color: grey800,
|
|
12394
|
-
sx: { marginBottom: "8px" },
|
|
12395
|
-
children: group
|
|
12396
|
-
}
|
|
12397
|
-
),
|
|
12398
|
-
/* @__PURE__ */ jsx67(
|
|
12399
|
-
Typography_default,
|
|
12400
|
-
{
|
|
12401
|
-
variant: "caption",
|
|
12402
|
-
color: grey600,
|
|
12403
|
-
sx: {
|
|
12404
|
-
marginBottom: "8px"
|
|
12405
|
-
},
|
|
12406
|
-
children: categoryLabel
|
|
12377
|
+
const tooltip = /* @__PURE__ */ jsx67(ThemeProvider, { theme: theme2, children: /* @__PURE__ */ jsx67(
|
|
12378
|
+
Box_default,
|
|
12379
|
+
{
|
|
12380
|
+
sx: {
|
|
12381
|
+
display: "grid",
|
|
12382
|
+
gridTemplateColumns: hasGroup ? "auto auto" : "auto",
|
|
12383
|
+
alignItems: "center",
|
|
12384
|
+
gap: "0 16px"
|
|
12385
|
+
},
|
|
12386
|
+
children: groups.map((group, index) => /* @__PURE__ */ jsxs26(React31.Fragment, { children: [
|
|
12387
|
+
index > 0 && /* @__PURE__ */ jsx67(
|
|
12388
|
+
Divider_default,
|
|
12389
|
+
{
|
|
12390
|
+
sx: {
|
|
12391
|
+
gridColumn: "1 / span 2",
|
|
12392
|
+
marginTop: "8px",
|
|
12393
|
+
marginBottom: "8px"
|
|
12407
12394
|
}
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12395
|
+
}
|
|
12396
|
+
),
|
|
12397
|
+
group !== "" && /* @__PURE__ */ jsx67(
|
|
12398
|
+
Typography_default,
|
|
12399
|
+
{
|
|
12400
|
+
variant: "body2-semibold",
|
|
12401
|
+
color: grey800,
|
|
12402
|
+
sx: { marginBottom: "8px" },
|
|
12403
|
+
children: group
|
|
12404
|
+
}
|
|
12405
|
+
),
|
|
12406
|
+
/* @__PURE__ */ jsx67(
|
|
12407
|
+
Typography_default,
|
|
12408
|
+
{
|
|
12409
|
+
variant: "caption",
|
|
12410
|
+
color: grey600,
|
|
12411
|
+
sx: {
|
|
12412
|
+
marginBottom: "8px"
|
|
12413
|
+
},
|
|
12414
|
+
children: categoryLabel
|
|
12415
|
+
}
|
|
12416
|
+
),
|
|
12417
|
+
datas.filter(
|
|
12418
|
+
(d) => isComparing && d.seriesIndex % 2 !== 0 ? false : (series[d.seriesIndex / (isComparing ? 2 : 1)].tooltipGroupTitle ?? "") === group
|
|
12419
|
+
).map((d) => {
|
|
12420
|
+
const serie = series[d.seriesIndex / (isComparing ? 2 : 1)];
|
|
12421
|
+
const data = serie.data[d.dataIndex];
|
|
12422
|
+
return tooltipEntryFormatter(serie, data);
|
|
12423
|
+
})
|
|
12424
|
+
] }, index))
|
|
12425
|
+
}
|
|
12426
|
+
) });
|
|
12427
|
+
tooltipReact.root.render(tooltip);
|
|
12428
|
+
return tooltipReact.domElement;
|
|
12420
12429
|
};
|
|
12421
12430
|
const options = {
|
|
12422
12431
|
tooltip: {
|
|
@@ -12484,7 +12493,13 @@ var LineChart2 = ({
|
|
|
12484
12493
|
],
|
|
12485
12494
|
series: [
|
|
12486
12495
|
...series.map(
|
|
12487
|
-
({
|
|
12496
|
+
({
|
|
12497
|
+
name,
|
|
12498
|
+
data,
|
|
12499
|
+
color: color2,
|
|
12500
|
+
yAxisIndex,
|
|
12501
|
+
areaColor
|
|
12502
|
+
}) => ({
|
|
12488
12503
|
type: "line",
|
|
12489
12504
|
name,
|
|
12490
12505
|
yAxisIndex,
|
|
@@ -12496,6 +12511,30 @@ var LineChart2 = ({
|
|
|
12496
12511
|
type: "solid",
|
|
12497
12512
|
width: 3
|
|
12498
12513
|
},
|
|
12514
|
+
...areaColor && {
|
|
12515
|
+
areaStyle: {
|
|
12516
|
+
...areaColor.color && { color: areaColor.color },
|
|
12517
|
+
...areaColor.startColor && areaColor.endColor && {
|
|
12518
|
+
color: new echarts3.graphic.LinearGradient(
|
|
12519
|
+
0,
|
|
12520
|
+
0,
|
|
12521
|
+
0,
|
|
12522
|
+
1,
|
|
12523
|
+
[
|
|
12524
|
+
{
|
|
12525
|
+
offset: areaColor.startColor.offset,
|
|
12526
|
+
color: areaColor.startColor.color
|
|
12527
|
+
},
|
|
12528
|
+
{
|
|
12529
|
+
offset: areaColor.endColor.offset,
|
|
12530
|
+
color: areaColor.endColor.color
|
|
12531
|
+
},
|
|
12532
|
+
{ offset: 1, color: "transparent" }
|
|
12533
|
+
]
|
|
12534
|
+
)
|
|
12535
|
+
}
|
|
12536
|
+
}
|
|
12537
|
+
},
|
|
12499
12538
|
showSymbol: true,
|
|
12500
12539
|
symbol: "circle",
|
|
12501
12540
|
symbolSize: 3,
|
|
@@ -13755,9 +13794,10 @@ var ChatMessage = React34.forwardRef(function ChatMessage2({
|
|
|
13755
13794
|
padding: "8px 16px",
|
|
13756
13795
|
paddingBottom: !cancelableButtonText ? "8px" : "40px",
|
|
13757
13796
|
marginLeft: 0,
|
|
13758
|
-
marginRight: "
|
|
13797
|
+
marginRight: "0",
|
|
13759
13798
|
minHeight: "22px",
|
|
13760
|
-
justifyContent: "center"
|
|
13799
|
+
justifyContent: "center",
|
|
13800
|
+
wordBreak: "break-all"
|
|
13761
13801
|
},
|
|
13762
13802
|
children: [
|
|
13763
13803
|
/* @__PURE__ */ jsx79(
|
|
@@ -13847,55 +13887,99 @@ var ChatMessage = React34.forwardRef(function ChatMessage2({
|
|
|
13847
13887
|
var ChatMessage_default = ChatMessage;
|
|
13848
13888
|
|
|
13849
13889
|
// src/components/chat/Chat.tsx
|
|
13850
|
-
import Box3 from "@mui/material/Box";
|
|
13851
13890
|
import Stack5 from "@mui/material/Stack";
|
|
13852
13891
|
import * as React35 from "react";
|
|
13853
13892
|
import { jsx as jsx80, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
13854
|
-
var Chat = ({
|
|
13855
|
-
|
|
13856
|
-
|
|
13893
|
+
var Chat = ({
|
|
13894
|
+
children,
|
|
13895
|
+
header,
|
|
13896
|
+
backgroundColor: backgroundColor2,
|
|
13897
|
+
scrollToLastClassName,
|
|
13898
|
+
scrollbarColor
|
|
13899
|
+
}) => {
|
|
13900
|
+
const ref = React35.useRef(null);
|
|
13857
13901
|
const [isInitialize, setIsInitialize] = React35.useState(false);
|
|
13902
|
+
const [hasVerticalScroll, setHasVerticalScroll] = React35.useState(false);
|
|
13858
13903
|
React35.useEffect(() => {
|
|
13859
|
-
|
|
13860
|
-
|
|
13904
|
+
const container = ref.current;
|
|
13905
|
+
if (!container) {
|
|
13906
|
+
return;
|
|
13861
13907
|
}
|
|
13862
|
-
|
|
13908
|
+
const observer = new ResizeObserver(() => {
|
|
13909
|
+
requestAnimationFrame(() => {
|
|
13910
|
+
const needsScroll = container.scrollHeight > container.clientHeight;
|
|
13911
|
+
setHasVerticalScroll(needsScroll);
|
|
13912
|
+
});
|
|
13913
|
+
});
|
|
13914
|
+
observer.observe(container);
|
|
13863
13915
|
setIsInitialize(true);
|
|
13864
|
-
|
|
13916
|
+
return () => observer.disconnect();
|
|
13917
|
+
}, []);
|
|
13865
13918
|
React35.useEffect(() => {
|
|
13866
|
-
|
|
13867
|
-
|
|
13919
|
+
const container = ref.current;
|
|
13920
|
+
if (!container) {
|
|
13921
|
+
return;
|
|
13868
13922
|
}
|
|
13869
|
-
|
|
13870
|
-
|
|
13923
|
+
if (scrollToLastClassName) {
|
|
13924
|
+
const elements = container.querySelectorAll(
|
|
13925
|
+
`.${scrollToLastClassName}`
|
|
13926
|
+
);
|
|
13927
|
+
const last = elements[elements.length - 1];
|
|
13928
|
+
if (last) {
|
|
13929
|
+
last.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
13930
|
+
} else {
|
|
13931
|
+
container.scrollTo(0, container.scrollHeight);
|
|
13932
|
+
}
|
|
13933
|
+
} else {
|
|
13934
|
+
container.scrollTo(0, container.scrollHeight);
|
|
13935
|
+
}
|
|
13936
|
+
}, [children, scrollToLastClassName]);
|
|
13871
13937
|
return /* @__PURE__ */ jsxs35(
|
|
13872
13938
|
Stack5,
|
|
13873
13939
|
{
|
|
13874
13940
|
className: "Slim-Vertical-Scroll",
|
|
13941
|
+
ref,
|
|
13875
13942
|
sx: {
|
|
13876
13943
|
overflow: "hidden",
|
|
13877
13944
|
overflowY: "auto",
|
|
13878
13945
|
height: "calc(100% - 8px)",
|
|
13879
|
-
visibility: !isInitialize ? "hidden" :
|
|
13946
|
+
visibility: !isInitialize ? "hidden" : "visible",
|
|
13947
|
+
width: `calc(100% - ${hasVerticalScroll ? "4px" : "8px"})`,
|
|
13880
13948
|
paddingBottom: "8px",
|
|
13881
|
-
...
|
|
13882
|
-
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
visibility: "visible"
|
|
13949
|
+
...backgroundColor2 && { backgroundColor: backgroundColor2 },
|
|
13950
|
+
paddingRight: hasVerticalScroll ? "4px" : "8px",
|
|
13951
|
+
"::-webkit-scrollbar": {
|
|
13952
|
+
width: "4px !important"
|
|
13886
13953
|
},
|
|
13887
13954
|
"::-webkit-scrollbar-thumb": {
|
|
13955
|
+
...scrollbarColor && {
|
|
13956
|
+
backgroundColor: `${scrollbarColor} !important`
|
|
13957
|
+
},
|
|
13958
|
+
borderRadius: "4px",
|
|
13888
13959
|
visibility: "hidden"
|
|
13889
13960
|
},
|
|
13890
|
-
|
|
13891
|
-
|
|
13961
|
+
":hover::-webkit-scrollbar-thumb": {
|
|
13962
|
+
visibility: "visible"
|
|
13892
13963
|
}
|
|
13893
13964
|
},
|
|
13894
13965
|
spacing: "12px",
|
|
13895
|
-
ref: (el) => ref = el,
|
|
13896
13966
|
children: [
|
|
13897
13967
|
header,
|
|
13898
|
-
/* @__PURE__ */ jsx80(
|
|
13968
|
+
/* @__PURE__ */ jsx80(
|
|
13969
|
+
Stack5,
|
|
13970
|
+
{
|
|
13971
|
+
justifyContent: "end",
|
|
13972
|
+
...!header && {
|
|
13973
|
+
minHeight: "100%",
|
|
13974
|
+
justifyContent: "end"
|
|
13975
|
+
},
|
|
13976
|
+
sx: {
|
|
13977
|
+
"> *": { marginTop: "12px" },
|
|
13978
|
+
flexShrink: 0
|
|
13979
|
+
},
|
|
13980
|
+
children
|
|
13981
|
+
}
|
|
13982
|
+
)
|
|
13899
13983
|
]
|
|
13900
13984
|
}
|
|
13901
13985
|
);
|
|
@@ -17976,9 +18060,9 @@ var ImageEditor_default = ImageEditor;
|
|
|
17976
18060
|
import React45 from "react";
|
|
17977
18061
|
|
|
17978
18062
|
// src/hooks/useResizeObserver.ts
|
|
17979
|
-
import { useEffect as useEffect8, useState as useState13, useRef as
|
|
18063
|
+
import { useEffect as useEffect8, useState as useState13, useRef as useRef12 } from "react";
|
|
17980
18064
|
function useResizeObserver() {
|
|
17981
|
-
const ref =
|
|
18065
|
+
const ref = useRef12(null);
|
|
17982
18066
|
const [width2, setWidth] = useState13(0);
|
|
17983
18067
|
const [height2, setHeight] = useState13(0);
|
|
17984
18068
|
const [contentWidth, setContentWidth] = useState13(0);
|
|
@@ -18156,10 +18240,10 @@ var TextFieldContainer_default = TextFieldContainer;
|
|
|
18156
18240
|
import * as React50 from "react";
|
|
18157
18241
|
|
|
18158
18242
|
// src/hooks/useDebouncedCallback.ts
|
|
18159
|
-
import { useEffect as useEffect9, useRef as
|
|
18243
|
+
import { useEffect as useEffect9, useRef as useRef13 } from "react";
|
|
18160
18244
|
function useDebouncedCallback(callback, wait) {
|
|
18161
|
-
const argsRef =
|
|
18162
|
-
const timeout =
|
|
18245
|
+
const argsRef = useRef13();
|
|
18246
|
+
const timeout = useRef13();
|
|
18163
18247
|
function cleanup() {
|
|
18164
18248
|
if (timeout.current) {
|
|
18165
18249
|
clearTimeout(timeout.current);
|
|
@@ -20731,14 +20815,14 @@ var ColorPicker = React59.forwardRef(function ColorPickerWrapper({
|
|
|
20731
20815
|
var ColorPicker_default = ColorPicker;
|
|
20732
20816
|
|
|
20733
20817
|
// src/components/input/UploadClickableArea.tsx
|
|
20734
|
-
import { Box as
|
|
20818
|
+
import { Box as Box3 } from "@mui/material";
|
|
20735
20819
|
import { jsx as jsx115, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
20736
20820
|
var UploadClickableArea = ({
|
|
20737
20821
|
accept,
|
|
20738
20822
|
onFilesChanged,
|
|
20739
20823
|
children
|
|
20740
20824
|
}) => /* @__PURE__ */ jsxs52(
|
|
20741
|
-
|
|
20825
|
+
Box3,
|
|
20742
20826
|
{
|
|
20743
20827
|
component: "label",
|
|
20744
20828
|
style: {
|
|
@@ -23778,7 +23862,7 @@ var LinearProgress_default = LinearProgress;
|
|
|
23778
23862
|
import * as React74 from "react";
|
|
23779
23863
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
23780
23864
|
import Typography3 from "@mui/material/Typography";
|
|
23781
|
-
import
|
|
23865
|
+
import Box4 from "@mui/material/Box";
|
|
23782
23866
|
import { jsx as jsx133, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
23783
23867
|
var circularSizes = {
|
|
23784
23868
|
XS: "20px",
|
|
@@ -23805,7 +23889,7 @@ var CircularProgress = ({
|
|
|
23805
23889
|
gradientColors ? crypto.randomUUID() : void 0
|
|
23806
23890
|
);
|
|
23807
23891
|
return /* @__PURE__ */ jsxs66(
|
|
23808
|
-
|
|
23892
|
+
Box4,
|
|
23809
23893
|
{
|
|
23810
23894
|
sx: {
|
|
23811
23895
|
position: "relative",
|
|
@@ -23845,7 +23929,7 @@ var CircularProgress = ({
|
|
|
23845
23929
|
}
|
|
23846
23930
|
) }) }),
|
|
23847
23931
|
showCircularBackground && /* @__PURE__ */ jsx133(
|
|
23848
|
-
|
|
23932
|
+
Box4,
|
|
23849
23933
|
{
|
|
23850
23934
|
sx: {
|
|
23851
23935
|
position: "absolute",
|
|
@@ -23899,7 +23983,7 @@ var CircularProgress = ({
|
|
|
23899
23983
|
}
|
|
23900
23984
|
),
|
|
23901
23985
|
variant !== "indeterminate" && /* @__PURE__ */ jsx133(
|
|
23902
|
-
|
|
23986
|
+
Box4,
|
|
23903
23987
|
{
|
|
23904
23988
|
sx: {
|
|
23905
23989
|
top: 0,
|
|
@@ -23931,7 +24015,7 @@ var CircularProgress = ({
|
|
|
23931
24015
|
var CircularProgress_default = CircularProgress;
|
|
23932
24016
|
|
|
23933
24017
|
// src/components/progress/DonutProgress.tsx
|
|
23934
|
-
import
|
|
24018
|
+
import Box5 from "@mui/material/Box";
|
|
23935
24019
|
import { Stack as Stack10 } from "@mui/material";
|
|
23936
24020
|
import { jsx as jsx134, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
23937
24021
|
var CIRCULAR_PROGRESS_PERCENTAGE = 85;
|
|
@@ -23983,7 +24067,7 @@ var DonutProgress = ({
|
|
|
23983
24067
|
)
|
|
23984
24068
|
] });
|
|
23985
24069
|
return /* @__PURE__ */ jsxs67(
|
|
23986
|
-
|
|
24070
|
+
Box5,
|
|
23987
24071
|
{
|
|
23988
24072
|
sx: {
|
|
23989
24073
|
position: "relative",
|
|
@@ -24007,7 +24091,7 @@ var DonutProgress = ({
|
|
|
24007
24091
|
}
|
|
24008
24092
|
),
|
|
24009
24093
|
/* @__PURE__ */ jsx134(
|
|
24010
|
-
|
|
24094
|
+
Box5,
|
|
24011
24095
|
{
|
|
24012
24096
|
sx: {
|
|
24013
24097
|
position: "absolute",
|
|
@@ -24030,7 +24114,7 @@ var DonutProgress = ({
|
|
|
24030
24114
|
}
|
|
24031
24115
|
),
|
|
24032
24116
|
variant !== "empty" && labelChip && /* @__PURE__ */ jsx134(
|
|
24033
|
-
|
|
24117
|
+
Box5,
|
|
24034
24118
|
{
|
|
24035
24119
|
sx: {
|
|
24036
24120
|
position: "absolute",
|
|
@@ -24113,6 +24197,7 @@ var MarkdownContainer = styled8("div")(
|
|
|
24113
24197
|
margin: "0.5em 0"
|
|
24114
24198
|
},
|
|
24115
24199
|
"& ul, & ol": {
|
|
24200
|
+
...variants[variant || "body2"],
|
|
24116
24201
|
paddingLeft: "1.5em",
|
|
24117
24202
|
margin: "0.5em 0"
|
|
24118
24203
|
},
|
|
@@ -24225,7 +24310,7 @@ var Navbar_default = Navbar;
|
|
|
24225
24310
|
|
|
24226
24311
|
// src/components/navbar/NavbarButton.tsx
|
|
24227
24312
|
import * as React75 from "react";
|
|
24228
|
-
import { Box as
|
|
24313
|
+
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
24229
24314
|
import { jsx as jsx138, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
24230
24315
|
var NavbarButton = React75.forwardRef(
|
|
24231
24316
|
function NavbarButton2({
|
|
@@ -24242,7 +24327,7 @@ var NavbarButton = React75.forwardRef(
|
|
|
24242
24327
|
return element;
|
|
24243
24328
|
}
|
|
24244
24329
|
return /* @__PURE__ */ jsxs69(
|
|
24245
|
-
|
|
24330
|
+
Box6,
|
|
24246
24331
|
{
|
|
24247
24332
|
sx: {
|
|
24248
24333
|
backgroundImage: `linear-gradient(to left, ${cornflowerBlue}, ${electricLavender})`,
|
|
@@ -24252,7 +24337,7 @@ var NavbarButton = React75.forwardRef(
|
|
|
24252
24337
|
},
|
|
24253
24338
|
children: [
|
|
24254
24339
|
/* @__PURE__ */ jsx138(
|
|
24255
|
-
|
|
24340
|
+
Box6,
|
|
24256
24341
|
{
|
|
24257
24342
|
sx: {
|
|
24258
24343
|
position: "absolute",
|
|
@@ -24268,7 +24353,7 @@ var NavbarButton = React75.forwardRef(
|
|
|
24268
24353
|
}
|
|
24269
24354
|
),
|
|
24270
24355
|
/* @__PURE__ */ jsx138(
|
|
24271
|
-
|
|
24356
|
+
Box6,
|
|
24272
24357
|
{
|
|
24273
24358
|
sx: {
|
|
24274
24359
|
backgroundColor: white,
|
|
@@ -24906,7 +24991,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
24906
24991
|
|
|
24907
24992
|
// src/components/layout/SwipeableViews.tsx
|
|
24908
24993
|
import * as React80 from "react";
|
|
24909
|
-
import { useEffect as useEffect21, useRef as
|
|
24994
|
+
import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
|
|
24910
24995
|
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
24911
24996
|
var styles = {
|
|
24912
24997
|
container: {
|
|
@@ -24939,9 +25024,9 @@ function SwipeableViews({
|
|
|
24939
25024
|
children,
|
|
24940
25025
|
...rootProps
|
|
24941
25026
|
}) {
|
|
24942
|
-
const containerRef =
|
|
24943
|
-
const scrollTimeout =
|
|
24944
|
-
const scrollingMethod =
|
|
25027
|
+
const containerRef = useRef22(null);
|
|
25028
|
+
const scrollTimeout = useRef22();
|
|
25029
|
+
const scrollingMethod = useRef22("none");
|
|
24945
25030
|
const [previousIndex, setPreviousIndex] = useState31(index);
|
|
24946
25031
|
useEffect21(() => {
|
|
24947
25032
|
if (containerRef.current) {
|