@workday/canvas-kit-docs 16.0.0-alpha.0486-next.0 → 16.0.0-alpha.0489-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/Table.js +1 -1
- package/dist/es6/lib/docs.js +7 -7
- package/dist/es6/mdx/welcomePage.d.ts.map +1 -1
- package/dist/es6/mdx/welcomePage.js +19 -16
- package/dist/mdx/16.0-UPGRADE-GUIDE.mdx +30 -5
- package/dist/mdx/react/avatar/Avatar.mdx +1 -2
- package/dist/mdx/react/side-panel/SidePanel.mdx +1 -2
- package/lib/Table.tsx +1 -1
- package/package.json +6 -6
package/dist/es6/lib/Table.js
CHANGED
|
@@ -16,7 +16,7 @@ const TableBody = createComponent('tbody')({
|
|
|
16
16
|
});
|
|
17
17
|
const tableRowStencil = createStencil({
|
|
18
18
|
base: {
|
|
19
|
-
borderBlockEnd: `${px2rem(1)} solid ${system.color.border.
|
|
19
|
+
borderBlockEnd: `${px2rem(1)} solid ${system.legacy.color.border.default}`,
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
const TableRow = createComponent('tr')({
|
package/dist/es6/lib/docs.js
CHANGED
|
@@ -13483,7 +13483,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
13483
13483
|
},
|
|
13484
13484
|
{
|
|
13485
13485
|
"kind": "string",
|
|
13486
|
-
"value": "avatar
|
|
13486
|
+
"value": "avatar"
|
|
13487
13487
|
},
|
|
13488
13488
|
{
|
|
13489
13489
|
"kind": "string",
|
|
@@ -13623,7 +13623,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
13623
13623
|
},
|
|
13624
13624
|
{
|
|
13625
13625
|
"kind": "string",
|
|
13626
|
-
"value": "side-panel
|
|
13626
|
+
"value": "side-panel"
|
|
13627
13627
|
},
|
|
13628
13628
|
{
|
|
13629
13629
|
"kind": "string",
|
|
@@ -13753,6 +13753,10 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
13753
13753
|
"kind": "string",
|
|
13754
13754
|
"value": "banner"
|
|
13755
13755
|
},
|
|
13756
|
+
{
|
|
13757
|
+
"kind": "string",
|
|
13758
|
+
"value": "side-panel"
|
|
13759
|
+
},
|
|
13756
13760
|
{
|
|
13757
13761
|
"kind": "string",
|
|
13758
13762
|
"value": "action-bar"
|
|
@@ -13763,7 +13767,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
13763
13767
|
},
|
|
13764
13768
|
{
|
|
13765
13769
|
"kind": "string",
|
|
13766
|
-
"value": "avatar
|
|
13770
|
+
"value": "avatar"
|
|
13767
13771
|
},
|
|
13768
13772
|
{
|
|
13769
13773
|
"kind": "string",
|
|
@@ -13873,10 +13877,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
13873
13877
|
"kind": "string",
|
|
13874
13878
|
"value": "side-panel-(deprecated)"
|
|
13875
13879
|
},
|
|
13876
|
-
{
|
|
13877
|
-
"kind": "string",
|
|
13878
|
-
"value": "side-panel-(new)"
|
|
13879
|
-
},
|
|
13880
13880
|
{
|
|
13881
13881
|
"kind": "string",
|
|
13882
13882
|
"value": "skeleton"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcomePage.d.ts","sourceRoot":"","sources":["../../../mdx/welcomePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"welcomePage.d.ts","sourceRoot":"","sources":["../../../mdx/welcomePage.tsx"],"names":[],"mappings":"AA0DA,eAAO,MAAM,WAAW,+CAyGvB,CAAC"}
|
|
@@ -2,21 +2,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// @ts-ignore: Cannot find module error
|
|
3
3
|
import { ExternalHyperlink, Hyperlink } from '@workday/canvas-kit-react/button';
|
|
4
4
|
import { Card } from '@workday/canvas-kit-react/card';
|
|
5
|
-
import {
|
|
5
|
+
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
6
6
|
import { Box, Flex, Grid } from '@workday/canvas-kit-react/layout';
|
|
7
7
|
import { Heading, Text } from '@workday/canvas-kit-react/text';
|
|
8
|
-
import { createStyles
|
|
8
|
+
import { createStyles } from '@workday/canvas-kit-styling';
|
|
9
|
+
import { fontEditIcon, rocketIcon, tokensIcon } from '@workday/canvas-system-icons-web';
|
|
9
10
|
import { system } from '@workday/canvas-tokens-web';
|
|
10
11
|
// @ts-ignore: Cannot find module error
|
|
11
12
|
import { version } from '../../../lerna.json';
|
|
12
|
-
// @ts-ignore: Cannot find module error
|
|
13
|
-
import componentsImage from './Components.png';
|
|
14
|
-
// @ts-ignore: Cannot find module error
|
|
15
|
-
import stylingImage from './Styling.png';
|
|
16
|
-
// @ts-ignore: Cannot find module error
|
|
17
|
-
import tokensImage from './Tokens.png';
|
|
18
|
-
import headerImage from './ck-banner.jpg';
|
|
19
13
|
import { InstallBlock } from './installBlock';
|
|
14
|
+
import headerImage from './sana-canvas-header.jpg';
|
|
20
15
|
const parentFlexStyles = createStyles({
|
|
21
16
|
display: 'flex',
|
|
22
17
|
flexDirection: 'column',
|
|
@@ -36,19 +31,27 @@ const imageStyles = createStyles({
|
|
|
36
31
|
width: '100%',
|
|
37
32
|
height: 'auto',
|
|
38
33
|
});
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
const cardHeaderStyles = createStyles({
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
gap: system.gap.xs,
|
|
38
|
+
});
|
|
39
|
+
const cardStyles = createStyles({
|
|
40
|
+
height: '100%',
|
|
41
|
+
});
|
|
42
|
+
const cardBodyStyles = createStyles({
|
|
43
|
+
display: 'flex',
|
|
44
|
+
flex: 1,
|
|
45
|
+
flexDirection: 'column',
|
|
43
46
|
});
|
|
44
47
|
const linkStyles = createStyles({
|
|
45
|
-
|
|
46
|
-
marginBlockStart: px2rem(12),
|
|
48
|
+
marginBlockStart: 'auto',
|
|
47
49
|
});
|
|
48
50
|
export const WelcomePage = () => {
|
|
49
51
|
return (_jsx("div", { className: "sb-unstyled", children: _jsxs("div", { className: parentFlexStyles, children: [_jsxs(Box, { cs: { overflow: 'hidden', position: 'relative' }, children: [_jsx("img", { src: headerImage, alt: "banner with canvas kit logo and version", className: imageStyles }), _jsx(Flex, { cs: { flexDirection: 'row', position: 'absolute', top: '45%', right: '5%' }, children: _jsxs(Text, { typeLevel: "title.medium", cs: [bannerTextStyles, versionStyles], children: ["v", version] }) })] }), _jsxs(Text, { typeLevel: "body.medium", children: ["This project provides a set of components for the Workday Canvas Design System that can be used to implement user experiences consistent with", _jsx(ExternalHyperlink, { href: "https://canvas.workdaydesign.com/", iconLabel: "Open docs in new window", cs: { marginInlineStart: system.gap.xs }, children: "Workday Design Principles." })] }), _jsx(Heading, { size: "medium", children: "Quick Links" }), _jsxs(Grid, { cs: {
|
|
50
52
|
gridAutoColumns: 'auto',
|
|
51
53
|
gridTemplateColumns: 'repeat(auto-fill, minmax(250px, 1fr))',
|
|
52
54
|
gridGap: system.gap.sm,
|
|
53
|
-
|
|
55
|
+
alignItems: 'stretch',
|
|
56
|
+
}, children: [_jsxs(Card, { className: cardStyles, children: [_jsxs(Flex, { className: cardHeaderStyles, children: [_jsx(SystemIcon, { icon: rocketIcon, "aria-hidden": "true" }), _jsx(Card.Heading, { children: "Getting Started" })] }), _jsxs(Card.Body, { className: cardBodyStyles, children: [_jsx(Text, { children: "For all things getting started including helpful guides and docs." }), _jsx(Hyperlink, { className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/guides-getting-started--docs", children: "Getting Started Guide" })] })] }), _jsxs(Card, { className: cardStyles, children: [_jsxs(Flex, { className: cardHeaderStyles, children: [_jsx(SystemIcon, { icon: tokensIcon, "aria-hidden": "true" }), _jsx(Card.Heading, { children: "Tokens" })] }), _jsxs(Card.Body, { className: cardBodyStyles, children: [_jsx(Text, { children: "Tokens are the smallest pieces of our Design System with the primary function of storing UI information." }), _jsx(ExternalHyperlink, { className: linkStyles, href: "https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs", children: "View Our Tokens" })] })] }), _jsxs(Card, { className: cardStyles, children: [_jsxs(Flex, { className: cardHeaderStyles, children: [_jsx(SystemIcon, { icon: fontEditIcon, "aria-hidden": "true" }), _jsx(Card.Heading, { children: "Styling" })] }), _jsxs(Card.Body, { className: cardBodyStyles, children: [_jsx(Text, { children: "Learn how to style Canvas components using tokens, theming, and custom CSS approaches." }), _jsx(Hyperlink, { className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs", children: "Get Started" })] })] })] }), _jsx(Heading, { size: "medium", children: "Installation" }), _jsx(Text, { children: "To get started using Canvas Kit React first add or install the module to your existing React project" }), _jsx(InstallBlock, { command: "yarn add", packageName: "@workday/canvas-kit-react @workday/canvas-tokens-web" }), "or", _jsx(InstallBlock, { command: "npm install", packageName: "@workday/canvas-kit-react @workday/canvas-tokens-web" })] }) }));
|
|
54
57
|
};
|
|
@@ -21,6 +21,7 @@ Soon to be...
|
|
|
21
21
|
- [Buttons](#buttons)
|
|
22
22
|
- [Delete Button Outline Variant](#delete-button-outline-variant)
|
|
23
23
|
- [Card](#card)
|
|
24
|
+
- [Expandable](#expandable)
|
|
24
25
|
- [Indicators](#indicators)
|
|
25
26
|
- [Banner](#banner)
|
|
26
27
|
- [Count Badge](#count-badge)
|
|
@@ -49,6 +50,7 @@ Soon to be...
|
|
|
49
50
|
- [Pagination](#pagination)
|
|
50
51
|
- [Popup](#popup)
|
|
51
52
|
- [Segmented Control](#segmented-control)
|
|
53
|
+
- [Table](#table)
|
|
52
54
|
- [Toast](#toast)
|
|
53
55
|
- [Tooltip](#tooltip)
|
|
54
56
|
- [New Utilities](#new-utilities)
|
|
@@ -216,9 +218,6 @@ import {Avatar} from '@workday/canvas-kit-react/avatar';
|
|
|
216
218
|
<Avatar name="Green Arrow" variant="green" />
|
|
217
219
|
```
|
|
218
220
|
|
|
219
|
-
No migration is required unless you rely on the previous color values for custom styling via the
|
|
220
|
-
`cs` prop or `baseAvatarStencil` modifiers.
|
|
221
|
-
|
|
222
221
|
### Buttons
|
|
223
222
|
|
|
224
223
|
**PR:** [#4000](https://github.com/Workday/canvas-kit/pull/4000)
|
|
@@ -268,6 +267,17 @@ import {DeleteButton} from '@workday/canvas-kit-react/button';
|
|
|
268
267
|
- Card's border radius is now managed via the new `cornerShapeStencil` (see
|
|
269
268
|
[New Utilities](#new-utilities)).
|
|
270
269
|
|
|
270
|
+
### Expandable
|
|
271
|
+
|
|
272
|
+
#### Visual Updates
|
|
273
|
+
|
|
274
|
+
- `Expandable.Target` border radius changed from `shape.xxl` (24px, pill) to `shape.lg` (12px), now
|
|
275
|
+
managed via `cornerShapeStencil` (see [New Utilities](#new-utilities)).
|
|
276
|
+
- Gap between `Expandable.Target` and `Expandable.Content` is now `gap.sm` (8px), set on the
|
|
277
|
+
`Expandable` container (previously handled entirely via `Expandable.Content`'s top padding).
|
|
278
|
+
- `Expandable.Content` padding is now uniform `padding.xs` (8px) on all sides (previously
|
|
279
|
+
`padding.md` top / `padding.xs` sides and bottom).
|
|
280
|
+
|
|
271
281
|
### Indicators
|
|
272
282
|
|
|
273
283
|
#### Banner
|
|
@@ -744,6 +754,21 @@ Run the Canvas Kit v16 codemod (`updateHyperlinkProps`) to migrate automatically
|
|
|
744
754
|
- Container padding changed to `padding.md` (16px) including for mobile devices.
|
|
745
755
|
- On mobile devices, the container padding remains `padding.md` (16px).
|
|
746
756
|
|
|
757
|
+
### Table
|
|
758
|
+
|
|
759
|
+
#### Visual Updates
|
|
760
|
+
|
|
761
|
+
- `BaseTable` / `Table` outer border color updated from `system.legacy.color.border.strong` to
|
|
762
|
+
`system.legacy.color.border.default`.
|
|
763
|
+
- `Table.Caption` divider (`borderBlockEnd`) updated from `system.legacy.color.border.strong` to
|
|
764
|
+
`system.legacy.color.border.default`.
|
|
765
|
+
- Container corner radius is now **12px** (`shape.lg`, previously `shape.md` / 8px), managed via
|
|
766
|
+
`cornerShapeStencil` (see [New Utilities](#new-utilities)).
|
|
767
|
+
- `Table.Header` (and `BaseTable.Header`) cell padding is now uniform `padding.md` (16px) on all
|
|
768
|
+
sides (previously asymmetric `padding.xs` vertically and `padding.md` horizontally).
|
|
769
|
+
- Column header label text color is now `system.color.fg.strong` (previously inherited `fg.default`
|
|
770
|
+
from the table container).
|
|
771
|
+
|
|
747
772
|
### Toast
|
|
748
773
|
|
|
749
774
|
**PR:** [#4053](https://github.com/Workday/canvas-kit/pull/4053)
|
|
@@ -802,8 +827,8 @@ export const myStencil = createStencil({
|
|
|
802
827
|
});
|
|
803
828
|
```
|
|
804
829
|
|
|
805
|
-
`Card`, `Menu` (`Menu.Card`, `Menu.List`, `Menu.Item`),
|
|
806
|
-
their rounded corners.
|
|
830
|
+
`Card`, `Expandable` (`Expandable.Target`), `Menu` (`Menu.Card`, `Menu.List`, `Menu.Item`), `MultiSelect`, and
|
|
831
|
+
`Table` (`BaseTable`, `Table`) extend this stencil for their rounded corners.
|
|
807
832
|
|
|
808
833
|
## Deprecations
|
|
809
834
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExampleCodeBlock,
|
|
3
3
|
Specifications,
|
|
4
|
-
StorybookStatusIndicator,
|
|
5
4
|
SymbolDoc,
|
|
6
5
|
} from '@workday/canvas-kit-docs';
|
|
7
6
|
|
|
@@ -15,7 +14,7 @@ import Size from './examples/Size';
|
|
|
15
14
|
import Variant from './examples/Variant';
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
# Avatar
|
|
17
|
+
# Avatar
|
|
19
18
|
|
|
20
19
|
## Installation
|
|
21
20
|
|
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
ExampleCodeBlock,
|
|
3
3
|
SymbolDoc,
|
|
4
4
|
Specifications,
|
|
5
|
-
StorybookStatusIndicator,
|
|
6
5
|
} from '@workday/canvas-kit-docs';
|
|
7
6
|
import Basic from './examples/Basic';
|
|
8
7
|
import Heading from './examples/Heading';
|
|
@@ -13,7 +12,7 @@ import AlwaysOpen from './examples/AlwaysOpen';
|
|
|
13
12
|
import OnStateTransition from './examples/OnStateTransition';
|
|
14
13
|
|
|
15
14
|
|
|
16
|
-
# Canvas Kit Side Panel
|
|
15
|
+
# Canvas Kit Side Panel
|
|
17
16
|
|
|
18
17
|
`SidePanel` is a collapsible container that anchors to the left or right side of the screen. It uses
|
|
19
18
|
the model pattern for state management and is fully accessible.
|
package/lib/Table.tsx
CHANGED
|
@@ -18,7 +18,7 @@ const TableBody = createComponent('tbody')({
|
|
|
18
18
|
|
|
19
19
|
const tableRowStencil = createStencil({
|
|
20
20
|
base: {
|
|
21
|
-
borderBlockEnd: `${px2rem(1)} solid ${system.color.border.
|
|
21
|
+
borderBlockEnd: `${px2rem(1)} solid ${system.legacy.color.border.default}`,
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.0489-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",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@stackblitz/sdk": "^1.11.0",
|
|
48
48
|
"@storybook/csf": "0.0.1",
|
|
49
49
|
"@workday/canvas-expressive-icons-web": "1.0.2",
|
|
50
|
-
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-react": "^16.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-styling": "^16.0.0-alpha.
|
|
50
|
+
"@workday/canvas-kit-labs-react": "^16.0.0-alpha.0489-next.0",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.0489-next.0",
|
|
52
|
+
"@workday/canvas-kit-react": "^16.0.0-alpha.0489-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^16.0.0-alpha.0489-next.0",
|
|
54
54
|
"@workday/canvas-system-icons-web": "5.0.1",
|
|
55
55
|
"@workday/canvas-tokens-web": "4.4.0-beta.7",
|
|
56
56
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"mkdirp": "^1.0.3",
|
|
64
64
|
"typescript": "5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "7fd27af4a93c1a32acd105aefd72090a1d1b458a"
|
|
67
67
|
}
|