@toptal/picasso-typography-overflow 2.0.3-alpha-fx-null-fix-button-e862ee8b7.16 → 2.0.3
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-package/src/TypographyOverflow/TypographyOverflow.d.ts +3 -1
- package/dist-package/src/TypographyOverflow/TypographyOverflow.d.ts.map +1 -1
- package/dist-package/src/TypographyOverflow/TypographyOverflow.js +2 -2
- package/dist-package/src/TypographyOverflow/TypographyOverflow.js.map +1 -1
- package/package.json +8 -9
- package/src/TypographyOverflow/TypographyOverflow.tsx +5 -2
- package/src/TypographyOverflow/story/Placement.example.tsx +95 -0
- package/src/TypographyOverflow/story/index.jsx +8 -0
- package/LICENSE +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { BaseProps } from '@toptal/picasso-shared';
|
|
3
3
|
import type { TypographyProps } from '@toptal/picasso-typography';
|
|
4
|
-
import type { DelayType } from '@toptal/picasso-tooltip';
|
|
4
|
+
import type { DelayType, PlacementType } from '@toptal/picasso-tooltip';
|
|
5
5
|
export interface Props extends BaseProps, TypographyProps {
|
|
6
6
|
/** A typography which can possibly overflow */
|
|
7
7
|
children?: ReactNode;
|
|
@@ -13,6 +13,8 @@ export interface Props extends BaseProps, TypographyProps {
|
|
|
13
13
|
tooltipDelay?: DelayType;
|
|
14
14
|
/** Do not show tooltips for shorten content. */
|
|
15
15
|
disableTooltip?: boolean;
|
|
16
|
+
/** Where should the tooltip be positioned */
|
|
17
|
+
placement?: PlacementType;
|
|
16
18
|
}
|
|
17
19
|
export declare const TypographyOverflow: {
|
|
18
20
|
(props: Props): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypographyOverflow.d.ts","sourceRoot":"","sources":["../../../src/TypographyOverflow/TypographyOverflow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"TypographyOverflow.d.ts","sourceRoot":"","sources":["../../../src/TypographyOverflow/TypographyOverflow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAIvE,MAAM,WAAW,KAAM,SAAQ,SAAS,EAAE,eAAe;IACvD,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kHAAkH;IAClH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,gDAAgD;IAChD,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,aAAa,CAAA;CAC1B;AAMD,eAAO,MAAM,kBAAkB;YAAW,KAAK;;;;;CAkH9C,CAAA;AAQD,eAAe,kBAAkB,CAAA"}
|
|
@@ -20,7 +20,7 @@ const useStyles = makeStyles(styles, {
|
|
|
20
20
|
name: 'TypographyOverflow',
|
|
21
21
|
});
|
|
22
22
|
export const TypographyOverflow = (props) => {
|
|
23
|
-
const { children, lines = 1, tooltipContent, tooltipDelay, disableTooltip, className, onClick, onMouseEnter, style } = props, rest = __rest(props, ["children", "lines", "tooltipContent", "tooltipDelay", "disableTooltip", "className", "onClick", "onMouseEnter", "style"]);
|
|
23
|
+
const { children, lines = 1, tooltipContent, tooltipDelay, disableTooltip, className, onClick, onMouseEnter, style, placement = 'top' } = props, rest = __rest(props, ["children", "lines", "tooltipContent", "tooltipDelay", "disableTooltip", "className", "onClick", "onMouseEnter", "style", "placement"]);
|
|
24
24
|
const classes = useStyles(props);
|
|
25
25
|
const [isTooltipActive, setIsTooltipActive] = useState(false);
|
|
26
26
|
const [isTooltipOpened, setIsTooltipOpened] = useState(false);
|
|
@@ -68,7 +68,7 @@ export const TypographyOverflow = (props) => {
|
|
|
68
68
|
setIsTooltipAnimating(false);
|
|
69
69
|
}, []);
|
|
70
70
|
const typography = (React.createElement(Typography, Object.assign({}, rest, { style: extendedStyle, className: cx(classes.wrapper, isMultiline ? classes.multiLine : '!block !whitespace-nowrap', className), onClick: handleClick, onMouseEnter: handleMouseEnter }), children));
|
|
71
|
-
const tooltip = (React.createElement(Tooltip, { open: isTooltipOpened, content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : children, placement:
|
|
71
|
+
const tooltip = (React.createElement(Tooltip, { open: isTooltipOpened, content: tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : children, placement: placement, delay: tooltipDelay, interactive: true, disableListeners: disableTooltip, onOpen: handleTooltipOpen, onClose: handleTooltipClose, onTransitionExiting: handleTransitionExiting, onTransitionExited: handleTransitionExited }, typography));
|
|
72
72
|
return isTooltipRendered ? tooltip : typography;
|
|
73
73
|
};
|
|
74
74
|
TypographyOverflow.displayName = 'TypographyOverflow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypographyOverflow.js","sourceRoot":"","sources":["../../../src/TypographyOverflow/TypographyOverflow.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,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ED,eAAe,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-typography-overflow",
|
|
3
|
-
"version": "2.0.3
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Toptal UI components library - TypographyOverflow",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-tooltip": "1.1.
|
|
26
|
-
"@toptal/picasso-typography": "2.0.
|
|
27
|
-
"@toptal/picasso-utils": "1.0.
|
|
25
|
+
"@toptal/picasso-tooltip": "1.1.3",
|
|
26
|
+
"@toptal/picasso-typography": "2.0.2",
|
|
27
|
+
"@toptal/picasso-utils": "1.0.3",
|
|
28
28
|
"classnames": "^2.5.1"
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": [
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@material-ui/core": "4.12.4",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"tailwindcss": ">=3",
|
|
37
|
+
"react": ">=16.12.0 < 19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@toptal/picasso-test-utils": "1.1.
|
|
40
|
+
"@toptal/picasso-test-utils": "1.1.1",
|
|
41
41
|
"styled-components": "^6.1.1"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
@@ -47,6 +47,5 @@
|
|
|
47
47
|
"dist-package/**",
|
|
48
48
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
49
49
|
"src"
|
|
50
|
-
]
|
|
51
|
-
"gitHead": "e862ee8b7dd480b508f5258999f409fe0ab1611c"
|
|
50
|
+
]
|
|
52
51
|
}
|
|
@@ -8,7 +8,7 @@ import { Tooltip } from '@toptal/picasso-tooltip'
|
|
|
8
8
|
import { Typography } from '@toptal/picasso-typography'
|
|
9
9
|
import { isOverflown } from '@toptal/picasso-utils'
|
|
10
10
|
import type { TypographyProps } from '@toptal/picasso-typography'
|
|
11
|
-
import type { DelayType } from '@toptal/picasso-tooltip'
|
|
11
|
+
import type { DelayType, PlacementType } from '@toptal/picasso-tooltip'
|
|
12
12
|
|
|
13
13
|
import styles from './styles'
|
|
14
14
|
|
|
@@ -23,6 +23,8 @@ export interface Props extends BaseProps, TypographyProps {
|
|
|
23
23
|
tooltipDelay?: DelayType
|
|
24
24
|
/** Do not show tooltips for shorten content. */
|
|
25
25
|
disableTooltip?: boolean
|
|
26
|
+
/** Where should the tooltip be positioned */
|
|
27
|
+
placement?: PlacementType
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
const useStyles = makeStyles<Theme, Props>(styles, {
|
|
@@ -40,6 +42,7 @@ export const TypographyOverflow = (props: Props) => {
|
|
|
40
42
|
onClick,
|
|
41
43
|
onMouseEnter,
|
|
42
44
|
style,
|
|
45
|
+
placement = 'top',
|
|
43
46
|
...rest
|
|
44
47
|
} = props
|
|
45
48
|
|
|
@@ -128,7 +131,7 @@ export const TypographyOverflow = (props: Props) => {
|
|
|
128
131
|
<Tooltip
|
|
129
132
|
open={isTooltipOpened}
|
|
130
133
|
content={tooltipContent ?? children}
|
|
131
|
-
placement=
|
|
134
|
+
placement={placement}
|
|
132
135
|
delay={tooltipDelay}
|
|
133
136
|
interactive
|
|
134
137
|
disableListeners={disableTooltip}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { TypographyOverflow, Container, Grid } from '@toptal/picasso'
|
|
3
|
+
import { SPACING_4 } from '@toptal/picasso-utils'
|
|
4
|
+
|
|
5
|
+
const Example = () => (
|
|
6
|
+
<Container style={{ padding: 50, width: 900 }}>
|
|
7
|
+
<Container>
|
|
8
|
+
<Grid direction='row'>
|
|
9
|
+
<Grid.Item sm={4}>
|
|
10
|
+
<TypographyOverflow placement='top-start'>
|
|
11
|
+
top-start. This typography is very long and therefore it overflows.
|
|
12
|
+
</TypographyOverflow>
|
|
13
|
+
</Grid.Item>
|
|
14
|
+
<Grid.Item sm={4}>
|
|
15
|
+
<TypographyOverflow placement='top'>
|
|
16
|
+
top. This typography is very long and therefore it overflows.
|
|
17
|
+
</TypographyOverflow>
|
|
18
|
+
</Grid.Item>
|
|
19
|
+
<Grid.Item sm={4}>
|
|
20
|
+
<TypographyOverflow placement='top-end'>
|
|
21
|
+
top-end. This typography is very long and therefore it overflows.
|
|
22
|
+
</TypographyOverflow>
|
|
23
|
+
</Grid.Item>
|
|
24
|
+
</Grid>
|
|
25
|
+
</Container>
|
|
26
|
+
<Container bottom={SPACING_4}>
|
|
27
|
+
<Grid direction='row'>
|
|
28
|
+
<Grid.Item sm={4}>
|
|
29
|
+
<TypographyOverflow placement='left-start'>
|
|
30
|
+
left-start. This typography is very long and therefore it overflows.
|
|
31
|
+
</TypographyOverflow>
|
|
32
|
+
</Grid.Item>
|
|
33
|
+
<Grid.Item sm={4} />
|
|
34
|
+
<Grid.Item sm={4}>
|
|
35
|
+
<TypographyOverflow placement='right-start'>
|
|
36
|
+
right-start. This typography is very long and therefore it
|
|
37
|
+
overflows.
|
|
38
|
+
</TypographyOverflow>
|
|
39
|
+
</Grid.Item>
|
|
40
|
+
</Grid>
|
|
41
|
+
</Container>
|
|
42
|
+
<Container bottom={SPACING_4}>
|
|
43
|
+
<Grid direction='row'>
|
|
44
|
+
<Grid.Item sm={4}>
|
|
45
|
+
<TypographyOverflow placement='left'>
|
|
46
|
+
left. This typography is very long and therefore it overflows.
|
|
47
|
+
</TypographyOverflow>
|
|
48
|
+
</Grid.Item>
|
|
49
|
+
<Grid.Item sm={4} />
|
|
50
|
+
<Grid.Item sm={4}>
|
|
51
|
+
<TypographyOverflow placement='right'>
|
|
52
|
+
right. This typography is very long and therefore it overflows.
|
|
53
|
+
</TypographyOverflow>
|
|
54
|
+
</Grid.Item>
|
|
55
|
+
</Grid>
|
|
56
|
+
</Container>
|
|
57
|
+
<Container bottom={SPACING_4}>
|
|
58
|
+
<Grid direction='row'>
|
|
59
|
+
<Grid.Item sm={4}>
|
|
60
|
+
<TypographyOverflow placement='left-end'>
|
|
61
|
+
left-end. This typography is very long and therefore it overflows.
|
|
62
|
+
</TypographyOverflow>
|
|
63
|
+
</Grid.Item>
|
|
64
|
+
<Grid.Item sm={4} />
|
|
65
|
+
<Grid.Item sm={4}>
|
|
66
|
+
<TypographyOverflow placement='right-end'>
|
|
67
|
+
right-end. This typography is very long and therefore it overflows.
|
|
68
|
+
</TypographyOverflow>
|
|
69
|
+
</Grid.Item>
|
|
70
|
+
</Grid>
|
|
71
|
+
</Container>
|
|
72
|
+
<Container bottom={SPACING_4}>
|
|
73
|
+
<Grid direction='row'>
|
|
74
|
+
<Grid.Item sm={4}>
|
|
75
|
+
<TypographyOverflow placement='bottom-start'>
|
|
76
|
+
bottom-start. This typography is very long and therefore it
|
|
77
|
+
overflows.
|
|
78
|
+
</TypographyOverflow>
|
|
79
|
+
</Grid.Item>
|
|
80
|
+
<Grid.Item sm={4}>
|
|
81
|
+
<TypographyOverflow placement='bottom'>
|
|
82
|
+
bottom. This typography is very long and therefore it overflows.
|
|
83
|
+
</TypographyOverflow>
|
|
84
|
+
</Grid.Item>
|
|
85
|
+
<Grid.Item sm={4}>
|
|
86
|
+
<TypographyOverflow placement='bottom-end'>
|
|
87
|
+
bottom-end. This typography is very long and therefore it overflows.
|
|
88
|
+
</TypographyOverflow>
|
|
89
|
+
</Grid.Item>
|
|
90
|
+
</Grid>
|
|
91
|
+
</Container>
|
|
92
|
+
</Container>
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
export default Example
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021-2022 Toptal, LLC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the “Software”), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|