@workday/canvas-kit-docs 15.1.6 → 15.1.7

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": "15.1.6",
22
- "@workday/canvas-kit-preview-react": "15.1.6",
23
- "@workday/canvas-kit-react": "15.1.6",
24
- "@workday/canvas-kit-react-fonts": "^15.1.6",
25
- "@workday/canvas-kit-styling": "15.1.6",
21
+ "@workday/canvas-kit-labs-react": "15.1.7",
22
+ "@workday/canvas-kit-preview-react": "15.1.7",
23
+ "@workday/canvas-kit-react": "15.1.7",
24
+ "@workday/canvas-kit-react-fonts": "^15.1.7",
25
+ "@workday/canvas-kit-styling": "15.1.7",
26
26
  "@workday/canvas-system-icons-web": "4.0.2",
27
27
  "@workday/canvas-expressive-icons-web": "1.0.1",
28
28
  "@workday/canvas-tokens-web": "4.2.0"
@@ -19,11 +19,11 @@ export const packageJSONFile = `{
19
19
  "@emotion/react": "11.11.4",
20
20
  "@types/react": "18.2.60",
21
21
  "@types/react-dom": "18.2.19",
22
- "@workday/canvas-kit-labs-react": "15.1.6",
23
- "@workday/canvas-kit-preview-react": "15.1.6",
24
- "@workday/canvas-kit-react": "15.1.6",
25
- "@workday/canvas-kit-react-fonts": "^15.1.6",
26
- "@workday/canvas-kit-styling": "15.1.6",
22
+ "@workday/canvas-kit-labs-react": "15.1.7",
23
+ "@workday/canvas-kit-preview-react": "15.1.7",
24
+ "@workday/canvas-kit-react": "15.1.7",
25
+ "@workday/canvas-kit-react-fonts": "^15.1.7",
26
+ "@workday/canvas-kit-styling": "15.1.7",
27
27
  "@workday/canvas-system-icons-web": "4.0.2",
28
28
  "@workday/canvas-expressive-icons-web": "1.0.1",
29
29
  "@workday/canvas-tokens-web": "4.2.0"
@@ -7,23 +7,24 @@ import {px2rem} from '@workday/canvas-kit-styling';
7
7
  import {system} from '@workday/canvas-tokens-web';
8
8
 
9
9
  type MyTabItem = {
10
- id: string;
10
+ contextId: string;
11
11
  text: React.ReactNode;
12
12
  contents: string;
13
13
  };
14
14
 
15
15
  export default () => {
16
16
  const [items] = React.useState<MyTabItem[]>([
17
- {id: 'first', text: 'First Tab', contents: 'Contents of First Tab'},
18
- {id: 'second', text: 'Second Tab', contents: 'Contents of Second Tab'},
19
- {id: 'third', text: 'Third Tab', contents: 'Contents of Third Tab'},
20
- {id: 'fourth', text: 'Fourth Tab', contents: 'Contents of Fourth Tab'},
21
- {id: 'fifth', text: 'Fifth Tab', contents: 'Contents of Fifth Tab'},
22
- {id: 'sixth', text: 'Sixth Tab', contents: 'Contents of Sixth Tab'},
23
- {id: 'seventh', text: 'Seventh Tab', contents: 'Contents of Seventh Tab'},
17
+ {contextId: 'first', text: 'First Tab', contents: 'Contents of First Tab'},
18
+ {contextId: 'second', text: 'Second Tab', contents: 'Contents of Second Tab'},
19
+ {contextId: 'third', text: 'Third Tab', contents: 'Contents of Third Tab'},
20
+ {contextId: 'fourth', text: 'Fourth Tab', contents: 'Contents of Fourth Tab'},
21
+ {contextId: 'fifth', text: 'Fifth Tab', contents: 'Contents of Fifth Tab'},
22
+ {contextId: 'sixth', text: 'Sixth Tab', contents: 'Contents of Sixth Tab'},
23
+ {contextId: 'seventh', text: 'Seventh Tab', contents: 'Contents of Seventh Tab'},
24
24
  ]);
25
25
  const model = useTabsModel({
26
26
  items,
27
+ getId: (item: MyTabItem) => item.contextId,
27
28
  });
28
29
  const [containerWidth, setContainerWidth] = React.useState('100%');
29
30
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "15.1.6",
3
+ "version": "15.1.7",
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": "^15.1.6",
51
- "@workday/canvas-kit-preview-react": "^15.1.6",
52
- "@workday/canvas-kit-react": "^15.1.6",
53
- "@workday/canvas-kit-styling": "^15.1.6",
50
+ "@workday/canvas-kit-labs-react": "^15.1.7",
51
+ "@workday/canvas-kit-preview-react": "^15.1.7",
52
+ "@workday/canvas-kit-react": "^15.1.7",
53
+ "@workday/canvas-kit-styling": "^15.1.7",
54
54
  "@workday/canvas-system-icons-web": "4.2.0",
55
55
  "@workday/canvas-tokens-web": "4.4.0",
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": "c902047d4ad6874afc747a5eff22f88f0d6c2ff9"
66
+ "gitHead": "6137b93673be02b4e5f960abfbf70e862326feac"
67
67
  }