@thecb/components 9.3.6-beta.0 → 9.3.6-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 +30 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +30 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/MultiCartIcon.d.ts +1 -0
- package/src/components/atoms/icons/MultiCartIcon.js +18 -0
- package/src/components/atoms/icons/ShoppingCartIcon.js +3 -2
- package/src/components/atoms/icons/icons.stories.js +3 -1
- package/src/components/atoms/icons/index.d.ts +1 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/jumbo/Jumbo.js +5 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15277,8 +15277,7 @@ var EmptyCartIcon = function EmptyCartIcon(_ref) {
|
|
|
15277
15277
|
|
|
15278
15278
|
var EmptyCartIcon$1 = themeComponent(EmptyCartIcon, "Icons", fallbackValues$2, "info");
|
|
15279
15279
|
|
|
15280
|
-
var ShoppingCartIcon = function ShoppingCartIcon(
|
|
15281
|
-
var iconFill = _ref.iconFill;
|
|
15280
|
+
var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
15282
15281
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15283
15282
|
width: "32px",
|
|
15284
15283
|
height: "32px",
|
|
@@ -15306,7 +15305,8 @@ var ShoppingCartIcon = function ShoppingCartIcon(_ref) {
|
|
|
15306
15305
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15307
15306
|
d: "M18.7499553,20.499994 C19.348912,20.499994 19.8632339,20.2851508 20.2929204,19.8554643 C20.7226068,19.4257779 20.9374501,18.911456 20.9374501,18.3124993 C20.9374501,17.8958334 20.8267735,17.5117199 20.6054196,17.1601583 C20.3840658,16.8085966 20.0780771,16.5416703 19.6874531,16.3593789 L19.6874531,16.3593789 L19.9218275,15.3828187 C19.9739105,15.0963613 19.9088069,14.835945 19.7265155,14.6015706 C19.544224,14.3671962 19.3098496,14.2500089 19.0233921,14.2500089 L19.0233921,14.2500089 L8.5156047,14.2500089 L8.28123026,13.0000119 L19.7265155,13.0000119 C19.9348481,13.0000119 20.1236501,12.9349077 20.2929204,12.8046999 C20.4621906,12.6744921 20.5728678,12.4922006 20.6249508,12.2578262 L20.6249508,12.2578262 L22.4608839,4.13284556 C22.5390088,3.84638811 22.4869258,3.58597187 22.3046343,3.35159742 C22.1223429,3.11722298 21.8749478,3.00004172 21.5624486,3.00004172 L21.5624486,3.00004172 L6.21092269,3.00004172 L5.85936103,1.24222745 C5.80727802,1.03389482 5.6966008,0.858113985 5.52733057,0.714884961 C5.35806034,0.571655937 5.16925831,0.500041723 4.96092567,0.500041723 L4.96092567,0.500041723 L0.937497765,0.500041723 C0.67708152,0.500041723 0.455728279,0.591187141 0.273436848,0.773478571 C0.0911454173,0.955770002 0,1.17712324 0,1.43753949 L0,1.43753949 L0,2.062538 C0,2.32295424 0.0911454173,2.54430748 0.273436848,2.72659891 C0.455728279,2.90889035 0.67708152,3.00004172 0.937497765,3.00004172 L0.937497765,3.00004172 L3.67186625,3.00004172 L6.40623473,16.3984413 C6.06769367,16.606774 5.80076742,16.8802108 5.60545539,17.2187519 C5.41014335,17.5572929 5.31248733,17.9218752 5.31248733,18.3124993 C5.31248733,18.911456 5.52733057,19.4257779 5.95701705,19.8554643 C6.38670352,20.2851508 6.90102541,20.499994 7.49998212,20.499994 C8.09893883,20.499994 8.61326071,20.2851508 9.04294719,19.8554643 C9.47263367,19.4257779 9.6874769,18.904946 9.6874769,18.2929681 C9.6874769,17.6809901 9.46612307,17.1666689 9.02341599,16.750003 L9.02341599,16.750003 L17.2265214,16.750003 C16.7838143,17.1666689 16.5624605,17.6809901 16.5624605,18.2929681 C16.5624605,18.904946 16.7773037,19.4257779 17.2069902,19.8554643 C17.6366767,20.2851508 18.1509986,20.499994 18.7499553,20.499994 Z",
|
|
15308
15307
|
id: "cart-badge-shopping-cart",
|
|
15309
|
-
fill:
|
|
15308
|
+
fill: "#FFFFFF",
|
|
15309
|
+
fillRule: "nonzero"
|
|
15310
15310
|
})))));
|
|
15311
15311
|
};
|
|
15312
15312
|
|
|
@@ -18300,6 +18300,25 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18300
18300
|
}));
|
|
18301
18301
|
};
|
|
18302
18302
|
|
|
18303
|
+
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18304
|
+
var _ref$iconFill = _ref.iconFill,
|
|
18305
|
+
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18306
|
+
_ref$height = _ref.height,
|
|
18307
|
+
height = _ref$height === void 0 ? 17 : _ref$height,
|
|
18308
|
+
_ref$width = _ref.width,
|
|
18309
|
+
width = _ref$width === void 0 ? 20 : _ref$width;
|
|
18310
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18311
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18312
|
+
width: width,
|
|
18313
|
+
height: height,
|
|
18314
|
+
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18315
|
+
fill: "none"
|
|
18316
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18317
|
+
d: "M17.5312 9.99414C17.4648 10.1934 17.3652 10.3594 17.2324 10.459C17.0996 10.5918 16.9336 10.625 16.7676 10.625H7.03906L7.23828 11.6875H16.1699C16.4023 11.6875 16.6016 11.7871 16.7676 11.9863C16.9004 12.1855 16.9668 12.418 16.9336 12.6504L16.7344 13.4805C17.0664 13.6465 17.2988 13.8789 17.498 14.1777C17.6973 14.4766 17.7969 14.8086 17.7969 15.1406C17.7969 15.6719 17.5977 16.1035 17.2324 16.4688C16.8672 16.834 16.4355 17 15.9375 17C15.4062 17 14.9746 16.834 14.6094 16.4688C14.2441 16.1035 14.0781 15.6719 14.0781 15.1406C14.0781 14.6094 14.2441 14.1777 14.6426 13.8125H7.66992C8.03516 14.1777 8.23438 14.6094 8.23438 15.1406C8.23438 15.6719 8.03516 16.1035 7.66992 16.4688C7.30469 16.834 6.87305 17 6.375 17C5.84375 17 5.41211 16.834 5.04688 16.4688C4.68164 16.1035 4.51562 15.6719 4.51562 15.1406C4.51562 14.8086 4.58203 14.5098 4.74805 14.2109C4.91406 13.9453 5.14648 13.7129 5.44531 13.5137L3.12109 2.125H0.796875C0.564453 2.125 0.365234 2.05859 0.232422 1.89258C0.0664062 1.75977 0 1.56055 0 1.32812V0.796875C0 0.597656 0.0664062 0.398438 0.232422 0.232422C0.365234 0.0996094 0.564453 0 0.796875 0H4.2168C4.38281 0 4.54883 0.0664062 4.68164 0.199219C4.81445 0.332031 4.91406 0.464844 4.98047 0.630859L5.2793 2.125H18.3281C18.5938 2.125 18.793 2.22461 18.959 2.42383C19.0918 2.62305 19.1582 2.85547 19.0918 3.08789L17.5312 9.99414Z",
|
|
18318
|
+
fill: iconFill
|
|
18319
|
+
}));
|
|
18320
|
+
};
|
|
18321
|
+
|
|
18303
18322
|
var color$2 = "#15749D";
|
|
18304
18323
|
var hoverColor$1 = "#116285";
|
|
18305
18324
|
var activeColor$1 = "#0E506D";
|
|
@@ -26725,7 +26744,8 @@ var ImageBox = function ImageBox(_ref) {
|
|
|
26725
26744
|
};
|
|
26726
26745
|
|
|
26727
26746
|
var Jumbo = function Jumbo(_ref) {
|
|
26728
|
-
var
|
|
26747
|
+
var themeValues = _ref.themeValues,
|
|
26748
|
+
showButton = _ref.showButton,
|
|
26729
26749
|
heading = _ref.heading,
|
|
26730
26750
|
buttonLink = _ref.buttonLink,
|
|
26731
26751
|
subHeading = _ref.subHeading,
|
|
@@ -26741,7 +26761,8 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26741
26761
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
26742
26762
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
26743
26763
|
openCartSlider = _ref.openCartSlider,
|
|
26744
|
-
extraStyles = _ref.extraStyles
|
|
26764
|
+
extraStyles = _ref.extraStyles,
|
|
26765
|
+
cartStatusExtraStyles = _ref.cartStatusExtraStyles;
|
|
26745
26766
|
|
|
26746
26767
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26747
26768
|
isMobile = _useContext.isMobile;
|
|
@@ -26766,7 +26787,8 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26766
26787
|
minHeight: "100%",
|
|
26767
26788
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
26768
26789
|
align: "center",
|
|
26769
|
-
nowrap: showCartStatus
|
|
26790
|
+
nowrap: showCartStatus,
|
|
26791
|
+
extraStyles: cartStatusExtraStyles
|
|
26770
26792
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
26771
26793
|
variant: isMobile ? "small" : "large",
|
|
26772
26794
|
as: "h1",
|
|
@@ -26783,6 +26805,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26783
26805
|
variant: "primary",
|
|
26784
26806
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
26785
26807
|
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
26808
|
+
themeValues: themeValues,
|
|
26786
26809
|
total: total,
|
|
26787
26810
|
itemsCount: itemsCount,
|
|
26788
26811
|
openCart: openCartSlider
|
|
@@ -50034,6 +50057,7 @@ exports.LoginForm = LoginForm;
|
|
|
50034
50057
|
exports.Modal = Modal$1;
|
|
50035
50058
|
exports.Module = Module$1;
|
|
50036
50059
|
exports.Motion = Motion;
|
|
50060
|
+
exports.MultiCartIcon = MultiCartIcon;
|
|
50037
50061
|
exports.NavFooter = NavFooter;
|
|
50038
50062
|
exports.NavHeader = NavHeader;
|
|
50039
50063
|
exports.NavMenuDesktop = NavMenuDesktop$1;
|