@evergis/uilib-gl 1.0.48 → 1.0.50

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.
@@ -78,15 +78,20 @@ export interface IColorOrMono {
78
78
  export interface IFlatButton {
79
79
  color: IVariants;
80
80
  disabledColor: string;
81
+ disabledBackgroundColor: string;
81
82
  backgroundColor: string;
82
83
  hoverBackgroundColor: string;
84
+ hoverColor: IVariants;
85
+ activeColor: IVariants;
83
86
  activeBackgroundColor: string;
84
87
  }
85
88
  export interface IRaisedButton {
86
89
  color: IVariants;
87
90
  backgroundColor: IVariants;
88
91
  hoverBackgroundColor: IVariants;
92
+ hoverColor: IVariants;
89
93
  activeBackgroundColor: IVariants;
94
+ activeColor: IVariants;
90
95
  disabledColor: string;
91
96
  disabledBackgroundColor: string;
92
97
  boxShadow: string;
@@ -9714,8 +9714,11 @@ const createTheme = _ref => {
9714
9714
  color: createVariants(palette.textPrimary, palette.primary, palette.secondary, palette.error),
9715
9715
  backgroundColor: palette.background,
9716
9716
  hoverBackgroundColor: palette.elementDark,
9717
+ hoverColor: createVariants(palette.textPrimary, palette.primary, palette.secondary, palette.error),
9717
9718
  activeBackgroundColor: palette.elementDeep,
9718
- disabledColor: palette.textDisabled
9719
+ activeColor: createVariants(palette.textPrimary, palette.primary, palette.secondary, palette.error),
9720
+ disabledColor: palette.textDisabled,
9721
+ disabledBackgroundColor: "none"
9719
9722
  },
9720
9723
 
9721
9724
  /**
@@ -9725,7 +9728,9 @@ const createTheme = _ref => {
9725
9728
  color: createVariants(palette.textPrimary, palette.textContrast),
9726
9729
  backgroundColor: createVariants(palette.element, palette.primary, palette.secondary, palette.error),
9727
9730
  hoverBackgroundColor: createVariants(palette.elementDark, palette.primaryDark, palette.secondaryDark, palette.errorDark),
9731
+ hoverColor: createVariants(palette.textPrimary, palette.textContrast),
9728
9732
  activeBackgroundColor: createVariants(palette.elementDeep, palette.primaryDeep, palette.secondaryDeep, palette.errorDeep),
9733
+ activeColor: createVariants(palette.textPrimary, palette.textContrast),
9729
9734
  boxShadow: shadows.normal,
9730
9735
  activeBoxShadow: shadows.pressed,
9731
9736
  disabledColor: palette.textDisabled,
@@ -10945,94 +10950,138 @@ const FlatButton = /*#__PURE__*/styled(BaseButton)`
10945
10950
  }};
10946
10951
 
10947
10952
  &:hover {
10948
- background-color: ${_ref4 => {
10953
+ color: ${_ref4 => {
10949
10954
  let {
10950
10955
  theme: {
10951
10956
  flatButton
10952
- }
10957
+ },
10958
+ ...props
10953
10959
  } = _ref4;
10960
+ return flatButton.hoverColor[getVariant(props)];
10961
+ }};
10962
+ background-color: ${_ref5 => {
10963
+ let {
10964
+ theme: {
10965
+ flatButton
10966
+ }
10967
+ } = _ref5;
10954
10968
  return flatButton.hoverBackgroundColor;
10955
10969
  }};
10956
10970
  }
10957
10971
 
10958
10972
  &:active {
10959
- background-color: ${_ref5 => {
10973
+ color: ${_ref6 => {
10974
+ let {
10975
+ theme: {
10976
+ flatButton
10977
+ },
10978
+ ...props
10979
+ } = _ref6;
10980
+ return flatButton.activeColor[getVariant(props)];
10981
+ }};
10982
+ background-color: ${_ref7 => {
10960
10983
  let {
10961
10984
  theme: {
10962
10985
  flatButton
10963
10986
  }
10964
- } = _ref5;
10987
+ } = _ref7;
10965
10988
  return flatButton.activeBackgroundColor;
10966
10989
  }};
10967
10990
  }
10968
10991
 
10969
10992
  &[disabled] {
10970
- color: ${_ref6 => {
10993
+ color: ${_ref8 => {
10971
10994
  let {
10972
10995
  theme: {
10973
10996
  flatButton
10974
10997
  }
10975
- } = _ref6;
10998
+ } = _ref8;
10976
10999
  return flatButton.disabledColor;
11000
+ }};
11001
+ background-color: ${_ref9 => {
11002
+ let {
11003
+ theme: {
11004
+ flatButton
11005
+ }
11006
+ } = _ref9;
11007
+ return flatButton.disabledBackgroundColor;
10977
11008
  }};
10978
11009
  }
10979
11010
  `;
10980
11011
  const RaisedButton = /*#__PURE__*/styled(BaseButton)`
10981
- color: ${_ref7 => {
11012
+ color: ${_ref10 => {
10982
11013
  let {
10983
11014
  theme: {
10984
11015
  raisedButton
10985
11016
  },
10986
11017
  ...props
10987
- } = _ref7;
11018
+ } = _ref10;
10988
11019
  return raisedButton.color[getVariant(props)];
10989
11020
  }};
10990
- background-color: ${_ref8 => {
11021
+ background-color: ${_ref11 => {
10991
11022
  let {
10992
11023
  theme: {
10993
11024
  raisedButton
10994
11025
  },
10995
11026
  ...props
10996
- } = _ref8;
11027
+ } = _ref11;
10997
11028
  return raisedButton.backgroundColor[getVariant(props)];
10998
11029
  }};
10999
- box-shadow: ${_ref9 => {
11030
+ box-shadow: ${_ref12 => {
11000
11031
  let {
11001
11032
  theme: {
11002
11033
  shadows
11003
11034
  }
11004
- } = _ref9;
11035
+ } = _ref12;
11005
11036
  return shadows.normal;
11006
11037
  }};
11007
11038
 
11008
11039
  &:hover {
11009
- background-color: ${_ref10 => {
11040
+ color: ${_ref13 => {
11010
11041
  let {
11011
11042
  theme: {
11012
11043
  raisedButton
11013
11044
  },
11014
11045
  ...props
11015
- } = _ref10;
11046
+ } = _ref13;
11047
+ return raisedButton.hoverColor[getVariant(props)];
11048
+ }};
11049
+ background-color: ${_ref14 => {
11050
+ let {
11051
+ theme: {
11052
+ raisedButton
11053
+ },
11054
+ ...props
11055
+ } = _ref14;
11016
11056
  return raisedButton.hoverBackgroundColor[getVariant(props)];
11017
11057
  }};
11018
11058
  }
11019
11059
 
11020
11060
  &:active {
11021
- background-color: ${_ref11 => {
11061
+ color: ${_ref15 => {
11022
11062
  let {
11023
11063
  theme: {
11024
11064
  raisedButton
11025
11065
  },
11026
11066
  ...props
11027
- } = _ref11;
11067
+ } = _ref15;
11068
+ return raisedButton.activeColor[getVariant(props)];
11069
+ }};
11070
+ background-color: ${_ref16 => {
11071
+ let {
11072
+ theme: {
11073
+ raisedButton
11074
+ },
11075
+ ...props
11076
+ } = _ref16;
11028
11077
  return raisedButton.activeBackgroundColor[getVariant(props)];
11029
11078
  }};
11030
- box-shadow: ${_ref12 => {
11079
+ box-shadow: ${_ref17 => {
11031
11080
  let {
11032
11081
  theme: {
11033
11082
  shadows
11034
11083
  }
11035
- } = _ref12;
11084
+ } = _ref17;
11036
11085
  return shadows.pressed;
11037
11086
  }};
11038
11087
  }
@@ -11040,20 +11089,20 @@ const RaisedButton = /*#__PURE__*/styled(BaseButton)`
11040
11089
  &[disabled] {
11041
11090
  pointer-events: none;
11042
11091
  box-shadow: none;
11043
- color: ${_ref13 => {
11092
+ color: ${_ref18 => {
11044
11093
  let {
11045
11094
  theme: {
11046
11095
  raisedButton
11047
11096
  }
11048
- } = _ref13;
11097
+ } = _ref18;
11049
11098
  return raisedButton.disabledColor;
11050
11099
  }};
11051
- background-color: ${_ref14 => {
11100
+ background-color: ${_ref19 => {
11052
11101
  let {
11053
11102
  theme: {
11054
11103
  raisedButton
11055
11104
  }
11056
- } = _ref14;
11105
+ } = _ref19;
11057
11106
  return raisedButton.disabledBackgroundColor;
11058
11107
  }};
11059
11108
  }