@workday/canvas-kit-docs 13.2.50 → 13.2.52
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/es6/lib/docs.js +22 -0
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/mdx/react/button/button/Hyperlink.mdx +5 -0
- package/dist/mdx/react/button/button/examples/ExternalHyperlinkRTL.tsx +10 -0
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -281029,6 +281029,28 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
281029
281029
|
}
|
|
281030
281030
|
],
|
|
281031
281031
|
"tags": {}
|
|
281032
|
+
},
|
|
281033
|
+
{
|
|
281034
|
+
"kind": "parameter",
|
|
281035
|
+
"name": "props",
|
|
281036
|
+
"defaultValue": {
|
|
281037
|
+
"kind": "object",
|
|
281038
|
+
"properties": []
|
|
281039
|
+
},
|
|
281040
|
+
"type": {
|
|
281041
|
+
"kind": "primitive",
|
|
281042
|
+
"value": "any"
|
|
281043
|
+
},
|
|
281044
|
+
"required": false,
|
|
281045
|
+
"rest": false,
|
|
281046
|
+
"description": "",
|
|
281047
|
+
"declarations": [
|
|
281048
|
+
{
|
|
281049
|
+
"name": "props",
|
|
281050
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/insights.ts"
|
|
281051
|
+
}
|
|
281052
|
+
],
|
|
281053
|
+
"tags": {}
|
|
281032
281054
|
}
|
|
281033
281055
|
],
|
|
281034
281056
|
"members": [],
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.2.
|
|
23
|
-
"@workday/canvas-kit-react": "13.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.2.52",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.2.52",
|
|
23
|
+
"@workday/canvas-kit-react": "13.2.52",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.2.52",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.2.52",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "13.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "13.2.
|
|
23
|
-
"@workday/canvas-kit-react": "13.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^13.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "13.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "13.2.52",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "13.2.52",
|
|
23
|
+
"@workday/canvas-kit-react": "13.2.52",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^13.2.52",
|
|
25
|
+
"@workday/canvas-kit-styling": "13.2.52",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -3,6 +3,7 @@ import Link from './examples/Hyperlink';
|
|
|
3
3
|
import LinkInverse from './examples/HyperlinkInverse';
|
|
4
4
|
import ExternalLink from './examples/ExternalHyperlink';
|
|
5
5
|
import ExternalLinkInverse from './examples/ExternalHyperlinkInverse';
|
|
6
|
+
import ExternalLinkRTL from './examples/ExternalHyperlinkRTL';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
# Canvas Kit Hyperlinks
|
|
@@ -51,6 +52,10 @@ link on a dark or colorful background such as `blueberry400`.
|
|
|
51
52
|
|
|
52
53
|
<ExampleCodeBlock code={ExternalLinkInverse} />
|
|
53
54
|
|
|
55
|
+
`ExternalHyperlink`s will also flip the icon for right-to-left (RTL) languages.
|
|
56
|
+
|
|
57
|
+
<ExampleCodeBlock code={ExternalLinkRTL} />
|
|
58
|
+
|
|
54
59
|
### Component API
|
|
55
60
|
|
|
56
61
|
<SymbolDoc
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {ExternalHyperlink} from '@workday/canvas-kit-react/button';
|
|
2
|
+
import {CanvasProvider, ContentDirection} from '@workday/canvas-kit-react/common';
|
|
3
|
+
|
|
4
|
+
export default () => (
|
|
5
|
+
<CanvasProvider theme={{canvas: {direction: ContentDirection.RTL}}}>
|
|
6
|
+
<ExternalHyperlink href="https://workday.com" iconLabel="Opens link in new window">
|
|
7
|
+
השועל החום המהיר קופץ מעל הכלב העצל
|
|
8
|
+
</ExternalHyperlink>
|
|
9
|
+
</CanvasProvider>
|
|
10
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.52",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@stackblitz/sdk": "^1.11.0",
|
|
47
47
|
"@storybook/csf": "0.0.1",
|
|
48
|
-
"@workday/canvas-kit-labs-react": "^13.2.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^13.2.
|
|
50
|
-
"@workday/canvas-kit-react": "^13.2.
|
|
51
|
-
"@workday/canvas-kit-styling": "^13.2.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^13.2.52",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^13.2.52",
|
|
50
|
+
"@workday/canvas-kit-react": "^13.2.52",
|
|
51
|
+
"@workday/canvas-kit-styling": "^13.2.52",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.35",
|
|
53
53
|
"@workday/canvas-tokens-web": "^2.1.1",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d3fdeea6c5114edbf20cd0b51a93ef1f6bcaf3d0"
|
|
65
65
|
}
|