@workday/canvas-kit-docs 17.0.0-alpha.0639-next.0 → 17.0.0-alpha.0645-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 +38 -64
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/mdx/16.0-UPGRADE-GUIDE.mdx +1 -1
- package/dist/mdx/FONTS.mdx +4 -2
- package/dist/mdx/preview-react/tabs/Tabs.mdx +4 -4
- package/dist/mdx/preview-react/tabs/examples/{OutlinedTabs.tsx → FilledTabs.tsx} +1 -1
- package/dist/mdx/preview-react/tabs/examples/RightToLeft.tsx +1 -1
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -101274,6 +101274,24 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
101274
101274
|
],
|
|
101275
101275
|
"tags": {}
|
|
101276
101276
|
},
|
|
101277
|
+
{
|
|
101278
|
+
"kind": "property",
|
|
101279
|
+
"name": "cs",
|
|
101280
|
+
"required": false,
|
|
101281
|
+
"type": {
|
|
101282
|
+
"kind": "symbol",
|
|
101283
|
+
"name": "CSToPropsInput",
|
|
101284
|
+
"value": "CSToPropsInput"
|
|
101285
|
+
},
|
|
101286
|
+
"description": "The `cs` prop takes in a single value or an array of values. You can pass the CSS class name\nreturned by {@link createStyles }, or the result of {@link createVars } and\n{@link createModifiers }. If you're extending a component already using `cs`, you can merge that\nprop in as well. Any style that is passed to the `cs` prop will override style props. If you\nwish to have styles that are overridden by the `css` prop, or styles added via the `styled`\nAPI, use {@link handleCsProp } wherever `elemProps` is used. If your component needs to also\nhandle style props, use {@link mergeStyles} instead.\n\n\n```tsx\nimport {handleCsProp} from '@workday/canvas-kit-styling';\nimport {mergeStyles} from '@workday/canvas-kit-react/layout';\n\n// ...\n\n// `handleCsProp` handles compat mode with Emotion's runtime APIs. `mergeStyles` has the same\n// function signature, but adds support for style props.\n\nreturn (\n <Element\n {...handleCsProp(elemProps, [\n myStyles,\n myModifiers({ size: 'medium' }),\n myVars({ backgroundColor: 'red' })\n ])}\n >\n {children}\n </Element>\n)\n```",
|
|
101287
|
+
"declarations": [
|
|
101288
|
+
{
|
|
101289
|
+
"name": "cs",
|
|
101290
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
101291
|
+
}
|
|
101292
|
+
],
|
|
101293
|
+
"tags": {}
|
|
101294
|
+
},
|
|
101277
101295
|
{
|
|
101278
101296
|
"kind": "property",
|
|
101279
101297
|
"name": "variant",
|
|
@@ -101291,37 +101309,13 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
101291
101309
|
}
|
|
101292
101310
|
]
|
|
101293
101311
|
},
|
|
101294
|
-
"description": "
|
|
101312
|
+
"description": "",
|
|
101295
101313
|
"declarations": [
|
|
101296
101314
|
{
|
|
101297
101315
|
"name": "variant",
|
|
101298
101316
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/tabs/lib/TabsItem.tsx"
|
|
101299
101317
|
}
|
|
101300
101318
|
],
|
|
101301
|
-
"tags": {
|
|
101302
|
-
"default": "'filled'"
|
|
101303
|
-
},
|
|
101304
|
-
"defaultValue": {
|
|
101305
|
-
"kind": "string",
|
|
101306
|
-
"value": "filled"
|
|
101307
|
-
}
|
|
101308
|
-
},
|
|
101309
|
-
{
|
|
101310
|
-
"kind": "property",
|
|
101311
|
-
"name": "cs",
|
|
101312
|
-
"required": false,
|
|
101313
|
-
"type": {
|
|
101314
|
-
"kind": "symbol",
|
|
101315
|
-
"name": "CSToPropsInput",
|
|
101316
|
-
"value": "CSToPropsInput"
|
|
101317
|
-
},
|
|
101318
|
-
"description": "The `cs` prop takes in a single value or an array of values. You can pass the CSS class name\nreturned by {@link createStyles }, or the result of {@link createVars } and\n{@link createModifiers }. If you're extending a component already using `cs`, you can merge that\nprop in as well. Any style that is passed to the `cs` prop will override style props. If you\nwish to have styles that are overridden by the `css` prop, or styles added via the `styled`\nAPI, use {@link handleCsProp } wherever `elemProps` is used. If your component needs to also\nhandle style props, use {@link mergeStyles} instead.\n\n\n```tsx\nimport {handleCsProp} from '@workday/canvas-kit-styling';\nimport {mergeStyles} from '@workday/canvas-kit-react/layout';\n\n// ...\n\n// `handleCsProp` handles compat mode with Emotion's runtime APIs. `mergeStyles` has the same\n// function signature, but adds support for style props.\n\nreturn (\n <Element\n {...handleCsProp(elemProps, [\n myStyles,\n myModifiers({ size: 'medium' }),\n myVars({ backgroundColor: 'red' })\n ])}\n >\n {children}\n </Element>\n)\n```",
|
|
101319
|
-
"declarations": [
|
|
101320
|
-
{
|
|
101321
|
-
"name": "cs",
|
|
101322
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
101323
|
-
}
|
|
101324
|
-
],
|
|
101325
101319
|
"tags": {}
|
|
101326
101320
|
},
|
|
101327
101321
|
{
|
|
@@ -101681,38 +101675,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
101681
101675
|
],
|
|
101682
101676
|
"tags": {}
|
|
101683
101677
|
},
|
|
101684
|
-
{
|
|
101685
|
-
"kind": "property",
|
|
101686
|
-
"name": "variant",
|
|
101687
|
-
"required": false,
|
|
101688
|
-
"type": {
|
|
101689
|
-
"kind": "union",
|
|
101690
|
-
"value": [
|
|
101691
|
-
{
|
|
101692
|
-
"kind": "string",
|
|
101693
|
-
"value": "filled"
|
|
101694
|
-
},
|
|
101695
|
-
{
|
|
101696
|
-
"kind": "string",
|
|
101697
|
-
"value": "outlined"
|
|
101698
|
-
}
|
|
101699
|
-
]
|
|
101700
|
-
},
|
|
101701
|
-
"description": "The variant of the TabsItem.",
|
|
101702
|
-
"declarations": [
|
|
101703
|
-
{
|
|
101704
|
-
"name": "variant",
|
|
101705
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/tabs/lib/TabsItem.tsx"
|
|
101706
|
-
}
|
|
101707
|
-
],
|
|
101708
|
-
"tags": {
|
|
101709
|
-
"default": "'filled'"
|
|
101710
|
-
},
|
|
101711
|
-
"defaultValue": {
|
|
101712
|
-
"kind": "string",
|
|
101713
|
-
"value": "filled"
|
|
101714
|
-
}
|
|
101715
|
-
},
|
|
101716
101678
|
{
|
|
101717
101679
|
"kind": "property",
|
|
101718
101680
|
"name": "cs",
|
|
@@ -108394,9 +108356,21 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
108394
108356
|
"kind": "property",
|
|
108395
108357
|
"name": "variant",
|
|
108396
108358
|
"defaultValue": {
|
|
108397
|
-
"kind": "
|
|
108398
|
-
"
|
|
108399
|
-
"
|
|
108359
|
+
"kind": "property",
|
|
108360
|
+
"name": "variant",
|
|
108361
|
+
"type": {
|
|
108362
|
+
"kind": "union",
|
|
108363
|
+
"value": [
|
|
108364
|
+
{
|
|
108365
|
+
"kind": "string",
|
|
108366
|
+
"value": "filled"
|
|
108367
|
+
},
|
|
108368
|
+
{
|
|
108369
|
+
"kind": "string",
|
|
108370
|
+
"value": "outlined"
|
|
108371
|
+
}
|
|
108372
|
+
]
|
|
108373
|
+
}
|
|
108400
108374
|
},
|
|
108401
108375
|
"type": {
|
|
108402
108376
|
"kind": "union",
|
|
@@ -116837,7 +116811,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
116837
116811
|
"name": "variant",
|
|
116838
116812
|
"defaultValue": {
|
|
116839
116813
|
"kind": "string",
|
|
116840
|
-
"value": "
|
|
116814
|
+
"value": "outlined"
|
|
116841
116815
|
},
|
|
116842
116816
|
"type": {
|
|
116843
116817
|
"kind": "union",
|
|
@@ -116861,7 +116835,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
116861
116835
|
}
|
|
116862
116836
|
],
|
|
116863
116837
|
"tags": {
|
|
116864
|
-
"default": "'
|
|
116838
|
+
"default": "'outlined'"
|
|
116865
116839
|
}
|
|
116866
116840
|
},
|
|
116867
116841
|
{
|
|
@@ -119779,7 +119753,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
119779
119753
|
"name": "variant",
|
|
119780
119754
|
"defaultValue": {
|
|
119781
119755
|
"kind": "string",
|
|
119782
|
-
"value": "
|
|
119756
|
+
"value": "outlined"
|
|
119783
119757
|
},
|
|
119784
119758
|
"type": {
|
|
119785
119759
|
"kind": "union",
|
|
@@ -119803,7 +119777,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
119803
119777
|
}
|
|
119804
119778
|
],
|
|
119805
119779
|
"tags": {
|
|
119806
|
-
"default": "'
|
|
119780
|
+
"default": "'outlined'"
|
|
119807
119781
|
}
|
|
119808
119782
|
},
|
|
119809
119783
|
{
|
|
@@ -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": "16.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "16.1.
|
|
23
|
-
"@workday/canvas-kit-react": "16.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^16.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "16.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "16.1.10",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "16.1.10",
|
|
23
|
+
"@workday/canvas-kit-react": "16.1.10",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^16.1.10",
|
|
25
|
+
"@workday/canvas-kit-styling": "16.1.10",
|
|
26
26
|
"@workday/canvas-system-icons-web": "^5.0.3",
|
|
27
27
|
"@workday/canvas-expressive-icons-web": "1.0.1",
|
|
28
28
|
"@workday/canvas-tokens-web": "4.4.0-beta.11"
|
|
@@ -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": "16.1.
|
|
23
|
-
"@workday/canvas-kit-preview-react": "16.1.
|
|
24
|
-
"@workday/canvas-kit-react": "16.1.
|
|
25
|
-
"@workday/canvas-kit-react-fonts": "^16.1.
|
|
26
|
-
"@workday/canvas-kit-styling": "16.1.
|
|
22
|
+
"@workday/canvas-kit-labs-react": "16.1.10",
|
|
23
|
+
"@workday/canvas-kit-preview-react": "16.1.10",
|
|
24
|
+
"@workday/canvas-kit-react": "16.1.10",
|
|
25
|
+
"@workday/canvas-kit-react-fonts": "^16.1.10",
|
|
26
|
+
"@workday/canvas-kit-styling": "16.1.10",
|
|
27
27
|
"@workday/canvas-system-icons-web": "^5.0.3",
|
|
28
28
|
"@workday/canvas-expressive-icons-web": "1.0.1",
|
|
29
29
|
"@workday/canvas-tokens-web": "4.4.0-beta.11"
|
|
@@ -400,7 +400,7 @@ functional shortcuts, refer to the storybook documentation and our example stori
|
|
|
400
400
|
**PR:** [#4062](https://github.com/Workday/canvas-kit/pull/4062)
|
|
401
401
|
|
|
402
402
|
A new `Tabs` component has been added to `@workday/canvas-kit-preview-react`, aligned with the Sana
|
|
403
|
-
Canvas visual language. It supports `filled` and `outlined` variants.
|
|
403
|
+
Canvas visual language. It supports `filled` and `outlined` variants, with `outlined` variant as default.
|
|
404
404
|
|
|
405
405
|
```tsx
|
|
406
406
|
import {Tabs} from '@workday/canvas-kit-preview-react/tabs';
|
package/dist/mdx/FONTS.mdx
CHANGED
|
@@ -62,10 +62,12 @@ traditional, static fonts. But you should be able to use it identically to how y
|
|
|
62
62
|
other fonts.
|
|
63
63
|
|
|
64
64
|
- **Family**: Sana Sans VF
|
|
65
|
-
- **Format**:
|
|
65
|
+
- **Format**: WOFF2 variable font, with a TrueType fallback
|
|
66
66
|
- **Weight range**: 100–700 (Regular through Bold)
|
|
67
67
|
- **Styles**: normal, italic
|
|
68
|
-
- **Source**:
|
|
68
|
+
- **Source**:
|
|
69
|
+
- `https://design.workdaycdn.com/assets/fonts/Sana-Sans/SanaSansLCG05-Variable.woff2`
|
|
70
|
+
- `https://design.workdaycdn.com/assets/fonts/Sana-Sans/SanaSansLCG05-Variable.ttf` (fallback)
|
|
69
71
|
|
|
70
72
|
### Monospace Font
|
|
71
73
|
|
|
@@ -6,7 +6,7 @@ import DynamicTabs from './examples/DynamicTabs';
|
|
|
6
6
|
import HoistedModel from './examples/HoistedModel';
|
|
7
7
|
import Icons from './examples/Icons';
|
|
8
8
|
import NamedTabs from './examples/NamedTabs';
|
|
9
|
-
import
|
|
9
|
+
import FilledTabs from './examples/FilledTabs';
|
|
10
10
|
import OverflowTabs from './examples/OverflowTabs';
|
|
11
11
|
import RightToLeft from './examples/RightToLeft';
|
|
12
12
|
import SinglePanel from './examples/SinglePanel';
|
|
@@ -39,11 +39,11 @@ that does not support overflow.
|
|
|
39
39
|
|
|
40
40
|
<ExampleCodeBlock code={Basic} />
|
|
41
41
|
|
|
42
|
-
###
|
|
42
|
+
### Filled Tabs
|
|
43
43
|
|
|
44
|
-
Set the `variant` prop of `Tabs` to `
|
|
44
|
+
Set the `variant` prop of `Tabs` to `filled` to render a filled style of tabs.
|
|
45
45
|
|
|
46
|
-
<ExampleCodeBlock code={
|
|
46
|
+
<ExampleCodeBlock code={FilledTabs} />
|
|
47
47
|
|
|
48
48
|
### Overflow Tabs
|
|
49
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "17.0.0-alpha.
|
|
3
|
+
"version": "17.0.0-alpha.0645-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",
|
|
@@ -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": "^17.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-preview-react": "^17.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-react": "^17.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-styling": "^17.0.0-alpha.
|
|
50
|
+
"@workday/canvas-kit-labs-react": "^17.0.0-alpha.0645-next.0",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^17.0.0-alpha.0645-next.0",
|
|
52
|
+
"@workday/canvas-kit-react": "^17.0.0-alpha.0645-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^17.0.0-alpha.0645-next.0",
|
|
54
54
|
"@workday/canvas-system-icons-web": "^5.0.3",
|
|
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": "
|
|
66
|
+
"gitHead": "c5b6c9bab2748f3519a17122c7098cee533ae95c"
|
|
67
67
|
}
|