@workday/canvas-kit-docs 12.6.0-1079-next.0 → 12.6.0-1086-next.0
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 +24 -6
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/mdx/preview-react/information-highlight/examples/Critical.tsx +4 -10
- package/dist/mdx/preview-react/information-highlight/examples/Informational.tsx +33 -4
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -8085,8 +8085,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
8085
8085
|
},
|
|
8086
8086
|
"defaultValue": {
|
|
8087
8087
|
"kind": "external",
|
|
8088
|
-
"name": "
|
|
8089
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/
|
|
8088
|
+
"name": "div",
|
|
8089
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
|
|
8090
8090
|
}
|
|
8091
8091
|
},
|
|
8092
8092
|
{
|
|
@@ -8106,8 +8106,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
8106
8106
|
"required": true,
|
|
8107
8107
|
"defaultValue": {
|
|
8108
8108
|
"kind": "external",
|
|
8109
|
-
"name": "
|
|
8110
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/
|
|
8109
|
+
"name": "div",
|
|
8110
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
|
|
8111
8111
|
}
|
|
8112
8112
|
}
|
|
8113
8113
|
]
|
|
@@ -8116,8 +8116,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
8116
8116
|
],
|
|
8117
8117
|
"baseElement": {
|
|
8118
8118
|
"kind": "external",
|
|
8119
|
-
"name": "
|
|
8120
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/
|
|
8119
|
+
"name": "div",
|
|
8120
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
|
|
8121
8121
|
},
|
|
8122
8122
|
"styleComponent": {
|
|
8123
8123
|
"kind": "symbol",
|
|
@@ -166524,6 +166524,24 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
166524
166524
|
"value": "SystemIconCircleSize.l"
|
|
166525
166525
|
}
|
|
166526
166526
|
},
|
|
166527
|
+
{
|
|
166528
|
+
"kind": "property",
|
|
166529
|
+
"name": "cs",
|
|
166530
|
+
"required": false,
|
|
166531
|
+
"type": {
|
|
166532
|
+
"kind": "symbol",
|
|
166533
|
+
"name": "CSToPropsInput",
|
|
166534
|
+
"value": "CSToPropsInput"
|
|
166535
|
+
},
|
|
166536
|
+
"description": "The `cs` prop takes in a single value or an array of values. You can pass the CSS class name\nreturned by {@link createStyles}, or the result of {@link createVars} and\n{@link createModifiers}. If you're extending a component already using `cs`, you can merge that\nprop in as well. Any style that is passed to the `cs` prop will override style props. If you\nwish to have styles that are overridden by the `css` prop, or styles added via the `styled`\nAPI, use {@link handleCsProp} wherever `elemProps` is used. If your component needs to also\nhandle style props, use {@link mergeStyles } instead.\n\n\n```tsx\nimport {handleCsProp} from '@workday/canvas-kit-styling';\nimport {mergeStyles} from '@workday/canvas-kit-react/layout';\n\n// ...\n\n// `handleCsProp` handles compat mode with Emotion's runtime APIs. `mergeStyles` has the same\n// function signature, but adds support for style props.\n\nreturn (\n <Element\n {...handleCsProp(elemProps, [\n myStyles,\n myModifiers({ size: 'medium' }),\n myVars({ backgroundColor: 'red' })\n ])}\n >\n {children}\n </Element>\n)\n```",
|
|
166537
|
+
"declarations": [
|
|
166538
|
+
{
|
|
166539
|
+
"name": "cs",
|
|
166540
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
166541
|
+
}
|
|
166542
|
+
],
|
|
166543
|
+
"tags": {}
|
|
166544
|
+
},
|
|
166527
166545
|
{
|
|
166528
166546
|
"kind": "property",
|
|
166529
166547
|
"name": "shouldMirror",
|
|
@@ -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": "12.5.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "12.5.
|
|
23
|
-
"@workday/canvas-kit-react": "12.5.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^12.5.
|
|
25
|
-
"@workday/canvas-kit-styling": "12.5.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "12.5.8",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "12.5.8",
|
|
23
|
+
"@workday/canvas-kit-react": "12.5.8",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^12.5.8",
|
|
25
|
+
"@workday/canvas-kit-styling": "12.5.8",
|
|
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": "12.5.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "12.5.
|
|
23
|
-
"@workday/canvas-kit-react": "12.5.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^12.5.
|
|
25
|
-
"@workday/canvas-kit-styling": "12.5.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "12.5.8",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "12.5.8",
|
|
23
|
+
"@workday/canvas-kit-react": "12.5.8",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^12.5.8",
|
|
25
|
+
"@workday/canvas-kit-styling": "12.5.8",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.22",
|
|
27
27
|
"@workday/canvas-tokens-web": "2.0.0"
|
|
28
28
|
},
|
|
@@ -8,23 +8,17 @@ export default () => {
|
|
|
8
8
|
<Flex flexDirection={'column'} gap={system.space.x2}>
|
|
9
9
|
<InformationHighlight variant={'critical'}>
|
|
10
10
|
<InformationHighlight.Icon />
|
|
11
|
-
<InformationHighlight.Heading>
|
|
12
|
-
{' '}
|
|
13
|
-
Attention! Highlight Something{' '}
|
|
14
|
-
</InformationHighlight.Heading>
|
|
11
|
+
<InformationHighlight.Heading>Attention! Highlight Something</InformationHighlight.Heading>
|
|
15
12
|
<InformationHighlight.Body>
|
|
16
|
-
If you select the link below it will
|
|
13
|
+
If you select the link below it will reroute you back to this page.
|
|
17
14
|
</InformationHighlight.Body>
|
|
18
15
|
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
|
|
19
16
|
</InformationHighlight>
|
|
20
17
|
<InformationHighlight variant={'critical'} emphasis={'high'}>
|
|
21
18
|
<InformationHighlight.Icon />
|
|
22
|
-
<InformationHighlight.Heading>
|
|
23
|
-
{' '}
|
|
24
|
-
Attention! Highlight Something{' '}
|
|
25
|
-
</InformationHighlight.Heading>
|
|
19
|
+
<InformationHighlight.Heading>Attention! Highlight Something</InformationHighlight.Heading>
|
|
26
20
|
<InformationHighlight.Body>
|
|
27
|
-
If you select the link below it will
|
|
21
|
+
If you select the link below it will reroute you back to this page.
|
|
28
22
|
</InformationHighlight.Body>
|
|
29
23
|
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
|
|
30
24
|
</InformationHighlight>
|
|
@@ -2,6 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
3
3
|
import {InformationHighlight} from '@workday/canvas-kit-preview-react/information-highlight';
|
|
4
4
|
import {system} from '@workday/canvas-tokens-web';
|
|
5
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
+
|
|
7
|
+
const contentTextStyles = createStyles({
|
|
8
|
+
margin: 0,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const contentListStyles = createStyles({
|
|
12
|
+
listStyle: 'inside',
|
|
13
|
+
marginInlineStart: 0,
|
|
14
|
+
marginBlockStart: system.space.x2,
|
|
15
|
+
marginBlockEnd: 0,
|
|
16
|
+
padding: 0,
|
|
17
|
+
});
|
|
5
18
|
|
|
6
19
|
export default () => {
|
|
7
20
|
return (
|
|
@@ -10,17 +23,33 @@ export default () => {
|
|
|
10
23
|
<InformationHighlight.Icon />
|
|
11
24
|
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
|
|
12
25
|
<InformationHighlight.Body>
|
|
13
|
-
|
|
26
|
+
<p className={contentTextStyles}>
|
|
27
|
+
This is a low-emphasis, informational callout. You should use this for nice-to-have
|
|
28
|
+
information, such as:
|
|
29
|
+
</p>
|
|
30
|
+
<ul className={contentListStyles}>
|
|
31
|
+
<li>tangential information or context</li>
|
|
32
|
+
<li>related features</li>
|
|
33
|
+
<li>additional opportunities</li>
|
|
34
|
+
</ul>
|
|
14
35
|
</InformationHighlight.Body>
|
|
15
|
-
<InformationHighlight.Link href="#hyperlink">
|
|
36
|
+
<InformationHighlight.Link href="#hyperlink">Learn More</InformationHighlight.Link>
|
|
16
37
|
</InformationHighlight>
|
|
17
38
|
<InformationHighlight variant={'informational'} emphasis={'high'}>
|
|
18
39
|
<InformationHighlight.Icon />
|
|
19
40
|
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
|
|
20
41
|
<InformationHighlight.Body>
|
|
21
|
-
|
|
42
|
+
<p className={contentTextStyles}>
|
|
43
|
+
This is a high-emphasis, informational callout. You should use this for nice-to-have
|
|
44
|
+
information, such as:
|
|
45
|
+
</p>
|
|
46
|
+
<ul className={contentListStyles}>
|
|
47
|
+
<li>tangential information or context</li>
|
|
48
|
+
<li>related features</li>
|
|
49
|
+
<li>additional opportunities</li>
|
|
50
|
+
</ul>
|
|
22
51
|
</InformationHighlight.Body>
|
|
23
|
-
<InformationHighlight.Link href="#hyperlink">
|
|
52
|
+
<InformationHighlight.Link href="#hyperlink">Learn More</InformationHighlight.Link>
|
|
24
53
|
</InformationHighlight>
|
|
25
54
|
</Flex>
|
|
26
55
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "12.6.0-
|
|
3
|
+
"version": "12.6.0-1086-next.0",
|
|
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": "^12.6.0-
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^12.6.0-
|
|
50
|
-
"@workday/canvas-kit-react": "^12.6.0-
|
|
51
|
-
"@workday/canvas-kit-styling": "^12.6.0-
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^12.6.0-1086-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^12.6.0-1086-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^12.6.0-1086-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^12.6.0-1086-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
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": "41f131988e22a1c933bbdac9d95130886b0ef094"
|
|
65
65
|
}
|