@workday/canvas-kit-docs 8.3.4 → 8.3.5

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.
Files changed (44) hide show
  1. package/dist/commonjs/lib/specs.js +42 -42
  2. package/dist/commonjs/mdx/installBlock.d.ts +6 -0
  3. package/dist/commonjs/mdx/installBlock.d.ts.map +1 -0
  4. package/dist/commonjs/mdx/installBlock.js +31 -0
  5. package/dist/commonjs/mdx/welcomePage.d.ts +2 -0
  6. package/dist/commonjs/mdx/welcomePage.d.ts.map +1 -0
  7. package/dist/commonjs/mdx/welcomePage.js +66 -0
  8. package/dist/es6/lib/specs.js +42 -42
  9. package/dist/es6/mdx/installBlock.d.ts +6 -0
  10. package/dist/es6/mdx/installBlock.d.ts.map +1 -0
  11. package/dist/es6/mdx/installBlock.js +24 -0
  12. package/dist/es6/mdx/welcomePage.d.ts +2 -0
  13. package/dist/es6/mdx/welcomePage.d.ts.map +1 -0
  14. package/dist/es6/mdx/welcomePage.js +59 -0
  15. package/dist/mdx/4.0-UPGRADE-GUIDE.mdx +10 -0
  16. package/dist/mdx/5.0-UPGRADE-GUIDE.mdx +10 -0
  17. package/dist/mdx/6.0-UPGRADE-GUIDE.mdx +12 -2
  18. package/dist/mdx/7.0-UPGRADE-GUIDE.mdx +13 -3
  19. package/dist/mdx/8.0-UPGRADE-GUIDE.mdx +16 -10
  20. package/dist/mdx/API_PATTERN_GUIDELINES.mdx +11 -1
  21. package/dist/mdx/COMPOUND_COMPONENTS.mdx +10 -0
  22. package/dist/mdx/CONTRIBUTING.mdx +12 -3
  23. package/dist/mdx/CREATING_COMPOUND_COMPONENTS.mdx +10 -0
  24. package/dist/mdx/GETTING_STARTED.mdx +14 -0
  25. package/dist/mdx/MAINTAINING.mdx +10 -0
  26. package/dist/mdx/TESTING.mdx +10 -0
  27. package/dist/mdx/changelog.stories.mdx +9 -0
  28. package/dist/mdx/preview-react/segmented-control/SegmentedControl.mdx +1 -2
  29. package/dist/mdx/react/icon/Assets.mdx +28 -0
  30. package/dist/mdx/react/icon/examples/AccentIconList.tsx +50 -0
  31. package/dist/mdx/react/icon/examples/AppletIconList.tsx +50 -0
  32. package/dist/mdx/react/icon/examples/IconList.tsx +49 -0
  33. package/dist/mdx/react/icon/examples/Overview.tsx +30 -0
  34. package/dist/mdx/react/layout/Box.mdx +3 -1
  35. package/dist/mdx/react/layout/Flex.mdx +4 -7
  36. package/dist/mdx/react/layout/Grid.mdx +7 -4
  37. package/dist/mdx/react/tabs/Tabs.mdx +2 -3
  38. package/dist/mdx/react/text/Text.mdx +2 -2
  39. package/dist/mdx/react/tokens/Tokens.mdx +51 -0
  40. package/dist/mdx/react/tokens/examples/Overview.tsx +19 -0
  41. package/dist/mdx/react/tokens/examples/Tokens.tsx +276 -0
  42. package/dist/mdx/style-props/STYLE_PROPS.mdx +14 -4
  43. package/dist/mdx/welcome.stories.mdx +31 -1
  44. package/package.json +4 -3
@@ -51,7 +51,7 @@ module.exports = {specifications: [
51
51
  "children": [
52
52
  {
53
53
  "type": "describe",
54
- "name": "given the [Components/Indicators/Banner/React, Error] story is rendered",
54
+ "name": "given the [Components/Indicators/Banner, Error] story is rendered",
55
55
  "children": [
56
56
  {
57
57
  "type": "it",
@@ -73,7 +73,7 @@ module.exports = {specifications: [
73
73
  },
74
74
  {
75
75
  "type": "describe",
76
- "name": "given the [Components/Indicators/Banner/React, Sticky] story is rendered",
76
+ "name": "given the [Components/Indicators/Banner, Sticky] story is rendered",
77
77
  "children": [
78
78
  {
79
79
  "type": "it",
@@ -107,7 +107,7 @@ module.exports = {specifications: [
107
107
  "children": [
108
108
  {
109
109
  "type": "describe",
110
- "name": "given the [Components/Navigation/Breadcrumbs/React, Basic] example is rendered",
110
+ "name": "given the [Components/Navigation/Breadcrumbs, Basic] example is rendered",
111
111
  "children": [
112
112
  {
113
113
  "type": "it",
@@ -171,7 +171,7 @@ module.exports = {specifications: [
171
171
  },
172
172
  {
173
173
  "type": "describe",
174
- "name": "given the [Components/Navigation/Breadcrumbs/React, Overflow Breadcrumbs] example is rendered",
174
+ "name": "given the [Components/Navigation/Breadcrumbs, Overflow Breadcrumbs] example is rendered",
175
175
  "children": [
176
176
  {
177
177
  "type": "it",
@@ -203,7 +203,7 @@ module.exports = {specifications: [
203
203
  },
204
204
  {
205
205
  "type": "describe",
206
- "name": "given the [Components/Navigation/Breadcrumbs/React, Overflow Breadcrumbs] menu is rendered",
206
+ "name": "given the [Components/Navigation/Breadcrumbs, Overflow Breadcrumbs] menu is rendered",
207
207
  "children": [
208
208
  {
209
209
  "type": "it",
@@ -1225,7 +1225,7 @@ module.exports = {specifications: [
1225
1225
  "children": [
1226
1226
  {
1227
1227
  "type": "describe",
1228
- "name": "given the [Labs/Expandable/React, Long Title] story is rendered",
1228
+ "name": "given the [Labs/Expandable, Long Title] story is rendered",
1229
1229
  "children": [
1230
1230
  {
1231
1231
  "type": "it",
@@ -1401,7 +1401,7 @@ module.exports = {specifications: [
1401
1401
  "children": [
1402
1402
  {
1403
1403
  "type": "describe",
1404
- "name": "given the [Components/Popups/Menu/React, Basic] story is rendered",
1404
+ "name": "given the [Components/Popups/Menu, Basic] story is rendered",
1405
1405
  "children": [
1406
1406
  {
1407
1407
  "type": "it",
@@ -1546,7 +1546,7 @@ module.exports = {specifications: [
1546
1546
  "children": [
1547
1547
  {
1548
1548
  "type": "describe",
1549
- "name": "given the [Preview/Menu/React, Basic] example is rendered",
1549
+ "name": "given the [Preview/Menu, Basic] example is rendered",
1550
1550
  "children": [
1551
1551
  {
1552
1552
  "type": "it",
@@ -1584,7 +1584,7 @@ module.exports = {specifications: [
1584
1584
  "children": [
1585
1585
  {
1586
1586
  "type": "describe",
1587
- "name": "given the [Components/Popups/Modal/React, Basic] story is rendered",
1587
+ "name": "given the [Components/Popups/Modal, Basic] story is rendered",
1588
1588
  "children": [
1589
1589
  {
1590
1590
  "type": "it",
@@ -1704,7 +1704,7 @@ module.exports = {specifications: [
1704
1704
  },
1705
1705
  {
1706
1706
  "type": "describe",
1707
- "name": "given the [Testing/React/Popups/Modal, With Tooltips] story is rendered",
1707
+ "name": "given the [Testing/Popups/Modal, With Tooltips] story is rendered",
1708
1708
  "children": [
1709
1709
  {
1710
1710
  "type": "describe",
@@ -1820,7 +1820,7 @@ module.exports = {specifications: [
1820
1820
  },
1821
1821
  {
1822
1822
  "type": "describe",
1823
- "name": "given the [Testing/React/Popups/Modal, With Radio buttons] story is rendered",
1823
+ "name": "given the [Testing/Popups/Modal, With Radio buttons] story is rendered",
1824
1824
  "children": [
1825
1825
  {
1826
1826
  "type": "it",
@@ -1840,7 +1840,7 @@ module.exports = {specifications: [
1840
1840
  },
1841
1841
  {
1842
1842
  "type": "describe",
1843
- "name": "given the [Components/Popups/Modal/React, Without close icon] story is rendered",
1843
+ "name": "given the [Components/Popups/Modal, Without close icon] story is rendered",
1844
1844
  "children": [
1845
1845
  {
1846
1846
  "type": "it",
@@ -1940,7 +1940,7 @@ module.exports = {specifications: [
1940
1940
  },
1941
1941
  {
1942
1942
  "type": "describe",
1943
- "name": "given the [Components/Popups/Modal/React, Custom focus] story is rendered",
1943
+ "name": "given the [Components/Popups/Modal, Custom focus] story is rendered",
1944
1944
  "children": [
1945
1945
  {
1946
1946
  "type": "describe",
@@ -2020,7 +2020,7 @@ module.exports = {specifications: [
2020
2020
  },
2021
2021
  {
2022
2022
  "type": "describe",
2023
- "name": "given the [Testing/React/Popups/Modal, StackedModals] story is rendered",
2023
+ "name": "given the [Testing/Popups/Modal, StackedModals] story is rendered",
2024
2024
  "children": [
2025
2025
  {
2026
2026
  "type": "describe",
@@ -2064,7 +2064,7 @@ module.exports = {specifications: [
2064
2064
  },
2065
2065
  {
2066
2066
  "type": "describe",
2067
- "name": "given the [Testing/React/Popups/Modal, ModalWithPopup] story is rendered",
2067
+ "name": "given the [Testing/Popups/Modal, ModalWithPopup] story is rendered",
2068
2068
  "children": [
2069
2069
  {
2070
2070
  "type": "describe",
@@ -2094,7 +2094,7 @@ module.exports = {specifications: [
2094
2094
  },
2095
2095
  {
2096
2096
  "type": "describe",
2097
- "name": "given the [Components/Popups/Modal/React, CustomTarget] example is rendered",
2097
+ "name": "given the [Components/Popups/Modal, CustomTarget] example is rendered",
2098
2098
  "children": [
2099
2099
  {
2100
2100
  "type": "describe",
@@ -2416,7 +2416,7 @@ module.exports = {specifications: [
2416
2416
  "children": [
2417
2417
  {
2418
2418
  "type": "describe",
2419
- "name": "given the [Components/Popups/Popup/React, Basic] example is rendered",
2419
+ "name": "given the [Components/Popups/Popup, Basic] example is rendered",
2420
2420
  "children": [
2421
2421
  {
2422
2422
  "type": "describe",
@@ -2484,7 +2484,7 @@ module.exports = {specifications: [
2484
2484
  },
2485
2485
  {
2486
2486
  "type": "describe",
2487
- "name": "given the [Components/Popups/Popup/React, MultiplePopups] example is rendered",
2487
+ "name": "given the [Components/Popups/Popup, MultiplePopups] example is rendered",
2488
2488
  "children": [
2489
2489
  {
2490
2490
  "type": "describe",
@@ -2514,7 +2514,7 @@ module.exports = {specifications: [
2514
2514
  },
2515
2515
  {
2516
2516
  "type": "describe",
2517
- "name": "given the [Testing/React/Popups/Popup, PopupWithNonHidablePopup] example is rendered",
2517
+ "name": "given the [Testing/Popups/Popup, PopupWithNonHidablePopup] example is rendered",
2518
2518
  "children": [
2519
2519
  {
2520
2520
  "type": "describe",
@@ -2554,7 +2554,7 @@ module.exports = {specifications: [
2554
2554
  },
2555
2555
  {
2556
2556
  "type": "describe",
2557
- "name": "given the [Testing/React/Popups/Popup, MixedPopupTypes] story is rendered",
2557
+ "name": "given the [Testing/Popups/Popup, MixedPopupTypes] story is rendered",
2558
2558
  "children": [
2559
2559
  {
2560
2560
  "type": "it",
@@ -2710,7 +2710,7 @@ module.exports = {specifications: [
2710
2710
  },
2711
2711
  {
2712
2712
  "type": "describe",
2713
- "name": "given the [Components/Popups/Popup/React, CustomTarget] example is rendered",
2713
+ "name": "given the [Components/Popups/Popup, CustomTarget] example is rendered",
2714
2714
  "children": [
2715
2715
  {
2716
2716
  "type": "describe",
@@ -2740,7 +2740,7 @@ module.exports = {specifications: [
2740
2740
  },
2741
2741
  {
2742
2742
  "type": "describe",
2743
- "name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
2743
+ "name": "given the [Components/Popups/Popup, FocusRedirect] example is rendered",
2744
2744
  "children": [
2745
2745
  {
2746
2746
  "type": "describe",
@@ -2770,7 +2770,7 @@ module.exports = {specifications: [
2770
2770
  },
2771
2771
  {
2772
2772
  "type": "describe",
2773
- "name": "given the [Testing/React/Popups/Popup, ReturnFocusTest] story is rendered",
2773
+ "name": "given the [Testing/Popups/Popup, ReturnFocusTest] story is rendered",
2774
2774
  "children": [
2775
2775
  {
2776
2776
  "type": "describe",
@@ -2781,7 +2781,7 @@ module.exports = {specifications: [
2781
2781
  },
2782
2782
  {
2783
2783
  "type": "describe",
2784
- "name": "given the [Testing/React/Popups/Popup, CloseOnTargetHiddenTest] story is rendered",
2784
+ "name": "given the [Testing/Popups/Popup, CloseOnTargetHiddenTest] story is rendered",
2785
2785
  "children": [
2786
2786
  {
2787
2787
  "type": "describe",
@@ -2792,7 +2792,7 @@ module.exports = {specifications: [
2792
2792
  },
2793
2793
  {
2794
2794
  "type": "describe",
2795
- "name": "given the [Testing/React/Popups/Popup, TooltipReturnFocus] example is rendered",
2795
+ "name": "given the [Testing/Popups/Popup, TooltipReturnFocus] example is rendered",
2796
2796
  "children": [
2797
2797
  {
2798
2798
  "type": "describe",
@@ -2962,7 +2962,7 @@ module.exports = {specifications: [
2962
2962
  "children": [
2963
2963
  {
2964
2964
  "type": "describe",
2965
- "name": "given the [Preview/Segmented Control/React, Basic] story is rendered",
2965
+ "name": "given the [Preview/Segmented Control, Basic] story is rendered",
2966
2966
  "children": [
2967
2967
  {
2968
2968
  "type": "it",
@@ -3074,7 +3074,7 @@ module.exports = {specifications: [
3074
3074
  },
3075
3075
  {
3076
3076
  "type": "describe",
3077
- "name": "given the [Preview/Segmented Control/React, Vertical] story is rendered",
3077
+ "name": "given the [Preview/Segmented Control, Vertical] story is rendered",
3078
3078
  "children": [
3079
3079
  {
3080
3080
  "type": "it",
@@ -3186,7 +3186,7 @@ module.exports = {specifications: [
3186
3186
  },
3187
3187
  {
3188
3188
  "type": "describe",
3189
- "name": "given the [Preview/Segmented Control/React, Disabled] story is rendered",
3189
+ "name": "given the [Preview/Segmented Control, Disabled] story is rendered",
3190
3190
  "children": [
3191
3191
  {
3192
3192
  "type": "describe",
@@ -3216,7 +3216,7 @@ module.exports = {specifications: [
3216
3216
  },
3217
3217
  {
3218
3218
  "type": "describe",
3219
- "name": "given the [Preview/Segmented Control/React, rtl] story is rendered",
3219
+ "name": "given the [Preview/Segmented Control, rtl] story is rendered",
3220
3220
  "children": [
3221
3221
  {
3222
3222
  "type": "describe",
@@ -5140,7 +5140,7 @@ module.exports = {specifications: [
5140
5140
  "children": [
5141
5141
  {
5142
5142
  "type": "it",
5143
- "name": "should render the Getting Started page"
5143
+ "name": "should render the Welcome page"
5144
5144
  },
5145
5145
  {
5146
5146
  "type": "describe",
@@ -5252,7 +5252,7 @@ module.exports = {specifications: [
5252
5252
  "children": [
5253
5253
  {
5254
5254
  "type": "describe",
5255
- "name": "given the [Components/Containers/Tabs/React, Basic] story is rendered",
5255
+ "name": "given the [Components/Containers/Tabs, Basic] story is rendered",
5256
5256
  "children": [
5257
5257
  {
5258
5258
  "type": "it",
@@ -5442,7 +5442,7 @@ module.exports = {specifications: [
5442
5442
  },
5443
5443
  {
5444
5444
  "type": "describe",
5445
- "name": "given the [Components/Containers/Tabs/React, Named Tabs] story is rendered",
5445
+ "name": "given the [Components/Containers/Tabs, Named Tabs] story is rendered",
5446
5446
  "children": [
5447
5447
  {
5448
5448
  "type": "it",
@@ -5632,7 +5632,7 @@ module.exports = {specifications: [
5632
5632
  },
5633
5633
  {
5634
5634
  "type": "describe",
5635
- "name": "given the [Components/Containers/Tabs/React, DisabledTab] story is rendered",
5635
+ "name": "given the [Components/Containers/Tabs, DisabledTab] story is rendered",
5636
5636
  "children": [
5637
5637
  {
5638
5638
  "type": "describe",
@@ -5682,7 +5682,7 @@ module.exports = {specifications: [
5682
5682
  },
5683
5683
  {
5684
5684
  "type": "describe",
5685
- "name": "given the [Components/Containers/Tabs/React, DynamicTabs] story is rendered",
5685
+ "name": "given the [Components/Containers/Tabs, DynamicTabs] story is rendered",
5686
5686
  "children": [
5687
5687
  {
5688
5688
  "type": "describe",
@@ -5800,7 +5800,7 @@ module.exports = {specifications: [
5800
5800
  },
5801
5801
  {
5802
5802
  "type": "describe",
5803
- "name": "given the [Components/Containers/Tabs/React, LeftToRight] story is rendered",
5803
+ "name": "given the [Components/Containers/Tabs, LeftToRight] story is rendered",
5804
5804
  "children": [
5805
5805
  {
5806
5806
  "type": "describe",
@@ -5872,7 +5872,7 @@ module.exports = {specifications: [
5872
5872
  },
5873
5873
  {
5874
5874
  "type": "describe",
5875
- "name": "when [Components/Containers/Tabs/React, OverflowTabs] story is rendered",
5875
+ "name": "when [Components/Containers/Tabs, OverflowTabs] story is rendered",
5876
5876
  "children": [
5877
5877
  {
5878
5878
  "type": "it",
@@ -6660,7 +6660,7 @@ module.exports = {specifications: [
6660
6660
  "children": [
6661
6661
  {
6662
6662
  "type": "describe",
6663
- "name": "given the [Components/Popups/Tooltip/React, DefaultStory] example is rendered",
6663
+ "name": "given the [Components/Popups/Tooltip, DefaultStory] example is rendered",
6664
6664
  "children": [
6665
6665
  {
6666
6666
  "type": "it",
@@ -6758,7 +6758,7 @@ module.exports = {specifications: [
6758
6758
  },
6759
6759
  {
6760
6760
  "type": "describe",
6761
- "name": "given the [Components/Popups/Tooltip/React, Describe Type] example is rendered",
6761
+ "name": "given the [Components/Popups/Tooltip, Describe Type] example is rendered",
6762
6762
  "children": [
6763
6763
  {
6764
6764
  "type": "it",
@@ -6790,7 +6790,7 @@ module.exports = {specifications: [
6790
6790
  },
6791
6791
  {
6792
6792
  "type": "describe",
6793
- "name": "given the [Components/Popups/Tooltip/React, Muted] example is rendered",
6793
+ "name": "given the [Components/Popups/Tooltip, Muted] example is rendered",
6794
6794
  "children": [
6795
6795
  {
6796
6796
  "type": "it",
@@ -6830,7 +6830,7 @@ module.exports = {specifications: [
6830
6830
  },
6831
6831
  {
6832
6832
  "type": "describe",
6833
- "name": "given the [Components/Popups/Tooltip/React, Ellipsis] example is rendered",
6833
+ "name": "given the [Components/Popups/Tooltip, Ellipsis] example is rendered",
6834
6834
  "children": [
6835
6835
  {
6836
6836
  "type": "it",
@@ -6904,7 +6904,7 @@ module.exports = {specifications: [
6904
6904
  },
6905
6905
  {
6906
6906
  "type": "describe",
6907
- "name": "given the [Testing/React/Popups/Tooltip, Non Interactive] example is rendered",
6907
+ "name": "given the [Testing/Popups/Tooltip, Non Interactive] example is rendered",
6908
6908
  "children": [
6909
6909
  {
6910
6910
  "type": "describe",
@@ -6930,7 +6930,7 @@ module.exports = {specifications: [
6930
6930
  },
6931
6931
  {
6932
6932
  "type": "describe",
6933
- "name": "given the [Testing/React/Popups/Tooltip, Overflow] example is rendered",
6933
+ "name": "given the [Testing/Popups/Tooltip, Overflow] example is rendered",
6934
6934
  "children": [
6935
6935
  {
6936
6936
  "type": "describe",
@@ -0,0 +1,6 @@
1
+ export interface InstallBlockProps {
2
+ command?: string;
3
+ packageName?: string;
4
+ }
5
+ export declare const InstallBlock: ({ command, packageName }: InstallBlockProps) => JSX.Element;
6
+ //# sourceMappingURL=installBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installBlock.d.ts","sourceRoot":"","sources":["../../../mdx/installBlock.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,6BAA4B,iBAAiB,gBA8BrE,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InstallBlock = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var layout_1 = require("@workday/canvas-kit-react/layout");
9
+ var tokens_1 = require("@workday/canvas-kit-react/tokens");
10
+ var button_1 = require("@workday/canvas-kit-react/button");
11
+ var InstallBlock = function (_a) {
12
+ var command = _a.command, packageName = _a.packageName;
13
+ var commandRef = react_1.default.useRef(null);
14
+ var _b = react_1.default.useState(false), copied = _b[0], setCopied = _b[1];
15
+ react_1.default.useEffect(function () {
16
+ setTimeout(function () { return setCopied(false); }, 600);
17
+ }, [copied]);
18
+ var handleCopy = function () {
19
+ setCopied(true);
20
+ if (commandRef.current) {
21
+ navigator.clipboard.writeText(commandRef.current.innerText);
22
+ }
23
+ };
24
+ return (react_1.default.createElement(layout_1.Flex, { padding: "xs", backgroundColor: tokens_1.colors.licorice500, borderRadius: "m", justifyContent: "space-between", alignItems: "center", flexWrap: 'wrap' },
25
+ react_1.default.createElement("pre", { ref: commandRef },
26
+ react_1.default.createElement("span", { style: { color: tokens_1.colors.blueberry200 } }, command),
27
+ ' ',
28
+ react_1.default.createElement("span", { style: { color: tokens_1.colors.frenchVanilla100 } }, packageName)),
29
+ react_1.default.createElement(button_1.PrimaryButton, { variant: "inverse", onClick: handleCopy, size: "small" }, copied ? 'Copied' : 'Copy')));
30
+ };
31
+ exports.InstallBlock = InstallBlock;
@@ -0,0 +1,2 @@
1
+ export declare const WelcomePage: () => JSX.Element;
2
+ //# sourceMappingURL=welcomePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"welcomePage.d.ts","sourceRoot":"","sources":["../../../mdx/welcomePage.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,mBA6IvB,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WelcomePage = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ // @ts-ignore: Cannot find module error
9
+ var storybook_welcome_header_png_1 = __importDefault(require("./storybook-welcome-header.png"));
10
+ var layout_1 = require("@workday/canvas-kit-react/layout");
11
+ var installBlock_1 = require("./installBlock");
12
+ var text_1 = require("@workday/canvas-kit-react/text");
13
+ var card_1 = require("@workday/canvas-kit-react/card");
14
+ var button_1 = require("@workday/canvas-kit-react/button");
15
+ var tokens_1 = require("@workday/canvas-kit-react/tokens");
16
+ var canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
17
+ var icon_1 = require("@workday/canvas-kit-react/icon");
18
+ // @ts-ignore: Cannot find module error
19
+ var lerna_json_1 = require("../../../lerna.json");
20
+ var WelcomePage = function () {
21
+ return (react_1.default.createElement(layout_1.Flex, { flexDirection: "column", gap: "s" },
22
+ react_1.default.createElement(layout_1.Box, { borderRadius: "m", overflow: "hidden", position: "relative" },
23
+ react_1.default.createElement(layout_1.Flex, { position: "absolute", flexDirection: "column", top: "30%", left: "10%" },
24
+ react_1.default.createElement(text_1.Text, { typeLevel: "title.medium", color: tokens_1.colors.frenchVanilla100, fontSize: "6vmin", marginBottom: "s", style: { lineHeight: '3vmin' } }, "Canvas Kit"),
25
+ react_1.default.createElement(text_1.Text, { typeLevel: "body.large", fontSize: "3vmin", style: { lineHeight: '2vw' }, color: tokens_1.colors.frenchVanilla100 },
26
+ "v",
27
+ lerna_json_1.version)),
28
+ react_1.default.createElement("img", { src: storybook_welcome_header_png_1.default, alt: "test", style: { width: '100%', height: 'auto' } })),
29
+ react_1.default.createElement(text_1.Text, { typeLevel: "body.medium" },
30
+ ' ',
31
+ "This project provides a set of components for the Workday Canvas Design System that can be used to implement user experiences consistent with",
32
+ ' ',
33
+ react_1.default.createElement(button_1.ExternalHyperlink, { href: "https://canvas.workdaydesign.com/" }, "Workday Design Principles.")),
34
+ react_1.default.createElement(text_1.Heading, { size: "medium", borderBottom: "1px solid " + tokens_1.colors.blueberry200, paddingBottom: "xxs" }, "Quick Links"),
35
+ react_1.default.createElement(layout_1.Grid, { gridAutoColumns: "auto", gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))", gridGap: "s" },
36
+ react_1.default.createElement(layout_1.Grid, { as: card_1.Card, gridTemplateRows: "1fr 1fr 2fr 1fr", depth: "none", display: "grid", maxHeight: 320 },
37
+ react_1.default.createElement(icon_1.SystemIcon, { color: tokens_1.colors.cantaloupe400, colorHover: tokens_1.colors.cantaloupe400, icon: canvas_system_icons_web_1.rocketIcon, size: 60 }),
38
+ react_1.default.createElement(card_1.Card.Heading, null, "Getting Started"),
39
+ react_1.default.createElement(card_1.Card.Body, null,
40
+ react_1.default.createElement(text_1.Text, null, "For all things getting started including helpful guides and docs.")),
41
+ react_1.default.createElement(layout_1.Grid.Item, { as: button_1.Hyperlink, alignSelf: "end", marginTop: "xs", href: "/?path=/docs/guides-getting-started--page" },
42
+ ' ',
43
+ "Getting Started Guide")),
44
+ react_1.default.createElement(layout_1.Grid, { as: card_1.Card, gridTemplateRows: "1fr 1fr 2fr 1fr", depth: "none", display: "grid", maxHeight: 320 },
45
+ react_1.default.createElement(icon_1.SystemIcon, { color: tokens_1.colors.blueberry400, icon: canvas_system_icons_web_1.tokensIcon, colorHover: tokens_1.colors.blueberry400, size: 60 }),
46
+ react_1.default.createElement(card_1.Card.Heading, null, "Tokens"),
47
+ react_1.default.createElement(card_1.Card.Body, null,
48
+ react_1.default.createElement(text_1.Text, null, "Tokens are the smallest pieces of our Design System with the primary function of storing UI information.")),
49
+ react_1.default.createElement(layout_1.Grid.Item, { alignSelf: "end", as: button_1.Hyperlink, marginTop: "xs", href: "/?path=/docs/tokens--overview" },
50
+ ' ',
51
+ "View Our Tokens")),
52
+ react_1.default.createElement(layout_1.Grid, { as: card_1.Card, gridTemplateRows: "1fr 1fr 2fr 1fr", depth: "none", display: "grid", maxHeight: 320 },
53
+ react_1.default.createElement(icon_1.SystemIcon, { color: tokens_1.colors.greenApple400, icon: canvas_system_icons_web_1.shapesIcon, size: 60, colorHover: tokens_1.colors.greenApple400 }),
54
+ react_1.default.createElement(card_1.Card.Heading, null, "Assets"),
55
+ react_1.default.createElement(card_1.Card.Body, null,
56
+ react_1.default.createElement(text_1.Text, null, "Assets are graphics which help communicate meaning or highlight areas of interaction to our users.")),
57
+ react_1.default.createElement(layout_1.Grid.Item, { as: button_1.Hyperlink, alignSelf: "end", marginTop: "xs", href: "/?path=/docs/assets-icons--overview" },
58
+ ' ',
59
+ "View Assets"))),
60
+ react_1.default.createElement(text_1.Heading, { size: "medium", borderBottom: "1px solid " + tokens_1.colors.blueberry200, paddingBottom: "xxs" }, "Installation"),
61
+ react_1.default.createElement(text_1.Text, null, "To get started using Canvas kit React first add or install the module to your existing React project"),
62
+ react_1.default.createElement(installBlock_1.InstallBlock, { command: "yarn add", packageName: "@workday/canvas-kit-react" }),
63
+ "or",
64
+ react_1.default.createElement(installBlock_1.InstallBlock, { command: "npm install", packageName: "@workday/canvas-kit-react" })));
65
+ };
66
+ exports.WelcomePage = WelcomePage;