@thecb/components 4.2.7-beta.10 → 4.2.7-beta.2
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 +72 -200
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +1 -2
- package/src/components/atoms/button-with-action/ButtonWithAction.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/atoms/layouts/Switcher.js +0 -7
- package/src/components/atoms/layouts/Switcher.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,
|
|
@@ -6919,7 +6898,7 @@ function _templateObject3$2() {
|
|
|
6919
6898
|
}
|
|
6920
6899
|
|
|
6921
6900
|
function _templateObject2$4() {
|
|
6922
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n overflow: hidden;\n padding: ", ";\n margin: ", ";\n
|
|
6901
|
+
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n overflow: hidden;\n padding: ", ";\n margin: ", ";\n\n > * {\n flex-grow: 1;\n ", ";\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n"]);
|
|
6923
6902
|
|
|
6924
6903
|
_templateObject2$4 = function _templateObject2() {
|
|
6925
6904
|
return data;
|
|
@@ -6945,28 +6924,22 @@ var SwitcherInnerContainer = styled__default.div(_templateObject2$4(), function
|
|
|
6945
6924
|
var childGap = _ref2.childGap;
|
|
6946
6925
|
return "calc((".concat(childGap, " / 2) * -1)");
|
|
6947
6926
|
}, function (_ref3) {
|
|
6948
|
-
var
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
var maxChildrenOnly = _ref4.maxChildrenOnly,
|
|
6952
|
-
breakpoint = _ref4.breakpoint,
|
|
6953
|
-
childGap = _ref4.childGap;
|
|
6927
|
+
var maxChildrenOnly = _ref3.maxChildrenOnly,
|
|
6928
|
+
breakpoint = _ref3.breakpoint,
|
|
6929
|
+
childGap = _ref3.childGap;
|
|
6954
6930
|
return !maxChildrenOnly ? "flex-basis: calc((".concat(breakpoint, " - (100% - ").concat(childGap, ")) * 999);") : "";
|
|
6955
|
-
}, function (
|
|
6956
|
-
var childGap =
|
|
6931
|
+
}, function (_ref4) {
|
|
6932
|
+
var childGap = _ref4.childGap;
|
|
6957
6933
|
return "margin: calc(".concat(childGap, " / 2);");
|
|
6958
|
-
}, function (
|
|
6959
|
-
var
|
|
6960
|
-
|
|
6961
|
-
}, function (_ref7) {
|
|
6962
|
-
var largeChild = _ref7.largeChild,
|
|
6963
|
-
largeChildSize = _ref7.largeChildSize;
|
|
6934
|
+
}, function (_ref5) {
|
|
6935
|
+
var largeChild = _ref5.largeChild,
|
|
6936
|
+
largeChildSize = _ref5.largeChildSize;
|
|
6964
6937
|
return largeChild && largeChildSize ? "> :nth-child(".concat(largeChild, ") {\n flex-grow: ").concat(largeChildSize, ";\n }") : "";
|
|
6965
|
-
}, function (
|
|
6966
|
-
var maxChildren =
|
|
6938
|
+
}, function (_ref6) {
|
|
6939
|
+
var maxChildren = _ref6.maxChildren;
|
|
6967
6940
|
return maxChildren ? "> :nth-last-child(".concat(maxChildren + 1, "), > :nth-last-child(").concat(maxChildren + 1, ") ~ * {\n flex-basis: 100%;\n }") : "";
|
|
6968
|
-
}, function (
|
|
6969
|
-
var extraStyles =
|
|
6941
|
+
}, function (_ref7) {
|
|
6942
|
+
var extraStyles = _ref7.extraStyles;
|
|
6970
6943
|
return styled.css(_templateObject3$2(), extraStyles);
|
|
6971
6944
|
});
|
|
6972
6945
|
|
|
@@ -6995,11 +6968,6 @@ var SwitcherInnerContainer = styled__default.div(_templateObject2$4(), function
|
|
|
6995
6968
|
products/services should share the same width no matter the orientation, otherwise
|
|
6996
6969
|
one or more cards could be perceived as highlighted or featured in some way. Or
|
|
6997
6970
|
a set of numbered steps in, for example, a list of items to complete or tasks to do."
|
|
6998
|
-
|
|
6999
|
-
New: Set the "constrainMobile" prop to true in order to prevent switcher content from
|
|
7000
|
-
overflowing the mobile viewport:
|
|
7001
|
-
|
|
7002
|
-
<Switcher constrainMobile={isMobile} />
|
|
7003
6971
|
*/
|
|
7004
6972
|
|
|
7005
6973
|
var Switcher = function Switcher(_ref) {
|
|
@@ -7016,9 +6984,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
7016
6984
|
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
7017
6985
|
children = _ref.children,
|
|
7018
6986
|
extraStyles = _ref.extraStyles,
|
|
7019
|
-
|
|
7020
|
-
constrainMobile = _ref$constrainMobile === void 0 ? false : _ref$constrainMobile,
|
|
7021
|
-
rest = _objectWithoutProperties(_ref, ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"]);
|
|
6987
|
+
rest = _objectWithoutProperties(_ref, ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles"]);
|
|
7022
6988
|
|
|
7023
6989
|
return /*#__PURE__*/React__default.createElement(SwitcherOuterContainer, null, /*#__PURE__*/React__default.createElement(SwitcherInnerContainer, _extends({
|
|
7024
6990
|
breakpoint: breakpoint,
|
|
@@ -7028,8 +6994,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
7028
6994
|
maxChildren: maxChildren,
|
|
7029
6995
|
maxChildrenOnly: maxChildrenOnly,
|
|
7030
6996
|
padding: padding,
|
|
7031
|
-
extraStyles: extraStyles
|
|
7032
|
-
constrainMobile: constrainMobile
|
|
6997
|
+
extraStyles: extraStyles
|
|
7033
6998
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
7034
6999
|
};
|
|
7035
7000
|
|
|
@@ -12727,7 +12692,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12727
12692
|
var isMobile = themeContext.isMobile;
|
|
12728
12693
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
|
|
12729
12694
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12730
|
-
var disabledStyles = "\n background-
|
|
12695
|
+
var disabledStyles = "\n background-clor: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6D717E;\n outline: none;\n }\n ";
|
|
12731
12696
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
12732
12697
|
variant: variant,
|
|
12733
12698
|
padding: themeValues.padding,
|
|
@@ -13775,93 +13740,6 @@ var IconAdd = function IconAdd() {
|
|
|
13775
13740
|
}))))));
|
|
13776
13741
|
};
|
|
13777
13742
|
|
|
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
13743
|
var TimeoutImage = function TimeoutImage() {
|
|
13866
13744
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13867
13745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14942,45 +14820,6 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
14942
14820
|
})))));
|
|
14943
14821
|
};
|
|
14944
14822
|
|
|
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
14823
|
var color$2 = "#15749D";
|
|
14985
14824
|
var hoverColor$1 = "#116285";
|
|
14986
14825
|
var activeColor$1 = "#0E506D";
|
|
@@ -15335,6 +15174,43 @@ var AlertWarningIcon = function AlertWarningIcon() {
|
|
|
15335
15174
|
})))));
|
|
15336
15175
|
};
|
|
15337
15176
|
|
|
15177
|
+
var IconQuit = function IconQuit(_ref) {
|
|
15178
|
+
var _ref$fill = _ref.fill,
|
|
15179
|
+
fill = _ref$fill === void 0 ? MINESHAFT_GREY : _ref$fill,
|
|
15180
|
+
_ref$width = _ref.width,
|
|
15181
|
+
width = _ref$width === void 0 ? "24px" : _ref$width,
|
|
15182
|
+
_ref$height = _ref.height,
|
|
15183
|
+
height = _ref$height === void 0 ? "24px" : _ref$height;
|
|
15184
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15185
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15186
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15187
|
+
width: width,
|
|
15188
|
+
height: height,
|
|
15189
|
+
viewBox: "0 0 24 24"
|
|
15190
|
+
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
15191
|
+
id: "quit",
|
|
15192
|
+
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"
|
|
15193
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
15194
|
+
fill: "none",
|
|
15195
|
+
fillRule: "evenodd",
|
|
15196
|
+
stroke: "none",
|
|
15197
|
+
strokeWidth: "1"
|
|
15198
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
15199
|
+
id: "quitMask",
|
|
15200
|
+
fill: "#fff"
|
|
15201
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
15202
|
+
xlinkHref: "#quit"
|
|
15203
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
15204
|
+
fill: fill,
|
|
15205
|
+
xlinkHref: "#quit"
|
|
15206
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
15207
|
+
fill: fill,
|
|
15208
|
+
mask: "url(#quitMask)"
|
|
15209
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15210
|
+
d: "M0 0H24V24H0z"
|
|
15211
|
+
}))));
|
|
15212
|
+
};
|
|
15213
|
+
|
|
15338
15214
|
var AlertIcons = {
|
|
15339
15215
|
error: AlertErrorIcon,
|
|
15340
15216
|
info: AlertInfoIcon,
|
|
@@ -34856,8 +34732,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34856
34732
|
key: "header",
|
|
34857
34733
|
hoverStyles: "cursor: pointer;",
|
|
34858
34734
|
tabIndex: "0",
|
|
34859
|
-
onKeyDown: handleKeyDown
|
|
34860
|
-
extraStyles: "z-index: 25;"
|
|
34735
|
+
onKeyDown: handleKeyDown
|
|
34861
34736
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34862
34737
|
justify: "space-between",
|
|
34863
34738
|
align: "center"
|
|
@@ -34882,7 +34757,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34882
34757
|
initial: initiallyOpen ? "open" : "closed",
|
|
34883
34758
|
exit: "closed",
|
|
34884
34759
|
variants: wrapper,
|
|
34885
|
-
extraStyles: "transform-origin: 100% 0;
|
|
34760
|
+
extraStyles: "transform-origin: 100% 0;"
|
|
34886
34761
|
}, children))));
|
|
34887
34762
|
};
|
|
34888
34763
|
|
|
@@ -40982,8 +40857,6 @@ exports.HamburgerButton = HamburgerButton;
|
|
|
40982
40857
|
exports.Heading = Heading$1;
|
|
40983
40858
|
exports.HighlightTabRow = HighlightTabRow$1;
|
|
40984
40859
|
exports.IconAdd = IconAdd;
|
|
40985
|
-
exports.IconQuit = IconQuit;
|
|
40986
|
-
exports.IconQuitLarge = IconQuitLarge;
|
|
40987
40860
|
exports.Imposter = Imposter;
|
|
40988
40861
|
exports.InternalLink = InternalLink;
|
|
40989
40862
|
exports.Jumbo = Jumbo$1;
|
|
@@ -41053,7 +40926,6 @@ exports.Text = Text$1;
|
|
|
41053
40926
|
exports.Timeout = Timeout$1;
|
|
41054
40927
|
exports.TimeoutImage = TimeoutImage;
|
|
41055
40928
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
41056
|
-
exports.TrashIcon = TrashIcon$1;
|
|
41057
40929
|
exports.TypeaheadInput = TypeaheadInput;
|
|
41058
40930
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
41059
40931
|
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";
|
|
@@ -102,10 +102,9 @@ const ButtonWithAction = ({
|
|
|
102
102
|
};
|
|
103
103
|
`;
|
|
104
104
|
const disabledStyles = `
|
|
105
|
-
background-
|
|
105
|
+
background-clor: #6D717E;
|
|
106
106
|
border-color: #6D717E;
|
|
107
107
|
color: #FFFFFF;
|
|
108
|
-
cursor: default;
|
|
109
108
|
&:focus {
|
|
110
109
|
box-shadow: 0 0 10px #6D717E;
|
|
111
110
|
outline: none;
|
|
@@ -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`
|
|
@@ -30,11 +30,6 @@ import {
|
|
|
30
30
|
products/services should share the same width no matter the orientation, otherwise
|
|
31
31
|
one or more cards could be perceived as highlighted or featured in some way. Or
|
|
32
32
|
a set of numbered steps in, for example, a list of items to complete or tasks to do."
|
|
33
|
-
|
|
34
|
-
New: Set the "constrainMobile" prop to true in order to prevent switcher content from
|
|
35
|
-
overflowing the mobile viewport:
|
|
36
|
-
|
|
37
|
-
<Switcher constrainMobile={isMobile} />
|
|
38
33
|
*/
|
|
39
34
|
|
|
40
35
|
const Switcher = ({
|
|
@@ -47,7 +42,6 @@ const Switcher = ({
|
|
|
47
42
|
padding = "0",
|
|
48
43
|
children,
|
|
49
44
|
extraStyles,
|
|
50
|
-
constrainMobile = false,
|
|
51
45
|
...rest
|
|
52
46
|
}) => (
|
|
53
47
|
<SwitcherOuterContainer>
|
|
@@ -60,7 +54,6 @@ const Switcher = ({
|
|
|
60
54
|
maxChildrenOnly={maxChildrenOnly}
|
|
61
55
|
padding={padding}
|
|
62
56
|
extraStyles={extraStyles}
|
|
63
|
-
constrainMobile={constrainMobile}
|
|
64
57
|
{...rest}
|
|
65
58
|
>
|
|
66
59
|
{safeChildren(children, <Fragment />)}
|
|
@@ -12,8 +12,6 @@ export const SwitcherInnerContainer = styled.div`
|
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
padding: ${({ padding }) => padding};
|
|
14
14
|
margin: ${({ childGap }) => `calc((${childGap} / 2) * -1)`};
|
|
15
|
-
${({ constrainMobile }) =>
|
|
16
|
-
constrainMobile && `max-width: 100%; margin-left: 0; margin-right: 0;`}
|
|
17
15
|
|
|
18
16
|
> * {
|
|
19
17
|
flex-grow: 1;
|
|
@@ -22,8 +20,6 @@ export const SwitcherInnerContainer = styled.div`
|
|
|
22
20
|
? `flex-basis: calc((${breakpoint} - (100% - ${childGap})) * 999);`
|
|
23
21
|
: ``};
|
|
24
22
|
${({ childGap }) => `margin: calc(${childGap} / 2);`}
|
|
25
|
-
${({ constrainMobile }) =>
|
|
26
|
-
constrainMobile && `margin-left: 0; margin-right: 0;`}
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
${({ largeChild, largeChildSize }) =>
|
|
@@ -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");
|