react-asc 18.8.6 → 18.8.7

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.
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { COLOR } from '../component.enums';
2
3
  export interface ISpeedDialActionProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
4
  icon: React.SVGProps<SVGSVGElement>;
4
5
  tooltipTitle?: string;
6
+ color?: COLOR;
5
7
  onClick?: (e: React.MouseEvent) => void;
6
8
  }
7
9
  export declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;
package/index.es.js CHANGED
@@ -1979,14 +1979,14 @@ var styles$a = {"speedDialAction":"SpeedDialAction-module_speedDialAction__qmExs
1979
1979
  styleInject(css_248z$a);
1980
1980
 
1981
1981
  const SpeedDialAction = (props) => {
1982
- const { icon, onClick, className } = props;
1982
+ const { icon, color = COLOR.light, onClick, className } = props;
1983
1983
  const getCssClasses = () => {
1984
1984
  const cssClasses = [];
1985
1985
  cssClasses.push(styles$a.speedDialAction);
1986
1986
  className && cssClasses.push(className);
1987
1987
  return cssClasses.filter(css => css).join(' ');
1988
1988
  };
1989
- return (React.createElement(IconButton, { className: getCssClasses(), icon: icon, color: COLOR.light, shadow: true, onClick: onClick }));
1989
+ return (React.createElement(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: VARIANT.contained, shadow: true, onClick: onClick }));
1990
1990
  };
1991
1991
 
1992
1992
  const SpeedDialIcon = (props) => {