@tap-payments/os-micro-frontend-shared 0.1.271-test.1 → 0.1.271-test.10
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,3 +1,10 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
1
2
|
import type { TooltipProps } from '@mui/material/Tooltip';
|
|
2
|
-
|
|
3
|
+
interface Props extends Omit<TooltipProps, 'children'> {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
placement?: TooltipProps['placement'];
|
|
6
|
+
children?: ReactElement;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Tooltip({ className, title, placement, children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
10
|
export default Tooltip;
|
|
@@ -10,9 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Box from '@mui/material/Box';
|
|
13
14
|
import { StyledTooltip } from './styles';
|
|
14
15
|
function Tooltip(_a) {
|
|
15
|
-
var { className, placement = 'top', children } = _a, rest = __rest(_a, ["className", "placement", "children"]);
|
|
16
|
-
return (_jsx(StyledTooltip, Object.assign({ classes: { popper: className }, placement: placement, arrow: true }, rest, { children: children })));
|
|
16
|
+
var { className, title, placement = 'top', children } = _a, rest = __rest(_a, ["className", "title", "placement", "children"]);
|
|
17
|
+
return (_jsx(StyledTooltip, Object.assign({ classes: { popper: className }, title: title, placement: placement, arrow: true }, rest, { children: _jsx(Box, Object.assign({ display: "flex" }, { children: children })) })));
|
|
17
18
|
}
|
|
18
19
|
export default Tooltip;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { TooltipProps } from '@mui/material/Tooltip';
|
|
2
|
+
export declare const StyledTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
13
|
import { styled } from '@mui/material/styles';
|
|
2
14
|
import TooltipComponent, { tooltipClasses } from '@mui/material/Tooltip';
|
|
3
|
-
export const StyledTooltip = styled(
|
|
15
|
+
export const StyledTooltip = styled((_a) => {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return _jsx(TooltipComponent, Object.assign({}, props, { classes: { popper: className } }));
|
|
18
|
+
})(({ theme }) => ({
|
|
4
19
|
zIndex: 999999,
|
|
5
20
|
[`& .${tooltipClasses.arrow}`]: {
|
|
6
21
|
'&:before': {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.271-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.271-test.10",
|
|
5
|
+
"testVersion": 10,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|