@evergis/uilib-gl 1.0.49 → 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,6 +78,7 @@ 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;
83
84
  hoverColor: IVariants;
@@ -9717,7 +9717,8 @@ const createTheme = _ref => {
9717
9717
  hoverColor: createVariants(palette.textPrimary, palette.primary, palette.secondary, palette.error),
9718
9718
  activeBackgroundColor: palette.elementDeep,
9719
9719
  activeColor: createVariants(palette.textPrimary, palette.primary, palette.secondary, palette.error),
9720
- disabledColor: palette.textDisabled
9720
+ disabledColor: palette.textDisabled,
9721
+ disabledBackgroundColor: "none"
9721
9722
  },
9722
9723
 
9723
9724
  /**
@@ -10996,83 +10997,91 @@ const FlatButton = /*#__PURE__*/styled(BaseButton)`
10996
10997
  }
10997
10998
  } = _ref8;
10998
10999
  return flatButton.disabledColor;
11000
+ }};
11001
+ background-color: ${_ref9 => {
11002
+ let {
11003
+ theme: {
11004
+ flatButton
11005
+ }
11006
+ } = _ref9;
11007
+ return flatButton.disabledBackgroundColor;
10999
11008
  }};
11000
11009
  }
11001
11010
  `;
11002
11011
  const RaisedButton = /*#__PURE__*/styled(BaseButton)`
11003
- color: ${_ref9 => {
11012
+ color: ${_ref10 => {
11004
11013
  let {
11005
11014
  theme: {
11006
11015
  raisedButton
11007
11016
  },
11008
11017
  ...props
11009
- } = _ref9;
11018
+ } = _ref10;
11010
11019
  return raisedButton.color[getVariant(props)];
11011
11020
  }};
11012
- background-color: ${_ref10 => {
11021
+ background-color: ${_ref11 => {
11013
11022
  let {
11014
11023
  theme: {
11015
11024
  raisedButton
11016
11025
  },
11017
11026
  ...props
11018
- } = _ref10;
11027
+ } = _ref11;
11019
11028
  return raisedButton.backgroundColor[getVariant(props)];
11020
11029
  }};
11021
- box-shadow: ${_ref11 => {
11030
+ box-shadow: ${_ref12 => {
11022
11031
  let {
11023
11032
  theme: {
11024
11033
  shadows
11025
11034
  }
11026
- } = _ref11;
11035
+ } = _ref12;
11027
11036
  return shadows.normal;
11028
11037
  }};
11029
11038
 
11030
11039
  &:hover {
11031
- color: ${_ref12 => {
11040
+ color: ${_ref13 => {
11032
11041
  let {
11033
11042
  theme: {
11034
11043
  raisedButton
11035
11044
  },
11036
11045
  ...props
11037
- } = _ref12;
11046
+ } = _ref13;
11038
11047
  return raisedButton.hoverColor[getVariant(props)];
11039
11048
  }};
11040
- background-color: ${_ref13 => {
11049
+ background-color: ${_ref14 => {
11041
11050
  let {
11042
11051
  theme: {
11043
11052
  raisedButton
11044
11053
  },
11045
11054
  ...props
11046
- } = _ref13;
11055
+ } = _ref14;
11047
11056
  return raisedButton.hoverBackgroundColor[getVariant(props)];
11048
11057
  }};
11049
11058
  }
11050
11059
 
11051
11060
  &:active {
11052
- color: ${_ref14 => {
11061
+ color: ${_ref15 => {
11053
11062
  let {
11054
11063
  theme: {
11055
11064
  raisedButton
11056
11065
  },
11057
11066
  ...props
11058
- } = _ref14;
11067
+ } = _ref15;
11059
11068
  return raisedButton.activeColor[getVariant(props)];
11060
11069
  }};
11061
- background-color: ${_ref15 => {
11070
+ background-color: ${_ref16 => {
11062
11071
  let {
11063
11072
  theme: {
11064
11073
  raisedButton
11065
11074
  },
11066
11075
  ...props
11067
- } = _ref15;
11076
+ } = _ref16;
11068
11077
  return raisedButton.activeBackgroundColor[getVariant(props)];
11069
11078
  }};
11070
- box-shadow: ${_ref16 => {
11079
+ box-shadow: ${_ref17 => {
11071
11080
  let {
11072
11081
  theme: {
11073
11082
  shadows
11074
11083
  }
11075
- } = _ref16;
11084
+ } = _ref17;
11076
11085
  return shadows.pressed;
11077
11086
  }};
11078
11087
  }
@@ -11080,20 +11089,20 @@ const RaisedButton = /*#__PURE__*/styled(BaseButton)`
11080
11089
  &[disabled] {
11081
11090
  pointer-events: none;
11082
11091
  box-shadow: none;
11083
- color: ${_ref17 => {
11092
+ color: ${_ref18 => {
11084
11093
  let {
11085
11094
  theme: {
11086
11095
  raisedButton
11087
11096
  }
11088
- } = _ref17;
11097
+ } = _ref18;
11089
11098
  return raisedButton.disabledColor;
11090
11099
  }};
11091
- background-color: ${_ref18 => {
11100
+ background-color: ${_ref19 => {
11092
11101
  let {
11093
11102
  theme: {
11094
11103
  raisedButton
11095
11104
  }
11096
- } = _ref18;
11105
+ } = _ref19;
11097
11106
  return raisedButton.disabledBackgroundColor;
11098
11107
  }};
11099
11108
  }