@workday/canvas-kit-docs 14.2.10 → 14.2.12
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/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/dist/mdx/react/button/button/examples/Primary.tsx +1 -4
- package/package.json +6 -6
|
@@ -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": "14.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "14.2.
|
|
23
|
-
"@workday/canvas-kit-react": "14.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^14.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "14.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "14.2.12",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "14.2.12",
|
|
23
|
+
"@workday/canvas-kit-react": "14.2.12",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^14.2.12",
|
|
25
|
+
"@workday/canvas-kit-styling": "14.2.12",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.36",
|
|
27
27
|
"@workday/canvas-tokens-web": "3.1.2"
|
|
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": "14.2.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "14.2.
|
|
23
|
-
"@workday/canvas-kit-react": "14.2.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^14.2.
|
|
25
|
-
"@workday/canvas-kit-styling": "14.2.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "14.2.12",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "14.2.12",
|
|
23
|
+
"@workday/canvas-kit-react": "14.2.12",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^14.2.12",
|
|
25
|
+
"@workday/canvas-kit-styling": "14.2.12",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.36",
|
|
27
27
|
"@workday/canvas-tokens-web": "3.1.2"
|
|
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
|
import StandaloneLink from './examples/StandaloneHyperlink';
|
|
7
8
|
import InBodyText from './examples/HyperlinkInBodyText';
|
|
8
9
|
|
|
@@ -100,6 +101,10 @@ link on a dark or colorful background.
|
|
|
100
101
|
|
|
101
102
|
<ExampleCodeBlock code={ExternalLinkInverse} />
|
|
102
103
|
|
|
104
|
+
`ExternalHyperlink`s will also flip the icon for right-to-left (RTL) languages.
|
|
105
|
+
|
|
106
|
+
<ExampleCodeBlock code={ExternalLinkRTL} />
|
|
107
|
+
|
|
103
108
|
### Component API
|
|
104
109
|
|
|
105
110
|
<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
|
+
);
|
|
@@ -17,10 +17,7 @@ const parentContainerStyles = createStyles({
|
|
|
17
17
|
export default () => (
|
|
18
18
|
<Flex cs={parentContainerStyles}>
|
|
19
19
|
<PrimaryButton>Primary</PrimaryButton>
|
|
20
|
-
<PrimaryButton
|
|
21
|
-
icon={plusIcon}
|
|
22
|
-
iconPosition="start"
|
|
23
|
-
>
|
|
20
|
+
<PrimaryButton icon={plusIcon} iconPosition="start">
|
|
24
21
|
Primary
|
|
25
22
|
</PrimaryButton>
|
|
26
23
|
<PrimaryButton icon={caretDownIcon} iconPosition="end">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.12",
|
|
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": "^14.2.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^14.2.
|
|
50
|
-
"@workday/canvas-kit-react": "^14.2.
|
|
51
|
-
"@workday/canvas-kit-styling": "^14.2.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^14.2.12",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^14.2.12",
|
|
50
|
+
"@workday/canvas-kit-react": "^14.2.12",
|
|
51
|
+
"@workday/canvas-kit-styling": "^14.2.12",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.36",
|
|
53
53
|
"@workday/canvas-tokens-web": "^3.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": "21d84349e95d1e6f1f04a825aac67812db3df8f2"
|
|
65
65
|
}
|