@apify/ui-library 1.92.1-featimprovetooltip-7e1224.32 → 1.92.1-featimprovetooltip-7e1224.84
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.
- package/dist/src/components/floating/floating_component_base.d.ts +0 -1
- package/dist/src/components/floating/floating_component_base.d.ts.map +1 -1
- package/dist/src/components/floating/floating_component_base.js +27 -69
- package/dist/src/components/floating/floating_component_base.js.map +1 -1
- package/dist/src/components/floating/tooltip.d.ts +8 -2
- package/dist/src/components/floating/tooltip.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip.js +15 -5
- package/dist/src/components/floating/tooltip.js.map +1 -1
- package/dist/src/components/floating/tooltip_content.d.ts +3 -3
- package/dist/src/components/floating/tooltip_content.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip_content.js +22 -8
- package/dist/src/components/floating/tooltip_content.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/floating/floating_component_base.tsx +29 -93
- package/src/components/floating/tooltip.stories.jsx +15 -13
- package/src/components/floating/tooltip.tsx +35 -9
- package/src/components/floating/tooltip_content.tsx +37 -14
- package/src/components/shortcut.stories.jsx +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating_component_base.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"floating_component_base.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQH,KAAK,QAAQ,EAGhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,aAAa,EAAmD,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK5H,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAarB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAU3F,MAAM,WAAW,0BAA0B;IACvC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AA4CD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,mKAa/B,0BAA0B,4CA6E5B,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { autoPlacement, autoUpdate, flip, FloatingPortal, hide, offset, shift, useFloating, useTransitionStyles, } from '@floating-ui/react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { forwardRef
|
|
5
|
-
import styled
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
7
|
export const classNames = {
|
|
8
|
-
ARROW: 'FloatingComponent-arrow',
|
|
9
8
|
CHILDREN: 'FloatingComponent-children',
|
|
10
9
|
};
|
|
11
10
|
export const FLOATING_PLACEMENT = {
|
|
@@ -22,26 +21,7 @@ export const FLOATING_PLACEMENT = {
|
|
|
22
21
|
LEFT_START: 'left-start',
|
|
23
22
|
LEFT_END: 'left-end',
|
|
24
23
|
};
|
|
25
|
-
const fadeIn = keyframes `
|
|
26
|
-
from {
|
|
27
|
-
opacity: 0;
|
|
28
|
-
}
|
|
29
|
-
to {
|
|
30
|
-
opacity: 1;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
const FadeIn = styled.div `
|
|
34
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
35
|
-
animation-name: ${fadeIn};
|
|
36
|
-
animation-fill-mode: backwards;
|
|
37
|
-
animation-duration: ${(props) => `${props.duration || 240}ms`};
|
|
38
|
-
animation-delay: ${(props) => `${props.delay || 0}ms`};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
min-height: ${({ $minHeight }) => $minHeight || 'unset'};
|
|
42
|
-
`;
|
|
43
24
|
const FloatingComponentWrapStyled = styled.span `
|
|
44
|
-
box-shadow: ${theme.shadow.shadow2};
|
|
45
25
|
padding: ${theme.space.space16};
|
|
46
26
|
${theme.typography.shared.mobile.bodyM};
|
|
47
27
|
border-radius: 0.8rem;
|
|
@@ -49,17 +29,6 @@ const FloatingComponentWrapStyled = styled.span `
|
|
|
49
29
|
white-space: normal;
|
|
50
30
|
word-break: break-word;
|
|
51
31
|
cursor: default;
|
|
52
|
-
text-align: left;
|
|
53
|
-
|
|
54
|
-
.${classNames.ARROW} {
|
|
55
|
-
position: absolute;
|
|
56
|
-
background-color: inherit;
|
|
57
|
-
border: inherit;
|
|
58
|
-
width: 10px;
|
|
59
|
-
height: 10px;
|
|
60
|
-
transform: ${({ arrowRotationDegs }) => `rotate(${arrowRotationDegs}deg)`} ;
|
|
61
|
-
z-index:-1;
|
|
62
|
-
}
|
|
63
32
|
|
|
64
33
|
@media ${theme.device.tablet} {
|
|
65
34
|
${theme.typography.shared.tablet.bodyM};
|
|
@@ -70,9 +39,7 @@ const FloatingComponentWrapStyled = styled.span `
|
|
|
70
39
|
}
|
|
71
40
|
`;
|
|
72
41
|
const ChildrenWrap = styled.div `
|
|
73
|
-
|
|
74
|
-
width: fit-content;
|
|
75
|
-
}
|
|
42
|
+
width: fit-content;
|
|
76
43
|
`;
|
|
77
44
|
const StyledPopoverBox = styled.div `
|
|
78
45
|
display: flex;
|
|
@@ -96,8 +63,8 @@ FloatingComponentWrap.displayName = 'FloatingComponentWrap';
|
|
|
96
63
|
* Don't use this - use Tooltip/HelpPopover instead.
|
|
97
64
|
*/
|
|
98
65
|
export const FloatingComponentBase = ({ placement = FLOATING_PLACEMENT.TOP, autoPlacements, strategy = 'fixed', content, children, isOpen = false, triggerRef, className, offsetPx = 10, contentWrapClassName, CloseButtonComponent, showInPortal = false, }) => {
|
|
99
|
-
const
|
|
100
|
-
|
|
66
|
+
const { x, y, refs: { setReference, setFloating }, strategy: effectiveStrategy, middlewareData: { hide: refHidden, }, context, } = useFloating({
|
|
67
|
+
open: isOpen,
|
|
101
68
|
placement,
|
|
102
69
|
strategy,
|
|
103
70
|
whileElementsMounted: autoUpdate,
|
|
@@ -105,47 +72,38 @@ export const FloatingComponentBase = ({ placement = FLOATING_PLACEMENT.TOP, auto
|
|
|
105
72
|
offset(offsetPx),
|
|
106
73
|
autoPlacements?.length ? autoPlacement({ allowedPlacements: autoPlacements }) : flip(),
|
|
107
74
|
shift({ padding: 5 }),
|
|
108
|
-
arrow({ element: arrowRef, padding: 9 }),
|
|
109
75
|
hide({
|
|
110
76
|
strategy: 'referenceHidden',
|
|
111
77
|
}),
|
|
112
78
|
],
|
|
113
79
|
});
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
top: arrowY != null ? `${arrowY}px` : '',
|
|
131
|
-
...borderNone,
|
|
132
|
-
};
|
|
133
|
-
if (staticSide) {
|
|
134
|
-
style[staticSide] = '-6px';
|
|
135
|
-
}
|
|
136
|
-
return style;
|
|
137
|
-
}, [arrowX, arrowY, effectivePlacement]);
|
|
138
|
-
const arrowRotationDegs = effectivePlacement.includes(FLOATING_PLACEMENT.TOP) || effectivePlacement.includes(FLOATING_PLACEMENT.BOTTOM) ? 225 : 45;
|
|
80
|
+
const { isMounted, styles } = useTransitionStyles(context, {
|
|
81
|
+
initial: ({ side }) => {
|
|
82
|
+
switch (side) {
|
|
83
|
+
case 'top':
|
|
84
|
+
return { opacity: 0, scale: '0.9', transform: 'translateY(10px)' };
|
|
85
|
+
case 'bottom':
|
|
86
|
+
return { opacity: 0, scale: '0.9', transform: 'translateY(-10px)' };
|
|
87
|
+
case 'left':
|
|
88
|
+
return { opacity: 0, scale: '0.9', transform: 'translateX(10px)' };
|
|
89
|
+
case 'right':
|
|
90
|
+
return { opacity: 0, scale: '0.9', transform: 'translateX(-10px)' };
|
|
91
|
+
default:
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
});
|
|
139
96
|
if (!content)
|
|
140
97
|
return _jsx("span", { children: children });
|
|
141
|
-
return (_jsxs(_Fragment, { children: [_jsx(ChildrenWrap, { className: clsx(classNames.CHILDREN, contentWrapClassName), ref: setReference, children: children }),
|
|
98
|
+
return (_jsxs(_Fragment, { children: [_jsx(ChildrenWrap, { className: clsx(classNames.CHILDREN, contentWrapClassName), ref: setReference, children: children }), isMounted && (_jsx(FloatingComponentWrap, { className: className, ref: setFloating, style: {
|
|
142
99
|
position: effectiveStrategy,
|
|
143
100
|
top: y ?? 0,
|
|
144
101
|
left: x ?? 0,
|
|
145
102
|
width: 'max-content',
|
|
146
103
|
visibility: refHidden?.referenceHidden ? 'hidden' : 'visible',
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
104
|
+
...styles,
|
|
105
|
+
}, onClick: (e) => e.stopPropagation(), showInPortal: showInPortal, children: _jsx("div", { ref: triggerRef, children: CloseButtonComponent
|
|
106
|
+
? _jsxs(StyledPopoverBox, { children: [content, _jsx(CloseButtonComponent, {})] })
|
|
107
|
+
: content }) }))] }));
|
|
150
108
|
};
|
|
151
109
|
//# sourceMappingURL=floating_component_base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating_component_base.js","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"floating_component_base.js","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,aAAa,EACb,UAAU,EACV,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,MAAM,EACN,KAAK,EAEL,WAAW,EACX,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAA0C,UAAU,EAAmD,MAAM,OAAO,CAAC;AAC5H,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,QAAQ,EAAE,4BAA4B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC;AA2BX,MAAM,2BAA2B,GAAG,MAAM,CAAC,IAAI,CAAA;eAChC,KAAK,CAAC,KAAK,CAAC,OAAO;MAC5B,KAAK,CAAC,UAAU,CAAC,MA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IAE7C,OAAO,CACH,8BAEI,KAAC,YAAY,IAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,oBAAoB,CAAC,EAAE,GAAG,EAAE,YAAY,YACtF,QAAQ,GACE,EACb,SAAS,IAAI,CACX,KAAC,qBAAqB,IAClB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE;oBACH,QAAQ,EAAE,iBAAiB;oBAC3B,GAAG,EAAE,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,CAAC,IAAI,CAAC;oBACZ,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;oBAC7D,GAAG,MAAM;iBACZ,EACD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,YAAY,EAAE,YAAY,YAE1B,cAAK,GAAG,EAAE,UAAU,YACf,oBAAoB;wBACjB,CAAC,CAAC,MAAC,gBAAgB,eACd,OAAO,EACR,KAAC,oBAAoB,KAAG,IACT;wBACnB,CAAC,CAAC,OAAO,GACX,GACc,CAC3B,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type ComponentType } from 'react';
|
|
2
2
|
import { type FloatingComponentBaseProps } from './floating_component_base.js';
|
|
3
|
+
export declare const TOOLTIP_TEXT_ALIGNS: {
|
|
4
|
+
readonly LEFT: "left";
|
|
5
|
+
readonly CENTER: "center";
|
|
6
|
+
};
|
|
7
|
+
export type TooltipTextAlign = typeof TOOLTIP_TEXT_ALIGNS[keyof typeof TOOLTIP_TEXT_ALIGNS];
|
|
3
8
|
export declare const TOOLTIP_SIZES: {
|
|
4
9
|
readonly XSMALL: "xsmall";
|
|
5
10
|
readonly SMALL: "small";
|
|
@@ -22,6 +27,7 @@ export interface TooltipProps extends Omit<FloatingComponentBaseProps, 'isOpen'
|
|
|
22
27
|
imageUrl?: string;
|
|
23
28
|
subtleText?: string;
|
|
24
29
|
size?: TooltipSize;
|
|
30
|
+
textAlign?: TooltipTextAlign;
|
|
25
31
|
}
|
|
26
32
|
interface WithTooltipProps {
|
|
27
33
|
tooltipProps?: TooltipProps;
|
|
@@ -29,7 +35,7 @@ interface WithTooltipProps {
|
|
|
29
35
|
/**
|
|
30
36
|
* Tooltip appears on hover, for onclick use Popover
|
|
31
37
|
*/
|
|
32
|
-
export declare const Tooltip: ({ as, className, persistent, delayShow, delayHide, shortcuts, imageUrl, subtleText, size, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export declare function withTooltip<
|
|
38
|
+
export declare const Tooltip: ({ as, className, persistent, delayShow, delayHide, shortcuts, imageUrl, subtleText, size, textAlign, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare function withTooltip<TProps extends Record<string, unknown> = Record<string, unknown>>(Component: ComponentType<TProps>): import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps & WithTooltipProps> & import("react").RefAttributes<HTMLElement>>;
|
|
34
40
|
export {};
|
|
35
41
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAGtG,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE5F,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE3E,UAAU,sBAAsB;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,aAAa,CAAC;CACxC;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,0BAA0B,EAAE,QAAQ,GAAG,MAAM,CAAC;IACrF,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,UAAU,gBAAgB;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAgBD;;GAEG;AACH,eAAO,MAAM,OAAO,mHAYjB,YAAY,4CAmDd,CAAC;AAEF,wBAAgB,WAAW,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,sJAW7H"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFloating, useHover, useInteractions, } from '@floating-ui/react';
|
|
3
3
|
import { forwardRef, useState } from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
4
|
+
import styled, { css } from 'styled-components';
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
|
+
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
6
7
|
import { FloatingComponentBase } from './floating_component_base.js';
|
|
7
8
|
import { TooltipContent } from './tooltip_content.js';
|
|
9
|
+
export const TOOLTIP_TEXT_ALIGNS = {
|
|
10
|
+
LEFT: 'left',
|
|
11
|
+
CENTER: 'center',
|
|
12
|
+
};
|
|
8
13
|
export const TOOLTIP_SIZES = {
|
|
9
14
|
XSMALL: 'xsmall',
|
|
10
15
|
SMALL: 'small',
|
|
@@ -17,13 +22,18 @@ const TooltipFocusArea = styled.span ``;
|
|
|
17
22
|
const StyledFloatingComponentBase = styled(FloatingComponentBase) `
|
|
18
23
|
color: ${theme.colorPalette.dark.neutral0};
|
|
19
24
|
background-color: ${theme.colorPalette.dark.neutral900};
|
|
20
|
-
border: 1px solid ${theme.color.neutral.smallTooltipBorder};
|
|
21
25
|
padding: ${theme.space.space8};
|
|
26
|
+
|
|
27
|
+
${({ $isDarkTheme }) => $isDarkTheme && css `
|
|
28
|
+
box-shadow: ${theme.shadow.shadow2};
|
|
29
|
+
border: 1px solid ${theme.color.neutral.smallTooltipBorder};
|
|
30
|
+
`}
|
|
22
31
|
`;
|
|
23
32
|
/**
|
|
24
33
|
* Tooltip appears on hover, for onclick use Popover
|
|
25
34
|
*/
|
|
26
|
-
export const Tooltip = ({ as, className, persistent, delayShow = 500, delayHide = 50, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL, ...rest }) => {
|
|
35
|
+
export const Tooltip = ({ as, className, persistent, delayShow = 500, delayHide = 50, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL, textAlign = TOOLTIP_TEXT_ALIGNS.LEFT, ...rest }) => {
|
|
36
|
+
const { uiTheme } = useSharedUiDependencies();
|
|
27
37
|
const { isOpenOverride, CloseButtonComponent } = persistent || {};
|
|
28
38
|
const [open, setOpen] = useState(false);
|
|
29
39
|
const { refs, context } = useFloating({
|
|
@@ -40,9 +50,9 @@ export const Tooltip = ({ as, className, persistent, delayShow = 500, delayHide
|
|
|
40
50
|
const tooltipProps = {
|
|
41
51
|
...rest,
|
|
42
52
|
isOpen: isOpenOverride !== undefined ? isOpenOverride : open,
|
|
43
|
-
content: _jsx(TooltipContent, { content: rest.content, shortcuts: shortcuts, imageUrl: imageUrl, subtleText: subtleText, size: size }),
|
|
53
|
+
content: _jsx(TooltipContent, { content: rest.content, shortcuts: shortcuts, imageUrl: imageUrl, subtleText: subtleText, size: size, textAlign: textAlign }),
|
|
44
54
|
};
|
|
45
|
-
return (_jsx(TooltipFocusArea, { as: as, className: className, ref: refs.setReference, ...getReferenceProps(), children: _jsx("div", { ref: refs.setFloating, ...getFloatingProps(), children: _jsx(StyledFloatingComponentBase, { ...tooltipProps, CloseButtonComponent: CloseButtonComponent }) }) }));
|
|
55
|
+
return (_jsx(TooltipFocusArea, { as: as, className: className, ref: refs.setReference, ...getReferenceProps(), children: _jsx("div", { ref: refs.setFloating, ...getFloatingProps(), children: _jsx(StyledFloatingComponentBase, { ...tooltipProps, CloseButtonComponent: CloseButtonComponent, "$isDarkTheme": uiTheme === 'DARK' }) }) }));
|
|
46
56
|
};
|
|
47
57
|
export function withTooltip(Component) {
|
|
48
58
|
const Enhanced = forwardRef(({ tooltipProps, ...rest }, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,WAAW,EACX,QAAQ,EACR,eAAe,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAsB,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,MAAM,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/floating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,EAAE,IAAI,CAAC,YAAY,KAClB,iBAAiB,EAAE,YAEvB,cACI,GAAG,EAAE,IAAI,CAAC,WAAW,KACjB,gBAAgB,EAAE,YAEtB,KAAC,2BAA2B,OACpB,YAAY,EAChB,oBAAoB,EAAE,oBAAoB,kBAC5B,OAAO,KAAK,MAAM,GAClC,GACA,GACS,CACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW,CAAmE,SAAgC;IAC1H,MAAM,QAAQ,GAAG,UAAU,CAAyC,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;QACnG,IAAI,CAAC,YAAY;YAAE,OAAO,KAAC,SAAS,OAAM,IAA0B,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;QACnF,OAAO,KAAC,OAAO,OAAK,YAAY,YAC5B,KAAC,SAAS,OAAM,IAA0B,EAAE,GAAG,EAAE,GAAG,GAAI,GAClD,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,GAAG,eAAe,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;IAEhF,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ContentProps = Pick<TooltipProps, 'content' | 'shortcuts' | 'imageUrl' | 'subtleText' | 'size'>;
|
|
3
|
-
export declare const TooltipContent: ({ content, shortcuts, imageUrl, subtleText, size }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { TooltipProps } from './tooltip.js';
|
|
2
|
+
type ContentProps = Pick<TooltipProps, 'content' | 'shortcuts' | 'imageUrl' | 'subtleText' | 'size' | 'textAlign'>;
|
|
3
|
+
export declare const TooltipContent: ({ content, shortcuts, imageUrl, subtleText, size, textAlign, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
5
5
|
//# sourceMappingURL=tooltip_content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip_content.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip_content.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"tooltip_content.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip_content.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAiC,MAAM,cAAc,CAAC;AAGhF,KAAK,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,WAAW,CAAC,CAAC;AA6DnH,eAAO,MAAM,cAAc,mEAOxB,YAAY,4CA2Bd,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
import { theme } from '../../design_system/theme.js';
|
|
4
4
|
import { Shortcut } from '../shortcut.js';
|
|
5
|
-
import { TOOLTIP_SIZES } from './tooltip.js';
|
|
5
|
+
import { TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS } from './tooltip.js';
|
|
6
6
|
const TOOLTIP_SIZES_VALUES = {
|
|
7
7
|
xsmall: '24rem',
|
|
8
8
|
small: '32rem',
|
|
@@ -10,42 +10,56 @@ const TOOLTIP_SIZES_VALUES = {
|
|
|
10
10
|
large: '48rem',
|
|
11
11
|
xlarge: '64rem',
|
|
12
12
|
};
|
|
13
|
+
const TOOLTIP_CLASSNAMES = {
|
|
14
|
+
IMAGE: 'Tooltip-image',
|
|
15
|
+
TEXT_CONTENT: 'Tooltip-textContent',
|
|
16
|
+
SUBTLE_TEXT: 'Tooltip-subtleText',
|
|
17
|
+
SHORTCUT_CONTAINER: 'Tooltip-shortcutContainer',
|
|
18
|
+
};
|
|
13
19
|
const StyledContent = styled.div `
|
|
14
20
|
display: flex;
|
|
15
21
|
flex-direction: column;
|
|
16
22
|
gap: ${theme.space.space8};
|
|
17
23
|
/* Size - (tooltip padding + border) * 2 */
|
|
18
24
|
max-width: ${({ $size }) => css `calc(${TOOLTIP_SIZES_VALUES[$size]} - (${theme.space.space8} + 1px) * 2)`};
|
|
25
|
+
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
26
|
+
align-items: ${({ $textAlign }) => ($textAlign === 'center' ? 'center' : 'flex-start')};
|
|
19
27
|
|
|
20
|
-
.
|
|
28
|
+
.${TOOLTIP_CLASSNAMES.IMAGE} {
|
|
21
29
|
max-width: 100%;
|
|
22
30
|
max-height: 150px;
|
|
23
31
|
border-radius: 4px;
|
|
24
32
|
object-fit: contain;
|
|
25
33
|
}
|
|
26
34
|
|
|
27
|
-
.
|
|
35
|
+
.${TOOLTIP_CLASSNAMES.TEXT_CONTENT} {
|
|
28
36
|
display: flex;
|
|
29
37
|
flex-direction: column;
|
|
30
38
|
gap: ${theme.space.space8};
|
|
39
|
+
align-items: ${({ $textAlign }) => ($textAlign === 'center' ? 'center' : 'flex-start')};
|
|
31
40
|
|
|
32
41
|
/* When there is no child with subtleText class */
|
|
33
|
-
&:not(:has(.
|
|
42
|
+
&:not(:has(.${TOOLTIP_CLASSNAMES.SUBTLE_TEXT})){
|
|
34
43
|
flex-direction: row;
|
|
35
44
|
flex-wrap: wrap;
|
|
36
45
|
}
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
/* When there is a child with subtleText class */
|
|
48
|
+
&:has(.${TOOLTIP_CLASSNAMES.SUBTLE_TEXT}){
|
|
49
|
+
text-align: left;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.${TOOLTIP_CLASSNAMES.SUBTLE_TEXT} {
|
|
39
53
|
color: ${theme.colorPalette.dark.neutral500};
|
|
40
54
|
}
|
|
41
55
|
|
|
42
|
-
.
|
|
56
|
+
.${TOOLTIP_CLASSNAMES.SHORTCUT_CONTAINER} {
|
|
43
57
|
display: flex;
|
|
44
58
|
gap: ${theme.space.space4};
|
|
45
59
|
}
|
|
46
60
|
}
|
|
47
61
|
`;
|
|
48
|
-
export const TooltipContent = ({ content, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL }) => {
|
|
49
|
-
return (_jsxs(StyledContent, { "$size": size, children: [imageUrl && (_jsx("img", { src: imageUrl, alt: "", className:
|
|
62
|
+
export const TooltipContent = ({ content, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL, textAlign = TOOLTIP_TEXT_ALIGNS.LEFT, }) => {
|
|
63
|
+
return (_jsxs(StyledContent, { "$size": size, "$textAlign": textAlign, children: [imageUrl && (_jsx("img", { src: imageUrl, alt: "", className: TOOLTIP_CLASSNAMES.IMAGE })), _jsxs("div", { className: TOOLTIP_CLASSNAMES.TEXT_CONTENT, children: [content, subtleText && (_jsx("div", { className: TOOLTIP_CLASSNAMES.SUBTLE_TEXT, children: subtleText })), shortcuts.length > 0 && (_jsx("div", { className: TOOLTIP_CLASSNAMES.SHORTCUT_CONTAINER, children: shortcuts.map((shortcut, index) => (_jsx(Shortcut, { dark: true, children: shortcut }, `${shortcut}-${index}`))) }))] })] }));
|
|
50
64
|
};
|
|
51
65
|
//# sourceMappingURL=tooltip_content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip_content.js","sourceRoot":"","sources":["../../../../src/components/floating/tooltip_content.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip_content.js","sourceRoot":"","sources":["../../../../src/components/floating/tooltip_content.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MA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