@workday/canvas-kit-react 6.0.0-alpha.0-next.25 → 6.0.0-alpha.0-next.29
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/action-bar/lib/ActionBar.tsx +43 -30
- package/button/lib/PrimaryButton.tsx +110 -32
- package/button/lib/parts/ButtonContainer.tsx +16 -5
- package/button/lib/parts/ButtonLabelIcon.tsx +34 -14
- package/button/lib/types.ts +10 -0
- package/common/lib/theming/README.md +189 -25
- package/common/lib/theming/breakpoints.ts +296 -16
- package/common/lib/theming/types.ts +191 -1
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBar.js +35 -27
- package/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
- package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +80 -26
- package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
- package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonContainer.js +11 -9
- package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +28 -13
- package/dist/commonjs/button/lib/types.d.ts +8 -0
- package/dist/commonjs/button/lib/types.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
- package/dist/commonjs/common/lib/theming/breakpoints.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/breakpoints.js +192 -10
- package/dist/commonjs/common/lib/theming/types.d.ts +191 -1
- package/dist/commonjs/common/lib/theming/types.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
- package/dist/commonjs/tokens/index.d.ts +3 -20
- package/dist/commonjs/tokens/index.d.ts.map +1 -1
- package/dist/commonjs/tokens/index.js +3 -6
- package/dist/commonjs/tokens/lib/depth.d.ts +109 -3
- package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
- package/dist/commonjs/tokens/lib/depth.js +40 -5
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.js +33 -22
- package/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
- package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +81 -27
- package/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
- package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonContainer.js +11 -9
- package/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
- package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
- package/dist/es6/button/lib/parts/ButtonLabelIcon.js +28 -13
- package/dist/es6/button/lib/types.d.ts +8 -0
- package/dist/es6/button/lib/types.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
- package/dist/es6/common/lib/theming/breakpoints.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/breakpoints.js +192 -10
- package/dist/es6/common/lib/theming/types.d.ts +191 -1
- package/dist/es6/common/lib/theming/types.d.ts.map +1 -1
- package/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
- package/dist/es6/tokens/index.d.ts +3 -20
- package/dist/es6/tokens/index.d.ts.map +1 -1
- package/dist/es6/tokens/index.js +1 -1
- package/dist/es6/tokens/lib/depth.d.ts +109 -3
- package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
- package/dist/es6/tokens/lib/depth.js +40 -2
- package/package.json +5 -6
- package/tokens/README.md +5 -12
- package/tokens/index.ts +2 -2
- package/tokens/lib/depth.ts +125 -3
- package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
- package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
- package/ts3.5/dist/commonjs/button/lib/types.d.ts +8 -0
- package/ts3.5/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
- package/ts3.5/dist/commonjs/common/lib/theming/types.d.ts +191 -1
- package/ts3.5/dist/commonjs/common/lib/utils/components.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
- package/ts3.5/dist/commonjs/tokens/index.d.ts +3 -20
- package/ts3.5/dist/commonjs/tokens/lib/depth.d.ts +109 -3
- package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
- package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
- package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
- package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
- package/ts3.5/dist/es6/button/lib/types.d.ts +8 -0
- package/ts3.5/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
- package/ts3.5/dist/es6/common/lib/theming/types.d.ts +191 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
- package/ts3.5/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
- package/ts3.5/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
- package/ts3.5/dist/es6/tokens/index.d.ts +3 -20
- package/ts3.5/dist/es6/tokens/lib/depth.d.ts +109 -3
|
@@ -31,96 +31,96 @@ export interface SpaceProps {
|
|
|
31
31
|
pl?: Spacing;
|
|
32
32
|
}
|
|
33
33
|
export declare const space: {
|
|
34
|
-
margin: (value: "s" | "zero" | "m" | "l" | "
|
|
34
|
+
margin: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
35
35
|
margin: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
36
36
|
};
|
|
37
|
-
m: (value: "s" | "zero" | "m" | "l" | "
|
|
37
|
+
m: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
38
38
|
margin: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
39
39
|
};
|
|
40
|
-
marginX: (value: "s" | "zero" | "m" | "l" | "
|
|
40
|
+
marginX: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
41
41
|
marginLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
42
42
|
marginRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
43
43
|
};
|
|
44
|
-
mx: (value: "s" | "zero" | "m" | "l" | "
|
|
44
|
+
mx: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
45
45
|
marginLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
46
46
|
marginRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
47
47
|
};
|
|
48
|
-
marginY: (value: "s" | "zero" | "m" | "l" | "
|
|
48
|
+
marginY: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
49
49
|
marginBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
50
50
|
marginTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
51
51
|
};
|
|
52
|
-
my: (value: "s" | "zero" | "m" | "l" | "
|
|
52
|
+
my: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
53
53
|
marginBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
54
54
|
marginTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
55
55
|
};
|
|
56
|
-
marginT: (value: "s" | "zero" | "m" | "l" | "
|
|
56
|
+
marginT: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
57
57
|
marginTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
58
58
|
};
|
|
59
|
-
mt: (value: "s" | "zero" | "m" | "l" | "
|
|
59
|
+
mt: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
60
60
|
marginTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
61
61
|
};
|
|
62
|
-
marginR: (value: "s" | "zero" | "m" | "l" | "
|
|
62
|
+
marginR: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
63
63
|
marginRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
64
64
|
};
|
|
65
|
-
mr: (value: "s" | "zero" | "m" | "l" | "
|
|
65
|
+
mr: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
66
66
|
marginRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
67
67
|
};
|
|
68
|
-
marginB: (value: "s" | "zero" | "m" | "l" | "
|
|
68
|
+
marginB: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
69
69
|
marginBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
70
70
|
};
|
|
71
|
-
mb: (value: "s" | "zero" | "m" | "l" | "
|
|
71
|
+
mb: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
72
72
|
marginBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
73
73
|
};
|
|
74
|
-
marginL: (value: "s" | "zero" | "m" | "l" | "
|
|
74
|
+
marginL: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
75
75
|
marginLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
76
76
|
};
|
|
77
|
-
ml: (value: "s" | "zero" | "m" | "l" | "
|
|
77
|
+
ml: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
78
78
|
marginLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
79
79
|
};
|
|
80
|
-
padding: (value: "s" | "zero" | "m" | "l" | "
|
|
80
|
+
padding: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
81
81
|
padding: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
82
82
|
};
|
|
83
|
-
p: (value: "s" | "zero" | "m" | "l" | "
|
|
83
|
+
p: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
84
84
|
padding: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
85
85
|
};
|
|
86
|
-
paddingX: (value: "s" | "zero" | "m" | "l" | "
|
|
86
|
+
paddingX: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
87
87
|
paddingLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
88
88
|
paddingRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
89
89
|
};
|
|
90
|
-
px: (value: "s" | "zero" | "m" | "l" | "
|
|
90
|
+
px: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
91
91
|
paddingLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
92
92
|
paddingRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
93
93
|
};
|
|
94
|
-
paddingY: (value: "s" | "zero" | "m" | "l" | "
|
|
94
|
+
paddingY: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
95
95
|
paddingBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
96
96
|
paddingTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
97
97
|
};
|
|
98
|
-
py: (value: "s" | "zero" | "m" | "l" | "
|
|
98
|
+
py: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
99
99
|
paddingBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
100
100
|
paddingTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
101
101
|
};
|
|
102
|
-
paddingT: (value: "s" | "zero" | "m" | "l" | "
|
|
102
|
+
paddingT: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
103
103
|
paddingTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
104
104
|
};
|
|
105
|
-
pt: (value: "s" | "zero" | "m" | "l" | "
|
|
105
|
+
pt: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
106
106
|
paddingTop: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
107
107
|
};
|
|
108
|
-
paddingR: (value: "s" | "zero" | "m" | "l" | "
|
|
108
|
+
paddingR: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
109
109
|
paddingRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
110
110
|
};
|
|
111
|
-
pr: (value: "s" | "zero" | "m" | "l" | "
|
|
111
|
+
pr: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
112
112
|
paddingRight: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
113
113
|
};
|
|
114
|
-
paddingB: (value: "s" | "zero" | "m" | "l" | "
|
|
114
|
+
paddingB: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
115
115
|
paddingBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
116
116
|
};
|
|
117
|
-
pb: (value: "s" | "zero" | "m" | "l" | "
|
|
117
|
+
pb: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
118
118
|
paddingBottom: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
119
119
|
};
|
|
120
|
-
paddingL: (value: "s" | "zero" | "m" | "l" | "
|
|
120
|
+
paddingL: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
121
121
|
paddingLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
122
122
|
};
|
|
123
|
-
pl: (value: "s" | "zero" | "m" | "l" | "
|
|
123
|
+
pl: (value: "s" | "zero" | "m" | "l" | "xl" | "xxxs" | "xxs" | "xs" | "xxl" | "xxxl") => {
|
|
124
124
|
paddingLeft: "0px" | "4px" | "8px" | "12px" | "16px" | "24px" | "32px" | "40px" | "64px" | "80px";
|
|
125
125
|
};
|
|
126
126
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { colors, gradients } from '@workday/canvas-colors-web';
|
|
2
2
|
import { borderRadius, CanvasBorderRadius, CanvasBorderRadiusKeys, CanvasBorderRadiusValues } from './lib/radius';
|
|
3
3
|
import { BrandingColor, CanvasColor } from './lib/colors.types';
|
|
4
|
-
import depth,
|
|
4
|
+
import { depth, CanvasDepth, CanvasDepthValues } from './lib/depth';
|
|
5
5
|
import { space, CanvasSpace, CanvasSpaceKeys, CanvasSpaceValues, CanvasSpaceNumberValues, CanvasSpaceNumbers, spaceNumbers } from './lib/space';
|
|
6
6
|
import { type, fontFamily, monoFontFamily, CanvasType, CanvasTypeProperties, CanvasTypeVariants, CanvasTypeHierarchy } from './lib/type';
|
|
7
7
|
import { CSSProperties } from './lib/types';
|
|
@@ -326,24 +326,7 @@ declare const canvas: {
|
|
|
326
326
|
hoverBackground: string;
|
|
327
327
|
divider: string;
|
|
328
328
|
};
|
|
329
|
-
depth:
|
|
330
|
-
inset: {
|
|
331
|
-
boxShadow: "inset 0px 0px 8px 0 rgba(82, 97, 115, 0.09)";
|
|
332
|
-
};
|
|
333
|
-
1: {
|
|
334
|
-
boxShadow: "0px 2px 4px 0 rgba(0, 0, 0, 0.08)";
|
|
335
|
-
};
|
|
336
|
-
2: {
|
|
337
|
-
boxShadow: "0px 4px 8px 0 rgba(0, 0, 0, 0.1)";
|
|
338
|
-
};
|
|
339
|
-
3: {
|
|
340
|
-
boxShadow: "0px 8px 16px 0 rgba(0, 0, 0, 0.12)";
|
|
341
|
-
};
|
|
342
|
-
4: {
|
|
343
|
-
border: "1px solid rgba(218, 226, 230, 1)";
|
|
344
|
-
boxShadow: "0px 8px 16px 0 rgba(0, 0, 0, 0.12)";
|
|
345
|
-
};
|
|
346
|
-
};
|
|
329
|
+
depth: CanvasDepth;
|
|
347
330
|
fontFamily: string;
|
|
348
331
|
gradients: {
|
|
349
332
|
[key: string]: string;
|
|
@@ -427,7 +410,7 @@ declare const canvas: {
|
|
|
427
410
|
};
|
|
428
411
|
};
|
|
429
412
|
export * from '@workday/canvas-colors-web';
|
|
430
|
-
export { borderRadius, colors, gradients, depth, space, spaceNumbers, type, fontFamily, monoFontFamily, BrandingColor, CanvasDepth,
|
|
413
|
+
export { borderRadius, colors, gradients, depth, space, spaceNumbers, type, fontFamily, monoFontFamily, BrandingColor, CanvasDepth, CanvasDepthValues, CSSProperties, };
|
|
431
414
|
export default canvas;
|
|
432
415
|
export { CanvasBorderRadius, CanvasBorderRadiusKeys, CanvasBorderRadiusValues, CanvasColor, CanvasSpace, CanvasSpaceKeys, CanvasSpaceValues, CanvasSpaceNumberValues, CanvasSpaceNumbers, CanvasType, CanvasTypeProperties, CanvasTypeVariants, CanvasTypeHierarchy, };
|
|
433
416
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare type CanvasDepth = {
|
|
2
|
+
/**
|
|
3
|
+
* ### Depth Inset
|
|
4
|
+
* Used for inset containers
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
9
|
+
*
|
|
10
|
+
* const insetCardStyles = {
|
|
11
|
+
* ...depth.inset,
|
|
12
|
+
* };
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
inset: {
|
|
16
|
+
boxShadow: 'inset 0px 0px 8px 0 rgba(82, 97, 115, 0.09)';
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* ### Depth 1
|
|
20
|
+
* Used for minimal offset
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
25
|
+
*
|
|
26
|
+
* const cardStyles = {
|
|
27
|
+
* ...depth[1],
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
1: {
|
|
32
|
+
boxShadow: '0px 2px 4px 0 rgba(0, 0, 0, 0.08)';
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* ### Depth 2
|
|
36
|
+
* Used for Cards, Popups, and Menus — our most common depth
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
41
|
+
*
|
|
42
|
+
* const cardStyles = {
|
|
43
|
+
* ...depth[2],
|
|
44
|
+
* };
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
2: {
|
|
48
|
+
boxShadow: '0px 4px 8px 0 rgba(0, 0, 0, 0.1)';
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* ### Depth 3
|
|
52
|
+
* Used for interactive Cards on hover
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
57
|
+
*
|
|
58
|
+
* const cardStyles = {
|
|
59
|
+
* ...depth[3],
|
|
60
|
+
* };
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
3: {
|
|
64
|
+
boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)';
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* ### Depth 4
|
|
68
|
+
* Used for Cards on white backgrounds — adds border styles for more contrast
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
73
|
+
*
|
|
74
|
+
* const cardStyles = {
|
|
75
|
+
* ...depth[4],
|
|
76
|
+
* };
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
4: {
|
|
80
|
+
border: '1px solid rgba(218, 226, 230, 1)';
|
|
81
|
+
boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)';
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
declare type ValueOf<T> = T[keyof T];
|
|
85
|
+
export declare type CanvasDepthValues = ValueOf<CanvasDepth>;
|
|
86
|
+
/**
|
|
87
|
+
* ### Depth Tokens
|
|
88
|
+
*
|
|
89
|
+
* Depth is the relative distance between surfaces in the z-axis.
|
|
90
|
+
* It provides delineation, focus, and priority with shadows and layering.
|
|
91
|
+
* There are five depth levels, `inset`, `1`, `2`, `3`, and `4`.
|
|
92
|
+
* Most levels only apply box-shadow styles, but `depth[4]` also applies border styles.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
97
|
+
*
|
|
98
|
+
* const CustomCard = () => {
|
|
99
|
+
* return (
|
|
100
|
+
* <div css={depth[2]}>
|
|
101
|
+
* A standard-depth card
|
|
102
|
+
* </div>
|
|
103
|
+
* );
|
|
104
|
+
* }
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
export declare const depth: CanvasDepth;
|
|
109
|
+
export {};
|
|
4
110
|
//# sourceMappingURL=depth.d.ts.map
|