@thecb/components 10.2.2 → 10.2.3-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 +3165 -2843
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.esm.js +3164 -2844
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/icons/CloseIcon.d.ts +1 -0
- package/src/components/atoms/icons/CloseIcon.js +48 -0
- package/src/components/atoms/icons/icons.stories.js +3 -1
- package/src/components/atoms/icons/index.d.ts +1 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/molecules/index.d.ts +1 -0
- package/src/components/molecules/index.js +1 -0
- package/src/components/templates/default-page-template/DefaultPageTemplate.js +3 -2
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CloseIcon: JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const CloseIcon = ({
|
|
4
|
+
iconFill = "#3B414D",
|
|
5
|
+
iconWidth = "24",
|
|
6
|
+
iconHeight = "24",
|
|
7
|
+
...rest
|
|
8
|
+
}) => {
|
|
9
|
+
return (
|
|
10
|
+
<svg
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={iconWidth}
|
|
13
|
+
height={iconHeight}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
fill="none"
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
18
|
+
<title>Close Icon</title>
|
|
19
|
+
<path
|
|
20
|
+
fillRule="evenodd"
|
|
21
|
+
clipRule="evenodd"
|
|
22
|
+
d="M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z"
|
|
23
|
+
fill={iconFill}
|
|
24
|
+
/>
|
|
25
|
+
<mask
|
|
26
|
+
id="mask0_3727_16765"
|
|
27
|
+
style={{ maskType: "luminance" }}
|
|
28
|
+
maskUnits="userSpaceOnUse"
|
|
29
|
+
x="5"
|
|
30
|
+
y="5"
|
|
31
|
+
width="14"
|
|
32
|
+
height="14"
|
|
33
|
+
>
|
|
34
|
+
<path
|
|
35
|
+
fillRule="evenodd"
|
|
36
|
+
clipRule="evenodd"
|
|
37
|
+
d="M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z"
|
|
38
|
+
fill="none"
|
|
39
|
+
/>
|
|
40
|
+
</mask>
|
|
41
|
+
<g mask="url(#mask0_3727_16765)">
|
|
42
|
+
<path d="M0 0H24V24H0V0Z" fill={iconFill} />
|
|
43
|
+
</g>
|
|
44
|
+
</svg>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default CloseIcon;
|
|
@@ -40,7 +40,8 @@ import {
|
|
|
40
40
|
StatusUnknownIcon,
|
|
41
41
|
AutopayIcon,
|
|
42
42
|
KebabMenuIcon,
|
|
43
|
-
MultiCartIcon
|
|
43
|
+
MultiCartIcon,
|
|
44
|
+
CloseIcon
|
|
44
45
|
} from "./index";
|
|
45
46
|
|
|
46
47
|
const story = page({
|
|
@@ -88,3 +89,4 @@ export const statusUnknownIcon = () => <StatusUnknownIcon />;
|
|
|
88
89
|
export const autopayIcon = () => <AutopayIcon />;
|
|
89
90
|
export const kebabMenuIcon = () => <KebabMenuIcon />;
|
|
90
91
|
export const multiCartIcon = () => <MultiCartIcon />;
|
|
92
|
+
export const closeIcon = () => <CloseIcon />;
|
|
@@ -88,6 +88,7 @@ import ChargebackReversalIconMedium from "./ChargebackReversalIconMedium";
|
|
|
88
88
|
import PlusCircleIcon from "./PlusCircleIcon";
|
|
89
89
|
import KebabMenuIcon from "./KebabMenuIcon";
|
|
90
90
|
import MultiCartIcon from "./MultiCartIcon";
|
|
91
|
+
import CloseIcon from "./CloseIcon";
|
|
91
92
|
|
|
92
93
|
export {
|
|
93
94
|
AccountsIcon,
|
|
@@ -179,5 +180,6 @@ export {
|
|
|
179
180
|
ChargebackReversalIconMedium,
|
|
180
181
|
PlusCircleIcon,
|
|
181
182
|
KebabMenuIcon,
|
|
182
|
-
MultiCartIcon
|
|
183
|
+
MultiCartIcon,
|
|
184
|
+
CloseIcon
|
|
183
185
|
};
|
|
@@ -40,3 +40,4 @@ export { default as Timeout } from "./timeout";
|
|
|
40
40
|
export { default as ToastNotification } from "./toast-notification";
|
|
41
41
|
export { default as WelcomeModule } from "./welcome-module";
|
|
42
42
|
export { default as WorkflowTile } from "./workflow-tile";
|
|
43
|
+
export { default as PopupMenu } from "./popup-menu";
|
|
@@ -15,7 +15,8 @@ const CenterSingle = ({
|
|
|
15
15
|
themeValues,
|
|
16
16
|
maxWidth = "75rem",
|
|
17
17
|
gutters = "2rem",
|
|
18
|
-
fillPageVertical = false
|
|
18
|
+
fillPageVertical = false,
|
|
19
|
+
background = COOL_GREY_05
|
|
19
20
|
}) => {
|
|
20
21
|
const themeContext = useContext(ThemeContext);
|
|
21
22
|
const { isMobile } = themeContext;
|
|
@@ -24,7 +25,7 @@ const CenterSingle = ({
|
|
|
24
25
|
<Box
|
|
25
26
|
padding="0"
|
|
26
27
|
minWidth="100%"
|
|
27
|
-
background={
|
|
28
|
+
background={background}
|
|
28
29
|
extraStyles="flex-grow: 1;"
|
|
29
30
|
>
|
|
30
31
|
<Cover
|