@thecb/components 4.2.7-beta.10 → 4.2.7-beta.4
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 +56 -170
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +1 -2
- package/src/components/atoms/icons/index.js +1 -7
- package/src/components/atoms/layouts/Cluster.js +1 -12
- package/src/components/atoms/layouts/Cluster.styled.js +0 -4
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -2
- package/src/{components/atoms → deprecated}/icons/IconQuit.js +2 -4
- package/src/deprecated/icons/index.js +3 -1
- package/src/components/atoms/icons/IconQuitLarge.js +0 -61
- package/src/components/atoms/icons/TrashIcon.js +0 -47
package/dist/index.cjs.js
CHANGED
|
@@ -6481,7 +6481,7 @@ function _templateObject2$2() {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
6483
6483
|
function _templateObject$3() {
|
|
6484
|
-
var data = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n
|
|
6484
|
+
var data = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n"]);
|
|
6485
6485
|
|
|
6486
6486
|
_templateObject$3 = function _templateObject() {
|
|
6487
6487
|
return data;
|
|
@@ -6499,39 +6499,27 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6499
6499
|
})(_templateObject$3(), function (_ref2) {
|
|
6500
6500
|
var overflow = _ref2.overflow;
|
|
6501
6501
|
return overflow ? "visible" : "hidden";
|
|
6502
|
-
}, function (_ref3) {
|
|
6503
|
-
var justifySelf = _ref3.justifySelf;
|
|
6504
|
-
return justifySelf;
|
|
6505
|
-
}, function (_ref4) {
|
|
6506
|
-
var alignSelf = _ref4.alignSelf;
|
|
6507
|
-
return alignSelf;
|
|
6508
|
-
}, function (_ref5) {
|
|
6509
|
-
var flexGrow = _ref5.flexGrow;
|
|
6510
|
-
return flexGrow;
|
|
6511
|
-
}, function (_ref6) {
|
|
6512
|
-
var extraStyles = _ref6.extraStyles;
|
|
6513
|
-
return extraStyles;
|
|
6514
6502
|
});
|
|
6515
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6516
|
-
var nowrap =
|
|
6503
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref3) {
|
|
6504
|
+
var nowrap = _ref3.nowrap;
|
|
6517
6505
|
return nowrap ? "nowrap" : "wrap";
|
|
6518
|
-
}, function (
|
|
6519
|
-
var justify =
|
|
6506
|
+
}, function (_ref4) {
|
|
6507
|
+
var justify = _ref4.justify;
|
|
6520
6508
|
return justify;
|
|
6521
|
-
}, function (
|
|
6522
|
-
var align =
|
|
6509
|
+
}, function (_ref5) {
|
|
6510
|
+
var align = _ref5.align;
|
|
6523
6511
|
return align;
|
|
6524
|
-
}, function (
|
|
6525
|
-
var childGap =
|
|
6512
|
+
}, function (_ref6) {
|
|
6513
|
+
var childGap = _ref6.childGap;
|
|
6526
6514
|
return childGap;
|
|
6527
|
-
}, function (
|
|
6528
|
-
var minHeight =
|
|
6515
|
+
}, function (_ref7) {
|
|
6516
|
+
var minHeight = _ref7.minHeight;
|
|
6529
6517
|
return minHeight;
|
|
6530
|
-
}, function (
|
|
6531
|
-
var minWidth =
|
|
6518
|
+
}, function (_ref8) {
|
|
6519
|
+
var minWidth = _ref8.minWidth;
|
|
6532
6520
|
return minWidth;
|
|
6533
|
-
}, function (
|
|
6534
|
-
var childGap =
|
|
6521
|
+
}, function (_ref9) {
|
|
6522
|
+
var childGap = _ref9.childGap;
|
|
6535
6523
|
return childGap;
|
|
6536
6524
|
});
|
|
6537
6525
|
|
|
@@ -6553,21 +6541,12 @@ var Cluster = function Cluster(_ref) {
|
|
|
6553
6541
|
nowrap = _ref.nowrap,
|
|
6554
6542
|
_ref$overflow = _ref.overflow,
|
|
6555
6543
|
overflow = _ref$overflow === void 0 ? false : _ref$overflow,
|
|
6556
|
-
justifySelf = _ref.justifySelf,
|
|
6557
|
-
alignSelf = _ref.alignSelf,
|
|
6558
|
-
flexGrow = _ref.flexGrow,
|
|
6559
|
-
extraStyles = _ref.extraStyles,
|
|
6560
6544
|
children = _ref.children,
|
|
6561
|
-
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "
|
|
6545
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "children"]);
|
|
6562
6546
|
|
|
6563
6547
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6564
6548
|
overflow: overflow
|
|
6565
|
-
}, rest, {
|
|
6566
|
-
justifySelf: justifySelf,
|
|
6567
|
-
alignSelf: alignSelf,
|
|
6568
|
-
flexGrow: flexGrow,
|
|
6569
|
-
extraStyles: extraStyles
|
|
6570
|
-
}), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6549
|
+
}, rest), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6571
6550
|
justify: justify,
|
|
6572
6551
|
align: align,
|
|
6573
6552
|
childGap: childGap,
|
|
@@ -13775,93 +13754,6 @@ var IconAdd = function IconAdd() {
|
|
|
13775
13754
|
}))))));
|
|
13776
13755
|
};
|
|
13777
13756
|
|
|
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
|
-
|
|
13815
|
-
var IconQuitLarge = function IconQuitLarge(_ref) {
|
|
13816
|
-
var _ref$fill = _ref.fill,
|
|
13817
|
-
fill = _ref$fill === void 0 ? "#091325" : _ref$fill;
|
|
13818
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13819
|
-
width: "14px",
|
|
13820
|
-
height: "14px",
|
|
13821
|
-
viewBox: "0 0 14 14",
|
|
13822
|
-
version: "1.1",
|
|
13823
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13824
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
13825
|
-
}, /*#__PURE__*/React__default.createElement("title", null, "Icon/X"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
|
|
13826
|
-
id: "quit-large-path-1",
|
|
13827
|
-
points: "18.9999989 6.40999946 17.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.9999993"
|
|
13828
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
13829
|
-
id: "quit-large-[D]-Cart---Slideout",
|
|
13830
|
-
stroke: "none",
|
|
13831
|
-
strokeWidth: "1",
|
|
13832
|
-
fill: "none",
|
|
13833
|
-
fillRule: "evenodd"
|
|
13834
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13835
|
-
id: "quit-large-[D]-Cart-Slideout---Standard",
|
|
13836
|
-
transform: "translate(-741.000000, -34.000000)"
|
|
13837
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13838
|
-
id: "quit-large-Close-Icon",
|
|
13839
|
-
transform: "translate(724.000000, 17.000000)"
|
|
13840
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13841
|
-
id: "quit-large-Group",
|
|
13842
|
-
transform: "translate(12.000000, 12.000000)"
|
|
13843
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
13844
|
-
id: "quit-large-mask-2",
|
|
13845
|
-
fill: "white"
|
|
13846
|
-
}, /*#__PURE__*/React__default.createElement("use", {
|
|
13847
|
-
xlinkHref: "#quit-large-path-1"
|
|
13848
|
-
})), /*#__PURE__*/React__default.createElement("use", {
|
|
13849
|
-
id: "quit-large-Fill-2",
|
|
13850
|
-
fill: fill,
|
|
13851
|
-
xlinkHref: "#quit-large-path-1"
|
|
13852
|
-
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13853
|
-
mask: "url(#quit-large-mask-2)",
|
|
13854
|
-
fill: fill,
|
|
13855
|
-
id: "quit-large-\u2B91\uD83C\uDFA8"
|
|
13856
|
-
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("rect", {
|
|
13857
|
-
id: "quit-large-\u279D\u270F\uFE0F",
|
|
13858
|
-
x: "0",
|
|
13859
|
-
y: "0",
|
|
13860
|
-
width: "24",
|
|
13861
|
-
height: "24"
|
|
13862
|
-
}))))))));
|
|
13863
|
-
};
|
|
13864
|
-
|
|
13865
13757
|
var TimeoutImage = function TimeoutImage() {
|
|
13866
13758
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13867
13759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14942,45 +14834,6 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
14942
14834
|
})))));
|
|
14943
14835
|
};
|
|
14944
14836
|
|
|
14945
|
-
var TrashIcon = function TrashIcon(_ref) {
|
|
14946
|
-
var themeValues = _ref.themeValues;
|
|
14947
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14948
|
-
width: "20px",
|
|
14949
|
-
height: "20px",
|
|
14950
|
-
viewBox: "0 0 20 20",
|
|
14951
|
-
version: "1.1",
|
|
14952
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14953
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14954
|
-
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
14955
|
-
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",
|
|
14956
|
-
id: "trash-path-1"
|
|
14957
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
14958
|
-
id: "trash-Icons-/-Small-/-20px-S-/-Trash---Mobile---20px",
|
|
14959
|
-
stroke: "none",
|
|
14960
|
-
strokeWidth: "1",
|
|
14961
|
-
fill: "none",
|
|
14962
|
-
fillRule: "evenodd"
|
|
14963
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
14964
|
-
id: "trash-mask-2",
|
|
14965
|
-
fill: "white"
|
|
14966
|
-
}, /*#__PURE__*/React__default.createElement("use", {
|
|
14967
|
-
xlinkHref: "#trash-path-1"
|
|
14968
|
-
})), /*#__PURE__*/React__default.createElement("use", {
|
|
14969
|
-
id: "trash-Mask",
|
|
14970
|
-
fill: themeValues.singleIconColor,
|
|
14971
|
-
fillRule: "nonzero",
|
|
14972
|
-
xlinkHref: "#trash-path-1"
|
|
14973
|
-
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
14974
|
-
id: "trash-Path",
|
|
14975
|
-
fill: themeValues.singleIconColor,
|
|
14976
|
-
fillRule: "nonzero",
|
|
14977
|
-
mask: "url(#trash-mask-2)",
|
|
14978
|
-
points: "0 0 20 0 20 20 0 20"
|
|
14979
|
-
})));
|
|
14980
|
-
};
|
|
14981
|
-
|
|
14982
|
-
var TrashIcon$1 = themeComponent(TrashIcon, "Icons", fallbackValues$2, "primary");
|
|
14983
|
-
|
|
14984
14837
|
var color$2 = "#15749D";
|
|
14985
14838
|
var hoverColor$1 = "#116285";
|
|
14986
14839
|
var activeColor$1 = "#0E506D";
|
|
@@ -15335,6 +15188,43 @@ var AlertWarningIcon = function AlertWarningIcon() {
|
|
|
15335
15188
|
})))));
|
|
15336
15189
|
};
|
|
15337
15190
|
|
|
15191
|
+
var IconQuit = function IconQuit(_ref) {
|
|
15192
|
+
var _ref$fill = _ref.fill,
|
|
15193
|
+
fill = _ref$fill === void 0 ? MINESHAFT_GREY : _ref$fill,
|
|
15194
|
+
_ref$width = _ref.width,
|
|
15195
|
+
width = _ref$width === void 0 ? "24px" : _ref$width,
|
|
15196
|
+
_ref$height = _ref.height,
|
|
15197
|
+
height = _ref$height === void 0 ? "24px" : _ref$height;
|
|
15198
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15199
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15200
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15201
|
+
width: width,
|
|
15202
|
+
height: height,
|
|
15203
|
+
viewBox: "0 0 24 24"
|
|
15204
|
+
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
15205
|
+
id: "quit",
|
|
15206
|
+
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"
|
|
15207
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
15208
|
+
fill: "none",
|
|
15209
|
+
fillRule: "evenodd",
|
|
15210
|
+
stroke: "none",
|
|
15211
|
+
strokeWidth: "1"
|
|
15212
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
15213
|
+
id: "quitMask",
|
|
15214
|
+
fill: "#fff"
|
|
15215
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
15216
|
+
xlinkHref: "#quit"
|
|
15217
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
15218
|
+
fill: fill,
|
|
15219
|
+
xlinkHref: "#quit"
|
|
15220
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
15221
|
+
fill: fill,
|
|
15222
|
+
mask: "url(#quitMask)"
|
|
15223
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15224
|
+
d: "M0 0H24V24H0z"
|
|
15225
|
+
}))));
|
|
15226
|
+
};
|
|
15227
|
+
|
|
15338
15228
|
var AlertIcons = {
|
|
15339
15229
|
error: AlertErrorIcon,
|
|
15340
15230
|
info: AlertInfoIcon,
|
|
@@ -34856,8 +34746,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34856
34746
|
key: "header",
|
|
34857
34747
|
hoverStyles: "cursor: pointer;",
|
|
34858
34748
|
tabIndex: "0",
|
|
34859
|
-
onKeyDown: handleKeyDown
|
|
34860
|
-
extraStyles: "z-index: 25;"
|
|
34749
|
+
onKeyDown: handleKeyDown
|
|
34861
34750
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34862
34751
|
justify: "space-between",
|
|
34863
34752
|
align: "center"
|
|
@@ -34882,7 +34771,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34882
34771
|
initial: initiallyOpen ? "open" : "closed",
|
|
34883
34772
|
exit: "closed",
|
|
34884
34773
|
variants: wrapper,
|
|
34885
|
-
extraStyles: "transform-origin: 100% 0;
|
|
34774
|
+
extraStyles: "transform-origin: 100% 0;"
|
|
34886
34775
|
}, children))));
|
|
34887
34776
|
};
|
|
34888
34777
|
|
|
@@ -40982,8 +40871,6 @@ exports.HamburgerButton = HamburgerButton;
|
|
|
40982
40871
|
exports.Heading = Heading$1;
|
|
40983
40872
|
exports.HighlightTabRow = HighlightTabRow$1;
|
|
40984
40873
|
exports.IconAdd = IconAdd;
|
|
40985
|
-
exports.IconQuit = IconQuit;
|
|
40986
|
-
exports.IconQuitLarge = IconQuitLarge;
|
|
40987
40874
|
exports.Imposter = Imposter;
|
|
40988
40875
|
exports.InternalLink = InternalLink;
|
|
40989
40876
|
exports.Jumbo = Jumbo$1;
|
|
@@ -41053,7 +40940,6 @@ exports.Text = Text$1;
|
|
|
41053
40940
|
exports.Timeout = Timeout$1;
|
|
41054
40941
|
exports.TimeoutImage = TimeoutImage;
|
|
41055
40942
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
41056
|
-
exports.TrashIcon = TrashIcon$1;
|
|
41057
40943
|
exports.TypeaheadInput = TypeaheadInput;
|
|
41058
40944
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
41059
40945
|
exports.VoidedIcon = VoidedIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AlertIcons } from "../../../deprecated/icons";
|
|
3
|
-
import { IconQuit } from "../icons";
|
|
2
|
+
import { AlertIcons, IconQuit } from "../../../deprecated/icons";
|
|
4
3
|
import { Box, Center, Cluster, Stack, Cover, Sidebar } from "../layouts";
|
|
5
4
|
import Text from "../text";
|
|
6
5
|
import { fallbackValues } from "./Alert.theme";
|
|
@@ -19,8 +19,6 @@ 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";
|
|
23
|
-
import IconQuitLarge from "./IconQuitLarge";
|
|
24
22
|
import TimeoutImage from "./TimeoutImage";
|
|
25
23
|
import AutopayOnIcon from "./AutopayOnIcon";
|
|
26
24
|
import NotFoundIcon from "./NotFoundIcon";
|
|
@@ -46,7 +44,6 @@ import ProfileIcon from "./ProfileIcon";
|
|
|
46
44
|
import GenericCardLarge from "./GenericCardLarge";
|
|
47
45
|
import EmptyCartIcon from "./EmptyCartIcon";
|
|
48
46
|
import ShoppingCartIcon from "./ShoppingCartIcon";
|
|
49
|
-
import TrashIcon from "./TrashIcon";
|
|
50
47
|
|
|
51
48
|
export {
|
|
52
49
|
AccountsIcon,
|
|
@@ -70,8 +67,6 @@ export {
|
|
|
70
67
|
GenericCard,
|
|
71
68
|
PaymentIcon,
|
|
72
69
|
IconAdd,
|
|
73
|
-
IconQuit,
|
|
74
|
-
IconQuitLarge,
|
|
75
70
|
TimeoutImage,
|
|
76
71
|
AutopayOnIcon,
|
|
77
72
|
NotFoundIcon,
|
|
@@ -96,6 +91,5 @@ export {
|
|
|
96
91
|
ProfileIcon,
|
|
97
92
|
GenericCardLarge,
|
|
98
93
|
EmptyCartIcon,
|
|
99
|
-
ShoppingCartIcon
|
|
100
|
-
TrashIcon
|
|
94
|
+
ShoppingCartIcon
|
|
101
95
|
};
|
|
@@ -19,21 +19,10 @@ const Cluster = ({
|
|
|
19
19
|
minWidth,
|
|
20
20
|
nowrap,
|
|
21
21
|
overflow = false,
|
|
22
|
-
justifySelf,
|
|
23
|
-
alignSelf,
|
|
24
|
-
flexGrow,
|
|
25
|
-
extraStyles,
|
|
26
22
|
children,
|
|
27
23
|
...rest
|
|
28
24
|
}) => (
|
|
29
|
-
<ClusterWrapper
|
|
30
|
-
overflow={overflow}
|
|
31
|
-
{...rest}
|
|
32
|
-
justifySelf={justifySelf}
|
|
33
|
-
alignSelf={alignSelf}
|
|
34
|
-
flexGrow={flexGrow}
|
|
35
|
-
extraStyles={extraStyles}
|
|
36
|
-
>
|
|
25
|
+
<ClusterWrapper overflow={overflow} {...rest}>
|
|
37
26
|
<ClusterInnerWrapper
|
|
38
27
|
justify={justify}
|
|
39
28
|
align={align}
|
|
@@ -7,10 +7,6 @@ export const ClusterWrapper = styled(({ overflow, ...props }) => (
|
|
|
7
7
|
))`
|
|
8
8
|
overflow: ${({ overflow }) => (overflow ? "visible" : "hidden")};
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
justify-self: ${({ justifySelf }) => justifySelf};
|
|
11
|
-
align-self: ${({ alignSelf }) => alignSelf};
|
|
12
|
-
flex-grow: ${({ flexGrow }) => flexGrow};
|
|
13
|
-
${({ extraStyles }) => extraStyles};
|
|
14
10
|
`;
|
|
15
11
|
|
|
16
12
|
export const ClusterInnerWrapper = styled.div`
|
|
@@ -79,7 +79,6 @@ const CollapsibleSection = ({
|
|
|
79
79
|
hoverStyles={`cursor: pointer;`}
|
|
80
80
|
tabIndex="0"
|
|
81
81
|
onKeyDown={handleKeyDown}
|
|
82
|
-
extraStyles={`z-index: 25;`}
|
|
83
82
|
>
|
|
84
83
|
<Cluster justify="space-between" align="center">
|
|
85
84
|
{customTitle ? (
|
|
@@ -114,7 +113,7 @@ const CollapsibleSection = ({
|
|
|
114
113
|
initial={initiallyOpen ? "open" : "closed"}
|
|
115
114
|
exit="closed"
|
|
116
115
|
variants={wrapper}
|
|
117
|
-
extraStyles={`transform-origin: 100% 0
|
|
116
|
+
extraStyles={`transform-origin: 100% 0;`}
|
|
118
117
|
>
|
|
119
118
|
{children}
|
|
120
119
|
</Motion>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MINESHAFT_GREY } from "
|
|
2
|
+
import { MINESHAFT_GREY } from "../../constants/colors";
|
|
3
3
|
|
|
4
|
-
const IconQuit = ({
|
|
4
|
+
export const IconQuit = ({
|
|
5
5
|
fill = MINESHAFT_GREY,
|
|
6
6
|
width = "24px",
|
|
7
7
|
height = "24px"
|
|
@@ -30,5 +30,3 @@ const IconQuit = ({
|
|
|
30
30
|
</g>
|
|
31
31
|
</svg>
|
|
32
32
|
);
|
|
33
|
-
|
|
34
|
-
export default IconQuit;
|
|
@@ -13,6 +13,7 @@ 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";
|
|
16
17
|
|
|
17
18
|
const AlertIcons = {
|
|
18
19
|
error: AlertErrorIcon,
|
|
@@ -32,5 +33,6 @@ export {
|
|
|
32
33
|
IconNeutral,
|
|
33
34
|
IconValid,
|
|
34
35
|
IconInvalid,
|
|
35
|
-
AlertIcons
|
|
36
|
+
AlertIcons,
|
|
37
|
+
IconQuit
|
|
36
38
|
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
const IconQuitLarge = ({ fill = "#091325" }) => (
|
|
4
|
-
<svg
|
|
5
|
-
width="14px"
|
|
6
|
-
height="14px"
|
|
7
|
-
viewBox="0 0 14 14"
|
|
8
|
-
version="1.1"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
11
|
-
>
|
|
12
|
-
<title>Icon/X</title>
|
|
13
|
-
<defs>
|
|
14
|
-
<polygon
|
|
15
|
-
id="quit-large-path-1"
|
|
16
|
-
points="18.9999989 6.40999946 17.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.9999993"
|
|
17
|
-
></polygon>
|
|
18
|
-
</defs>
|
|
19
|
-
<g
|
|
20
|
-
id="quit-large-[D]-Cart---Slideout"
|
|
21
|
-
stroke="none"
|
|
22
|
-
strokeWidth="1"
|
|
23
|
-
fill="none"
|
|
24
|
-
fillRule="evenodd"
|
|
25
|
-
>
|
|
26
|
-
<g
|
|
27
|
-
id="quit-large-[D]-Cart-Slideout---Standard"
|
|
28
|
-
transform="translate(-741.000000, -34.000000)"
|
|
29
|
-
>
|
|
30
|
-
<g
|
|
31
|
-
id="quit-large-Close-Icon"
|
|
32
|
-
transform="translate(724.000000, 17.000000)"
|
|
33
|
-
>
|
|
34
|
-
<g id="quit-large-Group" transform="translate(12.000000, 12.000000)">
|
|
35
|
-
<mask id="quit-large-mask-2" fill="white">
|
|
36
|
-
<use xlinkHref="#quit-large-path-1"></use>
|
|
37
|
-
</mask>
|
|
38
|
-
<use
|
|
39
|
-
id="quit-large-Fill-2"
|
|
40
|
-
fill={fill}
|
|
41
|
-
xlinkHref="#quit-large-path-1"
|
|
42
|
-
></use>
|
|
43
|
-
<g mask="url(#quit-large-mask-2)" fill={fill} id="quit-large-⮑🎨">
|
|
44
|
-
<g>
|
|
45
|
-
<rect
|
|
46
|
-
id="quit-large-➝✏️"
|
|
47
|
-
x="0"
|
|
48
|
-
y="0"
|
|
49
|
-
width="24"
|
|
50
|
-
height="24"
|
|
51
|
-
></rect>
|
|
52
|
-
</g>
|
|
53
|
-
</g>
|
|
54
|
-
</g>
|
|
55
|
-
</g>
|
|
56
|
-
</g>
|
|
57
|
-
</g>
|
|
58
|
-
</svg>
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
export default IconQuitLarge;
|
|
@@ -1,47 +0,0 @@
|
|
|
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");
|