@workday/canvas-kit-docs 11.0.0-alpha.693-next.0 → 11.0.0-alpha.697-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.
package/dist/es6/lib/docs.js
CHANGED
|
@@ -202500,24 +202500,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
202500
202500
|
],
|
|
202501
202501
|
"tags": {}
|
|
202502
202502
|
},
|
|
202503
|
-
{
|
|
202504
|
-
"kind": "property",
|
|
202505
|
-
"name": "theme",
|
|
202506
|
-
"required": false,
|
|
202507
|
-
"type": {
|
|
202508
|
-
"kind": "symbol",
|
|
202509
|
-
"name": "EmotionCanvasTheme",
|
|
202510
|
-
"value": "EmotionCanvasTheme"
|
|
202511
|
-
},
|
|
202512
|
-
"description": "",
|
|
202513
|
-
"declarations": [
|
|
202514
|
-
{
|
|
202515
|
-
"name": "theme",
|
|
202516
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/types.ts"
|
|
202517
|
-
}
|
|
202518
|
-
],
|
|
202519
|
-
"tags": {}
|
|
202520
|
-
},
|
|
202521
202503
|
{
|
|
202522
202504
|
"kind": "property",
|
|
202523
202505
|
"name": "children",
|
|
@@ -252620,6 +252602,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
252620
252602
|
],
|
|
252621
252603
|
"tags": {}
|
|
252622
252604
|
},
|
|
252605
|
+
{
|
|
252606
|
+
"kind": "property",
|
|
252607
|
+
"name": "extractCSS",
|
|
252608
|
+
"required": false,
|
|
252609
|
+
"type": {
|
|
252610
|
+
"kind": "primitive",
|
|
252611
|
+
"value": "boolean"
|
|
252612
|
+
},
|
|
252613
|
+
"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.",
|
|
252614
|
+
"declarations": [
|
|
252615
|
+
{
|
|
252616
|
+
"name": "extractCSS",
|
|
252617
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
|
|
252618
|
+
}
|
|
252619
|
+
],
|
|
252620
|
+
"tags": {}
|
|
252621
|
+
},
|
|
252623
252622
|
{
|
|
252624
252623
|
"kind": "property",
|
|
252625
252624
|
"name": "getFileName",
|
|
@@ -22,6 +22,8 @@ any questions.
|
|
|
22
22
|
- [Count Badge](#count-badge)
|
|
23
23
|
- [Form Field Preview](#form-field-preview)
|
|
24
24
|
- [Radio (Preview)](#radio-preview)
|
|
25
|
+
- [Switch](#switch)
|
|
26
|
+
- [Table (Preview)](#table-preview)
|
|
25
27
|
- [Text](#text)
|
|
26
28
|
|
|
27
29
|
## Codemod
|
|
@@ -423,6 +425,28 @@ our
|
|
|
423
425
|
The component now supports the `cs` prop, but otherwise the API has not changed. It should behave
|
|
424
426
|
identically as it did in previous versions.
|
|
425
427
|
|
|
428
|
+
### Switch
|
|
429
|
+
|
|
430
|
+
**PR:** [#2583](https://github.com/Workday/canvas-kit/pull/2583)
|
|
431
|
+
|
|
432
|
+
`Switch` now uses
|
|
433
|
+
[Canvas Tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs) and
|
|
434
|
+
our
|
|
435
|
+
[new styling utilities](https://workday.github.io/canvas-kit/?path=/docs/styling-basics--create-modifiers#createstyles-api).
|
|
436
|
+
The component now supports the `cs` prop, but otherwise the API has not changed. It should behave
|
|
437
|
+
identically as it did in previous versions.
|
|
438
|
+
|
|
439
|
+
### Table (Preview)
|
|
440
|
+
|
|
441
|
+
**PR:** [#2567](https://github.com/Workday/canvas-kit/pull/2567)
|
|
442
|
+
|
|
443
|
+
`Table` now uses
|
|
444
|
+
[Canvas Tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-getting-started--docs) and
|
|
445
|
+
our
|
|
446
|
+
[new styling utilities](https://workday.github.io/canvas-kit/?path=/docs/styling-basics--create-modifiers#createstyles-api).
|
|
447
|
+
The component now supports the `cs` prop, but otherwise the API has not changed. It should behave
|
|
448
|
+
identically as it did in previous versions.
|
|
449
|
+
|
|
426
450
|
### Text
|
|
427
451
|
|
|
428
452
|
**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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
35
|
-
model: '
|
|
36
|
-
year: '
|
|
37
|
-
price: '
|
|
38
|
-
engine: '
|
|
39
|
-
transmission: '
|
|
40
|
-
horsepower: '
|
|
41
|
-
torque: '
|
|
42
|
-
curbWeight: '
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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">
|
|
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.
|
|
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.
|
|
3
|
+
"version": "11.0.0-alpha.697-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.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.0-alpha.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.697-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.697-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.0-alpha.697-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.0-alpha.697-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": "
|
|
62
|
+
"gitHead": "eb7a03f18423b4ffaef4a4df21d3e5256e728563"
|
|
63
63
|
}
|