@connectif/ui-components 5.4.1 → 5.5.0
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/dist/index.js
CHANGED
|
@@ -8128,90 +8128,93 @@ var BaseListItem = ({
|
|
|
8128
8128
|
tooltipClass,
|
|
8129
8129
|
slotProps,
|
|
8130
8130
|
"data-testid": dataTestId
|
|
8131
|
-
}) =>
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8131
|
+
}) => {
|
|
8132
|
+
const { palette: palette2 } = useCustomTheme();
|
|
8133
|
+
return /* @__PURE__ */ jsxs2(
|
|
8134
|
+
Stack_default,
|
|
8135
|
+
{
|
|
8136
|
+
direction: "row",
|
|
8137
|
+
spacing: 2,
|
|
8138
|
+
className: "Cn-BaseListItem",
|
|
8139
|
+
sx: {
|
|
8140
|
+
justifyContent: "space-between",
|
|
8141
|
+
padding: "0 12px",
|
|
8142
|
+
height: "44px",
|
|
8143
|
+
alignItems: "center",
|
|
8144
|
+
width: "100%",
|
|
8145
|
+
boxSizing: "border-box",
|
|
8146
|
+
backgroundColor: selected ? palette2.primary[50] : palette2.common.white,
|
|
8147
|
+
color: color2 === "primary" ? palette2.primary.main : palette2.grey[800],
|
|
8148
|
+
...variant === "circular" && {
|
|
8149
|
+
borderRadius: "22px",
|
|
8150
|
+
border: `1px solid ${palette2.grey[200]}`,
|
|
8151
|
+
overflow: "hidden"
|
|
8152
|
+
},
|
|
8153
|
+
...baseSx
|
|
8150
8154
|
},
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
}
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
"data-testid": dataTestId
|
|
8155
|
+
children: [
|
|
8156
|
+
startIconId ? /* @__PURE__ */ jsx7(
|
|
8157
|
+
Icon_default,
|
|
8158
|
+
{
|
|
8159
|
+
id: startIconId,
|
|
8160
|
+
sx: {
|
|
8161
|
+
color: "inherit",
|
|
8162
|
+
margin: "4px"
|
|
8163
|
+
// to make the icon be 32x32
|
|
8164
|
+
},
|
|
8165
|
+
size: "M"
|
|
8166
|
+
}
|
|
8167
|
+
) : startAdornment,
|
|
8168
|
+
/* @__PURE__ */ jsx7(
|
|
8169
|
+
Stack_default,
|
|
8170
|
+
{
|
|
8171
|
+
sx: {
|
|
8172
|
+
flexGrow: 1,
|
|
8173
|
+
width: "100%",
|
|
8174
|
+
overflow: "auto"
|
|
8175
|
+
},
|
|
8176
|
+
children: children ? children : /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
8177
|
+
/* @__PURE__ */ jsx7(
|
|
8178
|
+
ListItemText_default,
|
|
8179
|
+
{
|
|
8180
|
+
text,
|
|
8181
|
+
typographyVariant,
|
|
8182
|
+
tooltipClass,
|
|
8183
|
+
slotProps,
|
|
8184
|
+
...dataTestId && {
|
|
8185
|
+
"data-testid": dataTestId
|
|
8186
|
+
}
|
|
8184
8187
|
}
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
)
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8188
|
+
),
|
|
8189
|
+
subText && /* @__PURE__ */ jsx7(
|
|
8190
|
+
ListItemText_default,
|
|
8191
|
+
{
|
|
8192
|
+
text: subText,
|
|
8193
|
+
typographyVariant: "caption",
|
|
8194
|
+
tooltipClass,
|
|
8195
|
+
slotProps,
|
|
8196
|
+
color: palette2.grey[500]
|
|
8197
|
+
}
|
|
8198
|
+
)
|
|
8199
|
+
] })
|
|
8200
|
+
}
|
|
8201
|
+
),
|
|
8202
|
+
endIconId ? /* @__PURE__ */ jsx7(
|
|
8203
|
+
Icon_default,
|
|
8204
|
+
{
|
|
8205
|
+
id: endIconId,
|
|
8206
|
+
sx: {
|
|
8207
|
+
color: "inherit",
|
|
8208
|
+
margin: "4px"
|
|
8209
|
+
// to make the icon be 32x32
|
|
8210
|
+
},
|
|
8211
|
+
size: "M"
|
|
8212
|
+
}
|
|
8213
|
+
) : endAdornment
|
|
8214
|
+
]
|
|
8215
|
+
}
|
|
8216
|
+
);
|
|
8217
|
+
};
|
|
8215
8218
|
var BaseListItem_default = BaseListItem;
|
|
8216
8219
|
|
|
8217
8220
|
// src/components/list/ListItemButton.tsx
|
|
@@ -8240,6 +8243,7 @@ var ListItemButton = React9.forwardRef(function ListItemButton2({
|
|
|
8240
8243
|
slotProps,
|
|
8241
8244
|
...rest
|
|
8242
8245
|
}, ref) {
|
|
8246
|
+
const { palette: palette2 } = useCustomTheme();
|
|
8243
8247
|
return /* @__PURE__ */ jsx8(
|
|
8244
8248
|
MuiListItemButton,
|
|
8245
8249
|
{
|
|
@@ -8255,7 +8259,7 @@ var ListItemButton = React9.forwardRef(function ListItemButton2({
|
|
|
8255
8259
|
p: 0,
|
|
8256
8260
|
...!selected && {
|
|
8257
8261
|
["&:is(:hover,:focus) > .Cn-BaseListItem"]: {
|
|
8258
|
-
backgroundColor:
|
|
8262
|
+
backgroundColor: palette2.grey[50]
|
|
8259
8263
|
}
|
|
8260
8264
|
},
|
|
8261
8265
|
...sx
|
|
@@ -9354,6 +9358,7 @@ var Avatar = React15.forwardRef(function Avatar2({
|
|
|
9354
9358
|
className,
|
|
9355
9359
|
...props
|
|
9356
9360
|
}, ref) {
|
|
9361
|
+
const { palette: palette2 } = useCustomTheme();
|
|
9357
9362
|
const sizeStyle = {
|
|
9358
9363
|
width: sizes3[size].side,
|
|
9359
9364
|
height: sizes3[size].side,
|
|
@@ -9361,8 +9366,8 @@ var Avatar = React15.forwardRef(function Avatar2({
|
|
|
9361
9366
|
minHeight: sizes3[size].side,
|
|
9362
9367
|
fontSize: sizes3[size].fontSize
|
|
9363
9368
|
};
|
|
9364
|
-
const backgroundColor2 = !props.src ? avatarLetters ?
|
|
9365
|
-
const color2 = avatarLetters ?
|
|
9369
|
+
const backgroundColor2 = !props.src ? avatarLetters ? palette2.grey[500] : palette2.grey[300] : null;
|
|
9370
|
+
const color2 = avatarLetters ? palette2.common.white : palette2.grey[500];
|
|
9366
9371
|
const innerComponent = avatarLetters ? avatarLetters.substring(0, 2) : iconId && /* @__PURE__ */ jsx29(Icon_default, { id: iconId, size: sizes3[size].iconSize });
|
|
9367
9372
|
return /* @__PURE__ */ jsx29(
|
|
9368
9373
|
MuiAvatar,
|
|
@@ -9415,127 +9420,6 @@ var AvatarMultiple_default = AvatarMultiple;
|
|
|
9415
9420
|
// src/components/avatar/AvatarCard.tsx
|
|
9416
9421
|
import * as React18 from "react";
|
|
9417
9422
|
|
|
9418
|
-
// src/theme/Animations.ts
|
|
9419
|
-
var Animations_exports = {};
|
|
9420
|
-
__export(Animations_exports, {
|
|
9421
|
-
backgroundMovingBars: () => backgroundMovingBars,
|
|
9422
|
-
littleBeating: () => littleBeating
|
|
9423
|
-
});
|
|
9424
|
-
var barSize = 20;
|
|
9425
|
-
var barAlpha = 0.15;
|
|
9426
|
-
var backgroundMovingBarsAnimation = keyframes`
|
|
9427
|
-
from {
|
|
9428
|
-
background-position: 0 0;
|
|
9429
|
-
}
|
|
9430
|
-
to {
|
|
9431
|
-
background-position: -${barSize / Math.sqrt(2)}px -${barSize / Math.sqrt(2)}px;
|
|
9432
|
-
`;
|
|
9433
|
-
var backgroundMovingBars = {
|
|
9434
|
-
backgroundImage: `repeating-linear-gradient(-45deg, rgba(255, 255, 255, ${barAlpha}), rgba(255, 255, 255, ${barAlpha}) ${barSize / 2}px, rgba(0, 0, 0, ${barAlpha}) ${barSize / 2}px, rgba(0, 0, 0, ${barAlpha}) ${barSize}px)`,
|
|
9435
|
-
animation: `${backgroundMovingBarsAnimation} 1s linear infinite`,
|
|
9436
|
-
backgroundSize: "200% 200%"
|
|
9437
|
-
};
|
|
9438
|
-
var littleBeatingAnimation = keyframes`
|
|
9439
|
-
0% {
|
|
9440
|
-
transform: scale(1);
|
|
9441
|
-
}
|
|
9442
|
-
50%{
|
|
9443
|
-
transform: scale(1.1);
|
|
9444
|
-
}
|
|
9445
|
-
100% {
|
|
9446
|
-
transform: scale(1);
|
|
9447
|
-
}
|
|
9448
|
-
`;
|
|
9449
|
-
var littleBeating = {
|
|
9450
|
-
animation: `${littleBeatingAnimation} 2s linear infinite`
|
|
9451
|
-
};
|
|
9452
|
-
|
|
9453
|
-
// src/theme/GlobalStyles.ts
|
|
9454
|
-
var GlobalStyles_exports = {};
|
|
9455
|
-
__export(GlobalStyles_exports, {
|
|
9456
|
-
default: () => GlobalStyles_default
|
|
9457
|
-
});
|
|
9458
|
-
var globalStyles = {
|
|
9459
|
-
".Slim-Vertical-Scroll": {
|
|
9460
|
-
"@-moz-document url-prefix()": {
|
|
9461
|
-
"&": {
|
|
9462
|
-
scrollbarColor: "silver transparent",
|
|
9463
|
-
scrollbarWidth: "auto"
|
|
9464
|
-
}
|
|
9465
|
-
},
|
|
9466
|
-
overflow: "auto",
|
|
9467
|
-
overflowX: "hidden",
|
|
9468
|
-
"&::-webkit-scrollbar": {
|
|
9469
|
-
width: "8px"
|
|
9470
|
-
},
|
|
9471
|
-
"&::-webkit-scrollbar-button": {
|
|
9472
|
-
height: 0
|
|
9473
|
-
},
|
|
9474
|
-
"&::-webkit-scrollbar-track-piece": {
|
|
9475
|
-
background: "transparent",
|
|
9476
|
-
borderRadius: "4px"
|
|
9477
|
-
},
|
|
9478
|
-
"&::-webkit-scrollbar-thumb": {
|
|
9479
|
-
background: "silver",
|
|
9480
|
-
borderRadius: "4px"
|
|
9481
|
-
}
|
|
9482
|
-
},
|
|
9483
|
-
".Slim-Horizontal-Scroll": {
|
|
9484
|
-
"@-moz-document url-prefix()": {
|
|
9485
|
-
"&": {
|
|
9486
|
-
scrollbarColor: "silver transparent",
|
|
9487
|
-
scrollbarWidth: "auto"
|
|
9488
|
-
}
|
|
9489
|
-
},
|
|
9490
|
-
overflow: "auto",
|
|
9491
|
-
overflowY: "hidden",
|
|
9492
|
-
"&::-webkit-scrollbar": {
|
|
9493
|
-
height: "8px"
|
|
9494
|
-
},
|
|
9495
|
-
"&::-webkit-scrollbar-button": {
|
|
9496
|
-
width: 0
|
|
9497
|
-
},
|
|
9498
|
-
"&::-webkit-scrollbar-track-piece": {
|
|
9499
|
-
background: "transparent"
|
|
9500
|
-
},
|
|
9501
|
-
"&::-webkit-scrollbar-thumb": {
|
|
9502
|
-
background: "silver"
|
|
9503
|
-
}
|
|
9504
|
-
},
|
|
9505
|
-
".Slim-Vertical-Horizontal-Scroll": {
|
|
9506
|
-
"@-moz-document url-prefix()": {
|
|
9507
|
-
"&": {
|
|
9508
|
-
scrollbarColor: "silver transparent",
|
|
9509
|
-
scrollbarWidth: "auto"
|
|
9510
|
-
}
|
|
9511
|
-
},
|
|
9512
|
-
overflow: "auto",
|
|
9513
|
-
"&::-webkit-scrollbar": {
|
|
9514
|
-
height: "8px",
|
|
9515
|
-
width: "8px"
|
|
9516
|
-
},
|
|
9517
|
-
"&::-webkit-scrollbar-button": {
|
|
9518
|
-
width: 0,
|
|
9519
|
-
height: 0
|
|
9520
|
-
},
|
|
9521
|
-
"&::-webkit-scrollbar-track-piece": {
|
|
9522
|
-
background: "transparent"
|
|
9523
|
-
},
|
|
9524
|
-
"&::-webkit-scrollbar-thumb": {
|
|
9525
|
-
background: "silver"
|
|
9526
|
-
}
|
|
9527
|
-
},
|
|
9528
|
-
".Fade-In-Out": {
|
|
9529
|
-
transition: "opacity 0.25s, visibility 0.25s",
|
|
9530
|
-
opacity: 0,
|
|
9531
|
-
"&::WebkitTransition": "opacity 0.25s, visibility 0.25s"
|
|
9532
|
-
},
|
|
9533
|
-
".SnackBar-Container": {
|
|
9534
|
-
zIndex: "10000 !important"
|
|
9535
|
-
}
|
|
9536
|
-
};
|
|
9537
|
-
var GlobalStyles_default = globalStyles;
|
|
9538
|
-
|
|
9539
9423
|
// src/components/tooltip/TooltipMenu.tsx
|
|
9540
9424
|
import { Tooltip as Tooltip3, tooltipClasses } from "@mui/material";
|
|
9541
9425
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
@@ -9657,17 +9541,18 @@ var AvatarCard = ({
|
|
|
9657
9541
|
onClick,
|
|
9658
9542
|
...rest
|
|
9659
9543
|
}) => {
|
|
9544
|
+
const { palette: palette2 } = useCustomTheme();
|
|
9660
9545
|
const textElementRef = React18.useRef(null);
|
|
9661
9546
|
return /* @__PURE__ */ jsx33(Box_default2, { sx: { ...!selected && { margin: "1px" } }, children: /* @__PURE__ */ jsx33(
|
|
9662
9547
|
Box_default2,
|
|
9663
9548
|
{
|
|
9664
9549
|
sx: {
|
|
9665
|
-
border: `${selected ? "2px" : "1px"} solid ${selected ?
|
|
9550
|
+
border: `${selected ? "2px" : "1px"} solid ${selected ? palette2.primary.main : palette2.grey[200]}`,
|
|
9666
9551
|
borderRadius: "4px",
|
|
9667
9552
|
width: "fit-content",
|
|
9668
9553
|
height: "fit-content",
|
|
9669
9554
|
...onClick && { cursor: "pointer" },
|
|
9670
|
-
...selected && { backgroundColor:
|
|
9555
|
+
...selected && { backgroundColor: palette2.primary[100] }
|
|
9671
9556
|
},
|
|
9672
9557
|
onClick,
|
|
9673
9558
|
children: /* @__PURE__ */ jsxs12(
|
|
@@ -11387,6 +11272,41 @@ var CardImage = ({ imageUrl, size = "md" }) => /* @__PURE__ */ jsx58(
|
|
|
11387
11272
|
);
|
|
11388
11273
|
var CardImage_default = CardImage;
|
|
11389
11274
|
|
|
11275
|
+
// src/theme/Animations.ts
|
|
11276
|
+
var Animations_exports = {};
|
|
11277
|
+
__export(Animations_exports, {
|
|
11278
|
+
backgroundMovingBars: () => backgroundMovingBars,
|
|
11279
|
+
littleBeating: () => littleBeating
|
|
11280
|
+
});
|
|
11281
|
+
var barSize = 20;
|
|
11282
|
+
var barAlpha = 0.15;
|
|
11283
|
+
var backgroundMovingBarsAnimation = keyframes`
|
|
11284
|
+
from {
|
|
11285
|
+
background-position: 0 0;
|
|
11286
|
+
}
|
|
11287
|
+
to {
|
|
11288
|
+
background-position: -${barSize / Math.sqrt(2)}px -${barSize / Math.sqrt(2)}px;
|
|
11289
|
+
`;
|
|
11290
|
+
var backgroundMovingBars = {
|
|
11291
|
+
backgroundImage: `repeating-linear-gradient(-45deg, rgba(255, 255, 255, ${barAlpha}), rgba(255, 255, 255, ${barAlpha}) ${barSize / 2}px, rgba(0, 0, 0, ${barAlpha}) ${barSize / 2}px, rgba(0, 0, 0, ${barAlpha}) ${barSize}px)`,
|
|
11292
|
+
animation: `${backgroundMovingBarsAnimation} 1s linear infinite`,
|
|
11293
|
+
backgroundSize: "200% 200%"
|
|
11294
|
+
};
|
|
11295
|
+
var littleBeatingAnimation = keyframes`
|
|
11296
|
+
0% {
|
|
11297
|
+
transform: scale(1);
|
|
11298
|
+
}
|
|
11299
|
+
50%{
|
|
11300
|
+
transform: scale(1.1);
|
|
11301
|
+
}
|
|
11302
|
+
100% {
|
|
11303
|
+
transform: scale(1);
|
|
11304
|
+
}
|
|
11305
|
+
`;
|
|
11306
|
+
var littleBeating = {
|
|
11307
|
+
animation: `${littleBeatingAnimation} 2s linear infinite`
|
|
11308
|
+
};
|
|
11309
|
+
|
|
11390
11310
|
// src/components/card/CardStatus.tsx
|
|
11391
11311
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
11392
11312
|
var CardStatus = ({
|
|
@@ -11537,6 +11457,92 @@ var MenuChip_default = MenuChip;
|
|
|
11537
11457
|
// src/components/chip/ChipViewer.tsx
|
|
11538
11458
|
import * as React31 from "react";
|
|
11539
11459
|
|
|
11460
|
+
// src/theme/GlobalStyles.ts
|
|
11461
|
+
var GlobalStyles_exports = {};
|
|
11462
|
+
__export(GlobalStyles_exports, {
|
|
11463
|
+
default: () => GlobalStyles_default
|
|
11464
|
+
});
|
|
11465
|
+
var globalStyles = {
|
|
11466
|
+
".Slim-Vertical-Scroll": {
|
|
11467
|
+
"@-moz-document url-prefix()": {
|
|
11468
|
+
"&": {
|
|
11469
|
+
scrollbarColor: "silver transparent",
|
|
11470
|
+
scrollbarWidth: "auto"
|
|
11471
|
+
}
|
|
11472
|
+
},
|
|
11473
|
+
overflow: "auto",
|
|
11474
|
+
overflowX: "hidden",
|
|
11475
|
+
"&::-webkit-scrollbar": {
|
|
11476
|
+
width: "8px"
|
|
11477
|
+
},
|
|
11478
|
+
"&::-webkit-scrollbar-button": {
|
|
11479
|
+
height: 0
|
|
11480
|
+
},
|
|
11481
|
+
"&::-webkit-scrollbar-track-piece": {
|
|
11482
|
+
background: "transparent",
|
|
11483
|
+
borderRadius: "4px"
|
|
11484
|
+
},
|
|
11485
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11486
|
+
background: "silver",
|
|
11487
|
+
borderRadius: "4px"
|
|
11488
|
+
}
|
|
11489
|
+
},
|
|
11490
|
+
".Slim-Horizontal-Scroll": {
|
|
11491
|
+
"@-moz-document url-prefix()": {
|
|
11492
|
+
"&": {
|
|
11493
|
+
scrollbarColor: "silver transparent",
|
|
11494
|
+
scrollbarWidth: "auto"
|
|
11495
|
+
}
|
|
11496
|
+
},
|
|
11497
|
+
overflow: "auto",
|
|
11498
|
+
overflowY: "hidden",
|
|
11499
|
+
"&::-webkit-scrollbar": {
|
|
11500
|
+
height: "8px"
|
|
11501
|
+
},
|
|
11502
|
+
"&::-webkit-scrollbar-button": {
|
|
11503
|
+
width: 0
|
|
11504
|
+
},
|
|
11505
|
+
"&::-webkit-scrollbar-track-piece": {
|
|
11506
|
+
background: "transparent"
|
|
11507
|
+
},
|
|
11508
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11509
|
+
background: "silver"
|
|
11510
|
+
}
|
|
11511
|
+
},
|
|
11512
|
+
".Slim-Vertical-Horizontal-Scroll": {
|
|
11513
|
+
"@-moz-document url-prefix()": {
|
|
11514
|
+
"&": {
|
|
11515
|
+
scrollbarColor: "silver transparent",
|
|
11516
|
+
scrollbarWidth: "auto"
|
|
11517
|
+
}
|
|
11518
|
+
},
|
|
11519
|
+
overflow: "auto",
|
|
11520
|
+
"&::-webkit-scrollbar": {
|
|
11521
|
+
height: "8px",
|
|
11522
|
+
width: "8px"
|
|
11523
|
+
},
|
|
11524
|
+
"&::-webkit-scrollbar-button": {
|
|
11525
|
+
width: 0,
|
|
11526
|
+
height: 0
|
|
11527
|
+
},
|
|
11528
|
+
"&::-webkit-scrollbar-track-piece": {
|
|
11529
|
+
background: "transparent"
|
|
11530
|
+
},
|
|
11531
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11532
|
+
background: "silver"
|
|
11533
|
+
}
|
|
11534
|
+
},
|
|
11535
|
+
".Fade-In-Out": {
|
|
11536
|
+
transition: "opacity 0.25s, visibility 0.25s",
|
|
11537
|
+
opacity: 0,
|
|
11538
|
+
"&::WebkitTransition": "opacity 0.25s, visibility 0.25s"
|
|
11539
|
+
},
|
|
11540
|
+
".SnackBar-Container": {
|
|
11541
|
+
zIndex: "10000 !important"
|
|
11542
|
+
}
|
|
11543
|
+
};
|
|
11544
|
+
var GlobalStyles_default = globalStyles;
|
|
11545
|
+
|
|
11540
11546
|
// src/components/chip/ChipHiddenCounter.tsx
|
|
11541
11547
|
import * as React30 from "react";
|
|
11542
11548
|
import { Popper } from "@mui/material";
|
|
@@ -16236,6 +16242,7 @@ var Dialog = ({
|
|
|
16236
16242
|
onClose,
|
|
16237
16243
|
...rest
|
|
16238
16244
|
}) => {
|
|
16245
|
+
const { palette: palette2 } = useCustomTheme();
|
|
16239
16246
|
const getDialogContent = () => /* @__PURE__ */ jsxs39(Fragment15, { children: [
|
|
16240
16247
|
/* @__PURE__ */ jsxs39(
|
|
16241
16248
|
Stack_default,
|
|
@@ -16252,7 +16259,10 @@ var Dialog = ({
|
|
|
16252
16259
|
{
|
|
16253
16260
|
iconId: "close",
|
|
16254
16261
|
onClick: onClose,
|
|
16255
|
-
sx: {
|
|
16262
|
+
sx: {
|
|
16263
|
+
color: palette2.grey[500],
|
|
16264
|
+
transform: "translateX(8px)"
|
|
16265
|
+
}
|
|
16256
16266
|
}
|
|
16257
16267
|
)
|
|
16258
16268
|
]
|
|
@@ -16311,6 +16321,7 @@ var ConfirmationDialog = ({
|
|
|
16311
16321
|
...rest
|
|
16312
16322
|
}) => {
|
|
16313
16323
|
const { t } = useTranslation();
|
|
16324
|
+
const { palette: palette2 } = useCustomTheme();
|
|
16314
16325
|
const scrollContainer = React39.useRef(null);
|
|
16315
16326
|
const [observeScroll, setObserveScroll] = React39.useState();
|
|
16316
16327
|
const [hasScrollPopup, setHasScrollPopup] = React39.useState(false);
|
|
@@ -16355,7 +16366,7 @@ var ConfirmationDialog = ({
|
|
|
16355
16366
|
justifyContent: rest.fullScreen ? "space-between" : void 0,
|
|
16356
16367
|
sx: {
|
|
16357
16368
|
...displayBorders && {
|
|
16358
|
-
borderTop: `1px solid ${
|
|
16369
|
+
borderTop: `1px solid ${palette2.grey[200]}`
|
|
16359
16370
|
}
|
|
16360
16371
|
},
|
|
16361
16372
|
children: [
|
|
@@ -16375,7 +16386,7 @@ var ConfirmationDialog = ({
|
|
|
16375
16386
|
sx: {
|
|
16376
16387
|
padding: "16px 24px 16px 24px",
|
|
16377
16388
|
...(hasScrollPopup || displayBorders) && {
|
|
16378
|
-
borderTop: `1px solid ${
|
|
16389
|
+
borderTop: `1px solid ${palette2.grey[200]}`
|
|
16379
16390
|
}
|
|
16380
16391
|
},
|
|
16381
16392
|
children: [
|
|
@@ -19057,7 +19068,7 @@ import { jsx as jsx98 } from "react/jsx-runtime";
|
|
|
19057
19068
|
var TextFieldContainer = React49.forwardRef(function TextFieldContainer2({
|
|
19058
19069
|
children,
|
|
19059
19070
|
variant = "default",
|
|
19060
|
-
activeColor
|
|
19071
|
+
activeColor,
|
|
19061
19072
|
disabled,
|
|
19062
19073
|
highlighted,
|
|
19063
19074
|
isError,
|
|
@@ -19070,6 +19081,8 @@ var TextFieldContainer = React49.forwardRef(function TextFieldContainer2({
|
|
|
19070
19081
|
onMouseEnter,
|
|
19071
19082
|
onMouseLeave
|
|
19072
19083
|
}, ref) {
|
|
19084
|
+
const { palette: palette2 } = useCustomTheme();
|
|
19085
|
+
const effectiveActiveColor = activeColor ?? palette2.primary.main;
|
|
19073
19086
|
return /* @__PURE__ */ jsx98(
|
|
19074
19087
|
Box_default2,
|
|
19075
19088
|
{
|
|
@@ -19080,37 +19093,34 @@ var TextFieldContainer = React49.forwardRef(function TextFieldContainer2({
|
|
|
19080
19093
|
display: "flex",
|
|
19081
19094
|
alignItems: multiline ? "start" : "center",
|
|
19082
19095
|
gap: "8px",
|
|
19083
|
-
backgroundColor: variant === "default" ? white : "transparent",
|
|
19096
|
+
backgroundColor: variant === "default" ? disabled ? palette2.grey[50] : palette2.common.white : "transparent",
|
|
19084
19097
|
width: "100%",
|
|
19085
19098
|
minHeight: "36px",
|
|
19086
19099
|
overflow: "hidden",
|
|
19087
|
-
border: variant === "default" ? `1px solid ${
|
|
19100
|
+
border: variant === "default" ? `1px solid ${palette2.grey[200]}` : "none",
|
|
19088
19101
|
borderRadius: variant === "default" ? "4px" : 0,
|
|
19089
|
-
color: isFocused ?
|
|
19102
|
+
color: disabled ? palette2.grey[500] : isFocused ? effectiveActiveColor : palette2.grey[400],
|
|
19090
19103
|
padding: variant === "default" ? "1px 1px 1px 7px" : "2px 2px 2px 8px",
|
|
19091
19104
|
boxSizing: "border-box",
|
|
19092
19105
|
justifyContent: "end",
|
|
19093
19106
|
...!disabled && isFocused && {
|
|
19094
|
-
borderColor:
|
|
19095
|
-
color:
|
|
19107
|
+
borderColor: effectiveActiveColor,
|
|
19108
|
+
color: effectiveActiveColor
|
|
19096
19109
|
},
|
|
19097
19110
|
...isError && {
|
|
19098
|
-
borderColor:
|
|
19099
|
-
color:
|
|
19100
|
-
},
|
|
19101
|
-
...disabled && {
|
|
19102
|
-
opacity: 0.5
|
|
19111
|
+
borderColor: palette2.error.main,
|
|
19112
|
+
color: palette2.error.main
|
|
19103
19113
|
},
|
|
19104
19114
|
...highlighted && {
|
|
19105
|
-
backgroundColor: lighten(
|
|
19115
|
+
backgroundColor: lighten(effectiveActiveColor, 0.6)
|
|
19106
19116
|
},
|
|
19107
19117
|
...disabled && {
|
|
19108
19118
|
cursor: "text"
|
|
19109
19119
|
},
|
|
19110
19120
|
...!disabled && !isFocused && !isError && {
|
|
19111
19121
|
"&:hover": {
|
|
19112
|
-
borderColor:
|
|
19113
|
-
color:
|
|
19122
|
+
borderColor: palette2.grey[800],
|
|
19123
|
+
color: palette2.grey[800]
|
|
19114
19124
|
}
|
|
19115
19125
|
},
|
|
19116
19126
|
...sx
|
|
@@ -19163,10 +19173,7 @@ import { styled as styled6 } from "@mui/material";
|
|
|
19163
19173
|
import * as React50 from "react";
|
|
19164
19174
|
import { styled as styled4 } from "@mui/material";
|
|
19165
19175
|
import { jsx as jsx99, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
19166
|
-
var
|
|
19167
|
-
info: grey900,
|
|
19168
|
-
error: errorMain
|
|
19169
|
-
};
|
|
19176
|
+
var getSeverityColor = ({ palette: palette2 }, severity) => severity === "error" ? palette2.error.main : palette2.grey[900];
|
|
19170
19177
|
var StyledLabel = styled4("label", {
|
|
19171
19178
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
19172
19179
|
})(
|
|
@@ -19174,7 +19181,7 @@ var StyledLabel = styled4("label", {
|
|
|
19174
19181
|
display: "block",
|
|
19175
19182
|
padding: "4px 0",
|
|
19176
19183
|
...variants["caption"],
|
|
19177
|
-
color:
|
|
19184
|
+
color: getSeverityColor(theme2, severity)
|
|
19178
19185
|
})
|
|
19179
19186
|
);
|
|
19180
19187
|
var InputLabel = React50.forwardRef(
|
|
@@ -19193,11 +19200,11 @@ var InputLabel = React50.forwardRef(
|
|
|
19193
19200
|
{
|
|
19194
19201
|
id: "information-outline",
|
|
19195
19202
|
size: "XS",
|
|
19196
|
-
sx: {
|
|
19203
|
+
sx: (theme2) => ({
|
|
19197
19204
|
marginLeft: "5px",
|
|
19198
|
-
color:
|
|
19205
|
+
color: getSeverityColor(theme2, severity),
|
|
19199
19206
|
alignSelf: "center"
|
|
19200
|
-
}
|
|
19207
|
+
})
|
|
19201
19208
|
}
|
|
19202
19209
|
) })
|
|
19203
19210
|
]
|
|
@@ -19211,17 +19218,14 @@ var InputLabel_default = InputLabel;
|
|
|
19211
19218
|
import { styled as styled5 } from "@mui/material";
|
|
19212
19219
|
import * as React51 from "react";
|
|
19213
19220
|
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
19214
|
-
var
|
|
19215
|
-
info: grey800,
|
|
19216
|
-
error: errorMain
|
|
19217
|
-
};
|
|
19221
|
+
var getSeverityColor2 = ({ palette: palette2 }, severity) => severity === "error" ? palette2.error.main : palette2.grey[800];
|
|
19218
19222
|
var StyledDiv = styled5("div", {
|
|
19219
19223
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
19220
19224
|
})(
|
|
19221
19225
|
({ severity, theme: theme2 }) => theme2.unstable_sx({
|
|
19222
19226
|
padding: "4px 8px",
|
|
19223
19227
|
...variants["caption"],
|
|
19224
|
-
color:
|
|
19228
|
+
color: getSeverityColor2(theme2, severity)
|
|
19225
19229
|
})
|
|
19226
19230
|
);
|
|
19227
19231
|
var InputHelperText = React51.forwardRef(
|
|
@@ -19236,25 +19240,22 @@ import { Fragment as Fragment22, jsx as jsx101, jsxs as jsxs45 } from "react/jsx
|
|
|
19236
19240
|
var commonInputStylesOptions = {
|
|
19237
19241
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
19238
19242
|
};
|
|
19239
|
-
function getCommonInputStyles({
|
|
19240
|
-
disabled,
|
|
19241
|
-
typographyVariant
|
|
19242
|
-
}) {
|
|
19243
|
+
function getCommonInputStyles({ palette: palette2 }, { disabled, typographyVariant, readOnly }) {
|
|
19243
19244
|
return {
|
|
19244
19245
|
...variants[typographyVariant ?? "body2"],
|
|
19245
|
-
backgroundColor: "transparent",
|
|
19246
|
+
backgroundColor: disabled || readOnly ? palette2.grey[50] : "transparent",
|
|
19246
19247
|
display: "block",
|
|
19247
19248
|
width: "0",
|
|
19248
19249
|
minWidth: "64px",
|
|
19249
19250
|
flexGrow: 1,
|
|
19250
19251
|
border: "none",
|
|
19251
|
-
color: disabled ?
|
|
19252
|
+
color: disabled ? palette2.grey[500] : palette2.grey[900],
|
|
19252
19253
|
boxSizing: "border-box",
|
|
19253
19254
|
outline: "none",
|
|
19254
19255
|
padding: "6px 0",
|
|
19255
19256
|
textOverflow: "ellipsis",
|
|
19256
19257
|
"&::placeholder": {
|
|
19257
|
-
color:
|
|
19258
|
+
color: palette2.grey[500]
|
|
19258
19259
|
}
|
|
19259
19260
|
};
|
|
19260
19261
|
}
|
|
@@ -19262,14 +19263,14 @@ var StyledInput = styled6(
|
|
|
19262
19263
|
"input",
|
|
19263
19264
|
commonInputStylesOptions
|
|
19264
19265
|
)(
|
|
19265
|
-
(props) =>
|
|
19266
|
+
({ theme: theme2, ...props }) => theme2.unstable_sx(getCommonInputStyles(theme2, props))
|
|
19266
19267
|
);
|
|
19267
19268
|
var StyledTextarea = styled6(
|
|
19268
19269
|
"textarea",
|
|
19269
19270
|
commonInputStylesOptions
|
|
19270
19271
|
)(
|
|
19271
|
-
(props) =>
|
|
19272
|
-
...getCommonInputStyles(props),
|
|
19272
|
+
({ theme: theme2, ...props }) => theme2.unstable_sx({
|
|
19273
|
+
...getCommonInputStyles(theme2, props),
|
|
19273
19274
|
resize: "none",
|
|
19274
19275
|
minWidth: "50%"
|
|
19275
19276
|
})
|
|
@@ -19279,7 +19280,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19279
19280
|
id: customId,
|
|
19280
19281
|
variant = "default",
|
|
19281
19282
|
disabled = false,
|
|
19282
|
-
activeColor
|
|
19283
|
+
activeColor,
|
|
19283
19284
|
highlighted = false,
|
|
19284
19285
|
sx,
|
|
19285
19286
|
inputSx,
|
|
@@ -19314,11 +19315,13 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19314
19315
|
onMouseLeave,
|
|
19315
19316
|
...restProps
|
|
19316
19317
|
}, ref) {
|
|
19318
|
+
const { palette: palette2 } = useCustomTheme();
|
|
19317
19319
|
const [id] = React52.useState(Math.random().toString(10));
|
|
19318
19320
|
const inputRef = React52.useRef(null);
|
|
19319
19321
|
const _containerRef = React52.useRef(null);
|
|
19320
19322
|
const existsClearButton = !!(value && isClearable && !disabled);
|
|
19321
19323
|
const [isFocused, setFocused] = React52.useState(false);
|
|
19324
|
+
const effectiveActiveColor = activeColor ?? palette2.primary.main;
|
|
19322
19325
|
const onInputFocus = React52.useCallback(
|
|
19323
19326
|
(event) => {
|
|
19324
19327
|
setFocused(true);
|
|
@@ -19343,19 +19346,22 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19343
19346
|
}
|
|
19344
19347
|
}
|
|
19345
19348
|
},
|
|
19346
|
-
[ref, inputRef, isFocused, disabled]
|
|
19349
|
+
[ref, inputRef, isFocused, disabled, containerRef]
|
|
19347
19350
|
);
|
|
19348
19351
|
const getTextFieldContainer = () => /* @__PURE__ */ jsxs45(
|
|
19349
19352
|
TextFieldContainer_default,
|
|
19350
19353
|
{
|
|
19351
19354
|
variant,
|
|
19352
19355
|
disabled,
|
|
19353
|
-
activeColor,
|
|
19356
|
+
activeColor: effectiveActiveColor,
|
|
19354
19357
|
highlighted,
|
|
19355
19358
|
isFocused,
|
|
19356
19359
|
isError,
|
|
19357
19360
|
multiline,
|
|
19358
|
-
sx: {
|
|
19361
|
+
sx: {
|
|
19362
|
+
backgroundColor: disabled || readOnly ? palette2.grey[50] : "transparent",
|
|
19363
|
+
...sx
|
|
19364
|
+
},
|
|
19359
19365
|
onClick: onContainerClick,
|
|
19360
19366
|
ref: containerRef,
|
|
19361
19367
|
className: `Cn-TextField ${className}`,
|
|
@@ -19499,7 +19505,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19499
19505
|
htmlFor: customId ?? id,
|
|
19500
19506
|
severity: isError ? "error" : "info",
|
|
19501
19507
|
sx: {
|
|
19502
|
-
...!isError && isFocused && { color:
|
|
19508
|
+
...!isError && isFocused && { color: effectiveActiveColor }
|
|
19503
19509
|
},
|
|
19504
19510
|
...labelInfoText && {
|
|
19505
19511
|
infoText: labelInfoText
|
|
@@ -19535,7 +19541,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19535
19541
|
["> .Cn-IconButton"]: {
|
|
19536
19542
|
height: "36px",
|
|
19537
19543
|
width: "36px",
|
|
19538
|
-
border: variant === "default" ? `1px solid ${
|
|
19544
|
+
border: variant === "default" ? `1px solid ${palette2.grey[200]}` : null
|
|
19539
19545
|
}
|
|
19540
19546
|
},
|
|
19541
19547
|
children: [
|
|
@@ -19551,7 +19557,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19551
19557
|
{
|
|
19552
19558
|
severity: isError ? "error" : "info",
|
|
19553
19559
|
sx: {
|
|
19554
|
-
...!isError && isFocused && { color:
|
|
19560
|
+
...!isError && isFocused && { color: effectiveActiveColor }
|
|
19555
19561
|
},
|
|
19556
19562
|
children: helperText
|
|
19557
19563
|
}
|
|
@@ -20205,7 +20211,7 @@ var ExtendedTextField = ({
|
|
|
20205
20211
|
InputProps,
|
|
20206
20212
|
error,
|
|
20207
20213
|
...rest
|
|
20208
|
-
}) => /* @__PURE__ */ jsx110(TextField_default, { ...
|
|
20214
|
+
}) => /* @__PURE__ */ jsx110(TextField_default, { ...rest, ...inputProps, readOnly: InputProps.readOnly });
|
|
20209
20215
|
var TimeField = function TimeField2({
|
|
20210
20216
|
onChange,
|
|
20211
20217
|
value,
|
|
@@ -21247,19 +21253,29 @@ import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
|
21247
21253
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
21248
21254
|
var BootstrapInput = styled7(InputBase, {
|
|
21249
21255
|
shouldForwardProp: (prop) => prop !== "notched"
|
|
21250
|
-
})(() => ({
|
|
21256
|
+
})(({ theme: { palette: palette2 } }) => ({
|
|
21251
21257
|
boxShadow: shadows[0],
|
|
21252
21258
|
borderRadius: "16px",
|
|
21253
21259
|
borderWidth: "1px",
|
|
21254
21260
|
borderStyle: "solid",
|
|
21255
|
-
borderColor:
|
|
21261
|
+
borderColor: palette2.grey[200],
|
|
21256
21262
|
backgroundColor: "white",
|
|
21257
21263
|
cursor: "default",
|
|
21258
21264
|
maxWidth: "100%",
|
|
21265
|
+
"&.Mui-disabled": {
|
|
21266
|
+
backgroundColor: palette2.grey[50],
|
|
21267
|
+
".MuiSelect-select": {
|
|
21268
|
+
color: palette2.grey[500],
|
|
21269
|
+
"-webkit-text-fill-color": palette2.grey[500],
|
|
21270
|
+
span: {
|
|
21271
|
+
color: "inherit !important"
|
|
21272
|
+
}
|
|
21273
|
+
}
|
|
21274
|
+
},
|
|
21259
21275
|
"& .MuiInputBase-input.MuiSelect-select": {
|
|
21260
21276
|
...variants["button-medium"],
|
|
21261
21277
|
padding: "0 36px 0 12px !important",
|
|
21262
|
-
color:
|
|
21278
|
+
color: palette2.grey[800],
|
|
21263
21279
|
boxSizing: "border-box",
|
|
21264
21280
|
height: "26px",
|
|
21265
21281
|
// 26px height + 1px * 2 from borders => 28px height
|
|
@@ -21271,24 +21287,27 @@ var BootstrapInput = styled7(InputBase, {
|
|
|
21271
21287
|
}
|
|
21272
21288
|
},
|
|
21273
21289
|
"&.Mui-focused": {
|
|
21274
|
-
backgroundColor:
|
|
21290
|
+
backgroundColor: palette2.grey[200]
|
|
21275
21291
|
},
|
|
21276
21292
|
"&:hover:not(.Mui-disabled)": {
|
|
21277
|
-
borderColor:
|
|
21293
|
+
borderColor: palette2.grey[800]
|
|
21278
21294
|
}
|
|
21279
21295
|
}));
|
|
21280
|
-
var ChevronIcon = ({ disabled = false }) =>
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21296
|
+
var ChevronIcon = ({ disabled = false }) => {
|
|
21297
|
+
const { palette: palette2 } = useCustomTheme();
|
|
21298
|
+
return /* @__PURE__ */ jsx115(
|
|
21299
|
+
Icon_default,
|
|
21300
|
+
{
|
|
21301
|
+
id: "chevron-down",
|
|
21302
|
+
size: "M",
|
|
21303
|
+
sx: {
|
|
21304
|
+
marginLeft: "-24px !important",
|
|
21305
|
+
transform: "translateX(-8px) !important",
|
|
21306
|
+
color: disabled ? `${palette2.grey[500]} !important` : palette2.grey[800]
|
|
21307
|
+
}
|
|
21289
21308
|
}
|
|
21290
|
-
|
|
21291
|
-
|
|
21309
|
+
);
|
|
21310
|
+
};
|
|
21292
21311
|
var SelectOption = ({
|
|
21293
21312
|
value,
|
|
21294
21313
|
id,
|
|
@@ -21352,6 +21371,7 @@ var Select = function Select2({
|
|
|
21352
21371
|
onOpen,
|
|
21353
21372
|
...rest
|
|
21354
21373
|
}, ref) {
|
|
21374
|
+
const { palette: palette2 } = useCustomTheme();
|
|
21355
21375
|
const [_isOpen, setOpen] = React60.useState(false);
|
|
21356
21376
|
const isOpen = open ?? _isOpen;
|
|
21357
21377
|
const currentValue = React60.useMemo(
|
|
@@ -21404,7 +21424,7 @@ var Select = function Select2({
|
|
|
21404
21424
|
...style3
|
|
21405
21425
|
},
|
|
21406
21426
|
baseSx: {
|
|
21407
|
-
backgroundColor: isSelected ? menuColors?.selectedColor ??
|
|
21427
|
+
backgroundColor: isSelected ? menuColors?.selectedColor ?? palette2.primary[50] : "transparent",
|
|
21408
21428
|
color: menuColors?.color
|
|
21409
21429
|
},
|
|
21410
21430
|
...rest2
|
|
@@ -21436,10 +21456,10 @@ var Select = function Select2({
|
|
|
21436
21456
|
},
|
|
21437
21457
|
...isOpen && {
|
|
21438
21458
|
...variant !== "transparent" && {
|
|
21439
|
-
borderColor:
|
|
21459
|
+
borderColor: palette2.primary.main
|
|
21440
21460
|
},
|
|
21441
21461
|
"& .MuiSvgIcon-root": {
|
|
21442
|
-
color:
|
|
21462
|
+
color: palette2.primary.main,
|
|
21443
21463
|
transform: "rotate(180deg) translateX(8px)"
|
|
21444
21464
|
}
|
|
21445
21465
|
},
|
|
@@ -21465,7 +21485,7 @@ var Select = function Select2({
|
|
|
21465
21485
|
return renderValue(value2, options);
|
|
21466
21486
|
}
|
|
21467
21487
|
if (!value2) {
|
|
21468
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21488
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21469
21489
|
}
|
|
21470
21490
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
21471
21491
|
},
|
|
@@ -21537,10 +21557,10 @@ var Select = function Select2({
|
|
|
21537
21557
|
},
|
|
21538
21558
|
...isOpen && {
|
|
21539
21559
|
...variant !== "transparent" && {
|
|
21540
|
-
borderColor:
|
|
21560
|
+
borderColor: palette2.primary.main
|
|
21541
21561
|
},
|
|
21542
21562
|
"& .MuiSvgIcon-root": {
|
|
21543
|
-
color:
|
|
21563
|
+
color: palette2.primary.main,
|
|
21544
21564
|
transform: "rotate(180deg) translateX(8px)"
|
|
21545
21565
|
}
|
|
21546
21566
|
},
|
|
@@ -21571,7 +21591,7 @@ var Select = function Select2({
|
|
|
21571
21591
|
}
|
|
21572
21592
|
if (Array.isArray(value2)) {
|
|
21573
21593
|
if (value2.length === 0) {
|
|
21574
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21594
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21575
21595
|
} else {
|
|
21576
21596
|
return value2.map((v) => {
|
|
21577
21597
|
const option = options.find((o) => o.value === v);
|
|
@@ -21580,7 +21600,7 @@ var Select = function Select2({
|
|
|
21580
21600
|
}
|
|
21581
21601
|
} else {
|
|
21582
21602
|
if (!value2) {
|
|
21583
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21603
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21584
21604
|
}
|
|
21585
21605
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
21586
21606
|
}
|
|
@@ -21618,7 +21638,7 @@ var Select = function Select2({
|
|
|
21618
21638
|
id: optionValue,
|
|
21619
21639
|
colors: !menuColors?.selectedColor ? {
|
|
21620
21640
|
...menuColors ?? {},
|
|
21621
|
-
selectedColor:
|
|
21641
|
+
selectedColor: palette2.primary[50]
|
|
21622
21642
|
} : menuColors,
|
|
21623
21643
|
selected: Array.isArray(currentValue) ? currentValue.some((v) => v === optionValue) : currentValue === optionValue,
|
|
21624
21644
|
slotProps: { optionText: { sx: sx2 } },
|
|
@@ -23321,6 +23341,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23321
23341
|
onOpenPopover,
|
|
23322
23342
|
onRemoveValue
|
|
23323
23343
|
}) {
|
|
23344
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23324
23345
|
const stackRef = React69.useRef(null);
|
|
23325
23346
|
return /* @__PURE__ */ jsxs60(
|
|
23326
23347
|
Stack_default,
|
|
@@ -23347,7 +23368,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23347
23368
|
sx: {
|
|
23348
23369
|
padding: 0,
|
|
23349
23370
|
...(disabled || !canAddValues) && {
|
|
23350
|
-
color: `${
|
|
23371
|
+
color: `${palette2.grey[500]} !important`,
|
|
23351
23372
|
opacity: "1 !important",
|
|
23352
23373
|
flex: "0 0 auto"
|
|
23353
23374
|
}
|
|
@@ -23362,7 +23383,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23362
23383
|
TextEllipsis_default,
|
|
23363
23384
|
{
|
|
23364
23385
|
typographyVariant: "body2",
|
|
23365
|
-
color:
|
|
23386
|
+
color: palette2.grey[900],
|
|
23366
23387
|
text: renderLabel(
|
|
23367
23388
|
value
|
|
23368
23389
|
)
|
|
@@ -23423,6 +23444,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23423
23444
|
onPressEnter,
|
|
23424
23445
|
onRemoveValue
|
|
23425
23446
|
}) {
|
|
23447
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23426
23448
|
const { t } = useTranslation();
|
|
23427
23449
|
const [isHover, setIsHover] = React70.useState(false);
|
|
23428
23450
|
const dirty = !!inputValue || Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value;
|
|
@@ -23442,7 +23464,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23442
23464
|
padding: 0
|
|
23443
23465
|
},
|
|
23444
23466
|
...disabled && {
|
|
23445
|
-
background:
|
|
23467
|
+
background: palette2.grey[50]
|
|
23446
23468
|
},
|
|
23447
23469
|
gap: 0,
|
|
23448
23470
|
"& > div:first-of-type": {
|
|
@@ -23455,13 +23477,13 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23455
23477
|
flex: "1 1 auto",
|
|
23456
23478
|
minWidth: showClearButton ? `${INPUT_MIN_WIDTH}px` : `${INPUT_MIN_WIDTH + CLEAR_BUTTON_WIDTH}px`,
|
|
23457
23479
|
...disabled && {
|
|
23458
|
-
color:
|
|
23480
|
+
color: palette2.grey[500]
|
|
23459
23481
|
},
|
|
23460
23482
|
...disabled && value && {
|
|
23461
23483
|
display: "none"
|
|
23462
23484
|
},
|
|
23463
23485
|
"&::placeholder": {
|
|
23464
|
-
color:
|
|
23486
|
+
color: palette2.grey[500]
|
|
23465
23487
|
}
|
|
23466
23488
|
},
|
|
23467
23489
|
maxLength: maxValueLength,
|
|
@@ -23570,7 +23592,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23570
23592
|
padding: 0,
|
|
23571
23593
|
marginLeft: 0,
|
|
23572
23594
|
...!canAddValues && {
|
|
23573
|
-
color: `${
|
|
23595
|
+
color: `${palette2.grey[500]} !important`,
|
|
23574
23596
|
opacity: "1 !important"
|
|
23575
23597
|
}
|
|
23576
23598
|
},
|
|
@@ -23640,6 +23662,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23640
23662
|
onAddSelectedValue,
|
|
23641
23663
|
onClickAwayPopover
|
|
23642
23664
|
}) {
|
|
23665
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23643
23666
|
const { t } = useTranslation();
|
|
23644
23667
|
const listRef = React71.useRef(null);
|
|
23645
23668
|
const getText = (option) => {
|
|
@@ -23663,7 +23686,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23663
23686
|
tabIndex: -1,
|
|
23664
23687
|
role: "option",
|
|
23665
23688
|
baseSx: {
|
|
23666
|
-
color:
|
|
23689
|
+
color: palette2.grey[900]
|
|
23667
23690
|
},
|
|
23668
23691
|
sx: {
|
|
23669
23692
|
...style3,
|
|
@@ -23672,7 +23695,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23672
23695
|
content: '""',
|
|
23673
23696
|
position: "absolute",
|
|
23674
23697
|
inset: 0,
|
|
23675
|
-
border: `1px solid ${
|
|
23698
|
+
border: `1px solid ${palette2.common.black}`,
|
|
23676
23699
|
borderRadius: "8px",
|
|
23677
23700
|
pointerEvents: "none"
|
|
23678
23701
|
}
|
|
@@ -24898,6 +24921,7 @@ var NumberField = React77.forwardRef(function NumberField2({
|
|
|
24898
24921
|
endAdornment,
|
|
24899
24922
|
...rest
|
|
24900
24923
|
}, ref) {
|
|
24924
|
+
const { palette: palette2 } = useCustomTheme();
|
|
24901
24925
|
const inputRef = React77.useRef(null);
|
|
24902
24926
|
const numberToString = React77.useCallback(
|
|
24903
24927
|
(value2) => typeof value2 === "number" && !isNaN(value2) ? fractionDigits !== 0 ? value2.toFixed(fractionDigits) : value2.toString() : "",
|
|
@@ -25022,7 +25046,7 @@ var NumberField = React77.forwardRef(function NumberField2({
|
|
|
25022
25046
|
{
|
|
25023
25047
|
justifyContent: "center",
|
|
25024
25048
|
alignItems: "center",
|
|
25025
|
-
borderLeft: `1px solid ${
|
|
25049
|
+
borderLeft: `1px solid ${palette2.grey[200]}`,
|
|
25026
25050
|
sx: {
|
|
25027
25051
|
"& > span": {
|
|
25028
25052
|
display: "flex"
|