@connectif/ui-components 2.0.20 → 2.2.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/components/button/Button.d.ts +27 -25
- package/dist/components/button/Button.theme.d.ts +3 -2
- package/dist/index.js +240 -134
- package/dist/theme/Colors.d.ts +0 -1
- package/dist/theme/CustomPalette.d.ts +29 -0
- package/dist/theme/CustomPaletteColor.d.ts +10 -0
- package/dist/theme/CustomPaletteCommon.d.ts +7 -0
- package/dist/theme/CustomTheme.d.ts +11 -0
- package/dist/theme/Palettes.d.ts +13 -4
- package/dist/theme/Theme.d.ts +3 -5
- package/dist/theme/index.d.ts +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
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:
|
|
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:
|
|
9072
|
+
backgroundColor: theme2.palette.primary[400],
|
|
8973
9073
|
boxShadow: shadows[0]
|
|
8974
9074
|
},
|
|
8975
9075
|
"&:active": {
|
|
8976
|
-
backgroundColor:
|
|
9076
|
+
backgroundColor: theme2.palette.primary.main,
|
|
8977
9077
|
boxShadow: shadows[0]
|
|
8978
9078
|
},
|
|
8979
9079
|
":disabled": {
|
|
8980
|
-
color:
|
|
8981
|
-
backgroundColor:
|
|
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:
|
|
8991
|
-
backgroundColor: white,
|
|
8992
|
-
border: `1px solid ${
|
|
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:
|
|
8996
|
-
backgroundColor:
|
|
9095
|
+
borderColor: theme2.palette.primary[50],
|
|
9096
|
+
backgroundColor: theme2.palette.primary[50]
|
|
8997
9097
|
},
|
|
8998
9098
|
"&:active": {
|
|
8999
|
-
backgroundColor:
|
|
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:
|
|
9107
|
+
style: ({ theme: theme2 }) => ({
|
|
9108
|
+
color: theme2.palette.primary.main,
|
|
9009
9109
|
backgroundColor: "transparent",
|
|
9010
9110
|
"&:hover": {
|
|
9011
|
-
color:
|
|
9012
|
-
backgroundColor:
|
|
9111
|
+
color: theme2.palette.primary.main,
|
|
9112
|
+
backgroundColor: theme2.palette.primary.opacity32
|
|
9013
9113
|
},
|
|
9014
9114
|
"&:active": {
|
|
9015
|
-
backgroundColor:
|
|
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
|
|
9458
|
+
var themeOptions = {
|
|
9359
9459
|
typography,
|
|
9360
9460
|
palette: {
|
|
9361
9461
|
primary: primaryPalette,
|
|
9462
|
+
complementary: complementaryPalette,
|
|
9463
|
+
error: errorPalette,
|
|
9362
9464
|
success: successPalette,
|
|
9363
|
-
|
|
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";
|
|
@@ -9858,179 +9968,179 @@ import MuiButton2 from "@mui/material/Button";
|
|
|
9858
9968
|
import * as React21 from "react";
|
|
9859
9969
|
import MuiButton from "@mui/material/Button";
|
|
9860
9970
|
import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9861
|
-
var outlinedWhiteInherit = {
|
|
9862
|
-
border: `1px solid ${
|
|
9863
|
-
color:
|
|
9864
|
-
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,
|
|
9865
9975
|
":hover": {
|
|
9866
|
-
border: `1px solid ${
|
|
9867
|
-
backgroundColor:
|
|
9976
|
+
border: `1px solid ${theme2.palette.grey[100]}`,
|
|
9977
|
+
backgroundColor: theme2.palette.grey[100]
|
|
9868
9978
|
},
|
|
9869
9979
|
"&:active": {
|
|
9870
|
-
border: `1px solid ${
|
|
9871
|
-
backgroundColor: white
|
|
9980
|
+
border: `1px solid ${theme2.palette.grey[200]}`,
|
|
9981
|
+
backgroundColor: theme2.palette.common.white
|
|
9872
9982
|
},
|
|
9873
9983
|
":disabled": {
|
|
9874
|
-
color:
|
|
9984
|
+
color: theme2.palette.grey[400]
|
|
9875
9985
|
}
|
|
9876
|
-
};
|
|
9877
|
-
var textWhiteInherit = {
|
|
9878
|
-
color:
|
|
9986
|
+
});
|
|
9987
|
+
var textWhiteInherit = (theme2) => ({
|
|
9988
|
+
color: theme2.palette.grey[800],
|
|
9879
9989
|
backgroundColor: "transparent",
|
|
9880
9990
|
":hover": {
|
|
9881
|
-
color:
|
|
9882
|
-
backgroundColor:
|
|
9991
|
+
color: theme2.palette.grey[800],
|
|
9992
|
+
backgroundColor: theme2.palette.grey[50]
|
|
9883
9993
|
},
|
|
9884
9994
|
"&:active": {
|
|
9885
|
-
color:
|
|
9886
|
-
backgroundColor:
|
|
9995
|
+
color: theme2.palette.grey[800],
|
|
9996
|
+
backgroundColor: theme2.palette.grey[50]
|
|
9887
9997
|
},
|
|
9888
9998
|
":disabled": {
|
|
9889
|
-
color:
|
|
9999
|
+
color: theme2.palette.grey[400]
|
|
9890
10000
|
}
|
|
9891
|
-
};
|
|
9892
|
-
var outlinedWarning = {
|
|
9893
|
-
border: `1px solid ${
|
|
9894
|
-
color:
|
|
9895
|
-
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,
|
|
9896
10006
|
":hover": {
|
|
9897
|
-
border: `1px solid ${
|
|
9898
|
-
backgroundColor:
|
|
10007
|
+
border: `1px solid ${theme2.palette.error[900]}`,
|
|
10008
|
+
backgroundColor: theme2.palette.error[50]
|
|
9899
10009
|
},
|
|
9900
10010
|
"&:active": {
|
|
9901
|
-
border: `1px solid ${
|
|
9902
|
-
backgroundColor: white
|
|
10011
|
+
border: `1px solid ${theme2.palette.error[900]}`,
|
|
10012
|
+
backgroundColor: theme2.palette.common.white
|
|
9903
10013
|
},
|
|
9904
10014
|
":disabled": {
|
|
9905
|
-
color:
|
|
10015
|
+
color: theme2.palette.grey[400]
|
|
9906
10016
|
}
|
|
9907
|
-
};
|
|
9908
|
-
var textWarning = {
|
|
9909
|
-
color:
|
|
10017
|
+
});
|
|
10018
|
+
var textWarning = (theme2) => ({
|
|
10019
|
+
color: theme2.palette.error[900],
|
|
9910
10020
|
backgroundColor: "transparent",
|
|
9911
10021
|
":hover": {
|
|
9912
|
-
color:
|
|
9913
|
-
backgroundColor:
|
|
10022
|
+
color: theme2.palette.error[900],
|
|
10023
|
+
backgroundColor: theme2.palette.error[50]
|
|
9914
10024
|
},
|
|
9915
10025
|
"&:active": {
|
|
9916
|
-
color:
|
|
9917
|
-
backgroundColor:
|
|
10026
|
+
color: theme2.palette.error[900],
|
|
10027
|
+
backgroundColor: theme2.palette.error[50]
|
|
9918
10028
|
},
|
|
9919
10029
|
":disabled": {
|
|
9920
|
-
color:
|
|
10030
|
+
color: theme2.palette.grey[400]
|
|
9921
10031
|
}
|
|
9922
|
-
};
|
|
9923
|
-
var colorStyles2 = {
|
|
10032
|
+
});
|
|
10033
|
+
var colorStyles2 = (theme2) => ({
|
|
9924
10034
|
contained: {
|
|
9925
10035
|
primary: {},
|
|
9926
10036
|
inherit: {
|
|
9927
|
-
color:
|
|
9928
|
-
backgroundColor:
|
|
10037
|
+
color: theme2.palette.grey[800],
|
|
10038
|
+
backgroundColor: theme2.palette.grey[300],
|
|
9929
10039
|
":hover": {
|
|
9930
|
-
backgroundColor:
|
|
10040
|
+
backgroundColor: theme2.palette.grey[100]
|
|
9931
10041
|
},
|
|
9932
10042
|
"&:active": {
|
|
9933
|
-
backgroundColor:
|
|
10043
|
+
backgroundColor: theme2.palette.grey[300]
|
|
9934
10044
|
},
|
|
9935
10045
|
":disabled": {
|
|
9936
|
-
color:
|
|
10046
|
+
color: theme2.palette.grey[400]
|
|
9937
10047
|
}
|
|
9938
10048
|
},
|
|
9939
10049
|
white: {
|
|
9940
|
-
border: `1px solid ${
|
|
9941
|
-
color:
|
|
9942
|
-
backgroundColor: white,
|
|
10050
|
+
border: `1px solid ${theme2.palette.grey[200]}`,
|
|
10051
|
+
color: theme2.palette.grey[800],
|
|
10052
|
+
backgroundColor: theme2.palette.common.white,
|
|
9943
10053
|
":hover": {
|
|
9944
|
-
border: `1px solid ${
|
|
9945
|
-
backgroundColor:
|
|
10054
|
+
border: `1px solid ${theme2.palette.grey[300]}`,
|
|
10055
|
+
backgroundColor: theme2.palette.grey[100]
|
|
9946
10056
|
},
|
|
9947
10057
|
"&:active": {
|
|
9948
|
-
border: `1px solid ${
|
|
9949
|
-
backgroundColor:
|
|
10058
|
+
border: `1px solid ${theme2.palette.grey[300]}`,
|
|
10059
|
+
backgroundColor: theme2.palette.grey[200]
|
|
9950
10060
|
},
|
|
9951
10061
|
":disabled": {
|
|
9952
10062
|
border: "none",
|
|
9953
|
-
color:
|
|
9954
|
-
backgroundColor:
|
|
10063
|
+
color: theme2.palette.grey[400],
|
|
10064
|
+
backgroundColor: theme2.palette.grey[300]
|
|
9955
10065
|
}
|
|
9956
10066
|
},
|
|
9957
10067
|
warning: {
|
|
9958
|
-
color:
|
|
9959
|
-
backgroundColor:
|
|
10068
|
+
color: theme2.palette.error[900],
|
|
10069
|
+
backgroundColor: theme2.palette.error[900],
|
|
9960
10070
|
":hover": {
|
|
9961
|
-
backgroundColor:
|
|
10071
|
+
backgroundColor: theme2.palette.error[600]
|
|
9962
10072
|
},
|
|
9963
10073
|
"&:active": {
|
|
9964
|
-
backgroundColor:
|
|
10074
|
+
backgroundColor: theme2.palette.error[900]
|
|
9965
10075
|
}
|
|
9966
10076
|
}
|
|
9967
10077
|
},
|
|
9968
10078
|
outlined: {
|
|
9969
10079
|
primary: {},
|
|
9970
|
-
inherit: outlinedWhiteInherit,
|
|
9971
|
-
white: outlinedWhiteInherit,
|
|
9972
|
-
warning: outlinedWarning
|
|
10080
|
+
inherit: outlinedWhiteInherit(theme2),
|
|
10081
|
+
white: outlinedWhiteInherit(theme2),
|
|
10082
|
+
warning: outlinedWarning(theme2)
|
|
9973
10083
|
},
|
|
9974
10084
|
text: {
|
|
9975
10085
|
primary: {},
|
|
9976
|
-
inherit: textWhiteInherit,
|
|
9977
|
-
white: textWhiteInherit,
|
|
9978
|
-
warning: textWarning
|
|
10086
|
+
inherit: textWhiteInherit(theme2),
|
|
10087
|
+
white: textWhiteInherit(theme2),
|
|
10088
|
+
warning: textWarning(theme2)
|
|
9979
10089
|
}
|
|
9980
|
-
};
|
|
9981
|
-
var badgeColorStyles = (hover, disabled) => ({
|
|
10090
|
+
});
|
|
10091
|
+
var badgeColorStyles = (theme2, hover, disabled) => ({
|
|
9982
10092
|
contained: {
|
|
9983
10093
|
primary: {
|
|
9984
|
-
color: white,
|
|
9985
|
-
backgroundColor: disabled ?
|
|
10094
|
+
color: theme2.palette.common.white,
|
|
10095
|
+
backgroundColor: disabled ? theme2.palette.grey[500] : hover ? theme2.palette.primary[600] : theme2.palette.primary[800]
|
|
9986
10096
|
},
|
|
9987
10097
|
inherit: {
|
|
9988
|
-
color: disabled ? white :
|
|
9989
|
-
backgroundColor: hover ?
|
|
10098
|
+
color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10099
|
+
backgroundColor: hover ? theme2.palette.grey[500] : theme2.palette.grey[400]
|
|
9990
10100
|
},
|
|
9991
10101
|
white: {
|
|
9992
|
-
color: disabled || hover ? white :
|
|
9993
|
-
backgroundColor: disabled || hover ?
|
|
10102
|
+
color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10103
|
+
backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
|
|
9994
10104
|
},
|
|
9995
10105
|
warning: {
|
|
9996
|
-
color: disabled ? white :
|
|
9997
|
-
backgroundColor: disabled ?
|
|
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]
|
|
9998
10108
|
}
|
|
9999
10109
|
},
|
|
10000
10110
|
outlined: {
|
|
10001
10111
|
primary: {
|
|
10002
|
-
color: white,
|
|
10003
|
-
backgroundColor: disabled ?
|
|
10112
|
+
color: theme2.palette.common.white,
|
|
10113
|
+
backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.primary[600]
|
|
10004
10114
|
},
|
|
10005
10115
|
inherit: {
|
|
10006
|
-
color: disabled || hover ? white :
|
|
10007
|
-
backgroundColor: disabled || hover ?
|
|
10116
|
+
color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10117
|
+
backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
|
|
10008
10118
|
},
|
|
10009
10119
|
white: {
|
|
10010
|
-
color: disabled || hover ? white :
|
|
10011
|
-
backgroundColor: disabled || hover ?
|
|
10120
|
+
color: disabled || hover ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10121
|
+
backgroundColor: disabled || hover ? theme2.palette.grey[500] : theme2.palette.grey[200]
|
|
10012
10122
|
},
|
|
10013
10123
|
warning: {
|
|
10014
|
-
color: white,
|
|
10015
|
-
backgroundColor: disabled ?
|
|
10124
|
+
color: theme2.palette.common.white,
|
|
10125
|
+
backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.error[400]
|
|
10016
10126
|
}
|
|
10017
10127
|
},
|
|
10018
10128
|
text: {
|
|
10019
10129
|
primary: {
|
|
10020
|
-
color: white,
|
|
10021
|
-
backgroundColor: disabled ?
|
|
10130
|
+
color: theme2.palette.common.white,
|
|
10131
|
+
backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.primary[600]
|
|
10022
10132
|
},
|
|
10023
10133
|
inherit: {
|
|
10024
|
-
color: disabled ? white :
|
|
10025
|
-
backgroundColor: disabled ?
|
|
10134
|
+
color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10135
|
+
backgroundColor: disabled ? theme2.palette.grey[400] : theme2.palette.grey[200]
|
|
10026
10136
|
},
|
|
10027
10137
|
white: {
|
|
10028
|
-
color: disabled ? white :
|
|
10029
|
-
backgroundColor: disabled ?
|
|
10138
|
+
color: disabled ? theme2.palette.common.white : theme2.palette.grey[800],
|
|
10139
|
+
backgroundColor: disabled ? theme2.palette.grey[400] : theme2.palette.grey[200]
|
|
10030
10140
|
},
|
|
10031
10141
|
warning: {
|
|
10032
|
-
color: white,
|
|
10033
|
-
backgroundColor: disabled ?
|
|
10142
|
+
color: theme2.palette.common.white,
|
|
10143
|
+
backgroundColor: disabled ? theme2.palette.grey[500] : theme2.palette.error[400]
|
|
10034
10144
|
}
|
|
10035
10145
|
}
|
|
10036
10146
|
});
|
|
@@ -10065,15 +10175,16 @@ var Button = React21.forwardRef(function Button2({
|
|
|
10065
10175
|
link,
|
|
10066
10176
|
...props
|
|
10067
10177
|
}, ref) {
|
|
10178
|
+
const theme2 = useCustomTheme();
|
|
10068
10179
|
const [isHover, setHover] = React21.useState(false);
|
|
10069
10180
|
const icon = iconId ? /* @__PURE__ */ jsx39(Icon_default, { size: iconSize, id: iconId }) : specificIcon || void 0;
|
|
10070
10181
|
const iconProp = iconEnd ? { endIcon: icon } : { startIcon: icon };
|
|
10071
|
-
const colorStyle = colorStyles2[variant][color2];
|
|
10182
|
+
const colorStyle = colorStyles2(theme2)[variant][color2];
|
|
10072
10183
|
const sizeStyle = sizeStyles2[size];
|
|
10073
10184
|
const styleVars = {
|
|
10074
10185
|
"--border": variant === "outlined" ? "1px" : "0px"
|
|
10075
10186
|
};
|
|
10076
|
-
const badgeColor = badgeColorStyles(isHover, props.disabled)[variant][color2];
|
|
10187
|
+
const badgeColor = badgeColorStyles(theme2, isHover, props.disabled)[variant][color2];
|
|
10077
10188
|
const getBadge = () => /* @__PURE__ */ jsx39(
|
|
10078
10189
|
Typography_default,
|
|
10079
10190
|
{
|
|
@@ -10210,10 +10321,11 @@ var ButtonWithActions = React23.forwardRef(function ButtonWithActions2({
|
|
|
10210
10321
|
size: buttonSize,
|
|
10211
10322
|
...buttonProps
|
|
10212
10323
|
}, ref) {
|
|
10324
|
+
const theme2 = useCustomTheme();
|
|
10213
10325
|
const size = buttonSize || "M";
|
|
10214
10326
|
const variant = buttonProps.variant || "contained";
|
|
10215
10327
|
const color2 = buttonProps.color || "primary";
|
|
10216
|
-
const colorStyle = colorStyles2[variant][color2];
|
|
10328
|
+
const colorStyle = colorStyles2(theme2)[variant][color2];
|
|
10217
10329
|
const sizeStyle = sizeStyles3[size];
|
|
10218
10330
|
const disabled = buttonProps.disabled;
|
|
10219
10331
|
const [buttonId] = React23.useState(
|
|
@@ -12293,7 +12405,7 @@ import * as React32 from "react";
|
|
|
12293
12405
|
import { createRoot as createRoot2 } from "react-dom/client";
|
|
12294
12406
|
import ReactEChartsCore2 from "echarts-for-react/lib/core";
|
|
12295
12407
|
import * as echarts3 from "echarts/core";
|
|
12296
|
-
import { ThemeProvider, useTheme as
|
|
12408
|
+
import { ThemeProvider, useTheme as useTheme4 } from "@mui/material/styles";
|
|
12297
12409
|
import { jsx as jsx68, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12298
12410
|
var LineChart2 = ({
|
|
12299
12411
|
style: style3,
|
|
@@ -12317,7 +12429,7 @@ var LineChart2 = ({
|
|
|
12317
12429
|
chartRef,
|
|
12318
12430
|
gridMargin
|
|
12319
12431
|
}) => {
|
|
12320
|
-
const theme2 =
|
|
12432
|
+
const theme2 = useTheme4();
|
|
12321
12433
|
const cursor2 = onClick ? "pointer" : "default";
|
|
12322
12434
|
const silent = onClick ? false : true;
|
|
12323
12435
|
const isComparing = series.some(
|
|
@@ -18354,10 +18466,7 @@ var severityColors = {
|
|
|
18354
18466
|
var StyledLabel = styled4("label", {
|
|
18355
18467
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
18356
18468
|
})(
|
|
18357
|
-
({
|
|
18358
|
-
severity,
|
|
18359
|
-
theme: theme2
|
|
18360
|
-
}) => theme2.unstable_sx({
|
|
18469
|
+
({ severity, theme: theme2 }) => theme2.unstable_sx({
|
|
18361
18470
|
display: "block",
|
|
18362
18471
|
padding: "4px 0",
|
|
18363
18472
|
...variants["caption"],
|
|
@@ -18405,10 +18514,7 @@ var severityColors2 = {
|
|
|
18405
18514
|
var StyledDiv = styled5("div", {
|
|
18406
18515
|
shouldForwardProp: (prop) => prop !== "severity"
|
|
18407
18516
|
})(
|
|
18408
|
-
({
|
|
18409
|
-
severity,
|
|
18410
|
-
theme: theme2
|
|
18411
|
-
}) => theme2.unstable_sx({
|
|
18517
|
+
({ severity, theme: theme2 }) => theme2.unstable_sx({
|
|
18412
18518
|
padding: "4px 8px",
|
|
18413
18519
|
...variants["caption"],
|
|
18414
18520
|
color: severityColors2[severity]
|
|
@@ -18850,7 +18956,7 @@ import { tz as tz2 } from "moment-timezone";
|
|
|
18850
18956
|
import { lighten as lighten2 } from "@mui/material";
|
|
18851
18957
|
|
|
18852
18958
|
// src/components/input/CalendarDay.tsx
|
|
18853
|
-
import { useTheme as
|
|
18959
|
+
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
18854
18960
|
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
18855
18961
|
var calendarDayButtonSize = 32;
|
|
18856
18962
|
var CalendarDayButton = styled_default("button")({});
|
|
@@ -18868,7 +18974,7 @@ var CalendarDay = ({
|
|
|
18868
18974
|
},
|
|
18869
18975
|
allowKeyboardNavigation = false
|
|
18870
18976
|
}) => {
|
|
18871
|
-
const theme2 =
|
|
18977
|
+
const theme2 = useTheme5();
|
|
18872
18978
|
return /* @__PURE__ */ jsx102(
|
|
18873
18979
|
CalendarDayButton,
|
|
18874
18980
|
{
|
package/dist/theme/Colors.d.ts
CHANGED
|
@@ -69,7 +69,6 @@ export declare const blueGrey400 = "#646D7A";
|
|
|
69
69
|
export declare const blueGrey500 = "#495362";
|
|
70
70
|
export declare const blueGrey700 = "#414A58";
|
|
71
71
|
export declare const blueGrey800 = "#383F4C";
|
|
72
|
-
export declare const blueGreyOpacity05 = "rgba(65, 74, 88, 0.05)";
|
|
73
72
|
export declare const lightGreen = "#599D7D";
|
|
74
73
|
export declare const darkGreen = "#487F65";
|
|
75
74
|
export declare const dark500 = "#7F8BA8";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Palette, PaletteOptions } from '@mui/material/styles';
|
|
2
|
+
import { CustomPaletteColor, CustomPaletteColorOptions } from './CustomPaletteColor';
|
|
3
|
+
import { CustomPaletteCommon, CustomPaletteCommonOptions } from './CustomPaletteCommon';
|
|
4
|
+
export interface CustomPalette extends Palette {
|
|
5
|
+
primary: CustomPaletteColor;
|
|
6
|
+
complementary: CustomPaletteColor;
|
|
7
|
+
error: CustomPaletteColor;
|
|
8
|
+
success: CustomPaletteColor;
|
|
9
|
+
grey: CustomPaletteColor;
|
|
10
|
+
common: CustomPaletteCommon;
|
|
11
|
+
blueGrey: CustomPaletteColor;
|
|
12
|
+
green: CustomPaletteColor;
|
|
13
|
+
dark: CustomPaletteColor;
|
|
14
|
+
electricLavender: CustomPaletteColor;
|
|
15
|
+
cornflowerBlue: CustomPaletteColor;
|
|
16
|
+
}
|
|
17
|
+
export interface CustomPaletteOptions extends PaletteOptions {
|
|
18
|
+
primary?: CustomPaletteColorOptions;
|
|
19
|
+
complementary?: CustomPaletteColorOptions;
|
|
20
|
+
error?: CustomPaletteColorOptions;
|
|
21
|
+
success?: CustomPaletteColorOptions;
|
|
22
|
+
grey?: CustomPaletteColorOptions;
|
|
23
|
+
common?: CustomPaletteCommonOptions;
|
|
24
|
+
blueGrey?: CustomPaletteColorOptions;
|
|
25
|
+
green?: CustomPaletteColorOptions;
|
|
26
|
+
dark?: CustomPaletteColorOptions;
|
|
27
|
+
electricLavender?: CustomPaletteColorOptions;
|
|
28
|
+
cornflowerBlue?: CustomPaletteColorOptions;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Color, PaletteColor } from '@mui/material/styles';
|
|
2
|
+
export interface CustomPaletteColor extends PaletteColor, Color {
|
|
3
|
+
25?: string;
|
|
4
|
+
opacity32?: string;
|
|
5
|
+
alpha32?: string;
|
|
6
|
+
alpha64?: string;
|
|
7
|
+
}
|
|
8
|
+
export type CustomPaletteColorOptions = Partial<CustomPaletteColor> & {
|
|
9
|
+
main: string;
|
|
10
|
+
};
|