@workday/canvas-kit-react 10.0.0-alpha.446-next.0 → 10.0.0-alpha.447-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/button/lib/BaseButton.tsx +4 -4
- package/checkbox/lib/Checkbox.tsx +18 -12
- package/dist/commonjs/button/lib/BaseButton.d.ts +1 -1
- package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/BaseButton.js +4 -4
- package/dist/commonjs/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/commonjs/checkbox/lib/Checkbox.js +11 -11
- package/dist/commonjs/radio/lib/Radio.d.ts.map +1 -1
- package/dist/commonjs/radio/lib/Radio.js +13 -13
- package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
- package/dist/commonjs/select/lib/Select.js +1 -1
- package/dist/commonjs/table/lib/TableRow.js +1 -1
- package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
- package/dist/commonjs/text-area/lib/TextArea.js +3 -3
- package/dist/commonjs/text-input/lib/TextInput.js +1 -1
- package/dist/commonjs/tokens/index.d.ts.map +1 -1
- package/dist/commonjs/tokens/lib/depth.d.ts +6 -6
- package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
- package/dist/commonjs/tokens/lib/depth.js +6 -6
- package/dist/commonjs/tokens/lib/space.d.ts +65 -27
- package/dist/commonjs/tokens/lib/space.d.ts.map +1 -1
- package/dist/commonjs/tokens/lib/space.js +61 -23
- package/dist/commonjs/tooltip/lib/TooltipContainer.js +8 -8
- package/dist/es6/button/lib/BaseButton.d.ts +1 -1
- package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.js +4 -4
- package/dist/es6/checkbox/lib/Checkbox.d.ts.map +1 -1
- package/dist/es6/checkbox/lib/Checkbox.js +12 -12
- package/dist/es6/radio/lib/Radio.d.ts.map +1 -1
- package/dist/es6/radio/lib/Radio.js +14 -14
- package/dist/es6/select/lib/Select.d.ts.map +1 -1
- package/dist/es6/select/lib/Select.js +2 -2
- package/dist/es6/table/lib/TableRow.js +1 -1
- package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
- package/dist/es6/text-area/lib/TextArea.js +4 -4
- package/dist/es6/text-input/lib/TextInput.js +1 -1
- 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 +6 -6
- package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
- package/dist/es6/tokens/lib/depth.js +6 -6
- package/dist/es6/tokens/lib/space.d.ts +65 -27
- package/dist/es6/tokens/lib/space.d.ts.map +1 -1
- package/dist/es6/tokens/lib/space.js +61 -23
- package/dist/es6/tooltip/lib/TooltipContainer.js +8 -8
- package/package.json +3 -3
- package/radio/lib/Radio.tsx +20 -14
- package/select/lib/Select.tsx +2 -9
- package/table/lib/TableRow.tsx +1 -1
- package/text-area/lib/TextArea.tsx +10 -4
- package/text-input/lib/TextInput.tsx +1 -1
- package/tokens/README.md +19 -19
- package/tokens/index.ts +1 -2
- package/tokens/lib/depth.ts +16 -12
- package/tokens/lib/space.ts +84 -46
- package/tooltip/lib/TooltipContainer.tsx +8 -8
|
@@ -1,35 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.spaceNumbers = exports.space = void 0;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* An object of space keys and rem values (strings)
|
|
6
|
+
*
|
|
7
|
+
* Below is a table to show the equivalent values from `px` to `rem`.
|
|
8
|
+
* This is based on the default browser font size which is `16px`.
|
|
9
|
+
*
|
|
10
|
+
* | px Value | rem Value | space token |
|
|
11
|
+
* | --------- | --------- | ----------- |
|
|
12
|
+
* | 0 | 0 | zero |
|
|
13
|
+
* | 4px | 0.25rem | xxxs |
|
|
14
|
+
* | 8px | 0.5rem | xxs |
|
|
15
|
+
* | 12px | 0.75rem | xs |
|
|
16
|
+
* | 16px | 1rem | s |
|
|
17
|
+
* | 24px | 1.5rem | m |
|
|
18
|
+
* | 32px | 2rem | l |
|
|
19
|
+
* | 40px | 2.5rem | xl |
|
|
20
|
+
* | 64px | 4rem | xxl |
|
|
21
|
+
* | 80px | 5rem | xxxl |
|
|
22
|
+
*
|
|
23
|
+
* */
|
|
5
24
|
exports.space = {
|
|
6
|
-
zero: '
|
|
7
|
-
xxxs: '
|
|
8
|
-
xxs: '
|
|
9
|
-
xs: '
|
|
10
|
-
s: '
|
|
11
|
-
m: '
|
|
12
|
-
l: '
|
|
13
|
-
xl: '
|
|
14
|
-
xxl: '
|
|
15
|
-
xxxl: '
|
|
25
|
+
zero: '0',
|
|
26
|
+
xxxs: '0.25rem',
|
|
27
|
+
xxs: '0.5rem',
|
|
28
|
+
xs: '0.75rem',
|
|
29
|
+
s: '1rem',
|
|
30
|
+
m: '1.5rem',
|
|
31
|
+
l: '2rem',
|
|
32
|
+
xl: '2.5rem',
|
|
33
|
+
xxl: '4rem',
|
|
34
|
+
xxxl: '5rem',
|
|
16
35
|
};
|
|
17
36
|
/**
|
|
18
|
-
* An object of space keys and their numeric
|
|
19
|
-
* - These are helpful when you need a raw numeric
|
|
37
|
+
* An object of space keys and their numeric rem values (numbers)
|
|
38
|
+
* - These are helpful when you need a raw numeric rem value.
|
|
20
39
|
* - Here's an example usage to perform calculations:
|
|
21
40
|
* @example
|
|
22
|
-
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* const buttonPaddingLeft = `${spaceNumbers.s + iconSize}rem`;
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Below is a table to show the equivalent values from `px` to `rem`.
|
|
46
|
+
* This is based on the default browser font size which is `16px`.
|
|
47
|
+
*
|
|
48
|
+
* | px Value | rem Value | space token |
|
|
49
|
+
* | --------- | --------- | ----------- |
|
|
50
|
+
* | 0 | 0 | zero |
|
|
51
|
+
* | 4px | 0.25rem | xxxs |
|
|
52
|
+
* | 8px | 0.5rem | xxs |
|
|
53
|
+
* | 12px | 0.75rem | xs |
|
|
54
|
+
* | 16px | 1rem | s |
|
|
55
|
+
* | 24px | 1.5rem | m |
|
|
56
|
+
* | 32px | 2rem | l |
|
|
57
|
+
* | 40px | 2.5rem | xl |
|
|
58
|
+
* | 64px | 4rem | xxl |
|
|
59
|
+
* | 80px | 5rem | xxxl |
|
|
60
|
+
*
|
|
23
61
|
*/
|
|
24
62
|
exports.spaceNumbers = {
|
|
25
63
|
zero: 0,
|
|
26
|
-
xxxs:
|
|
27
|
-
xxs:
|
|
28
|
-
xs:
|
|
29
|
-
s:
|
|
30
|
-
m:
|
|
31
|
-
l:
|
|
32
|
-
xl:
|
|
33
|
-
xxl:
|
|
34
|
-
xxxl:
|
|
64
|
+
xxxs: 0.25,
|
|
65
|
+
xxs: 0.5,
|
|
66
|
+
xs: 0.75,
|
|
67
|
+
s: 1,
|
|
68
|
+
m: 1.5,
|
|
69
|
+
l: 2,
|
|
70
|
+
xl: 2.5,
|
|
71
|
+
xxl: 4,
|
|
72
|
+
xxxl: 5,
|
|
35
73
|
};
|
|
@@ -29,7 +29,7 @@ exports.TooltipContainer = styled_1.default('div')({
|
|
|
29
29
|
...tokens_1.type.levels.subtext.medium,
|
|
30
30
|
display: 'inline-flex',
|
|
31
31
|
position: 'relative',
|
|
32
|
-
padding: tokens_1.
|
|
32
|
+
padding: tokens_1.space.xs,
|
|
33
33
|
color: tokens_1.colors.frenchVanilla100,
|
|
34
34
|
a: {
|
|
35
35
|
color: tokens_1.colors.frenchVanilla100,
|
|
@@ -40,7 +40,7 @@ exports.TooltipContainer = styled_1.default('div')({
|
|
|
40
40
|
content: '""',
|
|
41
41
|
borderRadius: tokens_1.borderRadius.m,
|
|
42
42
|
zIndex: -1,
|
|
43
|
-
margin: tokens_1.
|
|
43
|
+
margin: tokens_1.space.xxxs,
|
|
44
44
|
backgroundColor: 'rgba(0,0,0,.85)',
|
|
45
45
|
position: 'absolute',
|
|
46
46
|
top: 0,
|
|
@@ -50,9 +50,9 @@ exports.TooltipContainer = styled_1.default('div')({
|
|
|
50
50
|
},
|
|
51
51
|
// offset tooltips by 2 pixels when a keyboard focus ring is detected
|
|
52
52
|
'[data-whatinput=keyboard] &': {
|
|
53
|
-
padding: tokens_1.spaceNumbers.
|
|
53
|
+
padding: `${tokens_1.spaceNumbers.s - 0.125}rem`,
|
|
54
54
|
':before': {
|
|
55
|
-
margin: tokens_1.spaceNumbers.xxxs +
|
|
55
|
+
margin: `${tokens_1.spaceNumbers.xxxs + 0.125}rem`,
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
58
|
// Hide tooltip when the reference element is either clipped or fully hidden
|
|
@@ -62,16 +62,16 @@ exports.TooltipContainer = styled_1.default('div')({
|
|
|
62
62
|
},
|
|
63
63
|
// Fix offsets based on placement
|
|
64
64
|
'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &': {
|
|
65
|
-
left:
|
|
65
|
+
left: `-${tokens_1.space.xxxs}`,
|
|
66
66
|
},
|
|
67
67
|
'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &': {
|
|
68
|
-
right:
|
|
68
|
+
right: `-${tokens_1.space.xxxs}`,
|
|
69
69
|
},
|
|
70
70
|
'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &': {
|
|
71
|
-
top:
|
|
71
|
+
top: `-${tokens_1.space.xxxs}`,
|
|
72
72
|
},
|
|
73
73
|
'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &': {
|
|
74
|
-
bottom:
|
|
74
|
+
bottom: `-${tokens_1.space.xxxs}`,
|
|
75
75
|
},
|
|
76
76
|
}, ({ transformOrigin = defaultTransformOrigin }) => {
|
|
77
77
|
if (transformOrigin === null) {
|
|
@@ -26,7 +26,7 @@ export interface ButtonContainerProps extends Partial<SystemIconProps>, GrowthBe
|
|
|
26
26
|
*/
|
|
27
27
|
export interface BaseButtonProps extends Omit<ButtonContainerProps, 'ref'> {
|
|
28
28
|
}
|
|
29
|
-
export declare const getMinWidthStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes) => "
|
|
29
|
+
export declare const getMinWidthStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes) => "1.5rem" | "2rem" | "2.5rem" | "5rem" | "auto" | "48px" | "112px" | "96px";
|
|
30
30
|
export declare const getPaddingStyles: (children: React.ReactNode, size: ButtonSizes | TertiaryButtonSizes, icon: CanvasSystemIcon | undefined, iconPosition: IconPositions | undefined) => string | 0;
|
|
31
31
|
export declare const BaseButton: import("@workday/canvas-kit-react/common").ElementComponent<"button", ButtonContainerProps> & {
|
|
32
32
|
Icon: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("./parts/ButtonLabelIcon").ButtonLabelIconProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,cAAc;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,cAAc;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,+EAcxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,QACjC,gBAAgB,GAAG,SAAS,gBACpB,aAAa,GAAG,SAAS,eAiDxC,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAarB,CAAC"}
|
|
@@ -64,7 +64,7 @@ const ButtonContainer = styled('button')({
|
|
|
64
64
|
fontWeight: type.properties.fontWeights.bold,
|
|
65
65
|
height: '48px',
|
|
66
66
|
'& > * ': {
|
|
67
|
-
margin: `0 ${
|
|
67
|
+
margin: `0 ${space.xxxs}`,
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
case 'medium':
|
|
@@ -72,14 +72,14 @@ const ButtonContainer = styled('button')({
|
|
|
72
72
|
return {
|
|
73
73
|
height: space.xl,
|
|
74
74
|
'& > * ': {
|
|
75
|
-
margin: `0 ${
|
|
75
|
+
margin: `0 ${space.xxxs}`,
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
78
|
case 'small':
|
|
79
79
|
return {
|
|
80
80
|
height: space.l,
|
|
81
81
|
'& > * ': {
|
|
82
|
-
margin: `0 ${spaceNumbers.xxxs / 2}
|
|
82
|
+
margin: `0 ${spaceNumbers.xxxs / 2}rem`,
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
case 'extraSmall':
|
|
@@ -88,7 +88,7 @@ const ButtonContainer = styled('button')({
|
|
|
88
88
|
fontWeight: type.properties.fontWeights.bold,
|
|
89
89
|
height: space.m,
|
|
90
90
|
'& > * ': {
|
|
91
|
-
margin: `0 ${spaceNumbers.xxxs / 2}
|
|
91
|
+
margin: `0 ${spaceNumbers.xxxs / 2}rem`,
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../checkbox/lib/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAOT,SAAS,EACV,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../checkbox/lib/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAOT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAY1C,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAqPD,eAAO,MAAM,QAAQ;;CAmEnB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createComponent, ErrorType, useUniqueId, focusRing, mouseFocusBehavior, getErrorColors, styled, useTheme, } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { borderRadius, colors, inputColors, spaceNumbers } from '@workday/canvas-kit-react/tokens';
|
|
3
|
+
import { borderRadius, colors, inputColors, space, spaceNumbers, } from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
5
5
|
import { checkSmallIcon } from '@workday/canvas-system-icons-web';
|
|
6
6
|
import { LabelText } from '@workday/canvas-kit-react/text';
|
|
7
|
-
const checkboxHeight =
|
|
8
|
-
const checkboxTapArea =
|
|
7
|
+
const checkboxHeight = (spaceNumbers.xl - spaceNumbers.xxxs) / 2;
|
|
8
|
+
const checkboxTapArea = space.m;
|
|
9
9
|
const checkboxContainerHeight = checkboxTapArea;
|
|
10
|
-
const checkboxLabelDistance = spaceNumbers.xs
|
|
11
|
-
const checkboxWidth =
|
|
10
|
+
const checkboxLabelDistance = `${spaceNumbers.xs}rem`;
|
|
11
|
+
const checkboxWidth = checkboxHeight;
|
|
12
12
|
const rippleRadius = (spaceNumbers.l - checkboxWidth) / 2;
|
|
13
13
|
const CheckboxContainer = styled('div')({
|
|
14
14
|
display: 'flex',
|
|
@@ -23,17 +23,17 @@ const CheckboxContainer = styled('div')({
|
|
|
23
23
|
*/
|
|
24
24
|
const CheckboxInputWrapper = styled('div')({
|
|
25
25
|
display: 'flex',
|
|
26
|
-
height: checkboxHeight
|
|
27
|
-
minWidth: checkboxWidth
|
|
26
|
+
height: `${checkboxHeight}rem`,
|
|
27
|
+
minWidth: `${checkboxWidth}rem`,
|
|
28
28
|
marginTop: '3px',
|
|
29
29
|
alignSelf: 'flex-start',
|
|
30
30
|
});
|
|
31
31
|
const CheckboxRipple = styled('span')({
|
|
32
32
|
borderRadius: borderRadius.circle,
|
|
33
33
|
boxShadow: `0 0 0 0 ${colors.soap200}`,
|
|
34
|
-
height: checkboxHeight
|
|
34
|
+
height: `${checkboxHeight}rem`,
|
|
35
35
|
transition: 'box-shadow 150ms ease-out',
|
|
36
|
-
width: checkboxWidth
|
|
36
|
+
width: `${checkboxWidth}rem`,
|
|
37
37
|
position: 'absolute',
|
|
38
38
|
pointerEvents: 'none', // This is a decorative element we don't want it to block clicks to input
|
|
39
39
|
}, ({ variant }) => ({
|
|
@@ -124,7 +124,7 @@ const CheckboxInput = styled('input')(({ theme: { canvas: { palette: { primary:
|
|
|
124
124
|
}),
|
|
125
125
|
}), ({ disabled }) => ({
|
|
126
126
|
'&:hover ~ span:first-of-type': {
|
|
127
|
-
boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}
|
|
127
|
+
boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}rem ${colors.soap200}`,
|
|
128
128
|
},
|
|
129
129
|
}), ({ theme, error, variant }) => {
|
|
130
130
|
const errorColors = getErrorColors(error, theme);
|
|
@@ -167,13 +167,13 @@ const CheckboxBackground = styled('div')({
|
|
|
167
167
|
borderRadius: borderRadius.s,
|
|
168
168
|
boxSizing: 'border-box',
|
|
169
169
|
display: 'flex',
|
|
170
|
-
height: checkboxHeight
|
|
170
|
+
height: `${checkboxHeight}rem`,
|
|
171
171
|
justifyContent: 'center',
|
|
172
172
|
padding: '0px 2px',
|
|
173
173
|
pointerEvents: 'none',
|
|
174
174
|
position: 'absolute',
|
|
175
175
|
transition: 'border 200ms ease, background 200ms',
|
|
176
|
-
width: checkboxWidth
|
|
176
|
+
width: `${checkboxWidth}rem`,
|
|
177
177
|
}, ({ variant }) => ({
|
|
178
178
|
border: `1px solid ${variant === 'inverse' ? colors.soap300 : inputColors.border}`,
|
|
179
179
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../radio/lib/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,SAAS,EAEV,MAAM,kCAAkC,CAAC;AAU1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAmOD,eAAO,MAAM,KAAK,kFAqDhB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createComponent, focusRing, mouseFocusBehavior, styled, useUniqueId, } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { borderRadius, colors, inputColors, spaceNumbers } from '@workday/canvas-kit-react/tokens';
|
|
3
|
+
import { borderRadius, colors, inputColors, space, spaceNumbers, } from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import { LabelText } from '@workday/canvas-kit-react/text';
|
|
5
|
-
const radioBorderRadius =
|
|
6
|
-
const radioDot =
|
|
7
|
-
const radioHeight =
|
|
8
|
-
const radioTapArea =
|
|
5
|
+
const radioBorderRadius = `${spaceNumbers.xxs + 0.0625}rem`;
|
|
6
|
+
const radioDot = space.xxs;
|
|
7
|
+
const radioHeight = (spaceNumbers.xl - spaceNumbers.xxxs) / 2;
|
|
8
|
+
const radioTapArea = space.m;
|
|
9
9
|
const radioContainerHeight = radioTapArea;
|
|
10
|
-
const radioLabelDistance =
|
|
11
|
-
const radioWidth =
|
|
10
|
+
const radioLabelDistance = space.xs;
|
|
11
|
+
const radioWidth = radioHeight;
|
|
12
12
|
const rippleRadius = (spaceNumbers.l - radioWidth) / 2;
|
|
13
13
|
const RadioContainer = styled('div')({
|
|
14
14
|
display: 'flex',
|
|
@@ -23,15 +23,15 @@ const RadioContainer = styled('div')({
|
|
|
23
23
|
*/
|
|
24
24
|
const RadioInputWrapper = styled('div')({
|
|
25
25
|
display: 'flex',
|
|
26
|
-
height: radioHeight
|
|
27
|
-
width: radioWidth
|
|
26
|
+
height: `${radioHeight}rem`,
|
|
27
|
+
width: `${radioWidth}rem`,
|
|
28
28
|
});
|
|
29
29
|
const RadioRipple = styled('span')({
|
|
30
30
|
borderRadius: borderRadius.circle,
|
|
31
31
|
boxShadow: `0 0 0 0 ${colors.soap200}`,
|
|
32
|
-
height: radioHeight
|
|
32
|
+
height: `${radioHeight}rem`,
|
|
33
33
|
transition: 'box-shadow 150ms ease-out',
|
|
34
|
-
width: radioWidth
|
|
34
|
+
width: `${radioWidth}rem`,
|
|
35
35
|
position: 'absolute',
|
|
36
36
|
pointerEvents: 'none', // This is a decorative element we don't want it to block clicks to input
|
|
37
37
|
}, ({ variant }) => ({
|
|
@@ -62,7 +62,7 @@ const RadioInput = styled('input')({
|
|
|
62
62
|
// `span:first-of-type` refers to `RadioRipple`, the light grey
|
|
63
63
|
// element that animates around the component on hover
|
|
64
64
|
'&:hover ~ span:first-of-type': {
|
|
65
|
-
boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}
|
|
65
|
+
boxShadow: disabled ? undefined : `0 0 0 ${rippleRadius}rem ${colors.soap200}`,
|
|
66
66
|
},
|
|
67
67
|
// `div:first-of-type` refers to the `RadioBackground`, the visual facade of the
|
|
68
68
|
// input (which is visually hidden)
|
|
@@ -141,13 +141,13 @@ const RadioBackground = styled('div')({
|
|
|
141
141
|
borderWidth: '1px',
|
|
142
142
|
boxSizing: 'border-box',
|
|
143
143
|
display: 'flex',
|
|
144
|
-
height: radioHeight
|
|
144
|
+
height: `${radioHeight}rem`,
|
|
145
145
|
justifyContent: 'center',
|
|
146
146
|
padding: '0px 2px',
|
|
147
147
|
pointerEvents: 'none',
|
|
148
148
|
position: 'absolute',
|
|
149
149
|
transition: 'border 200ms ease, background 200ms',
|
|
150
|
-
width: radioWidth
|
|
150
|
+
width: `${radioWidth}rem`,
|
|
151
151
|
}, ({ checked, disabled, variant, theme: { canvas: { palette: { primary: themePrimary }, }, }, }) => ({
|
|
152
152
|
borderColor: checked
|
|
153
153
|
? variant === 'inverse'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc;IAC5D;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0ED,eAAO,MAAM,MAAM;;CAiBjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createComponent, ErrorType, errorRing, styled, } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { colors, borderRadius, inputColors,
|
|
3
|
+
import { colors, borderRadius, inputColors, type, space } from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import { caretDownSmallIcon } from '@workday/canvas-system-icons-web';
|
|
5
5
|
import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
6
6
|
const StyledSelect = styled('select')({
|
|
@@ -13,7 +13,7 @@ const StyledSelect = styled('select')({
|
|
|
13
13
|
height: space.xl,
|
|
14
14
|
minWidth: 280,
|
|
15
15
|
transition: '0.2s box-shadow, 0.2s border-color',
|
|
16
|
-
padding:
|
|
16
|
+
padding: space.xxs,
|
|
17
17
|
margin: 0,
|
|
18
18
|
MozAppearance: 'none',
|
|
19
19
|
WebkitAppearance: 'none',
|
|
@@ -77,7 +77,7 @@ const StyledTableRow = styled('tr')({
|
|
|
77
77
|
fontSize: 13,
|
|
78
78
|
borderRight: cellBorder,
|
|
79
79
|
borderBottom: cellBorder,
|
|
80
|
-
height: spaceNumbers.xl + spaceNumbers.xxs
|
|
80
|
+
height: `${spaceNumbers.xl + spaceNumbers.xxs}rem`,
|
|
81
81
|
boxSizing: 'border-box',
|
|
82
82
|
transition: 'background-color 0.2s',
|
|
83
83
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,cAAc,EACd,SAAS,EAGT,SAAS,EACV,MAAM,kCAAkC,CAAC;AAS1C,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,cAAc;IAC9D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AA8CD,eAAO,MAAM,QAAQ;;;CAWnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createComponent, ErrorType, errorRing, styled, } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { borderRadius, inputColors, spaceNumbers, type } from '@workday/canvas-kit-react/tokens';
|
|
3
|
+
import { borderRadius, inputColors, space, spaceNumbers, type, } from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
export var TextAreaResizeDirection;
|
|
5
5
|
(function (TextAreaResizeDirection) {
|
|
6
6
|
TextAreaResizeDirection["None"] = "none";
|
|
@@ -15,10 +15,10 @@ const StyledTextArea = styled('textarea')(({ theme, error }) => ({
|
|
|
15
15
|
backgroundColor: inputColors.background,
|
|
16
16
|
borderRadius: borderRadius.m,
|
|
17
17
|
boxSizing: 'border-box',
|
|
18
|
-
minHeight:
|
|
19
|
-
minWidth:
|
|
18
|
+
minHeight: space.xxl,
|
|
19
|
+
minWidth: `${spaceNumbers.xxxl * 3 + spaceNumbers.xl}rem`,
|
|
20
20
|
transition: '0.2s box-shadow, 0.2s border-color',
|
|
21
|
-
padding:
|
|
21
|
+
padding: space.xxs,
|
|
22
22
|
margin: 0,
|
|
23
23
|
'&::webkit-resizer': {
|
|
24
24
|
display: 'none',
|
|
@@ -10,7 +10,7 @@ const StyledTextInput = styled('input')({
|
|
|
10
10
|
boxSizing: 'border-box',
|
|
11
11
|
height: 40,
|
|
12
12
|
transition: '0.2s box-shadow, 0.2s border-color',
|
|
13
|
-
padding: spaceNumbers.xxs
|
|
13
|
+
padding: `${spaceNumbers.xxs}rem`,
|
|
14
14
|
margin: 0,
|
|
15
15
|
'&::placeholder': {
|
|
16
16
|
color: inputColors.placeholder,
|
|
@@ -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,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,
|
|
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,EAAC,MAAM,aAAa,CAAC;AACnC,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,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlB,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,GACd,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,GACd,CAAA"}
|
package/dist/es6/tokens/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { buttonColors, chartingColorOffsets, chartingColors, colors, commonColor
|
|
|
2
2
|
import { borderRadius } from './lib/radius';
|
|
3
3
|
import { BrandingColor } from './lib/colors.types';
|
|
4
4
|
import { depth } from './lib/depth';
|
|
5
|
-
import { space, spaceNumbers
|
|
5
|
+
import { space, spaceNumbers } from './lib/space';
|
|
6
6
|
import { type, fontFamily, monoFontFamily, } from './lib/type';
|
|
7
7
|
export const canvas = {
|
|
8
8
|
buttonColors,
|
|
@@ -29,7 +29,7 @@ export declare type CanvasDepth = {
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
1: {
|
|
32
|
-
boxShadow: '
|
|
32
|
+
boxShadow: '0 0.0625rem 0.25rem rgba(31, 38, 46, 0.12), 0 0.125rem 0.5rem rgba(31, 38, 46, 0.08)';
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* ### Depth 2
|
|
@@ -45,7 +45,7 @@ export declare type CanvasDepth = {
|
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
2: {
|
|
48
|
-
boxShadow: '
|
|
48
|
+
boxShadow: '0 0.125rem 0.5rem rgba(31, 38, 46, 0.12), 0 0.25rem 1rem rgba(31, 38, 46, 0.08)';
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* ### Depth 3
|
|
@@ -61,7 +61,7 @@ export declare type CanvasDepth = {
|
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
63
|
3: {
|
|
64
|
-
boxShadow: '
|
|
64
|
+
boxShadow: '0 0.1875rem 0.75rem rgba(31, 38, 46, 0.12), 0 0.375rem 1.5rem rgba(31, 38, 46, 0.08)';
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* ### Depth 4
|
|
@@ -76,7 +76,7 @@ export declare type CanvasDepth = {
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
4: {
|
|
79
|
-
boxShadow: '
|
|
79
|
+
boxShadow: '0 0.25rem 1rem rgba(31, 38, 46, 0.12), 0 0.5rem 2rem rgba(31, 38, 46, 0.08)';
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* ### Depth 5
|
|
@@ -92,7 +92,7 @@ export declare type CanvasDepth = {
|
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
94
|
5: {
|
|
95
|
-
boxShadow: '
|
|
95
|
+
boxShadow: '0 0.3125rem 1.25rem rgba(31, 38, 46, 0.12), 0 0.625rem 2.5rem rgba(31, 38, 46, 0.08)';
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* ### Depth 6
|
|
@@ -108,7 +108,7 @@ export declare type CanvasDepth = {
|
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
110
|
6: {
|
|
111
|
-
boxShadow: '
|
|
111
|
+
boxShadow: '0 0.375rem 1.5rem rgba(31, 38, 46, 0.12), 0 0.75rem 3rem rgba(31, 38, 46, 0.08)';
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
declare type ValueOf<T> = T[keyof T];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/depth.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB;;;;;;;;;;;;OAYG;IACH,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../tokens/lib/depth.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB;;;;;;;;;;;;OAYG;IACH,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,sFAAsF,CAAC;KACnG,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,iFAAiF,CAAC;KAC9F,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,sFAAsF,CAAC;KACnG,CAAC;IACF;;;;;;;;;;;OAWG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,6EAA6E,CAAC;KAC1F,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,sFAAsF,CAAC;KACnG,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,CAAC,EAAE;QACD,SAAS,EAAE,iFAAiF,CAAC;KAC9F,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;AAEH,eAAO,MAAM,KAAK,EAAE,WAyBnB,CAAC"}
|
|
@@ -25,21 +25,21 @@ export const depth = {
|
|
|
25
25
|
boxShadow: 'none',
|
|
26
26
|
},
|
|
27
27
|
1: {
|
|
28
|
-
boxShadow: '
|
|
28
|
+
boxShadow: '0 0.0625rem 0.25rem rgba(31, 38, 46, 0.12), 0 0.125rem 0.5rem rgba(31, 38, 46, 0.08)',
|
|
29
29
|
},
|
|
30
30
|
2: {
|
|
31
|
-
boxShadow: '
|
|
31
|
+
boxShadow: '0 0.125rem 0.5rem rgba(31, 38, 46, 0.12), 0 0.25rem 1rem rgba(31, 38, 46, 0.08)',
|
|
32
32
|
},
|
|
33
33
|
3: {
|
|
34
|
-
boxShadow: '
|
|
34
|
+
boxShadow: '0 0.1875rem 0.75rem rgba(31, 38, 46, 0.12), 0 0.375rem 1.5rem rgba(31, 38, 46, 0.08)',
|
|
35
35
|
},
|
|
36
36
|
4: {
|
|
37
|
-
boxShadow: '
|
|
37
|
+
boxShadow: '0 0.25rem 1rem rgba(31, 38, 46, 0.12), 0 0.5rem 2rem rgba(31, 38, 46, 0.08)',
|
|
38
38
|
},
|
|
39
39
|
5: {
|
|
40
|
-
boxShadow: '
|
|
40
|
+
boxShadow: '0 0.3125rem 1.25rem rgba(31, 38, 46, 0.12), 0 0.625rem 2.5rem rgba(31, 38, 46, 0.08)',
|
|
41
41
|
},
|
|
42
42
|
6: {
|
|
43
|
-
boxShadow: '
|
|
43
|
+
boxShadow: '0 0.375rem 1.5rem rgba(31, 38, 46, 0.12), 0 0.75rem 3rem rgba(31, 38, 46, 0.08)',
|
|
44
44
|
},
|
|
45
45
|
};
|