@thecb/components 10.7.0-beta.2 → 10.7.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/index.cjs.js +39 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +39 -27
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +0 -2
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.js +15 -3
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.theme.js +9 -0
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.js +17 -5
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.theme.js +9 -0
package/package.json
CHANGED
|
@@ -89,8 +89,6 @@ const ButtonWithAction = forwardRef(
|
|
|
89
89
|
variant
|
|
90
90
|
);
|
|
91
91
|
const { isMobile } = themeContext;
|
|
92
|
-
console.log("button text / theme context is", text, themeContext);
|
|
93
|
-
console.log("button text / theme values are", text, themeValues);
|
|
94
92
|
|
|
95
93
|
const hoverStyles = `
|
|
96
94
|
outline: none;
|
|
@@ -3,14 +3,22 @@ import { ThemeContext } from "styled-components";
|
|
|
3
3
|
import Heading from "../../atoms/heading";
|
|
4
4
|
import Paragraph from "../../atoms/paragraph";
|
|
5
5
|
import { Box, Cluster } from "../../atoms/layouts";
|
|
6
|
-
import {
|
|
6
|
+
import { CHARADE_GREY, WHITE } from "../../../constants/colors";
|
|
7
7
|
import ButtonWithLink from "../../atoms/button-with-link";
|
|
8
8
|
import { ForgotPasswordIcon } from "../../atoms/icons";
|
|
9
9
|
import withWindowSize from "../../withWindowSize";
|
|
10
10
|
import { FormContainer, FormInputColumn } from "../../atoms/form-layouts";
|
|
11
|
+
import { fallbackValues } from "./ResetConfirmationForm.theme";
|
|
12
|
+
import { createThemeValues } from "../../../util/themeUtils";
|
|
11
13
|
|
|
12
14
|
const ResetConfirmationForm = () => {
|
|
13
|
-
const
|
|
15
|
+
const themeContext = useContext(ThemeContext);
|
|
16
|
+
const themeValues = createThemeValues(
|
|
17
|
+
themeContext,
|
|
18
|
+
fallbackValues,
|
|
19
|
+
"ResetConfirmationForm"
|
|
20
|
+
);
|
|
21
|
+
const { isMobile } = themeContext;
|
|
14
22
|
|
|
15
23
|
return (
|
|
16
24
|
<Box
|
|
@@ -20,7 +28,11 @@ const ResetConfirmationForm = () => {
|
|
|
20
28
|
background={WHITE}
|
|
21
29
|
boxShadow="0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22
30
|
>
|
|
23
|
-
<Box
|
|
31
|
+
<Box
|
|
32
|
+
background={themeValues.bannerBackgroundColor}
|
|
33
|
+
minWidth="100%"
|
|
34
|
+
padding="0.5rem"
|
|
35
|
+
>
|
|
24
36
|
<Cluster justify="center" align="center">
|
|
25
37
|
<ForgotPasswordIcon />
|
|
26
38
|
</Cluster>
|
|
@@ -3,14 +3,22 @@ import { ThemeContext } from "styled-components";
|
|
|
3
3
|
import Heading from "../../atoms/heading";
|
|
4
4
|
import Paragraph from "../../atoms/paragraph";
|
|
5
5
|
import { Box, Cluster } from "../../atoms/layouts";
|
|
6
|
-
import {
|
|
6
|
+
import { CHARADE_GREY, WHITE } from "../../../constants/colors";
|
|
7
7
|
import ButtonWithLink from "../../atoms/button-with-link";
|
|
8
8
|
import { ForgotPasswordIcon } from "../../atoms/icons";
|
|
9
9
|
import withWindowSize from "../../withWindowSize";
|
|
10
10
|
import { FormContainer, FormInputColumn } from "../../atoms/form-layouts";
|
|
11
|
+
import { fallbackValues } from "./ResetPasswordSuccess.theme";
|
|
12
|
+
import { createThemeValues } from "../../../util/themeUtils";
|
|
11
13
|
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
+
const ResetPasswordSuccess = () => {
|
|
15
|
+
const themeContext = useContext(ThemeContext);
|
|
16
|
+
const themeValues = createThemeValues(
|
|
17
|
+
themeContext,
|
|
18
|
+
fallbackValues,
|
|
19
|
+
"ResetPasswordSuccess"
|
|
20
|
+
);
|
|
21
|
+
const { isMobile } = themeContext;
|
|
14
22
|
|
|
15
23
|
return (
|
|
16
24
|
<Box
|
|
@@ -20,7 +28,11 @@ const ResetConfirmationForm = () => {
|
|
|
20
28
|
background={WHITE}
|
|
21
29
|
boxShadow="0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22
30
|
>
|
|
23
|
-
<Box
|
|
31
|
+
<Box
|
|
32
|
+
background={themeValues.bannerBackgroundColor}
|
|
33
|
+
minWidth="100%"
|
|
34
|
+
padding="0.5rem"
|
|
35
|
+
>
|
|
24
36
|
<Cluster justify="center" align="center">
|
|
25
37
|
<ForgotPasswordIcon />
|
|
26
38
|
</Cluster>
|
|
@@ -53,4 +65,4 @@ const ResetConfirmationForm = () => {
|
|
|
53
65
|
</Box>
|
|
54
66
|
);
|
|
55
67
|
};
|
|
56
|
-
export default withWindowSize(
|
|
68
|
+
export default withWindowSize(ResetPasswordSuccess);
|