@thecb/components 10.1.2-beta.4 → 10.1.2-beta.6
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 +61 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +60 -22
- 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/{CartIcon.js → MultiCartIcon.js} +6 -6
- package/src/{deprecated → components/atoms}/icons/ShoppingCartIcon.js +1 -1
- 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 +5 -3
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -1
- package/src/deprecated/icons/index.js +1 -3
package/dist/index.cjs.js
CHANGED
|
@@ -15278,28 +15278,37 @@ var EmptyCartIcon = function EmptyCartIcon(_ref) {
|
|
|
15278
15278
|
|
|
15279
15279
|
var EmptyCartIcon$1 = themeComponent(EmptyCartIcon, "Icons", fallbackValues$2, "info");
|
|
15280
15280
|
|
|
15281
|
-
var
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
iconWidth = _ref$iconWidth === void 0 ? "25" : _ref$iconWidth,
|
|
15288
|
-
_ref$iconHeight = _ref.iconHeight,
|
|
15289
|
-
iconHeight = _ref$iconHeight === void 0 ? "25" : _ref$iconHeight,
|
|
15290
|
-
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
15291
|
-
|
|
15292
|
-
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
15281
|
+
var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
15282
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15283
|
+
width: "32px",
|
|
15284
|
+
height: "32px",
|
|
15285
|
+
viewBox: "0 0 32 32",
|
|
15286
|
+
version: "1.1",
|
|
15293
15287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
},
|
|
15288
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
15289
|
+
}, /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("filter", {
|
|
15290
|
+
id: "cart-badge-filter-1"
|
|
15291
|
+
}, /*#__PURE__*/React__default.createElement("feColorMatrix", {
|
|
15292
|
+
"in": "SourceGraphic",
|
|
15293
|
+
type: "matrix",
|
|
15294
|
+
values: "0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"
|
|
15295
|
+
}))), /*#__PURE__*/React__default.createElement("g", {
|
|
15296
|
+
id: "cart-badge-Icon---Cart-Empty",
|
|
15297
|
+
stroke: "none",
|
|
15298
|
+
strokeWidth: "1",
|
|
15299
|
+
fill: "none",
|
|
15300
|
+
fillRule: "evenodd"
|
|
15301
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15302
|
+
filter: "url(#cart-badge-filter-1)",
|
|
15303
|
+
id: "cart-badge-Group"
|
|
15304
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15305
|
+
transform: "translate(3.000000, 7.000000)"
|
|
15306
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15298
15307
|
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",
|
|
15299
15308
|
id: "cart-badge-shopping-cart",
|
|
15300
|
-
fill:
|
|
15309
|
+
fill: "#FFFFFF",
|
|
15301
15310
|
fillRule: "nonzero"
|
|
15302
|
-
}));
|
|
15311
|
+
})))));
|
|
15303
15312
|
};
|
|
15304
15313
|
|
|
15305
15314
|
var TrashIcon = function TrashIcon(_ref) {
|
|
@@ -18292,6 +18301,30 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18292
18301
|
}));
|
|
18293
18302
|
};
|
|
18294
18303
|
|
|
18304
|
+
var _excluded$i = ["iconFill", "iconWidth", "iconHeight"];
|
|
18305
|
+
|
|
18306
|
+
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18307
|
+
var _ref$iconFill = _ref.iconFill,
|
|
18308
|
+
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18309
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18310
|
+
iconWidth = _ref$iconWidth === void 0 ? "20" : _ref$iconWidth,
|
|
18311
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18312
|
+
iconHeight = _ref$iconHeight === void 0 ? "17" : _ref$iconHeight,
|
|
18313
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
18314
|
+
|
|
18315
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18317
|
+
width: iconWidth,
|
|
18318
|
+
height: iconHeight,
|
|
18319
|
+
viewBox: "0 0 24.81 22.06"
|
|
18320
|
+
}, rest), /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("path", {
|
|
18321
|
+
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",
|
|
18322
|
+
id: "cart-badge-shopping-cart",
|
|
18323
|
+
fill: iconFill,
|
|
18324
|
+
fillRule: "nonzero"
|
|
18325
|
+
}));
|
|
18326
|
+
};
|
|
18327
|
+
|
|
18295
18328
|
var color$2 = "#15749D";
|
|
18296
18329
|
var hoverColor$1 = "#116285";
|
|
18297
18330
|
var activeColor$1 = "#0E506D";
|
|
@@ -47371,7 +47404,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47371
47404
|
_ref$hideForwardButto = _ref.hideForwardButton,
|
|
47372
47405
|
hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto,
|
|
47373
47406
|
_ref$hideBackButton = _ref.hideBackButton,
|
|
47374
|
-
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton
|
|
47407
|
+
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton,
|
|
47408
|
+
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47409
|
+
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47410
|
+
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47411
|
+
additionalButton = _ref.additionalButton;
|
|
47375
47412
|
|
|
47376
47413
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47377
47414
|
isMobile = _useContext.isMobile;
|
|
@@ -47419,8 +47456,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47419
47456
|
padding: "2.5rem 0 3.125rem 0"
|
|
47420
47457
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47421
47458
|
justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
|
|
47422
|
-
align: "center"
|
|
47423
|
-
|
|
47459
|
+
align: "center",
|
|
47460
|
+
extraStyles: buttonGroupStyles
|
|
47461
|
+
}, !hideBackButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, backButton), !hideForwardButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, forwardButton), !hideAdditionalButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, additionalButton))));
|
|
47424
47462
|
};
|
|
47425
47463
|
|
|
47426
47464
|
var backgroundColor$c = {
|
|
@@ -50066,7 +50104,6 @@ exports.ButtonWithLink = ButtonWithLink;
|
|
|
50066
50104
|
exports.CalendarIcon = CalendarIcon;
|
|
50067
50105
|
exports.Card = Card$1;
|
|
50068
50106
|
exports.CarrotIcon = CarrotIcon$1;
|
|
50069
|
-
exports.CartIcon = CartIcon;
|
|
50070
50107
|
exports.CashIcon = CashIcon;
|
|
50071
50108
|
exports.Center = Center;
|
|
50072
50109
|
exports.CenterSingle = CenterSingle$1;
|
|
@@ -50145,6 +50182,7 @@ exports.LoginForm = LoginForm;
|
|
|
50145
50182
|
exports.Modal = Modal$1;
|
|
50146
50183
|
exports.Module = Module$1;
|
|
50147
50184
|
exports.Motion = Motion;
|
|
50185
|
+
exports.MultiCartIcon = MultiCartIcon;
|
|
50148
50186
|
exports.NavFooter = NavFooter;
|
|
50149
50187
|
exports.NavHeader = NavHeader;
|
|
50150
50188
|
exports.NavMenuDesktop = NavMenuDesktop$1;
|
|
@@ -50202,6 +50240,7 @@ exports.RoutingNumberImage = RoutingNumberImage;
|
|
|
50202
50240
|
exports.SearchIcon = SearchIcon;
|
|
50203
50241
|
exports.SearchableSelect = SearchableSelect$1;
|
|
50204
50242
|
exports.SettingsIconSmall = SettingsIconSmall$1;
|
|
50243
|
+
exports.ShoppingCartIcon = ShoppingCartIcon;
|
|
50205
50244
|
exports.Sidebar = Sidebar;
|
|
50206
50245
|
exports.SidebarSingleContent = SidebarSingleContent$1;
|
|
50207
50246
|
exports.SidebarStackContent = SidebarStackContent$1;
|