@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.2.2",
3
+ "version": "10.2.3-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
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 />;
@@ -23,3 +23,4 @@ export * from "./XCircleIconMedium";
23
23
  export * from "./XCircleIconSmall";
24
24
  export * from "./KebabMenuIcon";
25
25
  export * from "./MultiCartIcon";
26
+ export * from "./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
  };
@@ -5,3 +5,4 @@ export * from "./footer-with-subfooter";
5
5
  export * from "./popover";
6
6
  export * from "./radio-group";
7
7
  export * from "./toast-notification";
8
+ export * from "./popup-menu";
@@ -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={COOL_GREY_05}
28
+ background={background}
28
29
  extraStyles="flex-grow: 1;"
29
30
  >
30
31
  <Cover