@workday/canvas-kit-docs 11.0.0-alpha.693-next.0 → 11.0.0-alpha.696-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.
@@ -252620,6 +252620,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
252620
252620
  ],
252621
252621
  "tags": {}
252622
252622
  },
252623
+ {
252624
+ "kind": "property",
252625
+ "name": "extractCSS",
252626
+ "required": false,
252627
+ "type": {
252628
+ "kind": "primitive",
252629
+ "value": "boolean"
252630
+ },
252631
+ "description": "Should the CSS be statically extracted into CSS files? If `true`, CSS files will be created\naccording to the `getFileName` configuration. If `getFileName` is not defined, a CSS file will\nbe created with the same name as the source file with a `.css` extension.",
252632
+ "declarations": [
252633
+ {
252634
+ "name": "extractCSS",
252635
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
252636
+ }
252637
+ ],
252638
+ "tags": {}
252639
+ },
252623
252640
  {
252624
252641
  "kind": "property",
252625
252642
  "name": "getFileName",
@@ -22,6 +22,7 @@ any questions.
22
22
  - [Count Badge](#count-badge)
23
23
  - [Form Field Preview](#form-field-preview)
24
24
  - [Radio (Preview)](#radio-preview)
25
+ - [Table (Preview)](#table-preview)
25
26
  - [Text](#text)
26
27
 
27
28
  ## Codemod
@@ -423,6 +424,17 @@ our
423
424
  The component now supports the `cs` prop, but otherwise the API has not changed. It should behave
424
425
  identically as it did in previous versions.
425
426
 
427
+ ### Table (Preview)
428
+
429
+ **PR:** [#2567](https://github.com/Workday/canvas-kit/pull/2567)
430
+
431
+ `Table` now uses
432
+ [Canvas Tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs) and
433
+ our
434
+ [new styling utilities](https://workday.github.io/canvas-kit/?path=/docs/styling-basics--create-modifiers#createstyles-api).
435
+ The component now supports the `cs` prop, but otherwise the API has not changed. It should behave
436
+ identically as it did in previous versions.
437
+
426
438
  ### Text
427
439
 
428
440
  **PR:** [#2455](https://github.com/Workday/canvas-kit/pull/2455)
@@ -9,7 +9,7 @@ export default () => {
9
9
  const headingID = useUniqueId();
10
10
  const exampleData = [
11
11
  {
12
- brand: 'Porsche',
12
+ make: 'Porsche',
13
13
  model: '992 911 GT3',
14
14
  year: '2022',
15
15
  price: 'Starts at $160,000',
@@ -20,7 +20,7 @@ export default () => {
20
20
  curbWeight: '3,164 lbs',
21
21
  },
22
22
  {
23
- brand: 'BMW',
23
+ make: 'BMW',
24
24
  model: 'M5 Competition',
25
25
  year: '2018',
26
26
  price: 'Starts at $105,000',
@@ -31,18 +31,18 @@ export default () => {
31
31
  curbWeight: '4,345 lbs',
32
32
  },
33
33
  {
34
- brand: 'Audi',
35
- model: 'R8',
36
- year: '2022',
37
- price: 'Starts at $148,000',
38
- engine: '5.2L V10',
39
- transmission: 'Automatic',
40
- horsepower: '562hp',
41
- torque: '408 lb-ft',
42
- curbWeight: '3,594 lbs',
34
+ make: 'Alfa Romeo',
35
+ model: '1750 GTV',
36
+ year: '1970',
37
+ price: '$30,000 - $55,000',
38
+ engine: '1.75L Inline 4',
39
+ transmission: 'Manual',
40
+ horsepower: '122hp',
41
+ torque: '137 lb-ft',
42
+ curbWeight: '2,140 lbs',
43
43
  },
44
44
  {
45
- brand: 'Lotus',
45
+ make: 'Lotus',
46
46
  model: 'Emira',
47
47
  year: '2023',
48
48
  price: 'Starts at $78,000',
@@ -53,7 +53,7 @@ export default () => {
53
53
  curbWeight: '3520 lbs',
54
54
  },
55
55
  {
56
- brand: 'Toyota',
56
+ make: 'Toyota',
57
57
  model: 'Supra',
58
58
  year: '1998',
59
59
  price: '$40,000 - $80,000',
@@ -64,7 +64,7 @@ export default () => {
64
64
  curbWeight: '3,599 lbs',
65
65
  },
66
66
  {
67
- brand: 'Nissan',
67
+ make: 'Nissan',
68
68
  model: 'Skyline GT-R',
69
69
  year: '1994',
70
70
  price: '$45,000 - $90,000',
@@ -90,7 +90,7 @@ export default () => {
90
90
  backgroundColor="soap100"
91
91
  borderRight={`2px solid ${colors.soap400}`}
92
92
  >
93
- Brand
93
+ Make
94
94
  </Table.Header>
95
95
  <Table.Header scope="col">Model</Table.Header>
96
96
  <Table.Header scope="col">Year</Table.Header>
@@ -99,7 +99,7 @@ export default () => {
99
99
  <Table.Header scope="col">Transmission</Table.Header>
100
100
  <Table.Header scope="col">Horsepower</Table.Header>
101
101
  <Table.Header scope="col">Torque</Table.Header>
102
- <Table.Header scope="col">Tires</Table.Header>
102
+ <Table.Header scope="col">Curb Weight</Table.Header>
103
103
  </Table.Row>
104
104
  </Table.Head>
105
105
  <Table.Body>
@@ -113,7 +113,7 @@ export default () => {
113
113
  backgroundColor="soap100"
114
114
  borderRight={`2px solid ${colors.soap400}`}
115
115
  >
116
- {item.brand}
116
+ {item.make}
117
117
  </Table.Header>
118
118
  <Table.Cell>{item.model}</Table.Cell>
119
119
  <Table.Cell>{item.year}</Table.Cell>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "11.0.0-alpha.693-next.0",
3
+ "version": "11.0.0-alpha.696-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": "^11.0.0-alpha.693-next.0",
48
- "@workday/canvas-kit-preview-react": "^11.0.0-alpha.693-next.0",
49
- "@workday/canvas-kit-react": "^11.0.0-alpha.693-next.0",
50
- "@workday/canvas-kit-styling": "^11.0.0-alpha.693-next.0",
47
+ "@workday/canvas-kit-labs-react": "^11.0.0-alpha.696-next.0",
48
+ "@workday/canvas-kit-preview-react": "^11.0.0-alpha.696-next.0",
49
+ "@workday/canvas-kit-react": "^11.0.0-alpha.696-next.0",
50
+ "@workday/canvas-kit-styling": "^11.0.0-alpha.696-next.0",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^1.0.2",
53
53
  "markdown-to-jsx": "^6.10.3",
@@ -59,5 +59,5 @@
59
59
  "mkdirp": "^1.0.3",
60
60
  "typescript": "4.2"
61
61
  },
62
- "gitHead": "2ba2e730d7a13e5067afa7f482887539011d742f"
62
+ "gitHead": "2b897235cbf8b889cd1e7f750e8c905b56944368"
63
63
  }