@workday/canvas-kit-docs 5.2.1-next.1 → 5.2.1
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.
|
@@ -5687,6 +5687,16 @@ module.exports = {specifications: [
|
|
|
5687
5687
|
}
|
|
5688
5688
|
]
|
|
5689
5689
|
},
|
|
5690
|
+
{
|
|
5691
|
+
"type": "describe",
|
|
5692
|
+
"name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is hovered",
|
|
5693
|
+
"children": [
|
|
5694
|
+
{
|
|
5695
|
+
"type": "it",
|
|
5696
|
+
"name": "should show the tooltip"
|
|
5697
|
+
}
|
|
5698
|
+
]
|
|
5699
|
+
},
|
|
5690
5700
|
{
|
|
5691
5701
|
"type": "describe",
|
|
5692
5702
|
"name": "when the \"Short Content\" button is focused",
|
|
@@ -5706,6 +5716,16 @@ module.exports = {specifications: [
|
|
|
5706
5716
|
"name": "should show the tooltip"
|
|
5707
5717
|
}
|
|
5708
5718
|
]
|
|
5719
|
+
},
|
|
5720
|
+
{
|
|
5721
|
+
"type": "describe",
|
|
5722
|
+
"name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is focused",
|
|
5723
|
+
"children": [
|
|
5724
|
+
{
|
|
5725
|
+
"type": "it",
|
|
5726
|
+
"name": "should show the tooltip"
|
|
5727
|
+
}
|
|
5728
|
+
]
|
|
5709
5729
|
}
|
|
5710
5730
|
]
|
|
5711
5731
|
},
|
package/dist/es6/lib/specs.js
CHANGED
|
@@ -5687,6 +5687,16 @@ module.exports = {specifications: [
|
|
|
5687
5687
|
}
|
|
5688
5688
|
]
|
|
5689
5689
|
},
|
|
5690
|
+
{
|
|
5691
|
+
"type": "describe",
|
|
5692
|
+
"name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is hovered",
|
|
5693
|
+
"children": [
|
|
5694
|
+
{
|
|
5695
|
+
"type": "it",
|
|
5696
|
+
"name": "should show the tooltip"
|
|
5697
|
+
}
|
|
5698
|
+
]
|
|
5699
|
+
},
|
|
5690
5700
|
{
|
|
5691
5701
|
"type": "describe",
|
|
5692
5702
|
"name": "when the \"Short Content\" button is focused",
|
|
@@ -5706,6 +5716,16 @@ module.exports = {specifications: [
|
|
|
5706
5716
|
"name": "should show the tooltip"
|
|
5707
5717
|
}
|
|
5708
5718
|
]
|
|
5719
|
+
},
|
|
5720
|
+
{
|
|
5721
|
+
"type": "describe",
|
|
5722
|
+
"name": "when the \"Super Mega Ultra Long Content With Max Width Custom\" button is focused",
|
|
5723
|
+
"children": [
|
|
5724
|
+
{
|
|
5725
|
+
"type": "it",
|
|
5726
|
+
"name": "should show the tooltip"
|
|
5727
|
+
}
|
|
5728
|
+
]
|
|
5709
5729
|
}
|
|
5710
5730
|
]
|
|
5711
5731
|
},
|
|
@@ -4,6 +4,21 @@ import {SecondaryButton} from '@workday/canvas-kit-react/button';
|
|
|
4
4
|
import {OverflowTooltip} from '@workday/canvas-kit-react/tooltip';
|
|
5
5
|
import {space} from '@workday/canvas-kit-react/tokens';
|
|
6
6
|
|
|
7
|
+
const CustomContent = ({...elemProps}) => (
|
|
8
|
+
<button
|
|
9
|
+
style={{
|
|
10
|
+
marginTop: space.xs,
|
|
11
|
+
maxWidth: 200,
|
|
12
|
+
overflow: 'hidden',
|
|
13
|
+
textOverflow: 'ellipsis',
|
|
14
|
+
whiteSpace: 'nowrap',
|
|
15
|
+
}}
|
|
16
|
+
{...elemProps}
|
|
17
|
+
>
|
|
18
|
+
Super Mega Ultra Long Content With Max Width Custom
|
|
19
|
+
</button>
|
|
20
|
+
);
|
|
21
|
+
|
|
7
22
|
export default () => {
|
|
8
23
|
return (
|
|
9
24
|
<React.Fragment>
|
|
@@ -28,6 +43,9 @@ export default () => {
|
|
|
28
43
|
Super Mega Ultra Long Content With Max Width
|
|
29
44
|
</button>
|
|
30
45
|
</OverflowTooltip>
|
|
46
|
+
<OverflowTooltip>
|
|
47
|
+
<CustomContent />
|
|
48
|
+
</OverflowTooltip>
|
|
31
49
|
</React.Fragment>
|
|
32
50
|
);
|
|
33
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "5.2.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@storybook/csf": "0.0.1",
|
|
52
|
-
"@workday/canvas-kit-react": "^5.2.1
|
|
52
|
+
"@workday/canvas-kit-react": "^5.2.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"fs-extra": "^10.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"mkdirp": "^1.0.3",
|
|
58
58
|
"typescript": "^3.8.3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "73c19e733988bc21612ab61be62f71963c727960"
|
|
61
61
|
}
|