@workday/canvas-kit-docs 16.0.0-alpha.0486-next.0 → 16.0.0-alpha.0487-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.
|
@@ -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
|
};
|
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.0487-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.0487-next.0",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^16.0.0-alpha.0487-next.0",
|
|
52
|
+
"@workday/canvas-kit-react": "^16.0.0-alpha.0487-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^16.0.0-alpha.0487-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": "80bd19c17860e51ce456ce4d2b9a2902b0d692e9"
|
|
67
67
|
}
|