@workday/canvas-kit-react 6.0.0-alpha.0-next.22 → 6.0.0-alpha.0-next.28
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/styles/accessibleHide.ts +2 -2
- 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/styles/accessibleHide.d.ts +2 -2
- package/dist/commonjs/common/lib/styles/accessibleHide.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/styles/accessibleHide.d.ts +2 -2
- package/dist/es6/common/lib/styles/accessibleHide.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/styles/accessibleHide.d.ts +2 -2
- 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/styles/accessibleHide.d.ts +2 -2
- 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: "zero" | "s" | "m" | "l" | "
|
|
34
|
+
margin: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
37
|
+
m: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
40
|
+
marginX: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
44
|
+
mx: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
48
|
+
marginY: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
52
|
+
my: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
56
|
+
marginT: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
59
|
+
mt: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
62
|
+
marginR: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
65
|
+
mr: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
68
|
+
marginB: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
71
|
+
mb: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
74
|
+
marginL: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
77
|
+
ml: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
80
|
+
padding: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
83
|
+
p: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
86
|
+
paddingX: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
90
|
+
px: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
94
|
+
paddingY: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
98
|
+
py: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
102
|
+
paddingT: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
105
|
+
pt: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
108
|
+
paddingR: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
111
|
+
pr: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
114
|
+
paddingB: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
117
|
+
pb: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
120
|
+
paddingL: (value: "zero" | "s" | "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: "zero" | "s" | "m" | "l" | "
|
|
123
|
+
pl: (value: "zero" | "s" | "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 type { CanvasBorderRadius, CanvasBorderRadiusKeys, CanvasBorderRadiusValues, CanvasColor, CanvasSpace, CanvasSpaceKeys, CanvasSpaceValues, CanvasSpaceNumberValues, CanvasSpaceNumbers, CanvasType, CanvasTypeProperties, CanvasTypeVariants, CanvasTypeHierarchy, };
|
|
433
416
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EAEN,SAAS,EAKV,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,wBAAwB,EAAC,MAAM,cAAc,CAAC;AAChH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tokens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EAEN,SAAS,EAKV,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,wBAAwB,EAAC,MAAM,cAAc,CAAC;AAChH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAClE,OAAO,EACL,KAAK,EACL,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,IAAI,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBX,CAAC;AAEF,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EACL,YAAY,EACZ,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,aAAa,GACd,CAAC;AACF,eAAe,MAAM,CAAC;AAEtB,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,CAAA"}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
function __export(m) {
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
6
|
var canvas_colors_web_1 = require("@workday/canvas-colors-web");
|
|
10
7
|
exports.colors = canvas_colors_web_1.colors;
|
|
@@ -13,8 +10,8 @@ var radius_1 = require("./lib/radius");
|
|
|
13
10
|
exports.borderRadius = radius_1.borderRadius;
|
|
14
11
|
var colors_types_1 = require("./lib/colors.types");
|
|
15
12
|
exports.BrandingColor = colors_types_1.BrandingColor;
|
|
16
|
-
var depth_1 =
|
|
17
|
-
exports.depth = depth_1.
|
|
13
|
+
var depth_1 = require("./lib/depth");
|
|
14
|
+
exports.depth = depth_1.depth;
|
|
18
15
|
var space_1 = require("./lib/space");
|
|
19
16
|
exports.space = space_1.space;
|
|
20
17
|
exports.spaceNumbers = space_1.spaceNumbers;
|
|
@@ -28,7 +25,7 @@ var canvas = {
|
|
|
28
25
|
chartingColors: canvas_colors_web_1.chartingColors,
|
|
29
26
|
colors: canvas_colors_web_1.colors,
|
|
30
27
|
commonColors: canvas_colors_web_1.commonColors,
|
|
31
|
-
depth: depth_1.
|
|
28
|
+
depth: depth_1.depth,
|
|
32
29
|
fontFamily: type_1.fontFamily,
|
|
33
30
|
gradients: canvas_colors_web_1.gradients,
|
|
34
31
|
iconColors: canvas_colors_web_1.iconColors,
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/depth.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/depth.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE;QACL,SAAS,EAAE,6CAA6C,CAAC;KAC1D,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,mCAAmC,CAAC;KAChD,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,kCAAkC,CAAC;KAC/C,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,oCAAoC,CAAC;KACjD,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,MAAM,EAAE,kCAAkC,CAAC;QAC3C,SAAS,EAAE,oCAAoC,CAAC;KACjD,CAAC;CACH,CAAC;AAEF,aAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7B,oBAAY,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,KAAK,EAAE,WAiBnB,CAAC"}
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* ### Depth Tokens
|
|
5
|
+
*
|
|
6
|
+
* Depth is the relative distance between surfaces in the z-axis.
|
|
7
|
+
* It provides delineation, focus, and priority with shadows and layering.
|
|
8
|
+
* There are five depth levels, `inset`, `1`, `2`, `3`, and `4`.
|
|
9
|
+
* Most levels only apply box-shadow styles, but `depth[4]` also applies border styles.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { depth } from '@workday/canvas-kit-react/tokens';
|
|
14
|
+
*
|
|
15
|
+
* const CustomCard = () => {
|
|
16
|
+
* return (
|
|
17
|
+
* <div css={depth[2]}>
|
|
18
|
+
* A standard-depth card
|
|
19
|
+
* </div>
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
exports.depth = {
|
|
26
|
+
inset: {
|
|
27
|
+
boxShadow: 'inset 0px 0px 8px 0 rgba(82, 97, 115, 0.09)',
|
|
28
|
+
},
|
|
29
|
+
1: {
|
|
30
|
+
boxShadow: '0px 2px 4px 0 rgba(0, 0, 0, 0.08)',
|
|
31
|
+
},
|
|
32
|
+
2: {
|
|
33
|
+
boxShadow: '0px 4px 8px 0 rgba(0, 0, 0, 0.1)',
|
|
34
|
+
},
|
|
35
|
+
3: {
|
|
36
|
+
boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',
|
|
37
|
+
},
|
|
38
|
+
4: {
|
|
39
|
+
border: '1px solid rgba(218, 226, 230, 1)',
|
|
40
|
+
boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAuDD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAC7D,MAAM;CASd"}
|
|
@@ -34,24 +34,30 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
34
34
|
return t;
|
|
35
35
|
};
|
|
36
36
|
import * as React from 'react';
|
|
37
|
-
import styled from '@
|
|
37
|
+
import { styled } from '@workday/canvas-kit-react/common';
|
|
38
38
|
import { colors, commonColors, space } from '@workday/canvas-kit-react/tokens';
|
|
39
|
+
function getFixedStyles(fixed) {
|
|
40
|
+
if (fixed === void 0) { fixed = false; }
|
|
41
|
+
return fixed
|
|
42
|
+
? {
|
|
43
|
+
position: 'fixed',
|
|
44
|
+
left: 0,
|
|
45
|
+
bottom: 0,
|
|
46
|
+
right: 0,
|
|
47
|
+
}
|
|
48
|
+
: {};
|
|
49
|
+
}
|
|
39
50
|
var ActionBarContainer = styled('div')({
|
|
40
51
|
borderTop: "solid 1px " + colors.soap400,
|
|
41
52
|
background: commonColors.background,
|
|
42
53
|
padding: space.s,
|
|
43
54
|
boxShadow: '0 -2px 4px rgba(0, 0, 0, 0.08)',
|
|
44
|
-
'@media (max-width: 575px)': {
|
|
45
|
-
padding: space.xxs,
|
|
46
|
-
},
|
|
47
55
|
}, function (_a) {
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
right: 0,
|
|
54
|
-
};
|
|
56
|
+
var _b;
|
|
57
|
+
var fixed = _a.fixed, theme = _a.theme;
|
|
58
|
+
return __assign(__assign({}, getFixedStyles(fixed)), (_b = {}, _b[theme.canvas.breakpoints.down('s')] = {
|
|
59
|
+
padding: space.xxs,
|
|
60
|
+
}, _b));
|
|
55
61
|
});
|
|
56
62
|
var ChildrenContainer = styled('div')({
|
|
57
63
|
display: 'inline-block',
|
|
@@ -59,19 +65,24 @@ var ChildrenContainer = styled('div')({
|
|
|
59
65
|
'*:not(:first-of-type)': {
|
|
60
66
|
marginLeft: space.s,
|
|
61
67
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
}, function (_a) {
|
|
69
|
+
var _b;
|
|
70
|
+
var theme = _a.theme;
|
|
71
|
+
return (_b = {},
|
|
72
|
+
_b[theme.canvas.breakpoints.down('s')] = {
|
|
73
|
+
display: 'flex',
|
|
74
|
+
padding: space.xxs,
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
flexDirection: 'row-reverse',
|
|
77
|
+
'> *': {
|
|
78
|
+
flex: 1,
|
|
79
|
+
'&:not(:first-of-type)': {
|
|
80
|
+
marginRight: space.s,
|
|
81
|
+
marginLeft: 0,
|
|
82
|
+
},
|
|
72
83
|
},
|
|
73
84
|
},
|
|
74
|
-
|
|
85
|
+
_b);
|
|
75
86
|
});
|
|
76
87
|
var ActionBar = /** @class */ (function (_super) {
|
|
77
88
|
__extends(ActionBar, _super);
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GrowthBehavior, Themeable, EmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
4
|
-
import {
|
|
4
|
+
import { ButtonSizes, IconPositions } from './types';
|
|
5
5
|
export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The variant of the PrimaryButton.
|
|
8
|
+
* @default undefined
|
|
9
|
+
*/
|
|
10
|
+
variant?: 'inverse';
|
|
11
|
+
/**
|
|
12
|
+
* There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
|
|
13
|
+
* If no size is provided, it will default to `medium`.
|
|
14
|
+
*
|
|
8
15
|
* @default 'medium'
|
|
9
16
|
*/
|
|
10
|
-
size?:
|
|
17
|
+
size?: ButtonSizes;
|
|
11
18
|
/**
|
|
12
19
|
* The data label of the Button.
|
|
13
20
|
* Note: not displayed at `small` size
|
|
@@ -19,10 +26,11 @@ export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
|
|
|
19
26
|
*/
|
|
20
27
|
icon?: CanvasSystemIcon;
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
29
|
+
* Button icon positions can either be `left` or `right`.
|
|
30
|
+
* If no value is provided, it defaults to `left`.
|
|
23
31
|
* @default 'left'
|
|
24
32
|
*/
|
|
25
|
-
iconPosition?:
|
|
33
|
+
iconPosition?: IconPositions;
|
|
26
34
|
/**
|
|
27
35
|
* If set to `true`, transform the icon's x-axis to mirror the graphic
|
|
28
36
|
* @default false
|
|
@@ -31,5 +39,71 @@ export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
|
|
|
31
39
|
children?: React.ReactNode;
|
|
32
40
|
}
|
|
33
41
|
export declare const PrimaryButton: import("../../common").ElementComponent<"button", PrimaryButtonProps>;
|
|
34
|
-
export declare const getPrimaryButtonColors: (
|
|
42
|
+
export declare const getPrimaryButtonColors: (variant: "inverse" | undefined, theme: EmotionCanvasTheme) => {
|
|
43
|
+
default: {
|
|
44
|
+
background: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
label: string;
|
|
47
|
+
labelData?: undefined;
|
|
48
|
+
};
|
|
49
|
+
hover: {
|
|
50
|
+
background: string;
|
|
51
|
+
icon?: undefined;
|
|
52
|
+
label?: undefined;
|
|
53
|
+
labelData?: undefined;
|
|
54
|
+
};
|
|
55
|
+
active: {
|
|
56
|
+
background: string;
|
|
57
|
+
icon?: undefined;
|
|
58
|
+
label?: undefined;
|
|
59
|
+
labelData?: undefined;
|
|
60
|
+
};
|
|
61
|
+
focus: {
|
|
62
|
+
background: string;
|
|
63
|
+
border?: undefined;
|
|
64
|
+
icon?: undefined;
|
|
65
|
+
label?: undefined;
|
|
66
|
+
labelData?: undefined;
|
|
67
|
+
focusRing?: undefined;
|
|
68
|
+
};
|
|
69
|
+
disabled: {
|
|
70
|
+
background: string;
|
|
71
|
+
icon?: undefined;
|
|
72
|
+
label?: undefined;
|
|
73
|
+
labelData?: undefined;
|
|
74
|
+
};
|
|
75
|
+
} | {
|
|
76
|
+
default: {
|
|
77
|
+
background: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
label: string;
|
|
80
|
+
labelData: string;
|
|
81
|
+
};
|
|
82
|
+
hover: {
|
|
83
|
+
background: string;
|
|
84
|
+
icon: string;
|
|
85
|
+
label: string;
|
|
86
|
+
labelData: string;
|
|
87
|
+
};
|
|
88
|
+
active: {
|
|
89
|
+
background: string;
|
|
90
|
+
icon: string;
|
|
91
|
+
label: string;
|
|
92
|
+
labelData: string;
|
|
93
|
+
};
|
|
94
|
+
focus: {
|
|
95
|
+
background: string;
|
|
96
|
+
border: string;
|
|
97
|
+
icon: string;
|
|
98
|
+
label: string;
|
|
99
|
+
labelData: string;
|
|
100
|
+
focusRing: import("@emotion/serialize").CSSObject;
|
|
101
|
+
};
|
|
102
|
+
disabled: {
|
|
103
|
+
background: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
label: string;
|
|
106
|
+
labelData: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
35
109
|
//# sourceMappingURL=PrimaryButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/PrimaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PrimaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/PrimaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,EAGnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,SAAS,EAAE,cAAc;IACnE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAYD,eAAO,MAAM,aAAa,uEA+CxB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ElC,CAAC"}
|