@workday/canvas-kit-docs 13.0.0-alpha.1041-next.0 → 13.0.0-alpha.1043-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.
@@ -21,7 +21,7 @@ export const MDX = createComponent('div')({
21
21
  */
22
22
  const Button = (props) => {
23
23
  const components = useMDXComponents();
24
- if (props['data-symbol'] !== undefined) {
24
+ if (props['data-symbol'] !== undefined && props.children) {
25
25
  return (React.createElement("code", null,
26
26
  React.createElement(SymbolDialog, { value: {
27
27
  kind: 'symbol',
@@ -37,7 +37,7 @@ const Button = (props) => {
37
37
  * processing. This allows us to convert {@link SymbolName Link Text} to a `<SymbolDialog>`!
38
38
  */
39
39
  function convertLinkToSymbolLinks(input) {
40
- return input.replace(/{@link ([a-z0-9.]+)( [a-z0-9.]+)?}/gi, (substr, symbol, text = '') => `<button href="#" data-symbol="${text.trim()}" class="token symbol">${symbol}</button>`);
40
+ return input.replace(/{@link ([a-z0-9.]+)( [a-z0-9.]+)?}/gi, (_substr, symbol, text = '') => `<button data-symbol="${text.trim()}" className="token symbol">${symbol}</button>`);
41
41
  }
42
42
  /**
43
43
  * Replace all heading levels in the JSDoc to start at the same heading level as `startingLevel`.
@@ -25,7 +25,7 @@ export const MDX = createComponent('div')({
25
25
  */
26
26
  const Button = (props: any) => {
27
27
  const components = useMDXComponents();
28
- if (props['data-symbol'] !== undefined) {
28
+ if (props['data-symbol'] !== undefined && props.children) {
29
29
  return (
30
30
  <code>
31
31
  <SymbolDialog
@@ -49,8 +49,8 @@ const Button = (props: any) => {
49
49
  function convertLinkToSymbolLinks(input: string): string {
50
50
  return input.replace(
51
51
  /{@link ([a-z0-9.]+)( [a-z0-9.]+)?}/gi,
52
- (substr, symbol, text = '') =>
53
- `<button href="#" data-symbol="${text.trim()}" class="token symbol">${symbol}</button>`
52
+ (_substr, symbol, text = '') =>
53
+ `<button data-symbol="${text.trim()}" className="token symbol">${symbol}</button>`
54
54
  );
55
55
  }
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "13.0.0-alpha.1041-next.0",
3
+ "version": "13.0.0-alpha.1043-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",
@@ -44,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^13.0.0-alpha.1041-next.0",
48
- "@workday/canvas-kit-preview-react": "^13.0.0-alpha.1041-next.0",
49
- "@workday/canvas-kit-react": "^13.0.0-alpha.1041-next.0",
50
- "@workday/canvas-kit-styling": "^13.0.0-alpha.1041-next.0",
47
+ "@workday/canvas-kit-labs-react": "^13.0.0-alpha.1043-next.0",
48
+ "@workday/canvas-kit-preview-react": "^13.0.0-alpha.1043-next.0",
49
+ "@workday/canvas-kit-react": "^13.0.0-alpha.1043-next.0",
50
+ "@workday/canvas-kit-styling": "^13.0.0-alpha.1043-next.0",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^2.1.1",
53
53
  "markdown-to-jsx": "^7.2.0",
@@ -60,5 +60,5 @@
60
60
  "mkdirp": "^1.0.3",
61
61
  "typescript": "5.0"
62
62
  },
63
- "gitHead": "d2f54a2f8165516afe049a9e43263022598108af"
63
+ "gitHead": "205c1b5a0ad9beedd9ca79e9195639a2d2da0648"
64
64
  }