pcm-shared-components 0.0.31 → 0.0.32

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.
@@ -6,6 +6,10 @@ import Tooltip from '@mui/material/Tooltip';
6
6
  import clsx from 'clsx';
7
7
  import '../../../styles/tailwind.css';
8
8
  import MoreVertIcon from '@mui/icons-material/MoreVert';
9
+ import { ThemeProvider } from '@mui/system';
10
+ import { createTheme } from '@mui/material/styles';
11
+ import { theme } from '../../Theme/theme';
12
+ const defaultTheme = createTheme(theme.pitchCamp);
9
13
  const useStyles = makeStyles(() => ({
10
14
  rootFabElement: {
11
15
  margin: 2,
@@ -43,7 +47,9 @@ const CustomFab = props => {
43
47
  iconLocation
44
48
  } = props;
45
49
  const classes = useStyles(props);
46
- return /*#__PURE__*/React.createElement(Tooltip, {
50
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
51
+ theme: defaultTheme
52
+ }, /*#__PURE__*/React.createElement(Tooltip, {
47
53
  title: tooltipText,
48
54
  disableHoverListener: tooltipText && tooltipText.length === 0 ? true : false
49
55
  }, /*#__PURE__*/React.createElement(Fab, {
@@ -57,7 +63,7 @@ const CustomFab = props => {
57
63
  className: `flex ${iconLocation === 'left' ? 'flex-row' : 'flex-row-reverse'}`
58
64
  }, Icon && /*#__PURE__*/React.createElement(Icon, null), buttonText && buttonText.length > 0 && /*#__PURE__*/React.createElement("div", {
59
65
  className: "mx-6"
60
- }, " ", buttonText))));
66
+ }, " ", buttonText)))));
61
67
  };
62
68
 
63
69
  export default /*#__PURE__*/memo(CustomFab);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {