@connectif/ui-components 5.4.0 → 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
- }) => /* @__PURE__ */ jsxs2(
8132
- Stack_default,
8133
- {
8134
- direction: "row",
8135
- spacing: 2,
8136
- className: "Cn-BaseListItem",
8137
- sx: {
8138
- justifyContent: "space-between",
8139
- padding: "0 12px",
8140
- height: "44px",
8141
- alignItems: "center",
8142
- width: "100%",
8143
- boxSizing: "border-box",
8144
- backgroundColor: selected ? primary50 : white,
8145
- color: color2 === "primary" ? primaryMain : grey800,
8146
- ...variant === "circular" && {
8147
- borderRadius: "22px",
8148
- border: `1px solid ${grey200}`,
8149
- overflow: "hidden"
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
- ...baseSx
8152
- },
8153
- children: [
8154
- startIconId ? /* @__PURE__ */ jsx7(
8155
- Icon_default,
8156
- {
8157
- id: startIconId,
8158
- sx: {
8159
- color: "inherit",
8160
- margin: "4px"
8161
- // to make the icon be 32x32
8162
- },
8163
- size: "M"
8164
- }
8165
- ) : startAdornment,
8166
- /* @__PURE__ */ jsx7(
8167
- Stack_default,
8168
- {
8169
- sx: {
8170
- flexGrow: 1,
8171
- width: "100%",
8172
- overflow: "auto"
8173
- },
8174
- children: children ? children : /* @__PURE__ */ jsxs2(Fragment2, { children: [
8175
- /* @__PURE__ */ jsx7(
8176
- ListItemText_default,
8177
- {
8178
- text,
8179
- typographyVariant,
8180
- tooltipClass,
8181
- slotProps,
8182
- ...dataTestId && {
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
- subText && /* @__PURE__ */ jsx7(
8188
- ListItemText_default,
8189
- {
8190
- text: subText,
8191
- typographyVariant: "caption",
8192
- tooltipClass,
8193
- slotProps,
8194
- color: grey500
8195
- }
8196
- )
8197
- ] })
8198
- }
8199
- ),
8200
- endIconId ? /* @__PURE__ */ jsx7(
8201
- Icon_default,
8202
- {
8203
- id: endIconId,
8204
- sx: {
8205
- color: "inherit",
8206
- margin: "4px"
8207
- // to make the icon be 32x32
8208
- },
8209
- size: "M"
8210
- }
8211
- ) : endAdornment
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: grey50
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 ? grey500 : grey300 : null;
9365
- const color2 = avatarLetters ? "white" : grey500;
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 ? Colors_exports.primaryMain : Colors_exports.grey200}`,
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: Colors_exports.primary100 }
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: { color: grey500, transform: "translateX(8px)" }
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 ${grey200}`
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 ${grey200}`
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 = primaryMain,
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 ${grey200}` : "none",
19100
+ border: variant === "default" ? `1px solid ${palette2.grey[200]}` : "none",
19088
19101
  borderRadius: variant === "default" ? "4px" : 0,
19089
- color: isFocused ? activeColor : grey400,
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: activeColor,
19095
- color: activeColor
19107
+ borderColor: effectiveActiveColor,
19108
+ color: effectiveActiveColor
19096
19109
  },
19097
19110
  ...isError && {
19098
- borderColor: errorMain,
19099
- color: errorMain
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(activeColor, 0.6)
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: grey800,
19113
- color: grey800
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 severityColors = {
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: severityColors[severity]
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: severityColors[severity],
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 severityColors2 = {
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: severityColors2[severity]
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 ? grey600 : grey800,
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: grey600
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) => props.theme.unstable_sx(getCommonInputStyles(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) => props.theme.unstable_sx({
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 = primaryMain,
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: { backgroundColor: readOnly ? grey50 : "transparent", ...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: activeColor }
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 ${grey200}` : null
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: activeColor }
19563
+ ...!isError && isFocused && { color: effectiveActiveColor }
19555
19564
  },
19556
19565
  children: helperText
19557
19566
  }
@@ -19563,17 +19572,23 @@ var TextField_default = TextField;
19563
19572
  // src/components/input/DebouncedTextField.tsx
19564
19573
  import { jsx as jsx102 } from "react/jsx-runtime";
19565
19574
  var DebouncedTextField = React53.forwardRef(function DebouncedTextField2({ value, onChange, debounce = 100, ...rest }, ref) {
19566
- const [text, setText] = useState17(value);
19575
+ const [text, setText] = useState17(value ?? "");
19576
+ const expectedChangeRef = React53.useRef(void 0);
19567
19577
  const onChangeDebounced = useDebouncedCallback(
19568
19578
  (e) => {
19569
19579
  if (onChange) {
19570
19580
  onChange(e);
19581
+ expectedChangeRef.current = e.target.value;
19571
19582
  }
19572
19583
  },
19573
19584
  debounce
19574
19585
  );
19575
19586
  useEffect12(() => {
19576
- setText(value);
19587
+ if (expectedChangeRef.current === value) {
19588
+ expectedChangeRef.current = void 0;
19589
+ } else {
19590
+ setText(value ?? "");
19591
+ }
19577
19592
  }, [value]);
19578
19593
  return /* @__PURE__ */ jsx102(
19579
19594
  TextField_default,
@@ -21234,24 +21249,26 @@ import * as React60 from "react";
21234
21249
  import { styled as styled7 } from "@mui/material/styles";
21235
21250
  import MuiSelect from "@mui/material/Select";
21236
21251
  import InputBase from "@mui/material/InputBase";
21237
- import { FixedSizeList as FixedSizeList2 } from "react-window";
21252
+ import {
21253
+ FixedSizeList as FixedSizeList2
21254
+ } from "react-window";
21238
21255
  import AutoSizer4 from "react-virtualized-auto-sizer";
21239
21256
  import { jsx as jsx115 } from "react/jsx-runtime";
21240
21257
  var BootstrapInput = styled7(InputBase, {
21241
21258
  shouldForwardProp: (prop) => prop !== "notched"
21242
- })(() => ({
21259
+ })(({ theme: { palette: palette2 } }) => ({
21243
21260
  boxShadow: shadows[0],
21244
21261
  borderRadius: "16px",
21245
21262
  borderWidth: "1px",
21246
21263
  borderStyle: "solid",
21247
- borderColor: grey200,
21264
+ borderColor: palette2.grey[200],
21248
21265
  backgroundColor: "white",
21249
21266
  cursor: "default",
21250
21267
  maxWidth: "100%",
21251
21268
  "& .MuiInputBase-input.MuiSelect-select": {
21252
21269
  ...variants["button-medium"],
21253
21270
  padding: "0 36px 0 12px !important",
21254
- color: grey800,
21271
+ color: palette2.grey[800],
21255
21272
  boxSizing: "border-box",
21256
21273
  height: "26px",
21257
21274
  // 26px height + 1px * 2 from borders => 28px height
@@ -21263,24 +21280,27 @@ var BootstrapInput = styled7(InputBase, {
21263
21280
  }
21264
21281
  },
21265
21282
  "&.Mui-focused": {
21266
- backgroundColor: grey200
21283
+ backgroundColor: palette2.grey[200]
21267
21284
  },
21268
21285
  "&:hover:not(.Mui-disabled)": {
21269
- borderColor: grey800
21286
+ borderColor: palette2.grey[800]
21270
21287
  }
21271
21288
  }));
21272
- var ChevronIcon = ({ disabled = false }) => /* @__PURE__ */ jsx115(
21273
- Icon_default,
21274
- {
21275
- id: "chevron-down",
21276
- size: "M",
21277
- sx: {
21278
- marginLeft: "-24px !important",
21279
- transform: "translateX(-8px) !important",
21280
- color: disabled ? `${grey400} !important` : grey800
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
+ }
21281
21301
  }
21282
- }
21283
- );
21302
+ );
21303
+ };
21284
21304
  var SelectOption = ({
21285
21305
  value,
21286
21306
  id,
@@ -21344,6 +21364,7 @@ var Select = function Select2({
21344
21364
  onOpen,
21345
21365
  ...rest
21346
21366
  }, ref) {
21367
+ const { palette: palette2 } = useCustomTheme();
21347
21368
  const [_isOpen, setOpen] = React60.useState(false);
21348
21369
  const isOpen = open ?? _isOpen;
21349
21370
  const currentValue = React60.useMemo(
@@ -21353,6 +21374,14 @@ var Select = function Select2({
21353
21374
  const valueIndex = options.findIndex(
21354
21375
  (op) => op.value === currentValue
21355
21376
  );
21377
+ const listCallbackRef = React60.useCallback(
21378
+ (list) => {
21379
+ if (list && valueIndex >= 0) {
21380
+ list.scrollToItem(valueIndex, "auto");
21381
+ }
21382
+ },
21383
+ [valueIndex]
21384
+ );
21356
21385
  const defaultVirtualizedProps = {
21357
21386
  width: 250,
21358
21387
  overscanCount: 3,
@@ -21388,7 +21417,7 @@ var Select = function Select2({
21388
21417
  ...style3
21389
21418
  },
21390
21419
  baseSx: {
21391
- backgroundColor: isSelected ? menuColors?.selectedColor : "transparent",
21420
+ backgroundColor: isSelected ? menuColors?.selectedColor ?? palette2.primary[50] : "transparent",
21392
21421
  color: menuColors?.color
21393
21422
  },
21394
21423
  ...rest2
@@ -21420,10 +21449,10 @@ var Select = function Select2({
21420
21449
  },
21421
21450
  ...isOpen && {
21422
21451
  ...variant !== "transparent" && {
21423
- borderColor: primaryMain
21452
+ borderColor: palette2.primary.main
21424
21453
  },
21425
21454
  "& .MuiSvgIcon-root": {
21426
- color: primaryMain,
21455
+ color: palette2.primary.main,
21427
21456
  transform: "rotate(180deg) translateX(8px)"
21428
21457
  }
21429
21458
  },
@@ -21449,7 +21478,7 @@ var Select = function Select2({
21449
21478
  return renderValue(value2, options);
21450
21479
  }
21451
21480
  if (!value2) {
21452
- return /* @__PURE__ */ jsx115("span", { style: { color: grey900 }, children: placeholder });
21481
+ return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
21453
21482
  }
21454
21483
  return options.find((o) => o.value === value2)?.label ?? value2;
21455
21484
  },
@@ -21486,10 +21515,10 @@ var Select = function Select2({
21486
21515
  children: /* @__PURE__ */ jsx115(AutoSizer4, { disableWidth: true, children: ({ height: height2 }) => /* @__PURE__ */ jsx115(
21487
21516
  FixedSizeList2,
21488
21517
  {
21518
+ ref: listCallbackRef,
21489
21519
  height: height2,
21490
21520
  itemCount: options.length,
21491
21521
  className: "Slim-Vertical-Scroll",
21492
- initialScrollOffset: valueIndex * itemSize,
21493
21522
  ...defaultVirtualizedProps,
21494
21523
  ...virtualizedProps,
21495
21524
  children: ListItemButtonWrapper
@@ -21521,10 +21550,10 @@ var Select = function Select2({
21521
21550
  },
21522
21551
  ...isOpen && {
21523
21552
  ...variant !== "transparent" && {
21524
- borderColor: primaryMain
21553
+ borderColor: palette2.primary.main
21525
21554
  },
21526
21555
  "& .MuiSvgIcon-root": {
21527
- color: primaryMain,
21556
+ color: palette2.primary.main,
21528
21557
  transform: "rotate(180deg) translateX(8px)"
21529
21558
  }
21530
21559
  },
@@ -21555,7 +21584,7 @@ var Select = function Select2({
21555
21584
  }
21556
21585
  if (Array.isArray(value2)) {
21557
21586
  if (value2.length === 0) {
21558
- return /* @__PURE__ */ jsx115("span", { style: { color: grey900 }, children: placeholder });
21587
+ return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
21559
21588
  } else {
21560
21589
  return value2.map((v) => {
21561
21590
  const option = options.find((o) => o.value === v);
@@ -21564,7 +21593,7 @@ var Select = function Select2({
21564
21593
  }
21565
21594
  } else {
21566
21595
  if (!value2) {
21567
- return /* @__PURE__ */ jsx115("span", { style: { color: grey900 }, children: placeholder });
21596
+ return /* @__PURE__ */ jsx115("span", { style: { color: palette2.grey[900] }, children: placeholder });
21568
21597
  }
21569
21598
  return options.find((o) => o.value === value2)?.label ?? value2;
21570
21599
  }
@@ -21602,7 +21631,7 @@ var Select = function Select2({
21602
21631
  id: optionValue,
21603
21632
  colors: !menuColors?.selectedColor ? {
21604
21633
  ...menuColors ?? {},
21605
- selectedColor: primary50
21634
+ selectedColor: palette2.primary[50]
21606
21635
  } : menuColors,
21607
21636
  selected: Array.isArray(currentValue) ? currentValue.some((v) => v === optionValue) : currentValue === optionValue,
21608
21637
  slotProps: { optionText: { sx: sx2 } },
@@ -22556,7 +22585,6 @@ var CategorizedPicker = function CategorizedPicker2({
22556
22585
  placeholder: t(
22557
22586
  "CATEGORIZED_PICKER.SEARCH_PLACEHOLDER"
22558
22587
  ),
22559
- value: "",
22560
22588
  onChange: onTypeSearch,
22561
22589
  startAdornment: /* @__PURE__ */ jsx126(Icon_default, { id: "magnify" }),
22562
22590
  "data-testid": dataTestId ? dataTestId + "-search-input" : void 0
@@ -23306,6 +23334,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
23306
23334
  onOpenPopover,
23307
23335
  onRemoveValue
23308
23336
  }) {
23337
+ const { palette: palette2 } = useCustomTheme();
23309
23338
  const stackRef = React69.useRef(null);
23310
23339
  return /* @__PURE__ */ jsxs60(
23311
23340
  Stack_default,
@@ -23332,7 +23361,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
23332
23361
  sx: {
23333
23362
  padding: 0,
23334
23363
  ...(disabled || !canAddValues) && {
23335
- color: `${Colors_exports.grey500} !important`,
23364
+ color: `${palette2.grey[500]} !important`,
23336
23365
  opacity: "1 !important",
23337
23366
  flex: "0 0 auto"
23338
23367
  }
@@ -23347,7 +23376,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
23347
23376
  TextEllipsis_default,
23348
23377
  {
23349
23378
  typographyVariant: "body2",
23350
- color: grey900,
23379
+ color: palette2.grey[900],
23351
23380
  text: renderLabel(
23352
23381
  value
23353
23382
  )
@@ -23408,6 +23437,7 @@ var AutocompleteInput = function AutocompleteInput2({
23408
23437
  onPressEnter,
23409
23438
  onRemoveValue
23410
23439
  }) {
23440
+ const { palette: palette2 } = useCustomTheme();
23411
23441
  const { t } = useTranslation();
23412
23442
  const [isHover, setIsHover] = React70.useState(false);
23413
23443
  const dirty = !!inputValue || Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value;
@@ -23427,7 +23457,7 @@ var AutocompleteInput = function AutocompleteInput2({
23427
23457
  padding: 0
23428
23458
  },
23429
23459
  ...disabled && {
23430
- background: Colors_exports.grey50
23460
+ background: palette2.grey[50]
23431
23461
  },
23432
23462
  gap: 0,
23433
23463
  "& > div:first-of-type": {
@@ -23440,13 +23470,13 @@ var AutocompleteInput = function AutocompleteInput2({
23440
23470
  flex: "1 1 auto",
23441
23471
  minWidth: showClearButton ? `${INPUT_MIN_WIDTH}px` : `${INPUT_MIN_WIDTH + CLEAR_BUTTON_WIDTH}px`,
23442
23472
  ...disabled && {
23443
- color: Colors_exports.grey500
23473
+ color: palette2.grey[500]
23444
23474
  },
23445
23475
  ...disabled && value && {
23446
23476
  display: "none"
23447
23477
  },
23448
23478
  "&::placeholder": {
23449
- color: Colors_exports.grey500
23479
+ color: palette2.grey[500]
23450
23480
  }
23451
23481
  },
23452
23482
  maxLength: maxValueLength,
@@ -23555,7 +23585,7 @@ var AutocompleteInput = function AutocompleteInput2({
23555
23585
  padding: 0,
23556
23586
  marginLeft: 0,
23557
23587
  ...!canAddValues && {
23558
- color: `${Colors_exports.grey500} !important`,
23588
+ color: `${palette2.grey[500]} !important`,
23559
23589
  opacity: "1 !important"
23560
23590
  }
23561
23591
  },
@@ -23625,6 +23655,7 @@ var AutocompleteList = function AutocompleteList2({
23625
23655
  onAddSelectedValue,
23626
23656
  onClickAwayPopover
23627
23657
  }) {
23658
+ const { palette: palette2 } = useCustomTheme();
23628
23659
  const { t } = useTranslation();
23629
23660
  const listRef = React71.useRef(null);
23630
23661
  const getText = (option) => {
@@ -23648,7 +23679,7 @@ var AutocompleteList = function AutocompleteList2({
23648
23679
  tabIndex: -1,
23649
23680
  role: "option",
23650
23681
  baseSx: {
23651
- color: Colors_exports.grey900
23682
+ color: palette2.grey[900]
23652
23683
  },
23653
23684
  sx: {
23654
23685
  ...style3,
@@ -23657,7 +23688,7 @@ var AutocompleteList = function AutocompleteList2({
23657
23688
  content: '""',
23658
23689
  position: "absolute",
23659
23690
  inset: 0,
23660
- border: `1px solid ${Colors_exports.black}`,
23691
+ border: `1px solid ${palette2.common.black}`,
23661
23692
  borderRadius: "8px",
23662
23693
  pointerEvents: "none"
23663
23694
  }
@@ -24883,6 +24914,7 @@ var NumberField = React77.forwardRef(function NumberField2({
24883
24914
  endAdornment,
24884
24915
  ...rest
24885
24916
  }, ref) {
24917
+ const { palette: palette2 } = useCustomTheme();
24886
24918
  const inputRef = React77.useRef(null);
24887
24919
  const numberToString = React77.useCallback(
24888
24920
  (value2) => typeof value2 === "number" && !isNaN(value2) ? fractionDigits !== 0 ? value2.toFixed(fractionDigits) : value2.toString() : "",
@@ -25007,7 +25039,7 @@ var NumberField = React77.forwardRef(function NumberField2({
25007
25039
  {
25008
25040
  justifyContent: "center",
25009
25041
  alignItems: "center",
25010
- borderLeft: `1px solid ${grey200}`,
25042
+ borderLeft: `1px solid ${palette2.grey[200]}`,
25011
25043
  sx: {
25012
25044
  "& > span": {
25013
25045
  display: "flex"
@@ -27225,7 +27257,7 @@ import MuiTabs from "@mui/material/Tabs";
27225
27257
 
27226
27258
  // src/components/layout/SwipeableViews.tsx
27227
27259
  import * as React90 from "react";
27228
- import { useEffect as useEffect25, useRef as useRef29, useState as useState36 } from "react";
27260
+ import { useEffect as useEffect25, useRef as useRef30, useState as useState36 } from "react";
27229
27261
  import { jsx as jsx162 } from "react/jsx-runtime";
27230
27262
  var styles = {
27231
27263
  container: {
@@ -27259,11 +27291,11 @@ function SwipeableViews({
27259
27291
  disableScroll = false,
27260
27292
  ...rootProps
27261
27293
  }) {
27262
- const containerRef = useRef29(null);
27263
- const scrollTimeout = useRef29(null);
27264
- const scrollingMethod = useRef29("none");
27294
+ const containerRef = useRef30(null);
27295
+ const scrollTimeout = useRef30(null);
27296
+ const scrollingMethod = useRef30("none");
27265
27297
  const [previousIndex, setPreviousIndex] = useState36(index);
27266
- const hideScrollAnimation = useRef29(true);
27298
+ const hideScrollAnimation = useRef30(true);
27267
27299
  useEffect25(() => {
27268
27300
  if (containerRef.current) {
27269
27301
  if (scrollingMethod.current === "manual") {
@@ -28426,31 +28458,31 @@ var MinimizableWindow = React95.forwardRef(function MinimizableWindow2({
28426
28458
  var MinimizableWindow_default = MinimizableWindow;
28427
28459
 
28428
28460
  // src/hooks/useFormatters.ts
28429
- import { useCallback as useCallback22, useContext as useContext16 } from "react";
28461
+ import { useCallback as useCallback23, useContext as useContext16 } from "react";
28430
28462
  var useFormatters = () => {
28431
28463
  const { locale, currency, timezone } = useContext16(IntlContext);
28432
28464
  return {
28433
- formatCompactNumber: useCallback22(
28465
+ formatCompactNumber: useCallback23(
28434
28466
  (value) => formatCompactNumber(value, locale),
28435
28467
  [locale]
28436
28468
  ),
28437
- formatNumber: useCallback22(
28469
+ formatNumber: useCallback23(
28438
28470
  (value, fractionSize) => formatNumber(value, locale, fractionSize),
28439
28471
  [locale]
28440
28472
  ),
28441
- formatPercentage: useCallback22(
28473
+ formatPercentage: useCallback23(
28442
28474
  (value, fractionSize) => formatPercentage(value, locale, fractionSize),
28443
28475
  [locale]
28444
28476
  ),
28445
- formatCurrency: useCallback22(
28477
+ formatCurrency: useCallback23(
28446
28478
  (value, notation) => formatCurrency(value, locale, currency, notation),
28447
28479
  [currency, locale]
28448
28480
  ),
28449
- formatDate: useCallback22(
28481
+ formatDate: useCallback23(
28450
28482
  (date, format2) => formatDate(date, locale, timezone, format2),
28451
28483
  [locale, timezone]
28452
28484
  ),
28453
- formatPhone: useCallback22(
28485
+ formatPhone: useCallback23(
28454
28486
  (phone, format2) => formatPhone(phone, format2),
28455
28487
  []
28456
28488
  )