@connectif/ui-components 1.0.0 → 1.0.2
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/README.md +23 -0
- package/dist/components/chat/Chat.d.ts +5 -1
- package/dist/components/chat/ChatMessage.d.ts +17 -0
- package/dist/components/progress/CircularProgress.d.ts +8 -1
- package/dist/components/typography/Typography.d.ts +10 -0
- package/dist/index.js +223 -152
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5079,7 +5079,37 @@ import * as React4 from "react";
|
|
|
5079
5079
|
import {
|
|
5080
5080
|
Typography as MuiTypography
|
|
5081
5081
|
} from "@mui/material";
|
|
5082
|
+
|
|
5083
|
+
// node_modules/@mui/styled-engine/index.js
|
|
5084
|
+
import emStyled from "@emotion/styled";
|
|
5085
|
+
import { ThemeContext, keyframes, css } from "@emotion/react";
|
|
5086
|
+
function styled2(tag, options) {
|
|
5087
|
+
const stylesFactory = emStyled(tag, options);
|
|
5088
|
+
if (true) {
|
|
5089
|
+
return (...styles2) => {
|
|
5090
|
+
const component = typeof tag === "string" ? `"${tag}"` : "component";
|
|
5091
|
+
if (styles2.length === 0) {
|
|
5092
|
+
console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
|
|
5093
|
+
} else if (styles2.some((style3) => style3 === void 0)) {
|
|
5094
|
+
console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
|
|
5095
|
+
}
|
|
5096
|
+
return stylesFactory(...styles2);
|
|
5097
|
+
};
|
|
5098
|
+
}
|
|
5099
|
+
return stylesFactory;
|
|
5100
|
+
}
|
|
5101
|
+
var internal_processStyles = (tag, processor) => {
|
|
5102
|
+
if (Array.isArray(tag.__emotion_styles)) {
|
|
5103
|
+
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
5104
|
+
}
|
|
5105
|
+
};
|
|
5106
|
+
|
|
5107
|
+
// src/components/typography/Typography.tsx
|
|
5082
5108
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
5109
|
+
var shimmerKeyframe = keyframes`
|
|
5110
|
+
0% { background-position: 100% 0; }
|
|
5111
|
+
100% { background-position: -100% 0; }
|
|
5112
|
+
`;
|
|
5083
5113
|
var Typography = React4.forwardRef(function Typography2({
|
|
5084
5114
|
children,
|
|
5085
5115
|
noWrap,
|
|
@@ -5088,6 +5118,7 @@ var Typography = React4.forwardRef(function Typography2({
|
|
|
5088
5118
|
variant = "body1",
|
|
5089
5119
|
color: color2 = gunMetal,
|
|
5090
5120
|
italic = false,
|
|
5121
|
+
shimmer,
|
|
5091
5122
|
...rest
|
|
5092
5123
|
}, ref) {
|
|
5093
5124
|
return /* @__PURE__ */ jsx5(
|
|
@@ -5100,6 +5131,19 @@ var Typography = React4.forwardRef(function Typography2({
|
|
|
5100
5131
|
...noWrap && { overflow: "clip", overflowY: "visible" },
|
|
5101
5132
|
fontStyle: italic ? "italic" : "normal",
|
|
5102
5133
|
...color2 && { color: color2 },
|
|
5134
|
+
...shimmer && {
|
|
5135
|
+
background: `linear-gradient(
|
|
5136
|
+
90deg,
|
|
5137
|
+
${shimmer.startColor} 0%,
|
|
5138
|
+
${shimmer.endColor} 25%,
|
|
5139
|
+
${shimmer.startColor} 100%
|
|
5140
|
+
)`,
|
|
5141
|
+
backgroundSize: "200% 100%",
|
|
5142
|
+
color: "transparent",
|
|
5143
|
+
WebkitBackgroundClip: "text",
|
|
5144
|
+
backgroundClip: "text",
|
|
5145
|
+
animation: `${shimmerKeyframe} ${shimmer.duration || 1.5}s infinite`
|
|
5146
|
+
},
|
|
5103
5147
|
...sx
|
|
5104
5148
|
},
|
|
5105
5149
|
component,
|
|
@@ -6462,30 +6506,6 @@ __export(Animations_exports, {
|
|
|
6462
6506
|
littleBeating: () => littleBeating
|
|
6463
6507
|
});
|
|
6464
6508
|
|
|
6465
|
-
// node_modules/@mui/styled-engine/index.js
|
|
6466
|
-
import emStyled from "@emotion/styled";
|
|
6467
|
-
import { ThemeContext, keyframes, css } from "@emotion/react";
|
|
6468
|
-
function styled2(tag, options) {
|
|
6469
|
-
const stylesFactory = emStyled(tag, options);
|
|
6470
|
-
if (true) {
|
|
6471
|
-
return (...styles2) => {
|
|
6472
|
-
const component = typeof tag === "string" ? `"${tag}"` : "component";
|
|
6473
|
-
if (styles2.length === 0) {
|
|
6474
|
-
console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
|
|
6475
|
-
} else if (styles2.some((style3) => style3 === void 0)) {
|
|
6476
|
-
console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
|
|
6477
|
-
}
|
|
6478
|
-
return stylesFactory(...styles2);
|
|
6479
|
-
};
|
|
6480
|
-
}
|
|
6481
|
-
return stylesFactory;
|
|
6482
|
-
}
|
|
6483
|
-
var internal_processStyles = (tag, processor) => {
|
|
6484
|
-
if (Array.isArray(tag.__emotion_styles)) {
|
|
6485
|
-
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
6486
|
-
}
|
|
6487
|
-
};
|
|
6488
|
-
|
|
6489
6509
|
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
6490
6510
|
function _extends() {
|
|
6491
6511
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -13248,6 +13268,10 @@ var ChatMessage = React34.forwardRef(function ChatMessage2({
|
|
|
13248
13268
|
errorText,
|
|
13249
13269
|
optionsBar,
|
|
13250
13270
|
cancelableButtonText,
|
|
13271
|
+
backgroundColor: backgroundColor2,
|
|
13272
|
+
highlightStartEdge = true,
|
|
13273
|
+
typographyColor,
|
|
13274
|
+
typographyVariant,
|
|
13251
13275
|
onCancelableButtonClicked,
|
|
13252
13276
|
...rest
|
|
13253
13277
|
}, ref) {
|
|
@@ -13289,12 +13313,18 @@ var ChatMessage = React34.forwardRef(function ChatMessage2({
|
|
|
13289
13313
|
display: "flex",
|
|
13290
13314
|
flexDirection: "column",
|
|
13291
13315
|
boxShadow: shadows[0],
|
|
13292
|
-
backgroundColor: messageType === "incoming" ? white : primary300,
|
|
13316
|
+
backgroundColor: !backgroundColor2 ? messageType === "incoming" ? white : primary300 : backgroundColor2,
|
|
13293
13317
|
borderWidth: "1px",
|
|
13294
13318
|
borderStyle: "solid",
|
|
13295
|
-
borderColor: messageType === "incoming" ? grey200 : primary300,
|
|
13319
|
+
borderColor: !backgroundColor2 ? messageType === "incoming" ? grey200 : primary300 : backgroundColor2,
|
|
13296
13320
|
color: messageType === "incoming" ? grey900 : white,
|
|
13297
|
-
borderRadius: "
|
|
13321
|
+
borderRadius: "12px",
|
|
13322
|
+
...highlightStartEdge && messageType === "outgoing" && {
|
|
13323
|
+
borderTopRightRadius: "4px"
|
|
13324
|
+
},
|
|
13325
|
+
...highlightStartEdge && messageType === "incoming" && {
|
|
13326
|
+
borderTopLeftRadius: "4px"
|
|
13327
|
+
},
|
|
13298
13328
|
padding: "8px",
|
|
13299
13329
|
paddingBottom: !cancelableButtonText ? "8px" : "40px",
|
|
13300
13330
|
marginLeft: 0,
|
|
@@ -13304,8 +13334,8 @@ var ChatMessage = React34.forwardRef(function ChatMessage2({
|
|
|
13304
13334
|
/* @__PURE__ */ jsx79(
|
|
13305
13335
|
Typography_default,
|
|
13306
13336
|
{
|
|
13307
|
-
color: messageType === "incoming" ? grey900 : white,
|
|
13308
|
-
variant: "body2",
|
|
13337
|
+
color: !typographyColor ? messageType === "incoming" ? grey900 : white : typographyColor,
|
|
13338
|
+
variant: typographyVariant || "body2",
|
|
13309
13339
|
sx: { whiteSpace: "pre-line" },
|
|
13310
13340
|
children
|
|
13311
13341
|
}
|
|
@@ -13392,7 +13422,7 @@ import Box3 from "@mui/material/Box";
|
|
|
13392
13422
|
import Stack5 from "@mui/material/Stack";
|
|
13393
13423
|
import * as React35 from "react";
|
|
13394
13424
|
import { jsx as jsx80, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
13395
|
-
var Chat = ({ children, header }) => {
|
|
13425
|
+
var Chat = ({ children, header, backgroundColor: backgroundColor2 }) => {
|
|
13396
13426
|
let ref = void 0;
|
|
13397
13427
|
const [justifyContent, setJustifyContent] = React35.useState(true);
|
|
13398
13428
|
const [isInitialize, setIsInitialize] = React35.useState(false);
|
|
@@ -13427,6 +13457,9 @@ var Chat = ({ children, header }) => {
|
|
|
13427
13457
|
},
|
|
13428
13458
|
"::-webkit-scrollbar-thumb": {
|
|
13429
13459
|
visibility: "hidden"
|
|
13460
|
+
},
|
|
13461
|
+
...backgroundColor2 && {
|
|
13462
|
+
backgroundColor: backgroundColor2
|
|
13430
13463
|
}
|
|
13431
13464
|
},
|
|
13432
13465
|
spacing: "12px",
|
|
@@ -23296,6 +23329,7 @@ var LinearProgress = ({
|
|
|
23296
23329
|
var LinearProgress_default = LinearProgress;
|
|
23297
23330
|
|
|
23298
23331
|
// src/components/progress/CircularProgress.tsx
|
|
23332
|
+
import * as React74 from "react";
|
|
23299
23333
|
import MuiCircularProgress from "@mui/material/CircularProgress";
|
|
23300
23334
|
import Typography3 from "@mui/material/Typography";
|
|
23301
23335
|
import Box5 from "@mui/material/Box";
|
|
@@ -23318,99 +23352,136 @@ var CircularProgress = ({
|
|
|
23318
23352
|
roundedStroke = false,
|
|
23319
23353
|
rotationDegrees,
|
|
23320
23354
|
typographyVariant = "caption",
|
|
23321
|
-
typographyColor = black
|
|
23322
|
-
|
|
23323
|
-
|
|
23324
|
-
|
|
23325
|
-
|
|
23326
|
-
|
|
23327
|
-
|
|
23328
|
-
|
|
23329
|
-
|
|
23330
|
-
|
|
23355
|
+
typographyColor = black,
|
|
23356
|
+
gradientColors
|
|
23357
|
+
}) => {
|
|
23358
|
+
const gradientName = React74.useRef(
|
|
23359
|
+
gradientColors ? crypto.randomUUID() : void 0
|
|
23360
|
+
);
|
|
23361
|
+
return /* @__PURE__ */ jsxs66(
|
|
23362
|
+
Box5,
|
|
23363
|
+
{
|
|
23364
|
+
sx: {
|
|
23365
|
+
position: "relative",
|
|
23366
|
+
display: "inline-flex",
|
|
23367
|
+
height: circularSizes[size],
|
|
23331
23368
|
width: circularSizes[size],
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
children: [
|
|
23336
|
-
showCircularBackground && /* @__PURE__ */ jsx133(
|
|
23337
|
-
Box5,
|
|
23338
|
-
{
|
|
23339
|
-
sx: {
|
|
23340
|
-
position: "absolute",
|
|
23341
|
-
display: "inline-flex",
|
|
23342
|
-
height: circularSizes[size],
|
|
23343
|
-
width: circularSizes[size],
|
|
23344
|
-
"& .MuiCircularProgress-root": {
|
|
23345
|
-
width: circularSizes[size],
|
|
23346
|
-
maxHeight: circularSizes[size]
|
|
23347
|
-
}
|
|
23348
|
-
},
|
|
23349
|
-
children: /* @__PURE__ */ jsx133(
|
|
23350
|
-
MuiCircularProgress,
|
|
23351
|
-
{
|
|
23352
|
-
variant: "determinate",
|
|
23353
|
-
sx: {
|
|
23354
|
-
color: () => grey200
|
|
23355
|
-
},
|
|
23356
|
-
value: 100
|
|
23357
|
-
}
|
|
23358
|
-
)
|
|
23369
|
+
"& .MuiCircularProgress-root": {
|
|
23370
|
+
width: circularSizes[size],
|
|
23371
|
+
maxHeight: circularSizes[size]
|
|
23359
23372
|
}
|
|
23360
|
-
|
|
23361
|
-
|
|
23362
|
-
|
|
23363
|
-
|
|
23364
|
-
|
|
23365
|
-
|
|
23366
|
-
|
|
23367
|
-
|
|
23373
|
+
},
|
|
23374
|
+
children: [
|
|
23375
|
+
gradientColors && /* @__PURE__ */ jsx133("svg", { width: 0, height: 0, children: /* @__PURE__ */ jsx133("defs", { children: /* @__PURE__ */ jsxs66(
|
|
23376
|
+
"linearGradient",
|
|
23377
|
+
{
|
|
23378
|
+
id: gradientName.current,
|
|
23379
|
+
x1: "0%",
|
|
23380
|
+
y1: "0%",
|
|
23381
|
+
x2: "0%",
|
|
23382
|
+
y2: "100%",
|
|
23383
|
+
children: [
|
|
23384
|
+
/* @__PURE__ */ jsx133(
|
|
23385
|
+
"stop",
|
|
23386
|
+
{
|
|
23387
|
+
offset: "0%",
|
|
23388
|
+
stopColor: gradientColors.startColor
|
|
23389
|
+
}
|
|
23390
|
+
),
|
|
23391
|
+
/* @__PURE__ */ jsx133(
|
|
23392
|
+
"stop",
|
|
23393
|
+
{
|
|
23394
|
+
offset: "100%",
|
|
23395
|
+
stopColor: gradientColors.endColor
|
|
23396
|
+
}
|
|
23397
|
+
)
|
|
23398
|
+
]
|
|
23399
|
+
}
|
|
23400
|
+
) }) }),
|
|
23401
|
+
showCircularBackground && /* @__PURE__ */ jsx133(
|
|
23402
|
+
Box5,
|
|
23403
|
+
{
|
|
23404
|
+
sx: {
|
|
23405
|
+
position: "absolute",
|
|
23406
|
+
display: "inline-flex",
|
|
23407
|
+
height: circularSizes[size],
|
|
23408
|
+
width: circularSizes[size],
|
|
23409
|
+
"& .MuiCircularProgress-root": {
|
|
23410
|
+
width: circularSizes[size],
|
|
23411
|
+
maxHeight: circularSizes[size]
|
|
23412
|
+
}
|
|
23368
23413
|
},
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23414
|
+
children: /* @__PURE__ */ jsx133(
|
|
23415
|
+
MuiCircularProgress,
|
|
23416
|
+
{
|
|
23417
|
+
variant: "determinate",
|
|
23418
|
+
sx: {
|
|
23419
|
+
color: () => grey200
|
|
23420
|
+
},
|
|
23421
|
+
value: 100
|
|
23422
|
+
}
|
|
23423
|
+
)
|
|
23424
|
+
}
|
|
23425
|
+
),
|
|
23426
|
+
/* @__PURE__ */ jsx133(
|
|
23427
|
+
MuiCircularProgress,
|
|
23428
|
+
{
|
|
23429
|
+
variant,
|
|
23430
|
+
sx: {
|
|
23431
|
+
...color2 && {
|
|
23432
|
+
color: color2
|
|
23433
|
+
},
|
|
23434
|
+
...roundedStroke && {
|
|
23435
|
+
"& .MuiCircularProgress-circle": {
|
|
23436
|
+
strokeLinecap: "round"
|
|
23437
|
+
}
|
|
23438
|
+
},
|
|
23439
|
+
...rotationDegrees && {
|
|
23440
|
+
"& svg": {
|
|
23441
|
+
transform: `rotate(${rotationDegrees}deg)`
|
|
23442
|
+
}
|
|
23443
|
+
},
|
|
23444
|
+
...gradientColors && {
|
|
23445
|
+
"svg circle": {
|
|
23446
|
+
stroke: `url(#${gradientName.current})`
|
|
23447
|
+
}
|
|
23372
23448
|
}
|
|
23373
23449
|
},
|
|
23374
|
-
|
|
23375
|
-
|
|
23376
|
-
|
|
23450
|
+
size: circularSizes[size],
|
|
23451
|
+
value,
|
|
23452
|
+
thickness
|
|
23453
|
+
}
|
|
23454
|
+
),
|
|
23455
|
+
variant !== "indeterminate" && /* @__PURE__ */ jsx133(
|
|
23456
|
+
Box5,
|
|
23457
|
+
{
|
|
23458
|
+
sx: {
|
|
23459
|
+
top: 0,
|
|
23460
|
+
left: 0,
|
|
23461
|
+
bottom: 0,
|
|
23462
|
+
right: 0,
|
|
23463
|
+
position: "absolute",
|
|
23464
|
+
display: "flex",
|
|
23465
|
+
alignItems: "center",
|
|
23466
|
+
justifyContent: "center",
|
|
23467
|
+
height: circularSizes[size],
|
|
23468
|
+
width: circularSizes[size]
|
|
23469
|
+
},
|
|
23470
|
+
children: typeof label === "string" ? /* @__PURE__ */ jsx133(
|
|
23471
|
+
Typography3,
|
|
23472
|
+
{
|
|
23473
|
+
variant: typographyVariant,
|
|
23474
|
+
component: "div",
|
|
23475
|
+
color: typographyColor,
|
|
23476
|
+
children: label
|
|
23377
23477
|
}
|
|
23378
|
-
|
|
23379
|
-
}
|
|
23380
|
-
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
variant !== "indeterminate" && /* @__PURE__ */ jsx133(
|
|
23386
|
-
Box5,
|
|
23387
|
-
{
|
|
23388
|
-
sx: {
|
|
23389
|
-
top: 0,
|
|
23390
|
-
left: 0,
|
|
23391
|
-
bottom: 0,
|
|
23392
|
-
right: 0,
|
|
23393
|
-
position: "absolute",
|
|
23394
|
-
display: "flex",
|
|
23395
|
-
alignItems: "center",
|
|
23396
|
-
justifyContent: "center",
|
|
23397
|
-
height: circularSizes[size],
|
|
23398
|
-
width: circularSizes[size]
|
|
23399
|
-
},
|
|
23400
|
-
children: typeof label === "string" ? /* @__PURE__ */ jsx133(
|
|
23401
|
-
Typography3,
|
|
23402
|
-
{
|
|
23403
|
-
variant: typographyVariant,
|
|
23404
|
-
component: "div",
|
|
23405
|
-
color: typographyColor,
|
|
23406
|
-
children: label
|
|
23407
|
-
}
|
|
23408
|
-
) : label
|
|
23409
|
-
}
|
|
23410
|
-
)
|
|
23411
|
-
]
|
|
23412
|
-
}
|
|
23413
|
-
);
|
|
23478
|
+
) : label
|
|
23479
|
+
}
|
|
23480
|
+
)
|
|
23481
|
+
]
|
|
23482
|
+
}
|
|
23483
|
+
);
|
|
23484
|
+
};
|
|
23414
23485
|
var CircularProgress_default = CircularProgress;
|
|
23415
23486
|
|
|
23416
23487
|
// src/components/progress/DonutProgress.tsx
|
|
@@ -23637,10 +23708,10 @@ var Navbar = ({
|
|
|
23637
23708
|
var Navbar_default = Navbar;
|
|
23638
23709
|
|
|
23639
23710
|
// src/components/navbar/NavbarButton.tsx
|
|
23640
|
-
import * as
|
|
23711
|
+
import * as React75 from "react";
|
|
23641
23712
|
import { Box as Box7, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
23642
23713
|
import { jsx as jsx137, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
23643
|
-
var NavbarButton =
|
|
23714
|
+
var NavbarButton = React75.forwardRef(
|
|
23644
23715
|
function NavbarButton2({
|
|
23645
23716
|
iconId,
|
|
23646
23717
|
srcUrl,
|
|
@@ -23782,10 +23853,10 @@ var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx138(
|
|
|
23782
23853
|
var NavbarHeader_default = NavbarHeader;
|
|
23783
23854
|
|
|
23784
23855
|
// src/components/navbar/NavbarLogo.tsx
|
|
23785
|
-
import * as
|
|
23856
|
+
import * as React76 from "react";
|
|
23786
23857
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
23787
23858
|
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
23788
|
-
var NavbarLogo =
|
|
23859
|
+
var NavbarLogo = React76.forwardRef(
|
|
23789
23860
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
23790
23861
|
return /* @__PURE__ */ jsx139(
|
|
23791
23862
|
ButtonBase3,
|
|
@@ -23806,7 +23877,7 @@ var NavbarLogo = React75.forwardRef(
|
|
|
23806
23877
|
var NavbarLogo_default = NavbarLogo;
|
|
23807
23878
|
|
|
23808
23879
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
23809
|
-
import * as
|
|
23880
|
+
import * as React77 from "react";
|
|
23810
23881
|
import { Fragment as Fragment30, jsx as jsx140, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
23811
23882
|
var DonutFocusOverlay = ({
|
|
23812
23883
|
isVisible,
|
|
@@ -23816,8 +23887,8 @@ var DonutFocusOverlay = ({
|
|
|
23816
23887
|
chipLabel,
|
|
23817
23888
|
chipPosition = "right"
|
|
23818
23889
|
}) => {
|
|
23819
|
-
const [clientRect, setClientRect] =
|
|
23820
|
-
|
|
23890
|
+
const [clientRect, setClientRect] = React77.useState();
|
|
23891
|
+
React77.useEffect(() => {
|
|
23821
23892
|
if (!elementRef?.current) {
|
|
23822
23893
|
setClientRect(void 0);
|
|
23823
23894
|
return;
|
|
@@ -23966,17 +24037,17 @@ var Pager_default = Pager;
|
|
|
23966
24037
|
|
|
23967
24038
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
23968
24039
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
23969
|
-
import * as
|
|
24040
|
+
import * as React78 from "react";
|
|
23970
24041
|
import { jsx as jsx142, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
23971
24042
|
var HorizontalScrollable = ({
|
|
23972
24043
|
style: style3,
|
|
23973
24044
|
children,
|
|
23974
24045
|
stepDistance = 200
|
|
23975
24046
|
}) => {
|
|
23976
|
-
const horizontalContainerRef =
|
|
23977
|
-
const [isLeftArrowHidden, setLeftArrowHidden] =
|
|
23978
|
-
const [isRightArrowHidden, setRightArrowHidden] =
|
|
23979
|
-
|
|
24047
|
+
const horizontalContainerRef = React78.useRef(null);
|
|
24048
|
+
const [isLeftArrowHidden, setLeftArrowHidden] = React78.useState(true);
|
|
24049
|
+
const [isRightArrowHidden, setRightArrowHidden] = React78.useState(true);
|
|
24050
|
+
React78.useEffect(() => {
|
|
23980
24051
|
if (!horizontalContainerRef.current) {
|
|
23981
24052
|
return;
|
|
23982
24053
|
}
|
|
@@ -24107,7 +24178,7 @@ import {
|
|
|
24107
24178
|
} from "notistack";
|
|
24108
24179
|
|
|
24109
24180
|
// src/components/snackbar/Snackbar.tsx
|
|
24110
|
-
import * as
|
|
24181
|
+
import * as React79 from "react";
|
|
24111
24182
|
import { SnackbarContent } from "notistack";
|
|
24112
24183
|
import { Typography as Typography4 } from "@mui/material";
|
|
24113
24184
|
import { jsx as jsx144, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
@@ -24135,7 +24206,7 @@ var iconColors = {
|
|
|
24135
24206
|
error: error300,
|
|
24136
24207
|
warning: complementary300
|
|
24137
24208
|
};
|
|
24138
|
-
var Snackbar =
|
|
24209
|
+
var Snackbar = React79.forwardRef(
|
|
24139
24210
|
function Snackbar2({
|
|
24140
24211
|
severity = "info",
|
|
24141
24212
|
message,
|
|
@@ -24147,10 +24218,10 @@ var Snackbar = React78.forwardRef(
|
|
|
24147
24218
|
identifierKey: key,
|
|
24148
24219
|
dataTestKey
|
|
24149
24220
|
}, ref) {
|
|
24150
|
-
const actionClickHandler =
|
|
24221
|
+
const actionClickHandler = React79.useCallback(() => {
|
|
24151
24222
|
onActionClick && onActionClick(key);
|
|
24152
24223
|
}, [onActionClick, key]);
|
|
24153
|
-
const closeClickHandler =
|
|
24224
|
+
const closeClickHandler = React79.useCallback(() => {
|
|
24154
24225
|
onCloseClick && onCloseClick(key);
|
|
24155
24226
|
}, [onCloseClick, key]);
|
|
24156
24227
|
return /* @__PURE__ */ jsx144(
|
|
@@ -24314,7 +24385,7 @@ var TabButton = ({
|
|
|
24314
24385
|
var TabButton_default = TabButton;
|
|
24315
24386
|
|
|
24316
24387
|
// src/components/tab/Tabs.tsx
|
|
24317
|
-
import * as
|
|
24388
|
+
import * as React80 from "react";
|
|
24318
24389
|
import MuiTabs from "@mui/material/Tabs";
|
|
24319
24390
|
import SwipeableViews from "react-swipeable-views";
|
|
24320
24391
|
import { jsx as jsx147, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
@@ -24328,7 +24399,7 @@ var Tabs = ({
|
|
|
24328
24399
|
contained = false,
|
|
24329
24400
|
scrollbarGutter
|
|
24330
24401
|
}) => {
|
|
24331
|
-
const [value, setValue] =
|
|
24402
|
+
const [value, setValue] = React80.useState(0);
|
|
24332
24403
|
const handleChangeIndex = (index) => {
|
|
24333
24404
|
onChangeTab?.(index);
|
|
24334
24405
|
setValue(index);
|
|
@@ -24515,12 +24586,12 @@ var TableCell = ({
|
|
|
24515
24586
|
var TableCell_default = TableCell;
|
|
24516
24587
|
|
|
24517
24588
|
// src/components/table/TableCellCopy.tsx
|
|
24518
|
-
import * as
|
|
24589
|
+
import * as React81 from "react";
|
|
24519
24590
|
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
24520
24591
|
var TableCellCopy = ({ text, ...rest }) => {
|
|
24521
24592
|
const { t } = useTranslation();
|
|
24522
|
-
const [isCopied, setIsCopied] =
|
|
24523
|
-
const [showIcon, setShowIcon] =
|
|
24593
|
+
const [isCopied, setIsCopied] = React81.useState(false);
|
|
24594
|
+
const [showIcon, setShowIcon] = React81.useState(false);
|
|
24524
24595
|
const manageButtonClicked = () => {
|
|
24525
24596
|
void navigator.clipboard.writeText(text);
|
|
24526
24597
|
if (isCopied) {
|
|
@@ -24655,9 +24726,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
24655
24726
|
|
|
24656
24727
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
24657
24728
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
24658
|
-
import * as
|
|
24729
|
+
import * as React82 from "react";
|
|
24659
24730
|
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
24660
|
-
var ToolbarBreadcrumbButton =
|
|
24731
|
+
var ToolbarBreadcrumbButton = React82.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
24661
24732
|
return /* @__PURE__ */ jsx159(
|
|
24662
24733
|
ButtonBase5,
|
|
24663
24734
|
{
|
|
@@ -24769,17 +24840,17 @@ var Toolbar = ({
|
|
|
24769
24840
|
var Toolbar_default = Toolbar;
|
|
24770
24841
|
|
|
24771
24842
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
24772
|
-
import * as
|
|
24843
|
+
import * as React83 from "react";
|
|
24773
24844
|
import { useState as useState33 } from "react";
|
|
24774
24845
|
import { jsx as jsx161, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
24775
|
-
var ToolbarTitle =
|
|
24846
|
+
var ToolbarTitle = React83.forwardRef(function ToolbarTitle2({
|
|
24776
24847
|
title,
|
|
24777
24848
|
align = "left",
|
|
24778
24849
|
className,
|
|
24779
24850
|
hoverActions,
|
|
24780
24851
|
color: color2 = grey900
|
|
24781
24852
|
}, ref) {
|
|
24782
|
-
const textElementRef =
|
|
24853
|
+
const textElementRef = React83.useRef(null);
|
|
24783
24854
|
const [showHoverActions, setShowHoverActions] = useState33(false);
|
|
24784
24855
|
return /* @__PURE__ */ jsx161(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx161(
|
|
24785
24856
|
TextEllipsisTooltip_default,
|
|
@@ -25021,7 +25092,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25021
25092
|
var WidgetTitle_default = WidgetTitle;
|
|
25022
25093
|
|
|
25023
25094
|
// src/components/window/MinimizableWindow.tsx
|
|
25024
|
-
import * as
|
|
25095
|
+
import * as React84 from "react";
|
|
25025
25096
|
import { Fragment as Fragment32, jsx as jsx166, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25026
25097
|
var sizes6 = {
|
|
25027
25098
|
M: 400,
|
|
@@ -25047,7 +25118,7 @@ var iconButtonsStyles = {
|
|
|
25047
25118
|
backgroundColor: "rgba(255, 255, 255, 0.2)"
|
|
25048
25119
|
}
|
|
25049
25120
|
};
|
|
25050
|
-
var MinimizableWindow =
|
|
25121
|
+
var MinimizableWindow = React84.forwardRef(function MinimizableWindow2({
|
|
25051
25122
|
children,
|
|
25052
25123
|
title,
|
|
25053
25124
|
size = "M",
|
|
@@ -25062,17 +25133,17 @@ var MinimizableWindow = React83.forwardRef(function MinimizableWindow2({
|
|
|
25062
25133
|
onBack
|
|
25063
25134
|
}, ref) {
|
|
25064
25135
|
const { t } = useTranslation();
|
|
25065
|
-
const overlayRef =
|
|
25066
|
-
const windowRef =
|
|
25067
|
-
const headerRef =
|
|
25068
|
-
const [isDraggingState, setIsDraggingState] =
|
|
25069
|
-
const diffRef =
|
|
25070
|
-
|
|
25136
|
+
const overlayRef = React84.useRef(null);
|
|
25137
|
+
const windowRef = React84.useRef(null);
|
|
25138
|
+
const headerRef = React84.useRef(null);
|
|
25139
|
+
const [isDraggingState, setIsDraggingState] = React84.useState(false);
|
|
25140
|
+
const diffRef = React84.useRef({ x: 0, y: 0 });
|
|
25141
|
+
React84.useImperativeHandle(ref, () => ({
|
|
25071
25142
|
window: windowRef.current,
|
|
25072
25143
|
header: headerRef.current,
|
|
25073
25144
|
overlay: overlayRef.current
|
|
25074
25145
|
}));
|
|
25075
|
-
|
|
25146
|
+
React84.useEffect(() => {
|
|
25076
25147
|
if (open) {
|
|
25077
25148
|
overlayRef.current?.style.removeProperty("transform");
|
|
25078
25149
|
overlayRef.current?.style.removeProperty("opacity");
|