@terraware/web-components 3.6.1 → 3.7.0

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,8 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SxProps, TooltipProps } from '@mui/material';
3
- type CustomTooltipProps = TooltipProps & {
4
- sx?: SxProps;
5
- };
6
- export default function Tooltip({ placement, sx, title, children }: CustomTooltipProps): JSX.Element;
7
- export {};
2
+ import { TooltipProps } from '@mui/material';
3
+ export default function Tooltip({ children, placement, slotProps, sx, title, }: TooltipProps): JSX.Element;
8
4
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAyB,OAAO,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AAIvF,KAAK,kBAAkB,GAAG,YAAY,GAAG;IACvC,EAAE,CAAC,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAuB,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CA4CjH"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAyB,YAAY,EAAY,MAAM,eAAe,CAAC;AAI9E,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,QAAQ,EACR,SAAuB,EACvB,SAAS,EACT,EAAE,EACF,KAAK,GACN,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CA6C5B"}
@@ -10,10 +10,11 @@ var _material = require("@mui/material");
10
10
  var _utils = require("../../utils");
11
11
  function Tooltip(_ref) {
12
12
  let {
13
+ children,
13
14
  placement = 'top-start',
15
+ slotProps,
14
16
  sx,
15
- title,
16
- children
17
+ title
17
18
  } = _ref;
18
19
  const [open, setOpen] = _react.default.useState(false);
19
20
  const {
@@ -34,6 +35,7 @@ function Tooltip(_ref) {
34
35
  onClose: handleTooltipClose,
35
36
  open: open,
36
37
  placement: placement,
38
+ slotProps: slotProps,
37
39
  sx: [{
38
40
  maxWidth: isMobile ? '342px' : '464px',
39
41
  '& .MuiTooltip-arrow': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terraware/web-components",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "author": "Terraformation Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {