@workday/canvas-kit-docs 14.0.0-alpha.1135-next.0 → 14.0.0-alpha.1144-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 +740 -27
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/es6/mdx/installBlock.d.ts.map +1 -1
- package/dist/es6/mdx/installBlock.js +3 -2
- package/dist/es6/mdx/welcomePage.js +4 -4
- package/dist/mdx/11.0-UPGRADE-GUIDE.mdx +36 -60
- package/dist/mdx/14.0-UPGRADE-GUIDE.mdx +4 -2
- package/dist/mdx/preview-react/pill/examples/CustomStyles.tsx +25 -17
- package/dist/mdx/preview-react/radio/examples/Custom.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/AriaLiveRegions/FilterListWithLiveStatus.tsx +4 -4
- package/dist/mdx/react/_examples/mdx/examples/GlobalHeader.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithNavigation.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/SidePanelWithOverlay.tsx +2 -2
- package/dist/mdx/react/_examples/mdx/examples/Table/WithSelectableRows.tsx +3 -3
- package/dist/mdx/react/_examples/mdx/examples/common/FilterListWithLiveStatus.tsx +3 -3
- package/dist/mdx/react/_examples/mdx/examples/common/VisibleLiveRegion.tsx +3 -3
- package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +7 -7
- package/dist/mdx/react/badge/examples/Basic.tsx +3 -3
- package/dist/mdx/react/badge/examples/CustomLimit.tsx +5 -5
- package/dist/mdx/react/badge/examples/NotificationBadge.tsx +1 -1
- package/dist/mdx/react/button/button/examples/CustomStyles.tsx +8 -8
- package/dist/mdx/react/icon/examples/Overview.tsx +2 -2
- package/dist/mdx/react/table/examples/RightToLeft.tsx +1 -1
- package/dist/mdx/react/text/examples/LabelText/Disabled.tsx +2 -2
- package/package.json +7 -7
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {Avatar} from '@workday/canvas-kit-react/avatar';
|
|
2
2
|
import {createStencil, createStyles} from '@workday/canvas-kit-styling';
|
|
3
|
-
import {
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
4
|
import {systemIconStencil} from '../../../../icon';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const customOrangeAvatar = createStencil({
|
|
7
7
|
base: {
|
|
8
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: system.color.static.amber.default,
|
|
9
9
|
['[data-part="avatar-icon"]']: {
|
|
10
|
-
[systemIconStencil.vars.color]:
|
|
10
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const customGreenAvatarStencil = createStencil({
|
|
16
16
|
base: {
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: system.color.static.green.default,
|
|
18
18
|
['[data-part="avatar-icon"]']: {
|
|
19
|
-
[systemIconStencil.vars.color]:
|
|
19
|
+
[systemIconStencil.vars.color]: system.color.static.white,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
});
|
|
@@ -28,7 +28,7 @@ const containerStyles = createStyles({
|
|
|
28
28
|
|
|
29
29
|
export default () => (
|
|
30
30
|
<div className={containerStyles}>
|
|
31
|
-
<Avatar altText="Avatar" as="div" {...
|
|
31
|
+
<Avatar altText="Avatar" as="div" {...customOrangeAvatar()} />
|
|
32
32
|
<Avatar altText="Avatar" as="div" {...customGreenAvatarStencil()} />
|
|
33
33
|
</div>
|
|
34
34
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {CountBadge} from '@workday/canvas-kit-react/badge';
|
|
3
3
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
4
|
-
import {
|
|
4
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
5
5
|
|
|
6
6
|
const containerStyles = createStyles({
|
|
7
7
|
boxSizing: 'border-box',
|
|
@@ -11,13 +11,13 @@ const containerStyles = createStyles({
|
|
|
11
11
|
|
|
12
12
|
const defaultBackground = createStyles({
|
|
13
13
|
boxSizing: 'border-box',
|
|
14
|
-
backgroundColor:
|
|
14
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
15
15
|
padding: system.space.x4,
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const inverseBackground = createStyles({
|
|
19
19
|
boxSizing: 'border-box',
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: system.color.bg.primary.default,
|
|
21
21
|
padding: system.space.x4,
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import {CountBadge} from '@workday/canvas-kit-react/badge';
|
|
3
3
|
import {TertiaryButton} from '@workday/canvas-kit-react/button';
|
|
4
4
|
|
|
5
|
-
import {createStyles
|
|
6
|
-
import {
|
|
5
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const columnStyles = createStyles({
|
|
9
9
|
boxSizing: 'border-box',
|
|
@@ -14,7 +14,7 @@ const columnStyles = createStyles({
|
|
|
14
14
|
|
|
15
15
|
const controls = createStyles({
|
|
16
16
|
boxSizing: 'border-box',
|
|
17
|
-
borderBottom: `solid 1px ${
|
|
17
|
+
borderBottom: `solid 1px ${system.color.border.divider}`,
|
|
18
18
|
display: 'flex',
|
|
19
19
|
gap: system.space.x1,
|
|
20
20
|
padding: system.space.x1,
|
|
@@ -22,13 +22,13 @@ const controls = createStyles({
|
|
|
22
22
|
|
|
23
23
|
const defaultBackground = createStyles({
|
|
24
24
|
boxSizing: 'border-box',
|
|
25
|
-
backgroundColor:
|
|
25
|
+
backgroundColor: system.color.bg.alt.soft,
|
|
26
26
|
padding: system.space.x4,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
const inverseBackground = createStyles({
|
|
30
30
|
boxSizing: 'border-box',
|
|
31
|
-
backgroundColor:
|
|
31
|
+
backgroundColor: system.color.bg.primary.default,
|
|
32
32
|
padding: system.space.x4,
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -4,7 +4,7 @@ import {SecondaryButton, TertiaryButton} from '@workday/canvas-kit-react/button'
|
|
|
4
4
|
import {AriaLiveRegion, useUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {createStyles, cssVar} from '@workday/canvas-kit-styling';
|
|
6
6
|
import {notificationsIcon} from '@workday/canvas-system-icons-web';
|
|
7
|
-
import {
|
|
7
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
8
8
|
import {Tooltip} from '@workday/canvas-kit-react/tooltip';
|
|
9
9
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
10
10
|
|
|
@@ -76,21 +76,21 @@ const myCustomStyles = createStyles({
|
|
|
76
76
|
|
|
77
77
|
const customColors = {
|
|
78
78
|
default: {
|
|
79
|
-
background: system.color.static.
|
|
80
|
-
icon: system.color.static.
|
|
81
|
-
label: system.color.static.
|
|
79
|
+
background: system.color.static.amber.soft,
|
|
80
|
+
icon: system.color.static.amber.strong,
|
|
81
|
+
label: system.color.static.amber.strong,
|
|
82
82
|
},
|
|
83
83
|
focus: {
|
|
84
|
-
background: system.color.static.
|
|
85
|
-
boxShadowInner: system.color.static.
|
|
86
|
-
boxShadowOuter: system.color.static.
|
|
84
|
+
background: system.color.static.amber.strong,
|
|
85
|
+
boxShadowInner: system.color.static.amber.soft,
|
|
86
|
+
boxShadowOuter: system.color.static.amber.strong,
|
|
87
87
|
},
|
|
88
88
|
hover: {
|
|
89
|
-
background: system.color.static.
|
|
89
|
+
background: system.color.static.amber.default,
|
|
90
90
|
icon: system.color.icon.inverse,
|
|
91
91
|
},
|
|
92
92
|
active: {
|
|
93
|
-
background: system.color.static.
|
|
93
|
+
background: system.color.static.amber.strong,
|
|
94
94
|
},
|
|
95
95
|
disabled: {},
|
|
96
96
|
};
|
|
@@ -9,7 +9,7 @@ import {CanvasGraphic, CanvasIconTypes} from '@workday/design-assets-types';
|
|
|
9
9
|
import {AccentIcon, AppletIcon, SystemIcon, SystemIconCircle, Graphic} from '../../index';
|
|
10
10
|
import {activityStreamIcon} from '@workday/canvas-system-icons-web';
|
|
11
11
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
12
|
-
import {
|
|
12
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
13
13
|
|
|
14
14
|
const graphicExample: CanvasGraphic = {
|
|
15
15
|
name: 'badgeAchievement',
|
|
@@ -27,7 +27,7 @@ const styleOverrides = {
|
|
|
27
27
|
gap: system.space.x4,
|
|
28
28
|
}),
|
|
29
29
|
systemIconStyles: createStyles({
|
|
30
|
-
background:
|
|
30
|
+
background: system.color.static.red.softer,
|
|
31
31
|
}),
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {Table} from '@workday/canvas-kit-react/table';
|
|
4
4
|
import {CanvasProvider, ContentDirection} from '@workday/canvas-kit-react/common';
|
|
5
5
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
-
import {
|
|
6
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
7
7
|
|
|
8
8
|
const tableHeaderStyles = createStyles({
|
|
9
9
|
backgroundColor: system.color.bg.alt.softer,
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import {LabelText} from '@workday/canvas-kit-react/text';
|
|
3
3
|
|
|
4
4
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
5
|
-
import {
|
|
5
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
6
6
|
|
|
7
7
|
const inverseBackground = createStyles({
|
|
8
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: system.color.bg.primary.default,
|
|
9
9
|
padding: system.space.x4,
|
|
10
10
|
marginTop: system.space.x4,
|
|
11
11
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1144-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,12 +45,12 @@
|
|
|
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.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^14.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-react": "^14.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-styling": "^14.0.0-alpha.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^14.0.0-alpha.1144-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^14.0.0-alpha.1144-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^14.0.0-alpha.1144-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^14.0.0-alpha.1144-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
53
|
-
"@workday/canvas-tokens-web": "
|
|
53
|
+
"@workday/canvas-tokens-web": "3.0.0-alpha.0",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
55
55
|
"react-syntax-highlighter": "^15.5.0",
|
|
56
56
|
"ts-node": "^10.9.1"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "8c2a2215d9a0b96f98e4b768781d3a5061a61f9c"
|
|
65
65
|
}
|