@codecademy/gamut 67.6.1-alpha.a33efa.0 → 67.6.1-alpha.b3891d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Card/index.js +1 -5
- package/dist/Card/styles.d.ts +0 -15
- package/dist/Card/styles.js +1 -16
- package/package.json +3 -3
package/dist/Card/index.js
CHANGED
|
@@ -18,15 +18,11 @@ export const Card = ({
|
|
|
18
18
|
const trueBorderRadius = !borderRadius ? defaultBorderRadius : borderRadius;
|
|
19
19
|
const SelectedWrapper = variant === 'default' ? DynamicCardWrapper : StaticCardWrapper;
|
|
20
20
|
const hasPattern = shadow === 'patternLeft' || shadow === 'patternRight';
|
|
21
|
-
const isOutline = shadow === 'outline';
|
|
22
21
|
const setHoverShadow = shadow === 'patternRight' ? hoverShadowRight : hoverShadowLeft;
|
|
23
|
-
const initialVariant = isOutline ? 'initialOutline' : 'initial';
|
|
24
|
-
const animateVariant = isOutline ? 'animateOutline' : 'animate';
|
|
25
22
|
return /*#__PURE__*/_jsxs(MotionBox, {
|
|
26
23
|
height: height,
|
|
27
|
-
initial: initialVariant,
|
|
28
24
|
position: "relative",
|
|
29
|
-
whileHover: isInteractive ?
|
|
25
|
+
whileHover: isInteractive ? 'animate' : '',
|
|
30
26
|
width: width,
|
|
31
27
|
children: [hasPattern && /*#__PURE__*/_jsx(MotionBox, {
|
|
32
28
|
borderRadius: trueBorderRadius,
|
package/dist/Card/styles.d.ts
CHANGED
|
@@ -28,13 +28,6 @@ export declare const hoverShadowLeft: {
|
|
|
28
28
|
ease: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
initialOutline: {
|
|
32
|
-
boxShadow: string;
|
|
33
|
-
transition: {
|
|
34
|
-
duration: number;
|
|
35
|
-
ease: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
31
|
animate: {
|
|
39
32
|
transform: string;
|
|
40
33
|
boxShadow: string;
|
|
@@ -43,14 +36,6 @@ export declare const hoverShadowLeft: {
|
|
|
43
36
|
ease: string;
|
|
44
37
|
};
|
|
45
38
|
};
|
|
46
|
-
animateOutline: {
|
|
47
|
-
transform: string;
|
|
48
|
-
boxShadow: string;
|
|
49
|
-
transition: {
|
|
50
|
-
duration: number;
|
|
51
|
-
ease: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
39
|
};
|
|
55
40
|
export declare const hoverShadowRight: {
|
|
56
41
|
initial: {
|
package/dist/Card/styles.js
CHANGED
|
@@ -33,7 +33,7 @@ export const shadowVariants = variant({
|
|
|
33
33
|
patternLeft: {},
|
|
34
34
|
patternRight: {},
|
|
35
35
|
outline: {
|
|
36
|
-
boxShadow: `-
|
|
36
|
+
boxShadow: `-6px 6px ${theme.colors['background-current']}, -6px 6px 0 1px ${theme.colors['border-primary']}`
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
});
|
|
@@ -61,13 +61,6 @@ export const hoverShadowLeft = {
|
|
|
61
61
|
ease: 'easeOut'
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
initialOutline: {
|
|
65
|
-
boxShadow: `-6px 6px 0 0px ${theme.colors['background-current']}, -6px 6px 0 1px ${theme.colors['border-primary']}`,
|
|
66
|
-
transition: {
|
|
67
|
-
duration: timingValues.fast / 1000,
|
|
68
|
-
ease: 'easeOut'
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
64
|
animate: {
|
|
72
65
|
transform: 'translate(4px, -4px)',
|
|
73
66
|
boxShadow: `-8px 8px 0 ${theme.colors['shadow-primary']}`,
|
|
@@ -75,14 +68,6 @@ export const hoverShadowLeft = {
|
|
|
75
68
|
duration: timingValues.fast / 1000,
|
|
76
69
|
ease: 'easeIn'
|
|
77
70
|
}
|
|
78
|
-
},
|
|
79
|
-
animateOutline: {
|
|
80
|
-
transform: 'translate(4px, -4px)',
|
|
81
|
-
boxShadow: `-8px 8px 0 0px ${theme.colors['shadow-primary']}, -8px 8px 0 1px ${theme.colors['shadow-primary']}`,
|
|
82
|
-
transition: {
|
|
83
|
-
duration: timingValues.fast / 1000,
|
|
84
|
-
ease: 'easeIn'
|
|
85
|
-
}
|
|
86
71
|
}
|
|
87
72
|
};
|
|
88
73
|
export const hoverShadowRight = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut",
|
|
3
3
|
"description": "Styleguide & Component library for Codecademy",
|
|
4
|
-
"version": "67.6.1-alpha.
|
|
4
|
+
"version": "67.6.1-alpha.b3891d.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-icons": "9.53.0",
|
|
7
|
+
"@codecademy/gamut-icons": "9.53.1-alpha.b3891d.0",
|
|
8
8
|
"@codecademy/gamut-illustrations": "0.57.0",
|
|
9
9
|
"@codecademy/gamut-patterns": "0.10.19",
|
|
10
10
|
"@codecademy/gamut-styles": "17.11.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
57
57
|
"dist/**/[A-Z]**/index.js"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4acc184552ec8fc02074e7fcdb8cb0bc756f2ad7"
|
|
60
60
|
}
|