@workday/canvas-kit-docs 14.0.0-alpha.1190-next.0 → 14.0.0-alpha.1194-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.
@@ -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": "13.2.12",
22
- "@workday/canvas-kit-preview-react": "13.2.12",
23
- "@workday/canvas-kit-react": "13.2.12",
24
- "@workday/canvas-kit-react-fonts": "^13.2.12",
25
- "@workday/canvas-kit-styling": "13.2.12",
21
+ "@workday/canvas-kit-labs-react": "13.2.13",
22
+ "@workday/canvas-kit-preview-react": "13.2.13",
23
+ "@workday/canvas-kit-react": "13.2.13",
24
+ "@workday/canvas-kit-react-fonts": "^13.2.13",
25
+ "@workday/canvas-kit-styling": "13.2.13",
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": "13.2.12",
22
- "@workday/canvas-kit-preview-react": "13.2.12",
23
- "@workday/canvas-kit-react": "13.2.12",
24
- "@workday/canvas-kit-react-fonts": "^13.2.12",
25
- "@workday/canvas-kit-styling": "13.2.12",
21
+ "@workday/canvas-kit-labs-react": "13.2.13",
22
+ "@workday/canvas-kit-preview-react": "13.2.13",
23
+ "@workday/canvas-kit-react": "13.2.13",
24
+ "@workday/canvas-kit-react-fonts": "^13.2.13",
25
+ "@workday/canvas-kit-styling": "13.2.13",
26
26
  "@workday/canvas-system-icons-web": "3.0.22",
27
27
  "@workday/canvas-tokens-web": "2.0.0"
28
28
  },
@@ -1 +1 @@
1
- {"version":3,"file":"welcomePage.d.ts","sourceRoot":"","sources":["../../../mdx/welcomePage.tsx"],"names":[],"mappings":"AAqDA,eAAO,MAAM,WAAW,+CAwHvB,CAAC"}
1
+ {"version":3,"file":"welcomePage.d.ts","sourceRoot":"","sources":["../../../mdx/welcomePage.tsx"],"names":[],"mappings":"AAgDA,eAAO,MAAM,WAAW,+CAiHvB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-ignore: Cannot find module error
3
- import headerImage from './CK-banner-temp.jpg';
3
+ import headerImage from './ck-banner.jpg';
4
4
  import { Flex, Grid, Box } from '@workday/canvas-kit-react/layout';
5
5
  import { InstallBlock } from './installBlock';
6
6
  import { Text, Heading } from '@workday/canvas-kit-react/text';
@@ -8,7 +8,7 @@ import { Card } from '@workday/canvas-kit-react/card';
8
8
  import { ExternalHyperlink, Hyperlink } from '@workday/canvas-kit-react/button';
9
9
  import { rocketIcon, tokensIcon, shapesIcon } from '@workday/canvas-system-icons-web';
10
10
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
11
- import { system } from '@workday/canvas-tokens-web';
11
+ import { system, base } from '@workday/canvas-tokens-web';
12
12
  import { createStyles } from '@workday/canvas-kit-styling';
13
13
  // @ts-ignore: Cannot find module error
14
14
  import { version } from '../../../lerna.json';
@@ -18,7 +18,7 @@ const parentFlexStyles = createStyles({
18
18
  gap: system.space.x4,
19
19
  marginBottom: system.space.x6,
20
20
  });
21
- const textStyles = createStyles({
21
+ const bannerTextStyles = createStyles({
22
22
  color: system.color.text.inverse,
23
23
  fontSize: '5vmin',
24
24
  lineHeight: '5vmin',
@@ -31,10 +31,6 @@ const imageStyles = createStyles({
31
31
  width: '100%',
32
32
  height: 'auto',
33
33
  });
34
- const borderStyles = createStyles({
35
- borderBottom: `1px solid ${system.color.border.primary.default}`,
36
- marginBottom: system.space.x2,
37
- });
38
34
  const gridStyles = createStyles({
39
35
  maxHeight: 320,
40
36
  gridTemplateRows: '1fr 1fr 2fr 1fr',
@@ -45,5 +41,5 @@ const linkStyles = createStyles({
45
41
  marginTop: system.space.x3,
46
42
  });
47
43
  export const WelcomePage = () => {
48
- return (_jsx("div", { className: "sb-unstyled", children: _jsxs("div", { className: parentFlexStyles, children: [_jsxs(Box, { cs: { overflow: 'hidden', position: 'relative' }, children: [_jsxs(Flex, { cs: { flexDirection: 'row', position: 'absolute', top: '45%', left: '10%' }, children: [_jsx(Text, { typeLevel: "title.medium", cs: textStyles, children: "Canvas Kit" }), _jsxs(Text, { typeLevel: "title.medium", cs: [textStyles, versionStyles], children: ["v", version] })] }), _jsx("img", { src: headerImage, alt: "banner with canvas kit logo and version", className: imageStyles })] }), _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", children: "Workday Design Principles." })] }), _jsx(Heading, { size: "medium", className: borderStyles, children: "Quick Links" }), _jsxs(Grid, { gridAutoColumns: "auto", gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))", gridGap: "s", children: [_jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.static.amber.default, colorHover: system.color.static.amber.default, icon: rocketIcon, size: 60 }), _jsx(Card.Heading, { children: "Getting Started" }), _jsx(Card.Body, { children: _jsx(Text, { children: "For all things getting started including helpful guides and docs." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/guides-getting-started--docs", children: "Getting Started Guide" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.fg.primary.default, icon: tokensIcon, colorHover: system.color.fg.primary.default, size: 60 }), _jsx(Card.Heading, { children: "Tokens" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Tokens are the smallest pieces of our Design System with the primary function of storing UI information." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/tokens--overview", children: "View Our Tokens" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: system.color.static.green.default, icon: shapesIcon, size: 60, colorHover: system.color.static.green.default }), _jsx(Card.Heading, { children: "Assets" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Assets are graphics which help communicate meaning or highlight areas of interaction to our users." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/assets-icons--overview", children: "View Assets" })] })] }), _jsx(Heading, { size: "medium", className: borderStyles, 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" })] }) }));
44
+ 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", children: "Workday Design Principles." })] }), _jsx(Heading, { size: "medium", children: "Quick Links" }), _jsxs(Grid, { gridAutoColumns: "auto", gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))", gridGap: "s", children: [_jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: base.magenta600, icon: rocketIcon, size: 60 }), _jsx(Card.Heading, { children: "Getting Started" }), _jsx(Card.Body, { children: _jsx(Text, { children: "For all things getting started including helpful guides and docs." }) }), _jsx(Grid.Item, { as: Hyperlink, className: linkStyles, href: "https://workday.github.io/canvas-kit/?path=/docs/guides-getting-started--docs", children: "Getting Started Guide" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: base.red300, icon: tokensIcon, size: 60 }), _jsx(Card.Heading, { children: "Tokens" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Tokens are the smallest pieces of our Design System with the primary function of storing UI information." }) }), _jsx(Grid.Item, { as: ExternalHyperlink, className: linkStyles, href: "https://workday.github.io/canvas-tokens/?path=%2Fdocs%2Fdocs-getting-started--docs", children: "View Our Tokens" })] }), _jsxs(Grid, { as: Card, className: gridStyles, children: [_jsx(SystemIcon, { color: base.teal500, icon: shapesIcon, size: 60 }), _jsx(Card.Heading, { children: "Styling" }), _jsx(Card.Body, { children: _jsx(Text, { children: "Learn how to style Canvas components using tokens, theming, and custom CSS approaches." }) }), _jsx(Grid.Item, { as: 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" })] }) }));
49
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "14.0.0-alpha.1190-next.0",
3
+ "version": "14.0.0-alpha.1194-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": "^14.0.0-alpha.1190-next.0",
49
- "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1190-next.0",
50
- "@workday/canvas-kit-react": "^14.0.0-alpha.1190-next.0",
51
- "@workday/canvas-kit-styling": "^14.0.0-alpha.1190-next.0",
48
+ "@workday/canvas-kit-labs-react": "^14.0.0-alpha.1194-next.0",
49
+ "@workday/canvas-kit-preview-react": "^14.0.0-alpha.1194-next.0",
50
+ "@workday/canvas-kit-react": "^14.0.0-alpha.1194-next.0",
51
+ "@workday/canvas-kit-styling": "^14.0.0-alpha.1194-next.0",
52
52
  "@workday/canvas-system-icons-web": "^3.0.35",
53
53
  "@workday/canvas-tokens-web": "3.0.0-alpha.10",
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": "152cb8d23c62761fd6e0af7b99c871907d986134"
64
+ "gitHead": "c164b3dee64b51c13f371a09b8bef05aabeca94e"
65
65
  }