@thecb/components 10.2.2 → 10.2.3-beta.1
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 +3202 -2843
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.esm.js +3200 -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/TrashIconV2.d.ts +1 -0
- package/src/components/atoms/icons/TrashIconV2.js +41 -0
- package/src/components/atoms/icons/icons.stories.js +5 -1
- package/src/components/atoms/icons/index.d.ts +2 -0
- package/src/components/atoms/icons/index.js +5 -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TrashIconV2: JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { fallbackValues } from "./Icons.theme";
|
|
3
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
4
|
+
|
|
5
|
+
const TrashIconV2 = ({ themeValues, iconFill }) => {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width="18"
|
|
10
|
+
height="18"
|
|
11
|
+
viewBox="0 0 18 18"
|
|
12
|
+
fill="none"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
d="M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z"
|
|
18
|
+
fill={iconFill ?? themeValues.singleIconColor}
|
|
19
|
+
/>
|
|
20
|
+
<mask
|
|
21
|
+
id="mask0_4292_11876"
|
|
22
|
+
style={{ maskType: "luminance" }}
|
|
23
|
+
maskUnits="userSpaceOnUse"
|
|
24
|
+
x="4"
|
|
25
|
+
y="3"
|
|
26
|
+
width="10"
|
|
27
|
+
height="12"
|
|
28
|
+
>
|
|
29
|
+
<path
|
|
30
|
+
fillRule="evenodd"
|
|
31
|
+
clipRule="evenodd"
|
|
32
|
+
d="M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z"
|
|
33
|
+
fill="white"
|
|
34
|
+
/>
|
|
35
|
+
</mask>
|
|
36
|
+
<g mask="url(#mask0_4292_11876)"></g>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default themeComponent(TrashIconV2, "Icons", fallbackValues, "primary");
|
|
@@ -40,7 +40,9 @@ import {
|
|
|
40
40
|
StatusUnknownIcon,
|
|
41
41
|
AutopayIcon,
|
|
42
42
|
KebabMenuIcon,
|
|
43
|
-
MultiCartIcon
|
|
43
|
+
MultiCartIcon,
|
|
44
|
+
CloseIcon,
|
|
45
|
+
TrashIconV2
|
|
44
46
|
} from "./index";
|
|
45
47
|
|
|
46
48
|
const story = page({
|
|
@@ -88,3 +90,5 @@ export const statusUnknownIcon = () => <StatusUnknownIcon />;
|
|
|
88
90
|
export const autopayIcon = () => <AutopayIcon />;
|
|
89
91
|
export const kebabMenuIcon = () => <KebabMenuIcon />;
|
|
90
92
|
export const multiCartIcon = () => <MultiCartIcon />;
|
|
93
|
+
export const closeIcon = () => <CloseIcon />;
|
|
94
|
+
export const trashIconV2 = () => <TrashIconV2 />;
|
|
@@ -88,6 +88,8 @@ 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";
|
|
92
|
+
import TrashIconV2 from "./TrashIconV2";
|
|
91
93
|
|
|
92
94
|
export {
|
|
93
95
|
AccountsIcon,
|
|
@@ -179,5 +181,7 @@ export {
|
|
|
179
181
|
ChargebackReversalIconMedium,
|
|
180
182
|
PlusCircleIcon,
|
|
181
183
|
KebabMenuIcon,
|
|
182
|
-
MultiCartIcon
|
|
184
|
+
MultiCartIcon,
|
|
185
|
+
CloseIcon,
|
|
186
|
+
TrashIconV2
|
|
183
187
|
};
|
|
@@ -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
|