@thecb/components 10.6.7-beta.1 → 10.6.9-beta.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 +483 -2034
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +483 -2034
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/icons/CloseIcon.js +25 -7
- package/src/components/atoms/icons/Icons.theme.js +4 -4
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/modal/ModalControlV2.js +1 -5
- package/src/components/molecules/modal/__private__/CloseIconButton.js +2 -2
- package/src/components/molecules/obligation/.DS_Store +0 -0
- package/src/components/molecules/obligation/Obligation.js +1 -1
- package/src/components/molecules/obligation/icons/AccountBillIcon.js +14 -79
- package/src/components/molecules/obligation/icons/AccountConstructionIcon.js +14 -89
- package/src/components/molecules/obligation/icons/AccountDentalIcon.js +13 -85
- package/src/components/molecules/obligation/icons/AccountElectricIcon.js +13 -90
- package/src/components/molecules/obligation/icons/AccountGarbageIcon.js +14 -84
- package/src/components/molecules/obligation/icons/AccountGasIcon.js +13 -85
- package/src/components/molecules/obligation/icons/AccountGenericIcon.js +14 -79
- package/src/components/molecules/obligation/icons/AccountMedicalIcon.js +14 -84
- package/src/components/molecules/obligation/icons/AccountWaterIcon.js +14 -84
- package/src/components/molecules/obligation/icons/PropertyApartmentIcon.js +13 -90
- package/src/components/molecules/obligation/icons/PropertyBusinessIcon.js +13 -83
- package/src/components/molecules/obligation/icons/PropertyCarIcon.js +12 -89
- package/src/components/molecules/obligation/icons/PropertyCommercialVehicleIcon.js +12 -90
- package/src/components/molecules/obligation/icons/PropertyGarageIcon.js +12 -86
- package/src/components/molecules/obligation/icons/PropertyLandIcon.js +12 -89
- package/src/components/molecules/obligation/icons/PropertyMotorcycleIcon.js +12 -89
- package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +14 -84
- package/src/components/molecules/obligation/icons/PropertyStorefrontIcon.js +12 -90
- package/src/components/molecules/obligation/icons/index.js +40 -18
- package/src/components/molecules/obligation/modules/IconModule.js +8 -3
- package/src/components/molecules/reset-confirmation-form/ResetConfirmatForm.theme.js +9 -0
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.js +15 -3
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.js +15 -3
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.theme.js +9 -0
- package/src/components/molecules/toast-notification/ToastNotification.js +1 -6
|
@@ -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
14
|
const ResetConfirmationForm = () => {
|
|
13
|
-
const
|
|
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>
|
|
@@ -30,13 +30,10 @@ const ToastNotification = ({
|
|
|
30
30
|
height = "56px",
|
|
31
31
|
childGap = "1rem",
|
|
32
32
|
backgroundColor,
|
|
33
|
-
role = "alert"
|
|
34
|
-
ariaLive = "polite",
|
|
35
|
-
...rest
|
|
33
|
+
role = "alert"
|
|
36
34
|
}) => (
|
|
37
35
|
<Box
|
|
38
36
|
onClick={closeToastNotification}
|
|
39
|
-
onKeyDown={e => e.key === "Enter" && closeToastNotification()}
|
|
40
37
|
background={
|
|
41
38
|
backgroundColor
|
|
42
39
|
? backgroundColor
|
|
@@ -60,8 +57,6 @@ const ToastNotification = ({
|
|
|
60
57
|
cursor: pointer;
|
|
61
58
|
`}
|
|
62
59
|
role={role}
|
|
63
|
-
aria-live={ariaLive}
|
|
64
|
-
{...rest}
|
|
65
60
|
>
|
|
66
61
|
<Cluster align="center" childGap={childGap} justify="space-between">
|
|
67
62
|
<Cluster align="center" childGap={childGap}>
|