@workday/canvas-kit-docs 11.0.11 → 11.0.13
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
|
@@ -114006,6 +114006,73 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
114006
114006
|
}
|
|
114007
114007
|
}
|
|
114008
114008
|
},
|
|
114009
|
+
{
|
|
114010
|
+
"name": "filterOutProps",
|
|
114011
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts",
|
|
114012
|
+
"description": "",
|
|
114013
|
+
"declarations": [
|
|
114014
|
+
{
|
|
114015
|
+
"name": "filterOutProps",
|
|
114016
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts"
|
|
114017
|
+
}
|
|
114018
|
+
],
|
|
114019
|
+
"tags": {},
|
|
114020
|
+
"type": {
|
|
114021
|
+
"kind": "function",
|
|
114022
|
+
"parameters": [
|
|
114023
|
+
{
|
|
114024
|
+
"kind": "parameter",
|
|
114025
|
+
"name": "omittedProps",
|
|
114026
|
+
"type": {
|
|
114027
|
+
"kind": "array",
|
|
114028
|
+
"value": {
|
|
114029
|
+
"kind": "primitive",
|
|
114030
|
+
"value": "string"
|
|
114031
|
+
}
|
|
114032
|
+
},
|
|
114033
|
+
"required": true,
|
|
114034
|
+
"rest": false,
|
|
114035
|
+
"description": "",
|
|
114036
|
+
"declarations": [
|
|
114037
|
+
{
|
|
114038
|
+
"name": "omittedProps",
|
|
114039
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts"
|
|
114040
|
+
}
|
|
114041
|
+
],
|
|
114042
|
+
"tags": {}
|
|
114043
|
+
}
|
|
114044
|
+
],
|
|
114045
|
+
"members": [],
|
|
114046
|
+
"returnType": {
|
|
114047
|
+
"kind": "function",
|
|
114048
|
+
"parameters": [
|
|
114049
|
+
{
|
|
114050
|
+
"kind": "parameter",
|
|
114051
|
+
"name": "prop",
|
|
114052
|
+
"type": {
|
|
114053
|
+
"kind": "primitive",
|
|
114054
|
+
"value": "string"
|
|
114055
|
+
},
|
|
114056
|
+
"required": true,
|
|
114057
|
+
"rest": false,
|
|
114058
|
+
"description": "",
|
|
114059
|
+
"declarations": [
|
|
114060
|
+
{
|
|
114061
|
+
"name": "prop",
|
|
114062
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts"
|
|
114063
|
+
}
|
|
114064
|
+
],
|
|
114065
|
+
"tags": {}
|
|
114066
|
+
}
|
|
114067
|
+
],
|
|
114068
|
+
"members": [],
|
|
114069
|
+
"returnType": {
|
|
114070
|
+
"kind": "primitive",
|
|
114071
|
+
"value": "boolean"
|
|
114072
|
+
}
|
|
114073
|
+
}
|
|
114074
|
+
}
|
|
114075
|
+
},
|
|
114009
114076
|
{
|
|
114010
114077
|
"name": "StyleRewriteFn",
|
|
114011
114078
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/theming/styled.ts",
|
|
@@ -41,9 +41,24 @@ const myCustomStyles = createStyles({
|
|
|
41
41
|
textTransform: 'uppercase',
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
+
const customColors = {
|
|
45
|
+
default: {
|
|
46
|
+
background: system.color.static.green.soft,
|
|
47
|
+
icon: system.color.static.green.strong,
|
|
48
|
+
label: system.color.static.green.strong,
|
|
49
|
+
},
|
|
50
|
+
hover: {
|
|
51
|
+
background: system.color.static.green.default,
|
|
52
|
+
icon: system.color.static.green.strong,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
44
56
|
export default () => (
|
|
45
57
|
<Grid cs={{gap: px2rem(4), gridTemplateColumns: 'repeat(3, 1fr)', alignItems: 'center'}}>
|
|
46
58
|
<MyCustomButton icon={plusIcon}>Styling Override Via Stencil Variables</MyCustomButton>
|
|
47
59
|
<PrimaryButton cs={myCustomStyles}>Style Override Via Create Styles</PrimaryButton>
|
|
60
|
+
<PrimaryButton icon={plusIcon} colors={customColors}>
|
|
61
|
+
Styling Override Via Colors Prop
|
|
62
|
+
</PrimaryButton>
|
|
48
63
|
</Grid>
|
|
49
64
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.13",
|
|
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.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.13",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.13",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.13",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.13",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^2.0.0",
|
|
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": "f6d83142c8ccd9edbad52077f6df02a1296e2787"
|
|
63
63
|
}
|