pcm-shared-components 0.0.36 → 0.0.39

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.
@@ -33,10 +33,10 @@ const useStyles = makeStyles(() => ({
33
33
  Icon: {
34
34
  width: ({
35
35
  iconSize
36
- }) => iconSize,
36
+ }) => `${iconSize}px !important`,
37
37
  height: ({
38
38
  iconSize
39
- }) => iconSize,
39
+ }) => `${iconSize}px !important`,
40
40
  marginTop: 'auto',
41
41
  marginBottom: 'auto'
42
42
  }
@@ -83,7 +83,7 @@ export default /*#__PURE__*/memo(CustomFab);
83
83
  CustomFab.defaultProps = {
84
84
  onClick: () => {},
85
85
  Icon: MoreVertIcon,
86
- iconSize: 32,
86
+ iconSize: 24,
87
87
  iconLocation: 'left',
88
88
  buttonText: '',
89
89
  variant: 'circular',
@@ -8,7 +8,8 @@ export const HelpButton = props => {
8
8
  className,
9
9
  color,
10
10
  tooltipText,
11
- size
11
+ size,
12
+ iconSize
12
13
  } = props;
13
14
  return /*#__PURE__*/React.createElement(CustomFab, {
14
15
  className: className,
@@ -16,6 +17,7 @@ export const HelpButton = props => {
16
17
  tooltipText: tooltipText,
17
18
  color: color,
18
19
  size: size,
20
+ iconSize: iconSize,
19
21
  variant: 'round',
20
22
  onClick: () => {
21
23
  window.open(onClickLink, "_blank");
@@ -28,7 +30,8 @@ HelpButton.defaultProps = {
28
30
  className: '',
29
31
  color: 'primary',
30
32
  tooltipText: '',
31
- size: 'large'
33
+ size: 'large',
34
+ iconSize: 24
32
35
  };
33
36
  HelpButton.propTypes = {
34
37
  /** On click link, it's the URL to navigate too */
@@ -43,6 +46,9 @@ HelpButton.propTypes = {
43
46
  /** Just a tooltip text */
44
47
  tooltipText: PropTypes.string,
45
48
 
46
- /** The size of the Icon ['small','medium','large'] */
49
+ /** The size of the Icon in pixel*/
50
+ iconSize: PropTypes.number,
51
+
52
+ /** The size of the button ['small','medium','large'] */
47
53
  size: PropTypes.oneOf(['small', 'medium', 'large'])
48
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.36",
3
+ "version": "0.0.39",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {