@thecb/components 4.2.7-beta.8 → 4.2.7-beta.9

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 CHANGED
@@ -13775,6 +13775,43 @@ var IconAdd = function IconAdd() {
13775
13775
  }))))));
13776
13776
  };
13777
13777
 
13778
+ var IconQuit = function IconQuit(_ref) {
13779
+ var _ref$fill = _ref.fill,
13780
+ fill = _ref$fill === void 0 ? MINESHAFT_GREY : _ref$fill,
13781
+ _ref$width = _ref.width,
13782
+ width = _ref$width === void 0 ? "24px" : _ref$width,
13783
+ _ref$height = _ref.height,
13784
+ height = _ref$height === void 0 ? "24px" : _ref$height;
13785
+ return /*#__PURE__*/React__default.createElement("svg", {
13786
+ xmlns: "http://www.w3.org/2000/svg",
13787
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
13788
+ width: width,
13789
+ height: height,
13790
+ viewBox: "0 0 24 24"
13791
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
13792
+ id: "quit",
13793
+ d: "M18.9999989 6.40999946L17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993z"
13794
+ })), /*#__PURE__*/React__default.createElement("g", {
13795
+ fill: "none",
13796
+ fillRule: "evenodd",
13797
+ stroke: "none",
13798
+ strokeWidth: "1"
13799
+ }, /*#__PURE__*/React__default.createElement("mask", {
13800
+ id: "quitMask",
13801
+ fill: "#fff"
13802
+ }, /*#__PURE__*/React__default.createElement("use", {
13803
+ xlinkHref: "#quit"
13804
+ })), /*#__PURE__*/React__default.createElement("use", {
13805
+ fill: fill,
13806
+ xlinkHref: "#quit"
13807
+ }), /*#__PURE__*/React__default.createElement("g", {
13808
+ fill: fill,
13809
+ mask: "url(#quitMask)"
13810
+ }, /*#__PURE__*/React__default.createElement("path", {
13811
+ d: "M0 0H24V24H0z"
13812
+ }))));
13813
+ };
13814
+
13778
13815
  var TimeoutImage = function TimeoutImage() {
13779
13816
  return /*#__PURE__*/React__default.createElement("svg", {
13780
13817
  xmlns: "http://www.w3.org/2000/svg",
@@ -14855,6 +14892,45 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
14855
14892
  })))));
14856
14893
  };
14857
14894
 
14895
+ var TrashIcon = function TrashIcon(_ref) {
14896
+ var themeValues = _ref.themeValues;
14897
+ return /*#__PURE__*/React__default.createElement("svg", {
14898
+ width: "20px",
14899
+ height: "20px",
14900
+ viewBox: "0 0 20 20",
14901
+ version: "1.1",
14902
+ xmlns: "http://www.w3.org/2000/svg",
14903
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
14904
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
14905
+ d: "M15,7 L14,15.5714286 C14,16.3571429 13.25,17 12.3333333,17 L12.3333333,17 L7.66666667,17 C6.75,17 6,16.3571429 6,15.5714286 L6,15.5714286 L5,7 L15,7 Z M12.1428571,3 L13,4 L16,4 L16,6 L4,6 L4,4 L7,4 L7.85714286,3 L12.1428571,3 Z",
14906
+ id: "trash-path-1"
14907
+ })), /*#__PURE__*/React__default.createElement("g", {
14908
+ id: "trash-Icons-/-Small-/-20px-S-/-Trash---Mobile---20px",
14909
+ stroke: "none",
14910
+ strokeWidth: "1",
14911
+ fill: "none",
14912
+ fillRule: "evenodd"
14913
+ }, /*#__PURE__*/React__default.createElement("mask", {
14914
+ id: "trash-mask-2",
14915
+ fill: "white"
14916
+ }, /*#__PURE__*/React__default.createElement("use", {
14917
+ xlinkHref: "#trash-path-1"
14918
+ })), /*#__PURE__*/React__default.createElement("use", {
14919
+ id: "trash-Mask",
14920
+ fill: themeValues.singleIconColor,
14921
+ fillRule: "nonzero",
14922
+ xlinkHref: "#trash-path-1"
14923
+ }), /*#__PURE__*/React__default.createElement("polygon", {
14924
+ id: "trash-Path",
14925
+ fill: themeValues.singleIconColor,
14926
+ fillRule: "nonzero",
14927
+ mask: "url(#trash-mask-2)",
14928
+ points: "0 0 20 0 20 20 0 20"
14929
+ })));
14930
+ };
14931
+
14932
+ var TrashIcon$1 = themeComponent(TrashIcon, "Icons", fallbackValues$2, "primary");
14933
+
14858
14934
  var color$2 = "#15749D";
14859
14935
  var hoverColor$1 = "#116285";
14860
14936
  var activeColor$1 = "#0E506D";
@@ -15209,43 +15285,6 @@ var AlertWarningIcon = function AlertWarningIcon() {
15209
15285
  })))));
15210
15286
  };
15211
15287
 
15212
- var IconQuit = function IconQuit(_ref) {
15213
- var _ref$fill = _ref.fill,
15214
- fill = _ref$fill === void 0 ? MINESHAFT_GREY : _ref$fill,
15215
- _ref$width = _ref.width,
15216
- width = _ref$width === void 0 ? "24px" : _ref$width,
15217
- _ref$height = _ref.height,
15218
- height = _ref$height === void 0 ? "24px" : _ref$height;
15219
- return /*#__PURE__*/React__default.createElement("svg", {
15220
- xmlns: "http://www.w3.org/2000/svg",
15221
- xmlnsXlink: "http://www.w3.org/1999/xlink",
15222
- width: width,
15223
- height: height,
15224
- viewBox: "0 0 24 24"
15225
- }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
15226
- id: "quit",
15227
- d: "M18.9999989 6.40999946L17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993z"
15228
- })), /*#__PURE__*/React__default.createElement("g", {
15229
- fill: "none",
15230
- fillRule: "evenodd",
15231
- stroke: "none",
15232
- strokeWidth: "1"
15233
- }, /*#__PURE__*/React__default.createElement("mask", {
15234
- id: "quitMask",
15235
- fill: "#fff"
15236
- }, /*#__PURE__*/React__default.createElement("use", {
15237
- xlinkHref: "#quit"
15238
- })), /*#__PURE__*/React__default.createElement("use", {
15239
- fill: fill,
15240
- xlinkHref: "#quit"
15241
- }), /*#__PURE__*/React__default.createElement("g", {
15242
- fill: fill,
15243
- mask: "url(#quitMask)"
15244
- }, /*#__PURE__*/React__default.createElement("path", {
15245
- d: "M0 0H24V24H0z"
15246
- }))));
15247
- };
15248
-
15249
15288
  var AlertIcons = {
15250
15289
  error: AlertErrorIcon,
15251
15290
  info: AlertInfoIcon,
@@ -40893,6 +40932,7 @@ exports.HamburgerButton = HamburgerButton;
40893
40932
  exports.Heading = Heading$1;
40894
40933
  exports.HighlightTabRow = HighlightTabRow$1;
40895
40934
  exports.IconAdd = IconAdd;
40935
+ exports.IconQuit = IconQuit;
40896
40936
  exports.Imposter = Imposter;
40897
40937
  exports.InternalLink = InternalLink;
40898
40938
  exports.Jumbo = Jumbo$1;
@@ -40962,6 +41002,7 @@ exports.Text = Text$1;
40962
41002
  exports.Timeout = Timeout$1;
40963
41003
  exports.TimeoutImage = TimeoutImage;
40964
41004
  exports.ToggleSwitch = ToggleSwitch$1;
41005
+ exports.TrashIcon = TrashIcon$1;
40965
41006
  exports.TypeaheadInput = TypeaheadInput;
40966
41007
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
40967
41008
  exports.VoidedIcon = VoidedIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.2.7-beta.8",
3
+ "version": "4.2.7-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- import { AlertIcons, IconQuit } from "../../../deprecated/icons";
2
+ import { AlertIcons } from "../../../deprecated/icons";
3
+ import { IconQuit } from "../icons";
3
4
  import { Box, Center, Cluster, Stack, Cover, Sidebar } from "../layouts";
4
5
  import Text from "../text";
5
6
  import { fallbackValues } from "./Alert.theme";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { MINESHAFT_GREY } from "../../constants/colors";
2
+ import { MINESHAFT_GREY } from "../../../constants/colors";
3
3
 
4
- export const IconQuit = ({
4
+ const IconQuit = ({
5
5
  fill = MINESHAFT_GREY,
6
6
  width = "24px",
7
7
  height = "24px"
@@ -30,3 +30,5 @@ export const IconQuit = ({
30
30
  </g>
31
31
  </svg>
32
32
  );
33
+
34
+ export default IconQuit;
@@ -0,0 +1,47 @@
1
+ import React from "react";
2
+ import { fallbackValues } from "./Icons.theme";
3
+ import { themeComponent } from "../../../util/themeUtils";
4
+
5
+ const TrashIcon = ({ themeValues }) => (
6
+ <svg
7
+ width="20px"
8
+ height="20px"
9
+ viewBox="0 0 20 20"
10
+ version="1.1"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ xmlnsXlink="http://www.w3.org/1999/xlink"
13
+ >
14
+ <defs>
15
+ <path
16
+ d="M15,7 L14,15.5714286 C14,16.3571429 13.25,17 12.3333333,17 L12.3333333,17 L7.66666667,17 C6.75,17 6,16.3571429 6,15.5714286 L6,15.5714286 L5,7 L15,7 Z M12.1428571,3 L13,4 L16,4 L16,6 L4,6 L4,4 L7,4 L7.85714286,3 L12.1428571,3 Z"
17
+ id="trash-path-1"
18
+ ></path>
19
+ </defs>
20
+ <g
21
+ id="trash-Icons-/-Small-/-20px-S-/-Trash---Mobile---20px"
22
+ stroke="none"
23
+ strokeWidth="1"
24
+ fill="none"
25
+ fillRule="evenodd"
26
+ >
27
+ <mask id="trash-mask-2" fill="white">
28
+ <use xlinkHref="#trash-path-1"></use>
29
+ </mask>
30
+ <use
31
+ id="trash-Mask"
32
+ fill={themeValues.singleIconColor}
33
+ fillRule="nonzero"
34
+ xlinkHref="#trash-path-1"
35
+ ></use>
36
+ <polygon
37
+ id="trash-Path"
38
+ fill={themeValues.singleIconColor}
39
+ fillRule="nonzero"
40
+ mask="url(#trash-mask-2)"
41
+ points="0 0 20 0 20 20 0 20"
42
+ ></polygon>
43
+ </g>
44
+ </svg>
45
+ );
46
+
47
+ export default themeComponent(TrashIcon, "Icons", fallbackValues, "primary");
@@ -19,6 +19,7 @@ import BankIcon from "./BankIcon";
19
19
  import GenericCard from "./GenericCard";
20
20
  import PaymentIcon from "./PaymentIcon";
21
21
  import IconAdd from "./IconAdd";
22
+ import IconQuit from "./IconQuit";
22
23
  import TimeoutImage from "./TimeoutImage";
23
24
  import AutopayOnIcon from "./AutopayOnIcon";
24
25
  import NotFoundIcon from "./NotFoundIcon";
@@ -44,6 +45,7 @@ import ProfileIcon from "./ProfileIcon";
44
45
  import GenericCardLarge from "./GenericCardLarge";
45
46
  import EmptyCartIcon from "./EmptyCartIcon";
46
47
  import ShoppingCartIcon from "./ShoppingCartIcon";
48
+ import TrashIcon from "./TrashIcon";
47
49
 
48
50
  export {
49
51
  AccountsIcon,
@@ -67,6 +69,7 @@ export {
67
69
  GenericCard,
68
70
  PaymentIcon,
69
71
  IconAdd,
72
+ IconQuit,
70
73
  TimeoutImage,
71
74
  AutopayOnIcon,
72
75
  NotFoundIcon,
@@ -91,5 +94,6 @@ export {
91
94
  ProfileIcon,
92
95
  GenericCardLarge,
93
96
  EmptyCartIcon,
94
- ShoppingCartIcon
97
+ ShoppingCartIcon,
98
+ TrashIcon
95
99
  };
@@ -13,7 +13,6 @@ import { AlertInfoIcon } from "./AlertInfoIcon";
13
13
  import { AlertErrorIcon } from "./AlertErrorIcon";
14
14
  import { AlertSuccessIcon } from "./AlertSuccessIcon";
15
15
  import { AlertWarningIcon } from "./AlertWarningIcon";
16
- import { IconQuit } from "./IconQuit";
17
16
 
18
17
  const AlertIcons = {
19
18
  error: AlertErrorIcon,
@@ -33,6 +32,5 @@ export {
33
32
  IconNeutral,
34
33
  IconValid,
35
34
  IconInvalid,
36
- AlertIcons,
37
- IconQuit
35
+ AlertIcons
38
36
  };