@connectif/ui-components 5.4.1 → 5.4.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/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,37 @@ 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" ? 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: 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:
|
|
19111
|
+
borderColor: palette2.error.main,
|
|
19112
|
+
color: palette2.error.main
|
|
19100
19113
|
},
|
|
19101
19114
|
...disabled && {
|
|
19102
19115
|
opacity: 0.5
|
|
19103
19116
|
},
|
|
19104
19117
|
...highlighted && {
|
|
19105
|
-
backgroundColor: lighten(
|
|
19118
|
+
backgroundColor: lighten(effectiveActiveColor, 0.6)
|
|
19106
19119
|
},
|
|
19107
19120
|
...disabled && {
|
|
19108
19121
|
cursor: "text"
|
|
19109
19122
|
},
|
|
19110
19123
|
...!disabled && !isFocused && !isError && {
|
|
19111
19124
|
"&:hover": {
|
|
19112
|
-
borderColor:
|
|
19113
|
-
color:
|
|
19125
|
+
borderColor: palette2.grey[800],
|
|
19126
|
+
color: palette2.grey[800]
|
|
19114
19127
|
}
|
|
19115
19128
|
},
|
|
19116
19129
|
...sx
|
|
@@ -19163,10 +19176,7 @@ import { styled as styled6 } from "@mui/material";
|
|
|
19163
19176
|
import * as React50 from "react";
|
|
19164
19177
|
import { styled as styled4 } from "@mui/material";
|
|
19165
19178
|
import { jsx as jsx99, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
19166
|
-
var
|
|
19167
|
-
info: grey900,
|
|
19168
|
-
error: errorMain
|
|
19169
|
-
};
|
|
19179
|
+
var getSeverityColor = ({ palette: palette2 }, severity) => severity === "error" ? palette2.error.main : palette2.grey[900];
|
|
19170
19180
|
var StyledLabel = styled4("label", {
|
|
19171
19181
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
19172
19182
|
})(
|
|
@@ -19174,7 +19184,7 @@ var StyledLabel = styled4("label", {
|
|
|
19174
19184
|
display: "block",
|
|
19175
19185
|
padding: "4px 0",
|
|
19176
19186
|
...variants["caption"],
|
|
19177
|
-
color:
|
|
19187
|
+
color: getSeverityColor(theme2, severity)
|
|
19178
19188
|
})
|
|
19179
19189
|
);
|
|
19180
19190
|
var InputLabel = React50.forwardRef(
|
|
@@ -19193,11 +19203,11 @@ var InputLabel = React50.forwardRef(
|
|
|
19193
19203
|
{
|
|
19194
19204
|
id: "information-outline",
|
|
19195
19205
|
size: "XS",
|
|
19196
|
-
sx: {
|
|
19206
|
+
sx: (theme2) => ({
|
|
19197
19207
|
marginLeft: "5px",
|
|
19198
|
-
color:
|
|
19208
|
+
color: getSeverityColor(theme2, severity),
|
|
19199
19209
|
alignSelf: "center"
|
|
19200
|
-
}
|
|
19210
|
+
})
|
|
19201
19211
|
}
|
|
19202
19212
|
) })
|
|
19203
19213
|
]
|
|
@@ -19211,17 +19221,14 @@ var InputLabel_default = InputLabel;
|
|
|
19211
19221
|
import { styled as styled5 } from "@mui/material";
|
|
19212
19222
|
import * as React51 from "react";
|
|
19213
19223
|
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
19214
|
-
var
|
|
19215
|
-
info: grey800,
|
|
19216
|
-
error: errorMain
|
|
19217
|
-
};
|
|
19224
|
+
var getSeverityColor2 = ({ palette: palette2 }, severity) => severity === "error" ? palette2.error.main : palette2.grey[800];
|
|
19218
19225
|
var StyledDiv = styled5("div", {
|
|
19219
19226
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
19220
19227
|
})(
|
|
19221
19228
|
({ severity, theme: theme2 }) => theme2.unstable_sx({
|
|
19222
19229
|
padding: "4px 8px",
|
|
19223
19230
|
...variants["caption"],
|
|
19224
|
-
color:
|
|
19231
|
+
color: getSeverityColor2(theme2, severity)
|
|
19225
19232
|
})
|
|
19226
19233
|
);
|
|
19227
19234
|
var InputHelperText = React51.forwardRef(
|
|
@@ -19236,10 +19243,7 @@ import { Fragment as Fragment22, jsx as jsx101, jsxs as jsxs45 } from "react/jsx
|
|
|
19236
19243
|
var commonInputStylesOptions = {
|
|
19237
19244
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
19238
19245
|
};
|
|
19239
|
-
function getCommonInputStyles({
|
|
19240
|
-
disabled,
|
|
19241
|
-
typographyVariant
|
|
19242
|
-
}) {
|
|
19246
|
+
function getCommonInputStyles({ palette: palette2 }, { disabled, typographyVariant }) {
|
|
19243
19247
|
return {
|
|
19244
19248
|
...variants[typographyVariant ?? "body2"],
|
|
19245
19249
|
backgroundColor: "transparent",
|
|
@@ -19248,13 +19252,13 @@ function getCommonInputStyles({
|
|
|
19248
19252
|
minWidth: "64px",
|
|
19249
19253
|
flexGrow: 1,
|
|
19250
19254
|
border: "none",
|
|
19251
|
-
color: disabled ?
|
|
19255
|
+
color: disabled ? palette2.grey[600] : palette2.grey[800],
|
|
19252
19256
|
boxSizing: "border-box",
|
|
19253
19257
|
outline: "none",
|
|
19254
19258
|
padding: "6px 0",
|
|
19255
19259
|
textOverflow: "ellipsis",
|
|
19256
19260
|
"&::placeholder": {
|
|
19257
|
-
color:
|
|
19261
|
+
color: palette2.grey[600]
|
|
19258
19262
|
}
|
|
19259
19263
|
};
|
|
19260
19264
|
}
|
|
@@ -19262,14 +19266,14 @@ var StyledInput = styled6(
|
|
|
19262
19266
|
"input",
|
|
19263
19267
|
commonInputStylesOptions
|
|
19264
19268
|
)(
|
|
19265
|
-
(props) =>
|
|
19269
|
+
({ theme: theme2, ...props }) => theme2.unstable_sx(getCommonInputStyles(theme2, props))
|
|
19266
19270
|
);
|
|
19267
19271
|
var StyledTextarea = styled6(
|
|
19268
19272
|
"textarea",
|
|
19269
19273
|
commonInputStylesOptions
|
|
19270
19274
|
)(
|
|
19271
|
-
(props) =>
|
|
19272
|
-
...getCommonInputStyles(props),
|
|
19275
|
+
({ theme: theme2, ...props }) => theme2.unstable_sx({
|
|
19276
|
+
...getCommonInputStyles(theme2, props),
|
|
19273
19277
|
resize: "none",
|
|
19274
19278
|
minWidth: "50%"
|
|
19275
19279
|
})
|
|
@@ -19279,7 +19283,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19279
19283
|
id: customId,
|
|
19280
19284
|
variant = "default",
|
|
19281
19285
|
disabled = false,
|
|
19282
|
-
activeColor
|
|
19286
|
+
activeColor,
|
|
19283
19287
|
highlighted = false,
|
|
19284
19288
|
sx,
|
|
19285
19289
|
inputSx,
|
|
@@ -19314,11 +19318,13 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19314
19318
|
onMouseLeave,
|
|
19315
19319
|
...restProps
|
|
19316
19320
|
}, ref) {
|
|
19321
|
+
const { palette: palette2 } = useCustomTheme();
|
|
19317
19322
|
const [id] = React52.useState(Math.random().toString(10));
|
|
19318
19323
|
const inputRef = React52.useRef(null);
|
|
19319
19324
|
const _containerRef = React52.useRef(null);
|
|
19320
19325
|
const existsClearButton = !!(value && isClearable && !disabled);
|
|
19321
19326
|
const [isFocused, setFocused] = React52.useState(false);
|
|
19327
|
+
const effectiveActiveColor = activeColor ?? palette2.primary.main;
|
|
19322
19328
|
const onInputFocus = React52.useCallback(
|
|
19323
19329
|
(event) => {
|
|
19324
19330
|
setFocused(true);
|
|
@@ -19343,19 +19349,22 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19343
19349
|
}
|
|
19344
19350
|
}
|
|
19345
19351
|
},
|
|
19346
|
-
[ref, inputRef, isFocused, disabled]
|
|
19352
|
+
[ref, inputRef, isFocused, disabled, containerRef]
|
|
19347
19353
|
);
|
|
19348
19354
|
const getTextFieldContainer = () => /* @__PURE__ */ jsxs45(
|
|
19349
19355
|
TextFieldContainer_default,
|
|
19350
19356
|
{
|
|
19351
19357
|
variant,
|
|
19352
19358
|
disabled,
|
|
19353
|
-
activeColor,
|
|
19359
|
+
activeColor: effectiveActiveColor,
|
|
19354
19360
|
highlighted,
|
|
19355
19361
|
isFocused,
|
|
19356
19362
|
isError,
|
|
19357
19363
|
multiline,
|
|
19358
|
-
sx: {
|
|
19364
|
+
sx: {
|
|
19365
|
+
backgroundColor: readOnly ? palette2.grey[50] : "transparent",
|
|
19366
|
+
...sx
|
|
19367
|
+
},
|
|
19359
19368
|
onClick: onContainerClick,
|
|
19360
19369
|
ref: containerRef,
|
|
19361
19370
|
className: `Cn-TextField ${className}`,
|
|
@@ -19499,7 +19508,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19499
19508
|
htmlFor: customId ?? id,
|
|
19500
19509
|
severity: isError ? "error" : "info",
|
|
19501
19510
|
sx: {
|
|
19502
|
-
...!isError && isFocused && { color:
|
|
19511
|
+
...!isError && isFocused && { color: effectiveActiveColor }
|
|
19503
19512
|
},
|
|
19504
19513
|
...labelInfoText && {
|
|
19505
19514
|
infoText: labelInfoText
|
|
@@ -19535,7 +19544,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19535
19544
|
["> .Cn-IconButton"]: {
|
|
19536
19545
|
height: "36px",
|
|
19537
19546
|
width: "36px",
|
|
19538
|
-
border: variant === "default" ? `1px solid ${
|
|
19547
|
+
border: variant === "default" ? `1px solid ${palette2.grey[200]}` : null
|
|
19539
19548
|
}
|
|
19540
19549
|
},
|
|
19541
19550
|
children: [
|
|
@@ -19551,7 +19560,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19551
19560
|
{
|
|
19552
19561
|
severity: isError ? "error" : "info",
|
|
19553
19562
|
sx: {
|
|
19554
|
-
...!isError && isFocused && { color:
|
|
19563
|
+
...!isError && isFocused && { color: effectiveActiveColor }
|
|
19555
19564
|
},
|
|
19556
19565
|
children: helperText
|
|
19557
19566
|
}
|
|
@@ -21247,19 +21256,19 @@ import AutoSizer4 from "react-virtualized-auto-sizer";
|
|
|
21247
21256
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
21248
21257
|
var BootstrapInput = styled7(InputBase, {
|
|
21249
21258
|
shouldForwardProp: (prop) => prop !== "notched"
|
|
21250
|
-
})(() => ({
|
|
21259
|
+
})(({ theme: { palette: palette2 } }) => ({
|
|
21251
21260
|
boxShadow: shadows[0],
|
|
21252
21261
|
borderRadius: "16px",
|
|
21253
21262
|
borderWidth: "1px",
|
|
21254
21263
|
borderStyle: "solid",
|
|
21255
|
-
borderColor:
|
|
21264
|
+
borderColor: palette2.grey[200],
|
|
21256
21265
|
backgroundColor: "white",
|
|
21257
21266
|
cursor: "default",
|
|
21258
21267
|
maxWidth: "100%",
|
|
21259
21268
|
"& .MuiInputBase-input.MuiSelect-select": {
|
|
21260
21269
|
...variants["button-medium"],
|
|
21261
21270
|
padding: "0 36px 0 12px !important",
|
|
21262
|
-
color:
|
|
21271
|
+
color: palette2.grey[800],
|
|
21263
21272
|
boxSizing: "border-box",
|
|
21264
21273
|
height: "26px",
|
|
21265
21274
|
// 26px height + 1px * 2 from borders => 28px height
|
|
@@ -21271,24 +21280,27 @@ var BootstrapInput = styled7(InputBase, {
|
|
|
21271
21280
|
}
|
|
21272
21281
|
},
|
|
21273
21282
|
"&.Mui-focused": {
|
|
21274
|
-
backgroundColor:
|
|
21283
|
+
backgroundColor: palette2.grey[200]
|
|
21275
21284
|
},
|
|
21276
21285
|
"&:hover:not(.Mui-disabled)": {
|
|
21277
|
-
borderColor:
|
|
21286
|
+
borderColor: palette2.grey[800]
|
|
21278
21287
|
}
|
|
21279
21288
|
}));
|
|
21280
|
-
var ChevronIcon = ({ disabled = false }) =>
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
+
var ChevronIcon = ({ disabled = false }) => {
|
|
21290
|
+
const { palette: palette2 } = useCustomTheme();
|
|
21291
|
+
return /* @__PURE__ */ jsx115(
|
|
21292
|
+
Icon_default,
|
|
21293
|
+
{
|
|
21294
|
+
id: "chevron-down",
|
|
21295
|
+
size: "M",
|
|
21296
|
+
sx: {
|
|
21297
|
+
marginLeft: "-24px !important",
|
|
21298
|
+
transform: "translateX(-8px) !important",
|
|
21299
|
+
color: disabled ? `${palette2.grey[400]} !important` : palette2.grey[800]
|
|
21300
|
+
}
|
|
21289
21301
|
}
|
|
21290
|
-
|
|
21291
|
-
|
|
21302
|
+
);
|
|
21303
|
+
};
|
|
21292
21304
|
var SelectOption = ({
|
|
21293
21305
|
value,
|
|
21294
21306
|
id,
|
|
@@ -21352,6 +21364,7 @@ var Select = function Select2({
|
|
|
21352
21364
|
onOpen,
|
|
21353
21365
|
...rest
|
|
21354
21366
|
}, ref) {
|
|
21367
|
+
const { palette: palette2 } = useCustomTheme();
|
|
21355
21368
|
const [_isOpen, setOpen] = React60.useState(false);
|
|
21356
21369
|
const isOpen = open ?? _isOpen;
|
|
21357
21370
|
const currentValue = React60.useMemo(
|
|
@@ -21404,7 +21417,7 @@ var Select = function Select2({
|
|
|
21404
21417
|
...style3
|
|
21405
21418
|
},
|
|
21406
21419
|
baseSx: {
|
|
21407
|
-
backgroundColor: isSelected ? menuColors?.selectedColor ??
|
|
21420
|
+
backgroundColor: isSelected ? menuColors?.selectedColor ?? palette2.primary[50] : "transparent",
|
|
21408
21421
|
color: menuColors?.color
|
|
21409
21422
|
},
|
|
21410
21423
|
...rest2
|
|
@@ -21436,10 +21449,10 @@ var Select = function Select2({
|
|
|
21436
21449
|
},
|
|
21437
21450
|
...isOpen && {
|
|
21438
21451
|
...variant !== "transparent" && {
|
|
21439
|
-
borderColor:
|
|
21452
|
+
borderColor: palette2.primary.main
|
|
21440
21453
|
},
|
|
21441
21454
|
"& .MuiSvgIcon-root": {
|
|
21442
|
-
color:
|
|
21455
|
+
color: palette2.primary.main,
|
|
21443
21456
|
transform: "rotate(180deg) translateX(8px)"
|
|
21444
21457
|
}
|
|
21445
21458
|
},
|
|
@@ -21465,7 +21478,7 @@ var Select = function Select2({
|
|
|
21465
21478
|
return renderValue(value2, options);
|
|
21466
21479
|
}
|
|
21467
21480
|
if (!value2) {
|
|
21468
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21481
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21469
21482
|
}
|
|
21470
21483
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
21471
21484
|
},
|
|
@@ -21537,10 +21550,10 @@ var Select = function Select2({
|
|
|
21537
21550
|
},
|
|
21538
21551
|
...isOpen && {
|
|
21539
21552
|
...variant !== "transparent" && {
|
|
21540
|
-
borderColor:
|
|
21553
|
+
borderColor: palette2.primary.main
|
|
21541
21554
|
},
|
|
21542
21555
|
"& .MuiSvgIcon-root": {
|
|
21543
|
-
color:
|
|
21556
|
+
color: palette2.primary.main,
|
|
21544
21557
|
transform: "rotate(180deg) translateX(8px)"
|
|
21545
21558
|
}
|
|
21546
21559
|
},
|
|
@@ -21571,7 +21584,7 @@ var Select = function Select2({
|
|
|
21571
21584
|
}
|
|
21572
21585
|
if (Array.isArray(value2)) {
|
|
21573
21586
|
if (value2.length === 0) {
|
|
21574
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21587
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21575
21588
|
} else {
|
|
21576
21589
|
return value2.map((v) => {
|
|
21577
21590
|
const option = options.find((o) => o.value === v);
|
|
@@ -21580,7 +21593,7 @@ var Select = function Select2({
|
|
|
21580
21593
|
}
|
|
21581
21594
|
} else {
|
|
21582
21595
|
if (!value2) {
|
|
21583
|
-
return /* @__PURE__ */ jsx115("span", { style: { color:
|
|
21596
|
+
return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
|
|
21584
21597
|
}
|
|
21585
21598
|
return options.find((o) => o.value === value2)?.label ?? value2;
|
|
21586
21599
|
}
|
|
@@ -21618,7 +21631,7 @@ var Select = function Select2({
|
|
|
21618
21631
|
id: optionValue,
|
|
21619
21632
|
colors: !menuColors?.selectedColor ? {
|
|
21620
21633
|
...menuColors ?? {},
|
|
21621
|
-
selectedColor:
|
|
21634
|
+
selectedColor: palette2.primary[50]
|
|
21622
21635
|
} : menuColors,
|
|
21623
21636
|
selected: Array.isArray(currentValue) ? currentValue.some((v) => v === optionValue) : currentValue === optionValue,
|
|
21624
21637
|
slotProps: { optionText: { sx: sx2 } },
|
|
@@ -23321,6 +23334,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23321
23334
|
onOpenPopover,
|
|
23322
23335
|
onRemoveValue
|
|
23323
23336
|
}) {
|
|
23337
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23324
23338
|
const stackRef = React69.useRef(null);
|
|
23325
23339
|
return /* @__PURE__ */ jsxs60(
|
|
23326
23340
|
Stack_default,
|
|
@@ -23347,7 +23361,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23347
23361
|
sx: {
|
|
23348
23362
|
padding: 0,
|
|
23349
23363
|
...(disabled || !canAddValues) && {
|
|
23350
|
-
color: `${
|
|
23364
|
+
color: `${palette2.grey[500]} !important`,
|
|
23351
23365
|
opacity: "1 !important",
|
|
23352
23366
|
flex: "0 0 auto"
|
|
23353
23367
|
}
|
|
@@ -23362,7 +23376,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23362
23376
|
TextEllipsis_default,
|
|
23363
23377
|
{
|
|
23364
23378
|
typographyVariant: "body2",
|
|
23365
|
-
color:
|
|
23379
|
+
color: palette2.grey[900],
|
|
23366
23380
|
text: renderLabel(
|
|
23367
23381
|
value
|
|
23368
23382
|
)
|
|
@@ -23423,6 +23437,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23423
23437
|
onPressEnter,
|
|
23424
23438
|
onRemoveValue
|
|
23425
23439
|
}) {
|
|
23440
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23426
23441
|
const { t } = useTranslation();
|
|
23427
23442
|
const [isHover, setIsHover] = React70.useState(false);
|
|
23428
23443
|
const dirty = !!inputValue || Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value;
|
|
@@ -23442,7 +23457,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23442
23457
|
padding: 0
|
|
23443
23458
|
},
|
|
23444
23459
|
...disabled && {
|
|
23445
|
-
background:
|
|
23460
|
+
background: palette2.grey[50]
|
|
23446
23461
|
},
|
|
23447
23462
|
gap: 0,
|
|
23448
23463
|
"& > div:first-of-type": {
|
|
@@ -23455,13 +23470,13 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23455
23470
|
flex: "1 1 auto",
|
|
23456
23471
|
minWidth: showClearButton ? `${INPUT_MIN_WIDTH}px` : `${INPUT_MIN_WIDTH + CLEAR_BUTTON_WIDTH}px`,
|
|
23457
23472
|
...disabled && {
|
|
23458
|
-
color:
|
|
23473
|
+
color: palette2.grey[500]
|
|
23459
23474
|
},
|
|
23460
23475
|
...disabled && value && {
|
|
23461
23476
|
display: "none"
|
|
23462
23477
|
},
|
|
23463
23478
|
"&::placeholder": {
|
|
23464
|
-
color:
|
|
23479
|
+
color: palette2.grey[500]
|
|
23465
23480
|
}
|
|
23466
23481
|
},
|
|
23467
23482
|
maxLength: maxValueLength,
|
|
@@ -23570,7 +23585,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23570
23585
|
padding: 0,
|
|
23571
23586
|
marginLeft: 0,
|
|
23572
23587
|
...!canAddValues && {
|
|
23573
|
-
color: `${
|
|
23588
|
+
color: `${palette2.grey[500]} !important`,
|
|
23574
23589
|
opacity: "1 !important"
|
|
23575
23590
|
}
|
|
23576
23591
|
},
|
|
@@ -23640,6 +23655,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23640
23655
|
onAddSelectedValue,
|
|
23641
23656
|
onClickAwayPopover
|
|
23642
23657
|
}) {
|
|
23658
|
+
const { palette: palette2 } = useCustomTheme();
|
|
23643
23659
|
const { t } = useTranslation();
|
|
23644
23660
|
const listRef = React71.useRef(null);
|
|
23645
23661
|
const getText = (option) => {
|
|
@@ -23663,7 +23679,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23663
23679
|
tabIndex: -1,
|
|
23664
23680
|
role: "option",
|
|
23665
23681
|
baseSx: {
|
|
23666
|
-
color:
|
|
23682
|
+
color: palette2.grey[900]
|
|
23667
23683
|
},
|
|
23668
23684
|
sx: {
|
|
23669
23685
|
...style3,
|
|
@@ -23672,7 +23688,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
23672
23688
|
content: '""',
|
|
23673
23689
|
position: "absolute",
|
|
23674
23690
|
inset: 0,
|
|
23675
|
-
border: `1px solid ${
|
|
23691
|
+
border: `1px solid ${palette2.common.black}`,
|
|
23676
23692
|
borderRadius: "8px",
|
|
23677
23693
|
pointerEvents: "none"
|
|
23678
23694
|
}
|
|
@@ -24898,6 +24914,7 @@ var NumberField = React77.forwardRef(function NumberField2({
|
|
|
24898
24914
|
endAdornment,
|
|
24899
24915
|
...rest
|
|
24900
24916
|
}, ref) {
|
|
24917
|
+
const { palette: palette2 } = useCustomTheme();
|
|
24901
24918
|
const inputRef = React77.useRef(null);
|
|
24902
24919
|
const numberToString = React77.useCallback(
|
|
24903
24920
|
(value2) => typeof value2 === "number" && !isNaN(value2) ? fractionDigits !== 0 ? value2.toFixed(fractionDigits) : value2.toString() : "",
|
|
@@ -25022,7 +25039,7 @@ var NumberField = React77.forwardRef(function NumberField2({
|
|
|
25022
25039
|
{
|
|
25023
25040
|
justifyContent: "center",
|
|
25024
25041
|
alignItems: "center",
|
|
25025
|
-
borderLeft: `1px solid ${
|
|
25042
|
+
borderLeft: `1px solid ${palette2.grey[200]}`,
|
|
25026
25043
|
sx: {
|
|
25027
25044
|
"& > span": {
|
|
25028
25045
|
display: "flex"
|