@connectif/ui-components 2.0.19 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -929,7 +929,6 @@ __export(Colors_exports, {
929
929
  blueGrey500: () => blueGrey500,
930
930
  blueGrey700: () => blueGrey700,
931
931
  blueGrey800: () => blueGrey800,
932
- blueGreyOpacity05: () => blueGreyOpacity05,
933
932
  complementary100: () => complementary100,
934
933
  complementary200: () => complementary200,
935
934
  complementary300: () => complementary300,
@@ -1092,7 +1091,6 @@ var blueGrey400 = "#646D7A";
1092
1091
  var blueGrey500 = "#495362";
1093
1092
  var blueGrey700 = "#414A58";
1094
1093
  var blueGrey800 = "#383F4C";
1095
- var blueGreyOpacity05 = "rgba(65, 74, 88, 0.05)";
1096
1094
  var lightGreen = "#599D7D";
1097
1095
  var darkGreen = "#487F65";
1098
1096
  var dark500 = "#7F8BA8";
@@ -8673,22 +8671,123 @@ var GlobalStyles_default = globalStyles;
8673
8671
  // src/theme/Palettes.ts
8674
8672
  var Palettes_exports = {};
8675
8673
  __export(Palettes_exports, {
8674
+ blueGreyPalette: () => blueGreyPalette,
8675
+ commonPalette: () => commonPalette,
8676
+ complementaryPalette: () => complementaryPalette,
8677
+ cornflowerBluePalette: () => cornflowerBluePalette,
8678
+ darkPalette: () => darkPalette,
8679
+ electricLavenderPalette: () => electricLavenderPalette,
8676
8680
  errorPalette: () => errorPalette,
8681
+ greenPalette: () => greenPalette,
8682
+ greyPalette: () => greyPalette,
8677
8683
  primaryPalette: () => primaryPalette,
8678
8684
  successPalette: () => successPalette
8679
8685
  });
8680
8686
  var primaryPalette = {
8681
8687
  main: primaryMain,
8682
8688
  light: primaryLight,
8683
- dark: primaryDark
8689
+ dark: primaryDark,
8690
+ 50: primary50,
8691
+ 100: primary100,
8692
+ 200: primary200,
8693
+ 300: primary300,
8694
+ 400: primary400,
8695
+ 500: primary500,
8696
+ 600: primary600,
8697
+ 700: primary700,
8698
+ 800: primary800,
8699
+ 900: primary900,
8700
+ opacity32: primaryOpacity32,
8701
+ alpha32: primaryAlpha32,
8702
+ alpha64: primaryAlpha64
8703
+ };
8704
+ var complementaryPalette = {
8705
+ main: complementaryMain,
8706
+ 50: complementary50,
8707
+ 100: complementary100,
8708
+ 200: complementary200,
8709
+ 300: complementary300,
8710
+ 400: complementary400,
8711
+ 500: complementary500,
8712
+ 600: complementary600,
8713
+ 700: complementary700,
8714
+ 800: complementary800,
8715
+ 900: complementary900
8684
8716
  };
8685
8717
  var errorPalette = {
8686
- main: errorMain
8718
+ main: errorMain,
8719
+ 25: error25,
8720
+ 50: error50,
8721
+ 100: error100,
8722
+ 200: error200,
8723
+ 300: error300,
8724
+ 400: error400,
8725
+ 500: error500,
8726
+ 600: error600,
8727
+ 700: error700,
8728
+ 800: error800,
8729
+ 900: error900
8687
8730
  };
8688
8731
  var successPalette = {
8689
8732
  main: successMain,
8690
8733
  light: successLight,
8691
- dark: successDark
8734
+ dark: successDark,
8735
+ 50: success50,
8736
+ 100: success100,
8737
+ 200: success200,
8738
+ 300: success300,
8739
+ 400: success400,
8740
+ 500: success500,
8741
+ 600: success600,
8742
+ 700: success700,
8743
+ 800: success800,
8744
+ 900: success900
8745
+ };
8746
+ var greyPalette = {
8747
+ main: grey500,
8748
+ 50: grey50,
8749
+ 100: grey100,
8750
+ 200: grey200,
8751
+ 300: grey300,
8752
+ 400: grey400,
8753
+ 500: grey500,
8754
+ 600: grey600,
8755
+ 700: grey700,
8756
+ 800: grey800,
8757
+ 900: grey900
8758
+ };
8759
+ var commonPalette = {
8760
+ black,
8761
+ white,
8762
+ blackOpacity04,
8763
+ whiteOpacity32
8764
+ };
8765
+ var blueGreyPalette = {
8766
+ main: blueGrey,
8767
+ 300: blueGrey300,
8768
+ 400: blueGrey400,
8769
+ 500: blueGrey500,
8770
+ 700: blueGrey700,
8771
+ 800: blueGrey800
8772
+ };
8773
+ var greenPalette = {
8774
+ main: oliveGreen,
8775
+ light: lightGreen,
8776
+ dark: darkGreen
8777
+ };
8778
+ var darkPalette = {
8779
+ main: darkMain,
8780
+ 500: dark500,
8781
+ 600: dark600,
8782
+ 700: dark700,
8783
+ 800: dark800,
8784
+ 900: dark900
8785
+ };
8786
+ var electricLavenderPalette = {
8787
+ main: electricLavender
8788
+ };
8789
+ var cornflowerBluePalette = {
8790
+ main: cornflowerBlue
8692
8791
  };
8693
8792
 
8694
8793
  // src/theme/Shadows.ts
@@ -8732,9 +8831,10 @@ var shadows = [
8732
8831
  // src/theme/Theme.ts
8733
8832
  var Theme_exports = {};
8734
8833
  __export(Theme_exports, {
8735
- theme: () => theme
8834
+ theme: () => theme,
8835
+ useCustomTheme: () => useCustomTheme
8736
8836
  });
8737
- import { createTheme as createTheme2 } from "@mui/material/styles";
8837
+ import { createTheme as createTheme2, useTheme as useTheme3 } from "@mui/material/styles";
8738
8838
 
8739
8839
  // src/theme/Typography.ts
8740
8840
  var Typography_exports = {};
@@ -8964,57 +9064,57 @@ var buttonTheme = {
8964
9064
  props: {
8965
9065
  variant: "contained"
8966
9066
  },
8967
- style: {
8968
- color: white,
8969
- backgroundColor: primaryMain,
9067
+ style: ({ theme: theme2 }) => ({
9068
+ color: theme2.palette.common.white,
9069
+ backgroundColor: theme2.palette.primary.main,
8970
9070
  boxShadow: shadows[0],
8971
9071
  "&:hover": {
8972
- backgroundColor: primary400,
9072
+ backgroundColor: theme2.palette.primary[400],
8973
9073
  boxShadow: shadows[0]
8974
9074
  },
8975
9075
  "&:active": {
8976
- backgroundColor: primaryMain,
9076
+ backgroundColor: theme2.palette.primary.main,
8977
9077
  boxShadow: shadows[0]
8978
9078
  },
8979
9079
  ":disabled": {
8980
- color: grey500,
8981
- backgroundColor: grey300
9080
+ color: theme2.palette.grey[500],
9081
+ backgroundColor: theme2.palette.grey[300]
8982
9082
  }
8983
- }
9083
+ })
8984
9084
  },
8985
9085
  {
8986
9086
  props: {
8987
9087
  variant: "outlined"
8988
9088
  },
8989
- style: {
8990
- color: primaryMain,
8991
- backgroundColor: white,
8992
- border: `1px solid ${primaryMain}`,
9089
+ style: ({ theme: theme2 }) => ({
9090
+ color: theme2.palette.primary.main,
9091
+ backgroundColor: theme2.palette.common.white,
9092
+ border: `1px solid ${theme2.palette.primary.main}`,
8993
9093
  padding: "0 11px",
8994
9094
  "&:hover": {
8995
- borderColor: primary50,
8996
- backgroundColor: primary50
9095
+ borderColor: theme2.palette.primary[50],
9096
+ backgroundColor: theme2.palette.primary[50]
8997
9097
  },
8998
9098
  "&:active": {
8999
- backgroundColor: primary50
9099
+ backgroundColor: theme2.palette.primary[50]
9000
9100
  }
9001
- }
9101
+ })
9002
9102
  },
9003
9103
  {
9004
9104
  props: {
9005
9105
  variant: "text"
9006
9106
  },
9007
- style: {
9008
- color: primaryMain,
9107
+ style: ({ theme: theme2 }) => ({
9108
+ color: theme2.palette.primary.main,
9009
9109
  backgroundColor: "transparent",
9010
9110
  "&:hover": {
9011
- color: primaryMain,
9012
- backgroundColor: primaryOpacity32
9111
+ color: theme2.palette.primary.main,
9112
+ backgroundColor: theme2.palette.primary.opacity32
9013
9113
  },
9014
9114
  "&:active": {
9015
- backgroundColor: primaryOpacity32
9115
+ backgroundColor: theme2.palette.primary.opacity32
9016
9116
  }
9017
- }
9117
+ })
9018
9118
  }
9019
9119
  ],
9020
9120
  styleOverrides: {
@@ -9355,12 +9455,20 @@ var switchTheme = {
9355
9455
  };
9356
9456
 
9357
9457
  // src/theme/Theme.ts
9358
- var theme = createTheme2({
9458
+ var themeOptions = {
9359
9459
  typography,
9360
9460
  palette: {
9361
9461
  primary: primaryPalette,
9462
+ complementary: complementaryPalette,
9463
+ error: errorPalette,
9362
9464
  success: successPalette,
9363
- error: errorPalette
9465
+ grey: greyPalette,
9466
+ common: commonPalette,
9467
+ blueGrey: blueGreyPalette,
9468
+ green: greenPalette,
9469
+ dark: darkPalette,
9470
+ electricLavender: electricLavenderPalette,
9471
+ cornflowerBlue: cornflowerBluePalette
9364
9472
  },
9365
9473
  components: {
9366
9474
  MuiButton: buttonTheme,
@@ -9382,7 +9490,9 @@ var theme = createTheme2({
9382
9490
  shadows,
9383
9491
  breakpoints,
9384
9492
  spacing: 4
9385
- });
9493
+ };
9494
+ var theme = createTheme2(themeOptions);
9495
+ var useCustomTheme = () => useTheme3();
9386
9496
 
9387
9497
  // src/components/tooltip/TooltipMenu.tsx
9388
9498
  import { Tooltip as Tooltip3, tooltipClasses } from "@mui/material";
@@ -9442,7 +9552,8 @@ var TextEllipsis = ({
9442
9552
  lines = 1,
9443
9553
  maxWidth: maxWidth2,
9444
9554
  "data-test": dataTest,
9445
- sx
9555
+ sx,
9556
+ zIndex
9446
9557
  }) => {
9447
9558
  const textElementRef = React17.useRef(null);
9448
9559
  return /* @__PURE__ */ jsx32(
@@ -9451,6 +9562,7 @@ var TextEllipsis = ({
9451
9562
  title: text ?? "\xA0",
9452
9563
  textEllipsableElement: textElementRef,
9453
9564
  lines,
9565
+ zIndex,
9454
9566
  children: /* @__PURE__ */ jsx32(
9455
9567
  Typography_default,
9456
9568
  {
@@ -9856,179 +9968,179 @@ import MuiButton2 from "@mui/material/Button";
9856
9968
  import * as React21 from "react";
9857
9969
  import MuiButton from "@mui/material/Button";
9858
9970
  import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
9859
- var outlinedWhiteInherit = {
9860
- border: `1px solid ${grey200}`,
9861
- color: grey800,
9862
- backgroundColor: white,
9971
+ var outlinedWhiteInherit = (theme2) => ({
9972
+ border: `1px solid ${theme2.palette.grey[200]}`,
9973
+ color: theme2.palette.grey[800],
9974
+ backgroundColor: theme2.palette.common.white,
9863
9975
  ":hover": {
9864
- border: `1px solid ${grey100}`,
9865
- backgroundColor: grey100
9976
+ border: `1px solid ${theme2.palette.grey[100]}`,
9977
+ backgroundColor: theme2.palette.grey[100]
9866
9978
  },
9867
9979
  "&:active": {
9868
- border: `1px solid ${grey200}`,
9869
- backgroundColor: white
9980
+ border: `1px solid ${theme2.palette.grey[200]}`,
9981
+ backgroundColor: theme2.palette.common.white
9870
9982
  },
9871
9983
  ":disabled": {
9872
- color: grey400
9984
+ color: theme2.palette.grey[400]
9873
9985
  }
9874
- };
9875
- var textWhiteInherit = {
9876
- color: grey800,
9986
+ });
9987
+ var textWhiteInherit = (theme2) => ({
9988
+ color: theme2.palette.grey[800],
9877
9989
  backgroundColor: "transparent",
9878
9990
  ":hover": {
9879
- color: grey800,
9880
- backgroundColor: grey50
9991
+ color: theme2.palette.grey[800],
9992
+ backgroundColor: theme2.palette.grey[50]
9881
9993
  },
9882
9994
  "&:active": {
9883
- color: grey800,
9884
- backgroundColor: grey50
9995
+ color: theme2.palette.grey[800],
9996
+ backgroundColor: theme2.palette.grey[50]
9885
9997
  },
9886
9998
  ":disabled": {
9887
- color: grey400
9999
+ color: theme2.palette.grey[400]
9888
10000
  }
9889
- };
9890
- var outlinedWarning = {
9891
- border: `1px solid ${error900}`,
9892
- color: error900,
9893
- backgroundColor: white,
10001
+ });
10002
+ var outlinedWarning = (theme2) => ({
10003
+ border: `1px solid ${theme2.palette.error[900]}`,
10004
+ color: theme2.palette.error[900],
10005
+ backgroundColor: theme2.palette.common.white,
9894
10006
  ":hover": {
9895
- border: `1px solid ${error900}`,
9896
- backgroundColor: error50
10007
+ border: `1px solid ${theme2.palette.error[900]}`,
10008
+ backgroundColor: theme2.palette.error[50]
9897
10009
  },
9898
10010
  "&:active": {
9899
- border: `1px solid ${error900}`,
9900
- backgroundColor: white
10011
+ border: `1px solid ${theme2.palette.error[900]}`,
10012
+ backgroundColor: theme2.palette.common.white
9901
10013
  },
9902
10014
  ":disabled": {
9903
- color: grey400
10015
+ color: theme2.palette.grey[400]
9904
10016
  }
9905
- };
9906
- var textWarning = {
9907
- color: error900,
10017
+ });
10018
+ var textWarning = (theme2) => ({
10019
+ color: theme2.palette.error[900],
9908
10020
  backgroundColor: "transparent",
9909
10021
  ":hover": {
9910
- color: error900,
9911
- backgroundColor: error50
10022
+ color: theme2.palette.error[900],
10023
+ backgroundColor: theme2.palette.error[50]
9912
10024
  },
9913
10025
  "&:active": {
9914
- color: error900,
9915
- backgroundColor: error50
10026
+ color: theme2.palette.error[900],
10027
+ backgroundColor: theme2.palette.error[50]
9916
10028
  },
9917
10029
  ":disabled": {
9918
- color: grey400
10030
+ color: theme2.palette.grey[400]
9919
10031
  }
9920
- };
9921
- var colorStyles2 = {
10032
+ });
10033
+ var colorStyles2 = (theme2) => ({
9922
10034
  contained: {
9923
10035
  primary: {},
9924
10036
  inherit: {
9925
- color: grey800,
9926
- backgroundColor: grey300,
10037
+ color: theme2.palette.grey[800],
10038
+ backgroundColor: theme2.palette.grey[300],
9927
10039
  ":hover": {
9928
- backgroundColor: grey100
10040
+ backgroundColor: theme2.palette.grey[100]
9929
10041
  },
9930
10042
  "&:active": {
9931
- backgroundColor: grey300
10043
+ backgroundColor: theme2.palette.grey[300]
9932
10044
  },
9933
10045
  ":disabled": {
9934
- color: grey400
10046
+ color: theme2.palette.grey[400]
9935
10047
  }
9936
10048
  },
9937
10049
  white: {
9938
- border: `1px solid ${grey200}`,
9939
- color: grey800,
9940
- backgroundColor: white,
10050
+ border: `1px solid ${theme2.palette.grey[200]}`,
10051
+ color: theme2.palette.grey[800],
10052
+ backgroundColor: theme2.palette.common.white,
9941
10053
  ":hover": {
9942
- border: `1px solid ${grey300}`,
9943
- backgroundColor: grey100
10054
+ border: `1px solid ${theme2.palette.grey[300]}`,
10055
+ backgroundColor: theme2.palette.grey[100]
9944
10056
  },
9945
10057
  "&:active": {
9946
- border: `1px solid ${grey300}`,
9947
- backgroundColor: grey200
10058
+ border: `1px solid ${theme2.palette.grey[300]}`,
10059
+ backgroundColor: theme2.palette.grey[200]
9948
10060
  },
9949
10061
  ":disabled": {
9950
10062
  border: "none",
9951
- color: grey400,
9952
- backgroundColor: grey300
10063
+ color: theme2.palette.grey[400],
10064
+ backgroundColor: theme2.palette.grey[300]
9953
10065
  }
9954
10066
  },
9955
10067
  warning: {
9956
- color: white,
9957
- backgroundColor: error900,
10068
+ color: theme2.palette.error[900],
10069
+ backgroundColor: theme2.palette.error[900],
9958
10070
  ":hover": {
9959
- backgroundColor: error600
10071
+ backgroundColor: theme2.palette.error[600]
9960
10072
  },
9961
10073
  "&:active": {
9962
- backgroundColor: error900
10074
+ backgroundColor: theme2.palette.error[900]
9963
10075
  }
9964
10076
  }
9965
10077
  },
9966
10078
  outlined: {
9967
10079
  primary: {},
9968
- inherit: outlinedWhiteInherit,
9969
- white: outlinedWhiteInherit,
9970
- warning: outlinedWarning
10080
+ inherit: outlinedWhiteInherit(theme2),
10081
+ white: outlinedWhiteInherit(theme2),
10082
+ warning: outlinedWarning(theme2)
9971
10083
  },
9972
10084
  text: {
9973
10085
  primary: {},
9974
- inherit: textWhiteInherit,
9975
- white: textWhiteInherit,
9976
- warning: textWarning
10086
+ inherit: textWhiteInherit(theme2),
10087
+ white: textWhiteInherit(theme2),
10088
+ warning: textWarning(theme2)
9977
10089
  }
9978
- };
9979
- var badgeColorStyles = (hover, disabled) => ({
10090
+ });
10091
+ var badgeColorStyles = (theme2, hover, disabled) => ({
9980
10092
  contained: {
9981
10093
  primary: {
9982
- color: white,
9983
- backgroundColor: disabled ? grey500 : hover ? primary600 : primary800
10094
+ color: theme2.palette.common.white,
10095
+ backgroundColor: disabled ? theme2.palette.grey[500] : hover ? theme2.palette.primary[600] : theme2.palette.primary[800]
9984
10096
  },
9985
10097
  inherit: {
9986
- color: disabled ? white : grey800,
9987
- backgroundColor: hover ? grey500 : grey400
10098
+ color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
10099
+ backgroundColor: hover ? theme2.palette.grey[500] : theme2.palette.grey[400]
9988
10100
  },
9989
10101
  white: {
9990
- color: disabled || hover ? white : grey800,
9991
- backgroundColor: disabled || hover ? grey500 : grey200
10102
+ color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
10103
+ backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
9992
10104
  },
9993
10105
  warning: {
9994
- color: disabled ? white : error900,
9995
- backgroundColor: disabled ? grey500 : hover ? error100 : error50
10106
+ color: disabled ? theme2.palette.common.white : theme2.palette.error[900],
10107
+ backgroundColor: disabled ? theme2.palette.grey[500] : hover ? theme2.palette.error[100] : theme2.palette.error[50]
9996
10108
  }
9997
10109
  },
9998
10110
  outlined: {
9999
10111
  primary: {
10000
- color: white,
10001
- backgroundColor: disabled ? grey500 : primary600
10112
+ color: theme2.palette.common.white,
10113
+ backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.primary[600]
10002
10114
  },
10003
10115
  inherit: {
10004
- color: disabled || hover ? white : grey800,
10005
- backgroundColor: disabled || hover ? grey500 : grey200
10116
+ color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
10117
+ backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
10006
10118
  },
10007
10119
  white: {
10008
- color: disabled || hover ? white : grey800,
10009
- backgroundColor: disabled || hover ? grey500 : grey200
10120
+ color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
10121
+ backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
10010
10122
  },
10011
10123
  warning: {
10012
- color: white,
10013
- backgroundColor: disabled ? grey500 : error400
10124
+ color: theme2.palette.common.white,
10125
+ backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.error[400]
10014
10126
  }
10015
10127
  },
10016
10128
  text: {
10017
10129
  primary: {
10018
- color: white,
10019
- backgroundColor: disabled ? grey500 : primary600
10130
+ color: theme2.palette.common.white,
10131
+ backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.primary[600]
10020
10132
  },
10021
10133
  inherit: {
10022
- color: disabled ? white : grey800,
10023
- backgroundColor: disabled ? grey400 : grey200
10134
+ color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
10135
+ backgroundColor: disabled ? theme2.palette.grey[400] : theme2.palette.grey[200]
10024
10136
  },
10025
10137
  white: {
10026
- color: disabled ? white : grey800,
10027
- backgroundColor: disabled ? grey400 : grey200
10138
+ color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
10139
+ backgroundColor: disabled ? theme2.palette.grey[400] : theme2.palette.grey[200]
10028
10140
  },
10029
10141
  warning: {
10030
- color: white,
10031
- backgroundColor: disabled ? grey500 : error400
10142
+ color: theme2.palette.common.white,
10143
+ backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.error[400]
10032
10144
  }
10033
10145
  }
10034
10146
  });
@@ -10063,15 +10175,16 @@ var Button = React21.forwardRef(function Button2({
10063
10175
  link,
10064
10176
  ...props
10065
10177
  }, ref) {
10178
+ const theme2 = useCustomTheme();
10066
10179
  const [isHover, setHover] = React21.useState(false);
10067
10180
  const icon = iconId ? /* @__PURE__ */ jsx39(Icon_default, { size: iconSize, id: iconId }) : specificIcon || void 0;
10068
10181
  const iconProp = iconEnd ? { endIcon: icon } : { startIcon: icon };
10069
- const colorStyle = colorStyles2[variant][color2];
10182
+ const colorStyle = colorStyles2(theme2)[variant][color2];
10070
10183
  const sizeStyle = sizeStyles2[size];
10071
10184
  const styleVars = {
10072
10185
  "--border": variant === "outlined" ? "1px" : "0px"
10073
10186
  };
10074
- const badgeColor = badgeColorStyles(isHover, props.disabled)[variant][color2];
10187
+ const badgeColor = badgeColorStyles(theme2, isHover, props.disabled)[variant][color2];
10075
10188
  const getBadge = () => /* @__PURE__ */ jsx39(
10076
10189
  Typography_default,
10077
10190
  {
@@ -10208,10 +10321,11 @@ var ButtonWithActions = React23.forwardRef(function ButtonWithActions2({
10208
10321
  size: buttonSize,
10209
10322
  ...buttonProps
10210
10323
  }, ref) {
10324
+ const theme2 = useCustomTheme();
10211
10325
  const size = buttonSize || "M";
10212
10326
  const variant = buttonProps.variant || "contained";
10213
10327
  const color2 = buttonProps.color || "primary";
10214
- const colorStyle = colorStyles2[variant][color2];
10328
+ const colorStyle = colorStyles2(theme2)[variant][color2];
10215
10329
  const sizeStyle = sizeStyles3[size];
10216
10330
  const disabled = buttonProps.disabled;
10217
10331
  const [buttonId] = React23.useState(
@@ -12291,7 +12405,7 @@ import * as React32 from "react";
12291
12405
  import { createRoot as createRoot2 } from "react-dom/client";
12292
12406
  import ReactEChartsCore2 from "echarts-for-react/lib/core";
12293
12407
  import * as echarts3 from "echarts/core";
12294
- import { ThemeProvider, useTheme as useTheme3 } from "@mui/material/styles";
12408
+ import { ThemeProvider, useTheme as useTheme4 } from "@mui/material/styles";
12295
12409
  import { jsx as jsx68, jsxs as jsxs27 } from "react/jsx-runtime";
12296
12410
  var LineChart2 = ({
12297
12411
  style: style3,
@@ -12307,11 +12421,15 @@ var LineChart2 = ({
12307
12421
  axisFontSize = "11px",
12308
12422
  axisFontColor = grey400,
12309
12423
  yAxisPosition = "right",
12424
+ xAxisLabelRotationDegrees,
12310
12425
  xAxisMargin,
12426
+ yAxisMargin,
12427
+ stretch = false,
12428
+ forceAllXLabels = false,
12311
12429
  chartRef,
12312
12430
  gridMargin
12313
12431
  }) => {
12314
- const theme2 = useTheme3();
12432
+ const theme2 = useTheme4();
12315
12433
  const cursor2 = onClick ? "pointer" : "default";
12316
12434
  const silent = onClick ? false : true;
12317
12435
  const isComparing = series.some(
@@ -12481,6 +12599,7 @@ var LineChart2 = ({
12481
12599
  xAxis: {
12482
12600
  type: "category",
12483
12601
  data: categories,
12602
+ ...stretch && { boundaryGap: false },
12484
12603
  axisLine: {
12485
12604
  show: !disableSplitLine,
12486
12605
  lineStyle: {
@@ -12495,7 +12614,11 @@ var LineChart2 = ({
12495
12614
  color: axisFontColor,
12496
12615
  fontSize: axisFontSize,
12497
12616
  show: true,
12498
- opacity: !disableAxes ? 1 : 0
12617
+ opacity: !disableAxes ? 1 : 0,
12618
+ ...forceAllXLabels && { interval: 0 },
12619
+ ...xAxisLabelRotationDegrees && {
12620
+ rotate: xAxisLabelRotationDegrees
12621
+ }
12499
12622
  }
12500
12623
  },
12501
12624
  yAxis: [
@@ -12509,6 +12632,7 @@ var LineChart2 = ({
12509
12632
  }
12510
12633
  },
12511
12634
  axisLabel: {
12635
+ ...yAxisMargin && { margin: yAxisMargin },
12512
12636
  color: axisFontColor,
12513
12637
  fontSize: axisFontSize,
12514
12638
  formatter: yAxisLabelFormatter,
@@ -13753,6 +13877,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
13753
13877
  cancelableButtonText,
13754
13878
  backgroundColor: backgroundColor2,
13755
13879
  highlightStartEdge = true,
13880
+ maxWidth: maxWidth2,
13756
13881
  typographyColor,
13757
13882
  typographyVariant,
13758
13883
  onCancelableButtonClicked,
@@ -13783,7 +13908,7 @@ var ChatMessage = React35.forwardRef(function ChatMessage2({
13783
13908
  sx: {
13784
13909
  display: "flex",
13785
13910
  alignItems: "flex-start",
13786
- maxWidth: messageType === "outgoing" ? "93%" : "100%",
13911
+ maxWidth: !maxWidth2 ? messageType === "outgoing" ? "93%" : "100%" : `${maxWidth2}px`,
13787
13912
  textAlign: "left"
13788
13913
  },
13789
13914
  children: /* @__PURE__ */ jsxs35(
@@ -18341,10 +18466,7 @@ var severityColors = {
18341
18466
  var StyledLabel = styled4("label", {
18342
18467
  shouldForwardProp: (prop) => prop !== "severity"
18343
18468
  })(
18344
- ({
18345
- severity,
18346
- theme: theme2
18347
- }) => theme2.unstable_sx({
18469
+ ({ severity, theme: theme2 }) => theme2.unstable_sx({
18348
18470
  display: "block",
18349
18471
  padding: "4px 0",
18350
18472
  ...variants["caption"],
@@ -18392,10 +18514,7 @@ var severityColors2 = {
18392
18514
  var StyledDiv = styled5("div", {
18393
18515
  shouldForwardProp: (prop) => prop !== "severity"
18394
18516
  })(
18395
- ({
18396
- severity,
18397
- theme: theme2
18398
- }) => theme2.unstable_sx({
18517
+ ({ severity, theme: theme2 }) => theme2.unstable_sx({
18399
18518
  padding: "4px 8px",
18400
18519
  ...variants["caption"],
18401
18520
  color: severityColors2[severity]
@@ -18837,7 +18956,7 @@ import { tz as tz2 } from "moment-timezone";
18837
18956
  import { lighten as lighten2 } from "@mui/material";
18838
18957
 
18839
18958
  // src/components/input/CalendarDay.tsx
18840
- import { useTheme as useTheme4 } from "@mui/material/styles";
18959
+ import { useTheme as useTheme5 } from "@mui/material/styles";
18841
18960
  import { jsx as jsx102 } from "react/jsx-runtime";
18842
18961
  var calendarDayButtonSize = 32;
18843
18962
  var CalendarDayButton = styled_default("button")({});
@@ -18855,7 +18974,7 @@ var CalendarDay = ({
18855
18974
  },
18856
18975
  allowKeyboardNavigation = false
18857
18976
  }) => {
18858
- const theme2 = useTheme4();
18977
+ const theme2 = useTheme5();
18859
18978
  return /* @__PURE__ */ jsx102(
18860
18979
  CalendarDayButton,
18861
18980
  {
@@ -24277,9 +24396,9 @@ var MarkdownContainer = styled8("div")(
24277
24396
  borderRadius: "8px",
24278
24397
  overflowWrap: "break-word",
24279
24398
  "& h1, & h2, & h3": { color: color2 },
24280
- "& h1:not(:first-child)": { marginTop: "40px" },
24281
- "& h2:not(:first-child)": { marginTop: "32px" },
24282
- "& h3:not(:first-child)": { marginTop: "20px" },
24399
+ "& :is(h1, h2, h3) ~ h1": { marginTop: "40px" },
24400
+ "& :is(h1, h2, h3) ~ h2": { marginTop: "32px" },
24401
+ "& :is(h1, h2, h3) ~ h3": { marginTop: "20px" },
24283
24402
  "& h1": { fontSize: "1.75rem" },
24284
24403
  "& h2": { fontSize: "1.5rem" },
24285
24404
  "& h3": { fontSize: "1.25rem" },
@@ -24328,16 +24447,16 @@ var MarkdownContainer = styled8("div")(
24328
24447
  textAlign: "left",
24329
24448
  ...lineHeight && { lineHeight: `${lineHeight}px` }
24330
24449
  },
24331
- "& table tr:first-child th:first-child": {
24450
+ "& table tr:first-of-type th:first-of-type": {
24332
24451
  borderTopLeftRadius: "8px"
24333
24452
  },
24334
- "& table tr:first-child th:last-child": {
24453
+ "& table tr:first-of-type th:last-of-type": {
24335
24454
  borderTopRightRadius: "8px"
24336
24455
  },
24337
- "& table tr:last-child td:first-child": {
24456
+ "& table tr:last-of-type td:first-of-type": {
24338
24457
  borderBottomLeftRadius: "8px"
24339
24458
  },
24340
- "& table tr:last-child td:last-child": {
24459
+ "& table tr:last-of-type td:last-of-type": {
24341
24460
  borderBottomRightRadius: "8px"
24342
24461
  },
24343
24462
  "& th": { backgroundColor: dark800, color: white },