@codecademy/gamut 67.5.4-alpha.f56544.0 → 67.5.4-alpha.f978af.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/Animation/index.d.ts +0 -1
- package/dist/Animation/index.js +1 -2
- package/dist/Card/index.js +2 -1
- package/dist/Card/styles.d.ts +15 -0
- package/dist/Card/styles.js +16 -1
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +1 -1
- package/dist/Pagination/utils.d.ts +1 -1
- package/dist/Toaster/index.js +1 -1
- package/dist/Toggle/utils.d.ts +1 -1
- package/package.json +2 -2
- /package/dist/{Animation → Motion}/FadeInSlideOut.d.ts +0 -0
- /package/dist/{Animation → Motion}/FadeInSlideOut.js +0 -0
package/dist/Animation/index.js
CHANGED
package/dist/Card/index.js
CHANGED
|
@@ -21,8 +21,9 @@ export const Card = ({
|
|
|
21
21
|
const setHoverShadow = shadow === 'patternRight' ? hoverShadowRight : hoverShadowLeft;
|
|
22
22
|
return /*#__PURE__*/_jsxs(MotionBox, {
|
|
23
23
|
height: height,
|
|
24
|
+
initial: shadow === 'outline' ? 'initialOutline' : 'initial',
|
|
24
25
|
position: "relative",
|
|
25
|
-
whileHover: isInteractive ? 'animate' : '',
|
|
26
|
+
whileHover: isInteractive ? shadow === 'outline' ? 'animateOutline' : 'animate' : '',
|
|
26
27
|
width: width,
|
|
27
28
|
children: [hasPattern && /*#__PURE__*/_jsx(MotionBox, {
|
|
28
29
|
borderRadius: trueBorderRadius,
|
package/dist/Card/styles.d.ts
CHANGED
|
@@ -28,6 +28,13 @@ 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
|
+
};
|
|
31
38
|
animate: {
|
|
32
39
|
transform: string;
|
|
33
40
|
boxShadow: string;
|
|
@@ -36,6 +43,14 @@ export declare const hoverShadowLeft: {
|
|
|
36
43
|
ease: string;
|
|
37
44
|
};
|
|
38
45
|
};
|
|
46
|
+
animateOutline: {
|
|
47
|
+
transform: string;
|
|
48
|
+
boxShadow: string;
|
|
49
|
+
transition: {
|
|
50
|
+
duration: number;
|
|
51
|
+
ease: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
39
54
|
};
|
|
40
55
|
export declare const hoverShadowRight: {
|
|
41
56
|
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: `-8px 8px ${theme.colors['background-current']}, -8px 8px 0 1px ${theme.colors['border-primary']}`
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
});
|
|
@@ -61,6 +61,13 @@ 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
|
+
},
|
|
64
71
|
animate: {
|
|
65
72
|
transform: 'translate(4px, -4px)',
|
|
66
73
|
boxShadow: `-8px 8px 0 ${theme.colors['shadow-primary']}`,
|
|
@@ -68,6 +75,14 @@ export const hoverShadowLeft = {
|
|
|
68
75
|
duration: timingValues.fast / 1000,
|
|
69
76
|
ease: 'easeIn'
|
|
70
77
|
}
|
|
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
|
+
}
|
|
71
86
|
}
|
|
72
87
|
};
|
|
73
88
|
export const hoverShadowRight = {
|
|
@@ -564,13 +564,13 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
564
564
|
}>;
|
|
565
565
|
theme?: import("@emotion/react").Theme | undefined;
|
|
566
566
|
variant?: "primary" | "secondary" | "danger" | "interface" | undefined;
|
|
567
|
-
as?: undefined;
|
|
568
567
|
formAction?: string | undefined;
|
|
569
568
|
formEncType?: string | undefined;
|
|
570
569
|
formMethod?: string | undefined;
|
|
571
570
|
formNoValidate?: boolean | undefined;
|
|
572
571
|
formTarget?: string | undefined;
|
|
573
572
|
value?: string | number | readonly string[] | undefined;
|
|
573
|
+
as?: undefined;
|
|
574
574
|
buttonType?: "text" | "stroke" | undefined;
|
|
575
575
|
showButton?: "hidden" | "shown" | undefined;
|
|
576
576
|
} & import("framer-motion").MotionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -577,13 +577,13 @@ export declare const createAnimatedFadeButton: (WrappedComponent: typeof Paginat
|
|
|
577
577
|
}>;
|
|
578
578
|
theme?: import("@emotion/react").Theme | undefined;
|
|
579
579
|
variant?: "primary" | "secondary" | "danger" | "interface" | undefined;
|
|
580
|
-
as?: undefined;
|
|
581
580
|
formAction?: string | undefined;
|
|
582
581
|
formEncType?: string | undefined;
|
|
583
582
|
formMethod?: string | undefined;
|
|
584
583
|
formNoValidate?: boolean | undefined;
|
|
585
584
|
formTarget?: string | undefined;
|
|
586
585
|
value?: string | number | readonly string[] | undefined;
|
|
586
|
+
as?: undefined;
|
|
587
587
|
buttonType?: "text" | "stroke" | undefined;
|
|
588
588
|
showButton?: "hidden" | "shown" | undefined;
|
|
589
589
|
} & import("framer-motion").MotionProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Toaster/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ColorMode } from '@codecademy/gamut-styles';
|
|
2
2
|
import { AnimatePresence } from 'framer-motion';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { FadeInSlideOut } from '../Animation/FadeInSlideOut';
|
|
5
4
|
import { BodyPortal } from '../BodyPortal';
|
|
6
5
|
import { Box } from '../Box';
|
|
6
|
+
import { FadeInSlideOut } from '../Motion/FadeInSlideOut';
|
|
7
7
|
import { Toast } from '../Toast/Toast';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
export const Toaster = ({
|
package/dist/Toggle/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ToggleInputStyledProps, ToggleProps } from './types';
|
|
2
|
-
export declare const getToggleElementProps: <Props extends ToggleProps>({ ariaLabel, as, checked, disabled, label, onChange, onClick, }: Pick<Props, "disabled" | "label" | "onChange" | "onClick" | "
|
|
2
|
+
export declare const getToggleElementProps: <Props extends ToggleProps>({ ariaLabel, as, checked, disabled, label, onChange, onClick, }: Pick<Props, "disabled" | "label" | "onChange" | "onClick" | "as" | "ariaLabel" | "checked">) => Omit<ToggleInputStyledProps, 'size' | 'color'>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut",
|
|
3
3
|
"description": "Styleguide & Component library for Codecademy",
|
|
4
|
-
"version": "67.5.4-alpha.
|
|
4
|
+
"version": "67.5.4-alpha.f978af.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@codecademy/gamut-icons": "9.53.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": "668bc7f52417aa583f99b9ac72d8c8607e1f0dd7"
|
|
60
60
|
}
|
|
File without changes
|
|
File without changes
|