@connectif/ui-components 7.0.1 → 8.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [8.0.0] - 2026-04-29
4
+
5
+ ### Added
6
+
7
+ - Added a picker to select the base or custom theme in Storybook.
8
+ - Added an optional `slotProps` prop to the `ChipViewer` component to configure chip styles and typography.
9
+
10
+ ### Changed
11
+
12
+ - Renamed the `chips` prop to `chipLabels` in the `CardChips` component.
13
+
14
+ ### Deprecated
15
+
16
+ - Deprecated the `ChipList` component.
17
+
18
+ ### Fixed
19
+
20
+ - Fixed the incorrect background color in the active + hover state when using the custom theme.
21
+
22
+ ### Removed
23
+
24
+ - Removed the `typographyVariant`, `chipSx`, `chipSize`, and `chipVariant` props from the `ChipViewer` component.
25
+
3
26
  ## [7.0.1] - 2026-04-24
4
27
 
5
28
  ### Added
@@ -2,15 +2,12 @@ export type CardChipsProps = {
2
2
  /**
3
3
  * The list of chip labels to display.
4
4
  */
5
- chips: {
6
- label: string;
7
- tooltip?: string;
8
- }[];
5
+ chipLabels: string[];
9
6
  };
10
7
  /**
11
8
  * A component that displays a list of chips within a Card.
12
9
  * The chips are displayed as a list with a margin between each chip.
13
10
  * It should be placed after the CardTitle and before the CardDescription.
14
11
  */
15
- declare const CardChips: ({ chips }: CardChipsProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const CardChips: ({ chipLabels }: CardChipsProps) => import("react/jsx-runtime").JSX.Element;
16
13
  export default CardChips;
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { ChipProps } from './Chip';
3
+ /**
4
+ * @deprecated Use `ChipViewer` instead.
5
+ */
3
6
  export type ChipListProps = React.PropsWithChildren<{
4
7
  /**
5
8
  * The chips to display.
@@ -7,6 +10,8 @@ export type ChipListProps = React.PropsWithChildren<{
7
10
  chips: ChipProps[];
8
11
  }>;
9
12
  /**
13
+ * @deprecated Use `ChipViewer` instead.
14
+ *
10
15
  * Shows a list of chips, in a horizontal layout.
11
16
  * If chips doesn't fit in the available space, they will be overflow to multiline.
12
17
  */
@@ -1,33 +1,30 @@
1
1
  import * as React from 'react';
2
- import { ThemeTypography } from '../../theme';
3
2
  import { ChipProps } from './Chip';
4
- import { SxProps } from '@mui/material';
3
+ import { TypographyProps } from '../typography';
5
4
  export declare const CHIP_DATA_TEST_ID = "chip-viewer-chip";
6
5
  export declare const CHIP_VIEWER_ROOT_ID = "chip-viewer-root";
7
6
  declare const chipViewerStyle: {
8
7
  circle: {
9
8
  borderRadius: string;
10
- backgroundColor: string;
11
- color: string;
9
+ chipVariant: string;
12
10
  };
13
11
  square: {
14
12
  borderRadius: string;
15
- backgroundColor: string;
16
- color: string;
13
+ chipVariant: string;
17
14
  };
18
15
  };
19
16
  export type ChipViewerProps = {
20
17
  values: string[];
21
- chipSx?: SxProps;
22
- chipSize?: ChipProps['size'];
23
- chipVariant?: ChipProps['variant'];
24
18
  placeholder?: string;
25
19
  numberLines?: number;
26
20
  reserveHeight?: true;
27
21
  variant?: keyof typeof chipViewerStyle;
28
- typographyVariant?: ThemeTypography.TypographyVariant;
29
- preventHiddenChipsTooltip?: true;
22
+ preventHiddenChipsTooltip?: boolean;
30
23
  forceRecalculate?: boolean;
24
+ slotProps?: {
25
+ chip?: Partial<Pick<ChipProps, 'variant' | 'size' | 'sx'>>;
26
+ typography?: Partial<Pick<TypographyProps, 'variant'>>;
27
+ };
31
28
  /**
32
29
  * Function to set custom chip name
33
30
  * @param id
@@ -42,5 +39,5 @@ export type ChipViewerProps = {
42
39
  onRemoveChip?: (event: React.SyntheticEvent, id: string) => void;
43
40
  onHasHiddenChipsChange?: (hasHiddenChips: boolean) => void;
44
41
  };
45
- declare const ChipViewer: ({ values, chipSx, chipSize, chipVariant, placeholder, numberLines, reserveHeight, variant, preventHiddenChipsTooltip, typographyVariant, forceRecalculate, renderChipLabel, onRemoveChip, onClickChip, onHasHiddenChipsChange, getWarningTooltip }: ChipViewerProps) => import("react/jsx-runtime").JSX.Element;
42
+ declare const ChipViewer: ({ values, placeholder, numberLines, reserveHeight, variant, preventHiddenChipsTooltip, forceRecalculate, slotProps, renderChipLabel, onRemoveChip, onClickChip, onHasHiddenChipsChange, getWarningTooltip }: ChipViewerProps) => import("react/jsx-runtime").JSX.Element;
46
43
  export default ChipViewer;
package/dist/index.js CHANGED
@@ -11254,133 +11254,10 @@ var ChipList = ({ chips }) => /* @__PURE__ */ jsx56(
11254
11254
  );
11255
11255
  var ChipList_default = ChipList;
11256
11256
 
11257
- // src/components/card/CardChips.tsx
11258
- import { jsx as jsx57 } from "react/jsx-runtime";
11259
- var CardChips = ({ chips }) => /* @__PURE__ */ jsx57(
11260
- MuiCardContent2,
11261
- {
11262
- sx: {
11263
- p: "0 16px",
11264
- margin: "16px 0"
11265
- },
11266
- children: /* @__PURE__ */ jsx57(ChipList_default, { chips })
11267
- }
11268
- );
11269
- var CardChips_default = CardChips;
11270
-
11271
- // src/components/card/CardImage.tsx
11272
- import MuiCardMedia from "@mui/material/CardMedia";
11273
- import { jsx as jsx58 } from "react/jsx-runtime";
11274
- var imageHeights = {
11275
- sm: "104px",
11276
- md: "130px"
11277
- };
11278
- var CardImage = ({ imageUrl, size = "md" }) => /* @__PURE__ */ jsx58(
11279
- MuiCardMedia,
11280
- {
11281
- component: "img",
11282
- image: imageUrl,
11283
- height: imageHeights[size]
11284
- }
11285
- );
11286
- var CardImage_default = CardImage;
11287
-
11288
- // src/theme/Animations.ts
11289
- var Animations_exports = {};
11290
- __export(Animations_exports, {
11291
- backgroundMovingBars: () => backgroundMovingBars,
11292
- littleBeating: () => littleBeating
11293
- });
11294
- var barSize = 20;
11295
- var barAlpha = 0.15;
11296
- var backgroundMovingBarsAnimation = keyframes`
11297
- from {
11298
- background-position: 0 0;
11299
- }
11300
- to {
11301
- background-position: -${barSize / Math.sqrt(2)}px -${barSize / Math.sqrt(2)}px;
11302
- `;
11303
- var backgroundMovingBars = {
11304
- 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)`,
11305
- animation: `${backgroundMovingBarsAnimation} 1s linear infinite`,
11306
- backgroundSize: "200% 200%"
11307
- };
11308
- var littleBeatingAnimation = keyframes`
11309
- 0% {
11310
- transform: scale(1);
11311
- }
11312
- 50%{
11313
- transform: scale(1.1);
11314
- }
11315
- 100% {
11316
- transform: scale(1);
11317
- }
11318
- `;
11319
- var littleBeating = {
11320
- animation: `${littleBeatingAnimation} 2s linear infinite`
11321
- };
11322
-
11323
- // src/components/card/CardStatus.tsx
11324
- import { jsx as jsx59 } from "react/jsx-runtime";
11325
- var CardStatus = ({
11326
- text,
11327
- animated = false,
11328
- backgroundColor: backgroundColor2 = "primary.main"
11329
- }) => /* @__PURE__ */ jsx59(
11330
- Box_default2,
11331
- {
11332
- sx: {
11333
- display: "flex",
11334
- justifyContent: "right",
11335
- p: "5px 16px",
11336
- backgroundColor: backgroundColor2,
11337
- ...animated && backgroundMovingBars
11338
- },
11339
- children: /* @__PURE__ */ jsx59(
11340
- Typography_default,
11341
- {
11342
- sx: { textTransform: "uppercase" },
11343
- component: "div",
11344
- color: "white",
11345
- noWrap: true,
11346
- children: text
11347
- }
11348
- )
11349
- }
11350
- );
11351
- var CardStatus_default = CardStatus;
11352
-
11353
- // src/components/card/CardTable.tsx
11354
- import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
11355
- var CardTable = ({ rows }) => /* @__PURE__ */ jsx60(Box_default2, { sx: { p: "0 16px" }, children: rows.map((row) => /* @__PURE__ */ jsxs22(
11356
- Box_default2,
11357
- {
11358
- sx: {
11359
- display: "flex",
11360
- justifyContent: "space-between",
11361
- overflow: "hidden",
11362
- p: "5px 0",
11363
- borderTopStyle: "solid",
11364
- borderTopWidth: "1px",
11365
- borderTopColor: "grey.300"
11366
- },
11367
- children: [
11368
- /* @__PURE__ */ jsx60(Typography_default, { children: row.label }),
11369
- /* @__PURE__ */ jsx60(Typography_default, { sx: { textAlign: "right", fontWeight: "bold" }, children: row.value })
11370
- ]
11371
- },
11372
- row.label
11373
- )) });
11374
- var CardTable_default = CardTable;
11375
-
11376
- // src/components/card/EnhancedCard.tsx
11377
- import { Stack as Stack5 } from "@mui/material";
11378
- import * as React32 from "react";
11379
-
11380
11257
  // src/components/chip/MenuChip.tsx
11381
11258
  import * as React29 from "react";
11382
11259
  import MuiMenu4 from "@mui/material/Menu";
11383
- import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
11260
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs22 } from "react/jsx-runtime";
11384
11261
  var MenuChip = React29.forwardRef(function MenuChip2({
11385
11262
  children,
11386
11263
  isOpen: managedIsOpen,
@@ -11422,8 +11299,8 @@ var MenuChip = React29.forwardRef(function MenuChip2({
11422
11299
  setAnchorEl(element);
11423
11300
  };
11424
11301
  const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
11425
- return /* @__PURE__ */ jsxs23(Fragment7, { children: [
11426
- /* @__PURE__ */ jsx61(
11302
+ return /* @__PURE__ */ jsxs22(Fragment7, { children: [
11303
+ /* @__PURE__ */ jsx57(
11427
11304
  Chip_default,
11428
11305
  {
11429
11306
  ...iconChipProps,
@@ -11437,7 +11314,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
11437
11314
  onClick: handleClick
11438
11315
  }
11439
11316
  ),
11440
- /* @__PURE__ */ jsx61(
11317
+ /* @__PURE__ */ jsx57(
11441
11318
  MuiMenu4,
11442
11319
  {
11443
11320
  id: menuId,
@@ -11470,6 +11347,41 @@ var MenuChip_default = MenuChip;
11470
11347
  // src/components/chip/ChipViewer.tsx
11471
11348
  import * as React31 from "react";
11472
11349
 
11350
+ // src/theme/Animations.ts
11351
+ var Animations_exports = {};
11352
+ __export(Animations_exports, {
11353
+ backgroundMovingBars: () => backgroundMovingBars,
11354
+ littleBeating: () => littleBeating
11355
+ });
11356
+ var barSize = 20;
11357
+ var barAlpha = 0.15;
11358
+ var backgroundMovingBarsAnimation = keyframes`
11359
+ from {
11360
+ background-position: 0 0;
11361
+ }
11362
+ to {
11363
+ background-position: -${barSize / Math.sqrt(2)}px -${barSize / Math.sqrt(2)}px;
11364
+ `;
11365
+ var backgroundMovingBars = {
11366
+ 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)`,
11367
+ animation: `${backgroundMovingBarsAnimation} 1s linear infinite`,
11368
+ backgroundSize: "200% 200%"
11369
+ };
11370
+ var littleBeatingAnimation = keyframes`
11371
+ 0% {
11372
+ transform: scale(1);
11373
+ }
11374
+ 50%{
11375
+ transform: scale(1.1);
11376
+ }
11377
+ 100% {
11378
+ transform: scale(1);
11379
+ }
11380
+ `;
11381
+ var littleBeating = {
11382
+ animation: `${littleBeatingAnimation} 2s linear infinite`
11383
+ };
11384
+
11473
11385
  // src/theme/GlobalStyles.ts
11474
11386
  var GlobalStyles_exports = {};
11475
11387
  __export(GlobalStyles_exports, {
@@ -11583,7 +11495,7 @@ var GlobalStyles_default = globalStyles;
11583
11495
  // src/components/chip/ChipHiddenCounter.tsx
11584
11496
  import * as React30 from "react";
11585
11497
  import { Popper } from "@mui/material";
11586
- import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs24 } from "react/jsx-runtime";
11498
+ import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
11587
11499
  var TOOLTIP_DATA_TEST_ID = "chip-container-tooltip";
11588
11500
  var COUNTER_LABEL_DATA_TEST_ID = "chip-counter-label";
11589
11501
  var MAX_TOOLTIP_WIDTH = 362;
@@ -11617,8 +11529,8 @@ var ChipHiddenCounter = ({
11617
11529
  const alertButtonWidth = !warningTooltip ? 0 : WIDTH_ALERT_BUTTON;
11618
11530
  return !isDeletable ? `${MAX_TOOLTIP_WIDTH - alertButtonWidth}px` : `${MAX_TOOLTIP_WIDTH - WIDTH_DELETABLE_BUTTON - alertButtonWidth}px`;
11619
11531
  };
11620
- return /* @__PURE__ */ jsx62(Fragment8, { children: hiddenChips.length > 0 && /* @__PURE__ */ jsxs24(Fragment8, { children: [
11621
- /* @__PURE__ */ jsx62(
11532
+ return /* @__PURE__ */ jsx58(Fragment8, { children: hiddenChips.length > 0 && /* @__PURE__ */ jsxs23(Fragment8, { children: [
11533
+ /* @__PURE__ */ jsx58(
11622
11534
  Box_default2,
11623
11535
  {
11624
11536
  ref: counterRef,
@@ -11632,7 +11544,7 @@ var ChipHiddenCounter = ({
11632
11544
  })
11633
11545
  }
11634
11546
  ),
11635
- !preventHiddenChipsTooltip && /* @__PURE__ */ jsx62(
11547
+ !preventHiddenChipsTooltip && /* @__PURE__ */ jsx58(
11636
11548
  Popper,
11637
11549
  {
11638
11550
  ref: popperRef,
@@ -11669,7 +11581,7 @@ var ChipHiddenCounter = ({
11669
11581
  borderRadius: "8px"
11670
11582
  },
11671
11583
  "data-testid": TOOLTIP_DATA_TEST_ID,
11672
- children: /* @__PURE__ */ jsx62(
11584
+ children: /* @__PURE__ */ jsx58(
11673
11585
  Paper_default,
11674
11586
  {
11675
11587
  sx: {
@@ -11679,7 +11591,7 @@ var ChipHiddenCounter = ({
11679
11591
  border: `1px solid ${grey200}`,
11680
11592
  cursor: "default"
11681
11593
  },
11682
- children: /* @__PURE__ */ jsx62(
11594
+ children: /* @__PURE__ */ jsx58(
11683
11595
  Stack_default,
11684
11596
  {
11685
11597
  direction: "row",
@@ -11708,7 +11620,7 @@ var ChipHiddenCounter = ({
11708
11620
  var ChipHiddenCounter_default = ChipHiddenCounter;
11709
11621
 
11710
11622
  // src/components/chip/ChipContainer.tsx
11711
- import { jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
11623
+ import { jsx as jsx59, jsxs as jsxs24 } from "react/jsx-runtime";
11712
11624
  var DEFAULT_DATA_TEST_ID = "chip-container";
11713
11625
  var PLACEHOLDER_DATA_TEST_ID = "chip-container-placeholder";
11714
11626
  var ChipContainer = ({
@@ -11726,7 +11638,7 @@ var ChipContainer = ({
11726
11638
  dataTestId = DEFAULT_DATA_TEST_ID,
11727
11639
  renderChip,
11728
11640
  getWarningTooltip
11729
- }) => /* @__PURE__ */ jsxs25(
11641
+ }) => /* @__PURE__ */ jsxs24(
11730
11642
  Stack_default,
11731
11643
  {
11732
11644
  ref: containerRef,
@@ -11746,7 +11658,7 @@ var ChipContainer = ({
11746
11658
  },
11747
11659
  "data-testid": dataTestId,
11748
11660
  children: [
11749
- visibleChips.length === 0 && placeholder && /* @__PURE__ */ jsx63(
11661
+ visibleChips.length === 0 && placeholder && /* @__PURE__ */ jsx59(
11750
11662
  Typography_default,
11751
11663
  {
11752
11664
  variant: typographyVariant,
@@ -11758,7 +11670,7 @@ var ChipContainer = ({
11758
11670
  visibleChips.map(
11759
11671
  (value, index) => renderChip({ chipName: value, index })
11760
11672
  ),
11761
- /* @__PURE__ */ jsx63(
11673
+ /* @__PURE__ */ jsx59(
11762
11674
  ChipHiddenCounter_default,
11763
11675
  {
11764
11676
  hiddenChips,
@@ -11775,7 +11687,7 @@ var ChipContainer_default = ChipContainer;
11775
11687
 
11776
11688
  // src/components/chip/ChipViewer.tsx
11777
11689
  import { Stack as Stack4 } from "@mui/material";
11778
- import { jsx as jsx64 } from "react/jsx-runtime";
11690
+ import { jsx as jsx60 } from "react/jsx-runtime";
11779
11691
  var CHIP_DATA_TEST_ID = "chip-viewer-chip";
11780
11692
  var CHIP_VIEWER_ROOT_ID = "chip-viewer-root";
11781
11693
  var CHIPS_GAP = 4;
@@ -11783,33 +11695,29 @@ var ROW_HEIGHT = 24;
11783
11695
  var chipViewerStyle = {
11784
11696
  circle: {
11785
11697
  borderRadius: "50px",
11786
- backgroundColor: Colors_exports.grey200,
11787
- color: Colors_exports.grey900
11698
+ chipVariant: "darker"
11788
11699
  },
11789
11700
  square: {
11790
11701
  borderRadius: "4px",
11791
- backgroundColor: Colors_exports.grey100,
11792
- color: Colors_exports.grey600
11702
+ chipVariant: "dark"
11793
11703
  }
11794
11704
  };
11795
11705
  var ChipViewer = ({
11796
11706
  values: values2 = [],
11797
- chipSx,
11798
- chipSize = "S",
11799
- chipVariant = "default",
11800
11707
  placeholder = "",
11801
11708
  numberLines = 0,
11802
11709
  reserveHeight,
11803
11710
  variant = "circle",
11804
11711
  preventHiddenChipsTooltip,
11805
- typographyVariant = "body2",
11806
11712
  forceRecalculate = false,
11713
+ slotProps,
11807
11714
  renderChipLabel,
11808
11715
  onRemoveChip,
11809
11716
  onClickChip,
11810
11717
  onHasHiddenChipsChange,
11811
11718
  getWarningTooltip
11812
11719
  }) => {
11720
+ const theme2 = useCustomTheme();
11813
11721
  const rootNodeRef = React31.useRef(null);
11814
11722
  const containerRef = React31.useRef(null);
11815
11723
  const lastDataCalculated = React31.useRef(null);
@@ -12005,6 +11913,7 @@ var ChipViewer = ({
12005
11913
  window.removeEventListener("resize", onWindowResize);
12006
11914
  };
12007
11915
  }, [calculateVisibleChips]);
11916
+ const typographyVariant = slotProps?.typography?.variant ?? "body2";
12008
11917
  const getRenderChip = ({
12009
11918
  chipName,
12010
11919
  index,
@@ -12012,10 +11921,11 @@ var ChipViewer = ({
12012
11921
  isCounterLabel
12013
11922
  }) => {
12014
11923
  const warningTooltip = getWarningTooltip && getWarningTooltip(chipName);
12015
- return /* @__PURE__ */ jsx64(
11924
+ return /* @__PURE__ */ jsx60(
12016
11925
  Chip_default,
12017
11926
  {
12018
- variant: chipVariant,
11927
+ ...slotProps?.chip,
11928
+ variant: slotProps?.chip?.variant ?? chipViewerStyle[variant].chipVariant,
12019
11929
  ...!!warningTooltip && {
12020
11930
  iconId: "alert",
12021
11931
  iconColor: complementary600,
@@ -12027,21 +11937,21 @@ var ChipViewer = ({
12027
11937
  "& > span": {
12028
11938
  padding: "8px"
12029
11939
  },
12030
- border: "none",
11940
+ border: !slotProps?.chip?.variant ? "none" : void 0,
12031
11941
  cursor: onClickChip ? "pointer" : "default",
12032
- ...chipViewerStyle[variant],
11942
+ borderRadius: chipViewerStyle[variant].borderRadius,
12033
11943
  paddingRight: "8px",
12034
11944
  "& .MuiChip-label": {
12035
11945
  paddingRight: !warningTooltip ? "4px" : "8px"
12036
11946
  },
12037
11947
  "& .MuiChip-deleteIcon > button": {
12038
11948
  padding: 0,
12039
- color: Colors_exports.grey800
11949
+ color: theme2.palette.grey[800]
12040
11950
  },
12041
- ...chipSx && { ...chipSx }
11951
+ ...slotProps?.chip?.sx && { ...slotProps.chip.sx }
12042
11952
  },
12043
- size: chipSize,
12044
- label: /* @__PURE__ */ jsx64(
11953
+ size: slotProps?.chip?.size ?? "S",
11954
+ label: /* @__PURE__ */ jsx60(
12045
11955
  TextEllipsis_default,
12046
11956
  {
12047
11957
  lines: 1,
@@ -12061,7 +11971,7 @@ var ChipViewer = ({
12061
11971
  `chip-${index}`
12062
11972
  );
12063
11973
  };
12064
- return /* @__PURE__ */ jsx64(Stack4, { ref: rootNodeRef, "data-testid": CHIP_VIEWER_ROOT_ID, children: /* @__PURE__ */ jsx64(
11974
+ return /* @__PURE__ */ jsx60(Stack4, { ref: rootNodeRef, "data-testid": CHIP_VIEWER_ROOT_ID, children: /* @__PURE__ */ jsx60(
12065
11975
  ChipContainer_default,
12066
11976
  {
12067
11977
  containerRef,
@@ -12082,7 +11992,106 @@ var ChipViewer = ({
12082
11992
  };
12083
11993
  var ChipViewer_default = ChipViewer;
12084
11994
 
11995
+ // src/components/card/CardChips.tsx
11996
+ import { jsx as jsx61 } from "react/jsx-runtime";
11997
+ var CardChips = ({ chipLabels }) => /* @__PURE__ */ jsx61(
11998
+ MuiCardContent2,
11999
+ {
12000
+ sx: {
12001
+ p: "0 16px",
12002
+ margin: "16px 0"
12003
+ },
12004
+ children: /* @__PURE__ */ jsx61(
12005
+ ChipViewer_default,
12006
+ {
12007
+ values: chipLabels,
12008
+ slotProps: {
12009
+ chip: {
12010
+ variant: "default",
12011
+ sx: {
12012
+ margin: "5px 5px 0 0"
12013
+ }
12014
+ }
12015
+ }
12016
+ }
12017
+ )
12018
+ }
12019
+ );
12020
+ var CardChips_default = CardChips;
12021
+
12022
+ // src/components/card/CardImage.tsx
12023
+ import MuiCardMedia from "@mui/material/CardMedia";
12024
+ import { jsx as jsx62 } from "react/jsx-runtime";
12025
+ var imageHeights = {
12026
+ sm: "104px",
12027
+ md: "130px"
12028
+ };
12029
+ var CardImage = ({ imageUrl, size = "md" }) => /* @__PURE__ */ jsx62(
12030
+ MuiCardMedia,
12031
+ {
12032
+ component: "img",
12033
+ image: imageUrl,
12034
+ height: imageHeights[size]
12035
+ }
12036
+ );
12037
+ var CardImage_default = CardImage;
12038
+
12039
+ // src/components/card/CardStatus.tsx
12040
+ import { jsx as jsx63 } from "react/jsx-runtime";
12041
+ var CardStatus = ({
12042
+ text,
12043
+ animated = false,
12044
+ backgroundColor: backgroundColor2 = "primary.main"
12045
+ }) => /* @__PURE__ */ jsx63(
12046
+ Box_default2,
12047
+ {
12048
+ sx: {
12049
+ display: "flex",
12050
+ justifyContent: "right",
12051
+ p: "5px 16px",
12052
+ backgroundColor: backgroundColor2,
12053
+ ...animated && backgroundMovingBars
12054
+ },
12055
+ children: /* @__PURE__ */ jsx63(
12056
+ Typography_default,
12057
+ {
12058
+ sx: { textTransform: "uppercase" },
12059
+ component: "div",
12060
+ color: "white",
12061
+ noWrap: true,
12062
+ children: text
12063
+ }
12064
+ )
12065
+ }
12066
+ );
12067
+ var CardStatus_default = CardStatus;
12068
+
12069
+ // src/components/card/CardTable.tsx
12070
+ import { jsx as jsx64, jsxs as jsxs25 } from "react/jsx-runtime";
12071
+ var CardTable = ({ rows }) => /* @__PURE__ */ jsx64(Box_default2, { sx: { p: "0 16px" }, children: rows.map((row) => /* @__PURE__ */ jsxs25(
12072
+ Box_default2,
12073
+ {
12074
+ sx: {
12075
+ display: "flex",
12076
+ justifyContent: "space-between",
12077
+ overflow: "hidden",
12078
+ p: "5px 0",
12079
+ borderTopStyle: "solid",
12080
+ borderTopWidth: "1px",
12081
+ borderTopColor: "grey.300"
12082
+ },
12083
+ children: [
12084
+ /* @__PURE__ */ jsx64(Typography_default, { children: row.label }),
12085
+ /* @__PURE__ */ jsx64(Typography_default, { sx: { textAlign: "right", fontWeight: "bold" }, children: row.value })
12086
+ ]
12087
+ },
12088
+ row.label
12089
+ )) });
12090
+ var CardTable_default = CardTable;
12091
+
12085
12092
  // src/components/card/EnhancedCard.tsx
12093
+ import { Stack as Stack5 } from "@mui/material";
12094
+ import * as React32 from "react";
12086
12095
  import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
12087
12096
  var cardWidthBySize = {
12088
12097
  S: 110,
@@ -23661,10 +23670,13 @@ var ItemSelector = function ItemSelector2({
23661
23670
  /* @__PURE__ */ jsx131(Stack_default, { flex: 1, minWidth: 0, children: /* @__PURE__ */ jsx131(
23662
23671
  ChipViewer_default,
23663
23672
  {
23664
- chipSx: {
23665
- alignSelf: "center"
23673
+ slotProps: {
23674
+ chip: {
23675
+ sx: {
23676
+ alignSelf: "center"
23677
+ }
23678
+ }
23666
23679
  },
23667
- chipVariant: "dark",
23668
23680
  values: value,
23669
23681
  ...!disabled && {
23670
23682
  onRemoveChip: (event, id) => {
@@ -26867,7 +26879,7 @@ var NavbarButton = React87.forwardRef(
26867
26879
  color: isActive ? palette2.primary.main : palette2.grey[700],
26868
26880
  borderRadius: "50%",
26869
26881
  overflow: "visible",
26870
- backgroundColor: isActive ? palette2.primary.opacity32 : "transparent"
26882
+ backgroundColor: isActive ? palette2.grey[100] : "transparent"
26871
26883
  }
26872
26884
  }
26873
26885
  )