@workday/canvas-kit-docs 9.0.0-alpha.368-next.6 → 9.0.0-alpha.382-next.2

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 (57) hide show
  1. package/dist/es6/docgen/createTraversals.js +41 -22
  2. package/dist/es6/docgen/docParser.js +285 -257
  3. package/dist/es6/docgen/getExternalSymbol.js +2 -2
  4. package/dist/es6/docgen/plugins/componentParser.js +28 -33
  5. package/dist/es6/docgen/plugins/enhancedComponentParser.js +211 -150
  6. package/dist/es6/docgen/plugins/modelParser.js +139 -79
  7. package/dist/es6/docgen/traversals.js +396 -397
  8. package/dist/es6/docgen/traverse.js +8 -9
  9. package/dist/es6/lib/DescriptionTooltip.js +1 -1
  10. package/dist/es6/lib/MDXElements.js +13 -39
  11. package/dist/es6/lib/MoreTooltip.js +21 -41
  12. package/dist/es6/lib/Specifications.js +30 -34
  13. package/dist/es6/lib/StylePropsTable.js +8 -9
  14. package/dist/es6/lib/Table.js +19 -30
  15. package/dist/es6/lib/Value.js +13 -17
  16. package/dist/es6/lib/docs.js +701 -397
  17. package/dist/es6/lib/widgetUtils.js +44 -76
  18. package/dist/es6/lib/widgets/array.js +1 -2
  19. package/dist/es6/lib/widgets/callExpression.js +4 -5
  20. package/dist/es6/lib/widgets/canvasColor.js +2 -2
  21. package/dist/es6/lib/widgets/component.js +1 -2
  22. package/dist/es6/lib/widgets/conditional.js +1 -2
  23. package/dist/es6/lib/widgets/enhancedComponent.js +19 -24
  24. package/dist/es6/lib/widgets/external.js +1 -4
  25. package/dist/es6/lib/widgets/function.js +5 -7
  26. package/dist/es6/lib/widgets/intersection.js +3 -4
  27. package/dist/es6/lib/widgets/model.js +4 -6
  28. package/dist/es6/lib/widgets/object.js +2 -3
  29. package/dist/es6/lib/widgets/parenthesis.js +1 -2
  30. package/dist/es6/lib/widgets/primitives.js +17 -39
  31. package/dist/es6/lib/widgets/qualifiedName.js +1 -2
  32. package/dist/es6/lib/widgets/symbol.js +1 -2
  33. package/dist/es6/lib/widgets/tuple.js +2 -3
  34. package/dist/es6/lib/widgets/typeParameter.js +1 -2
  35. package/dist/es6/lib/widgets/union.js +3 -4
  36. package/dist/es6/mdx/installBlock.js +6 -7
  37. package/dist/es6/mdx/style-props/examples/Background.js +5 -16
  38. package/dist/es6/mdx/style-props/examples/Border.js +5 -16
  39. package/dist/es6/mdx/style-props/examples/Color.js +5 -16
  40. package/dist/es6/mdx/style-props/examples/Depth.js +5 -16
  41. package/dist/es6/mdx/style-props/examples/Flex.js +11 -22
  42. package/dist/es6/mdx/style-props/examples/FlexItem.js +10 -21
  43. package/dist/es6/mdx/style-props/examples/Grid.js +6 -17
  44. package/dist/es6/mdx/style-props/examples/GridItem.js +6 -17
  45. package/dist/es6/mdx/style-props/examples/Layout.js +5 -16
  46. package/dist/es6/mdx/style-props/examples/Other.js +5 -16
  47. package/dist/es6/mdx/style-props/examples/Position.js +5 -16
  48. package/dist/es6/mdx/style-props/examples/Space.js +6 -17
  49. package/dist/es6/mdx/style-props/examples/Text.js +2 -2
  50. package/dist/es6/mdx/welcomePage.js +3 -3
  51. package/dist/mdx/9.0-UPGRADE-GUIDE.mdx +30 -3
  52. package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -1
  53. package/dist/mdx/preview-react/text-input/examples/Alert.tsx +1 -1
  54. package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +5 -2
  55. package/dist/mdx/react/banner/examples/StickyAnimation.tsx +7 -5
  56. package/dist/mdx/react/common/examples/ResponsiveViewport.tsx +2 -3
  57. package/package.json +5 -5
@@ -3,9 +3,9 @@
3
3
  import {jsx, keyframes} from '@emotion/react';
4
4
  import React from 'react';
5
5
 
6
- import {CSSProperties} from '@workday/canvas-kit-react/tokens';
6
+ import {CSSProperties, space} from '@workday/canvas-kit-react/tokens';
7
+ import {useTheme} from '@workday/canvas-kit-react/common';
7
8
  import {Box} from '@workday/canvas-kit-react/layout';
8
- import {useThemeRTL} from '@workday/canvas-kit-labs-react/common';
9
9
  import {loopIcon} from '@workday/canvas-system-icons-web';
10
10
  import {Banner} from '@workday/canvas-kit-react/banner';
11
11
 
@@ -16,7 +16,7 @@ const containerStyles: CSSProperties = {
16
16
  };
17
17
 
18
18
  export default () => {
19
- const {themeRTL, theme} = useThemeRTL();
19
+ const theme = useTheme();
20
20
  const bannerRef = React.useRef<HTMLButtonElement>(null);
21
21
  const containerRef = React.useRef<HTMLDivElement>(null);
22
22
  const [styles, setStyles] = React.useState<CSSProperties>();
@@ -38,7 +38,9 @@ export default () => {
38
38
  });
39
39
 
40
40
  setStyles({
41
- margin: '4px 0px 4px 4px', // Room for focus outline since container is overflow hidden
41
+ marginY: space.xxxs,
42
+ marginInlineStart: space.xxxs,
43
+ maringInlineEnd: 0,
42
44
  animation: `${slideInKeyframes} .3s ease-out forwards`,
43
45
  });
44
46
  }, [theme.canvas.direction, rerun]);
@@ -46,7 +48,7 @@ export default () => {
46
48
  return (
47
49
  <Box height={64}>
48
50
  <div css={containerStyles} ref={containerRef}>
49
- <div css={themeRTL(styles)}>
51
+ <div css={styles}>
50
52
  <Banner
51
53
  onClick={() => setRerun(r => r + 1)}
52
54
  hasError={true}
@@ -2,10 +2,9 @@ import * as React from 'react';
2
2
  import {Box, Grid} from '@workday/canvas-kit-react/layout';
3
3
  import styled from '@emotion/styled';
4
4
  import {type, space, colors, borderRadius} from '@workday/canvas-kit-react/tokens';
5
- import {useTheme} from '@workday/canvas-kit-react/common';
5
+ import {getTheme} from '@workday/canvas-kit-react/common';
6
6
 
7
- // eslint-disable-next-line react-hooks/rules-of-hooks
8
- const theme = useTheme();
7
+ const theme = getTheme();
9
8
  const {up, down} = theme.canvas.breakpoints;
10
9
  const small = down('m'); // Returns '@media (max-width: 768px)'
11
10
  const medium = up('m'); // Returns '@media (min-width: 768px)'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "9.0.0-alpha.368-next.6+63a2bafb",
3
+ "version": "9.0.0-alpha.382-next.2+5edca312",
4
4
  "description": "Documentation components of Canvas Kit components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^9.0.0-alpha.368-next.6+63a2bafb",
48
- "@workday/canvas-kit-preview-react": "^9.0.0-alpha.368-next.6+63a2bafb",
49
- "@workday/canvas-kit-react": "^9.0.0-alpha.368-next.6+63a2bafb",
47
+ "@workday/canvas-kit-labs-react": "^9.0.0-alpha.382-next.2+5edca312",
48
+ "@workday/canvas-kit-preview-react": "^9.0.0-alpha.382-next.2+5edca312",
49
+ "@workday/canvas-kit-react": "^9.0.0-alpha.382-next.2+5edca312",
50
50
  "@workday/canvas-system-icons-web": "^3.0.0",
51
51
  "markdown-to-jsx": "^6.10.3",
52
52
  "ts-node": "^10.9.1"
@@ -57,5 +57,5 @@
57
57
  "mkdirp": "^1.0.3",
58
58
  "typescript": "4.2"
59
59
  },
60
- "gitHead": "63a2bafbfbf34c1f98b6db4128c4079a358af453"
60
+ "gitHead": "5edca312f27bb6df43083e778e7c7eb06f34e655"
61
61
  }