@citygross/components 0.21.1 → 0.21.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.
|
@@ -26,11 +26,11 @@ exports.EListItemAlignment = void 0;
|
|
|
26
26
|
})(exports.EListItemAlignment || (exports.EListItemAlignment = {}));
|
|
27
27
|
var ListItem = function (_a) {
|
|
28
28
|
var _b, _c, _d;
|
|
29
|
-
var _e = _a.alignment, alignment = _e === void 0 ? exports.EListItemAlignment.CENTER : _e, children = _a.children, checkboxes = _a.checkboxes, fallBackImage = _a.fallBackImage, checkboxLegendLabel = _a.checkboxLegendLabel, imageAutoHeight = _a.imageAutoHeight, item = _a.item, isSmall = _a.isSmall, label = _a.label,
|
|
29
|
+
var _e = _a.alignment, alignment = _e === void 0 ? exports.EListItemAlignment.CENTER : _e, children = _a.children, checkboxes = _a.checkboxes, fallBackImage = _a.fallBackImage, checkboxLegendLabel = _a.checkboxLegendLabel, _f = _a.imageAlt, imageAlt = _f === void 0 ? '' : _f, imageAutoHeight = _a.imageAutoHeight, item = _a.item, isSmall = _a.isSmall, label = _a.label, _g = _a.loading, loading = _g === void 0 ? false : _g, _h = _a.showPriceStripe, showPriceStripe = _h === void 0 ? false : _h, smallSkeleton = _a.smallSkeleton;
|
|
30
30
|
return (React__default["default"].createElement(ListItem_styles.ListItemContainer, null,
|
|
31
31
|
React__default["default"].createElement(ListItem_styles.ListLeft, { alignment: alignment },
|
|
32
32
|
React__default["default"].createElement(ListItem_styles.ListImageContainer, { isSmall: isSmall },
|
|
33
|
-
React__default["default"].createElement(ListItem_styles.ListImage, { autoHeight: imageAutoHeight, src: item === null || item === void 0 ? void 0 : item.image, alt:
|
|
33
|
+
React__default["default"].createElement(ListItem_styles.ListImage, { autoHeight: imageAutoHeight, src: item === null || item === void 0 ? void 0 : item.image, alt: imageAlt, isSmall: isSmall, onError: function (e) {
|
|
34
34
|
if (fallBackImage) {
|
|
35
35
|
var target = e.target;
|
|
36
36
|
if (!target.dataset.fallback) {
|
|
@@ -17,11 +17,11 @@ var EListItemAlignment;
|
|
|
17
17
|
})(EListItemAlignment || (EListItemAlignment = {}));
|
|
18
18
|
var ListItem = function (_a) {
|
|
19
19
|
var _b, _c, _d;
|
|
20
|
-
var _e = _a.alignment, alignment = _e === void 0 ? EListItemAlignment.CENTER : _e, children = _a.children, checkboxes = _a.checkboxes, fallBackImage = _a.fallBackImage, checkboxLegendLabel = _a.checkboxLegendLabel, imageAutoHeight = _a.imageAutoHeight, item = _a.item, isSmall = _a.isSmall, label = _a.label,
|
|
20
|
+
var _e = _a.alignment, alignment = _e === void 0 ? EListItemAlignment.CENTER : _e, children = _a.children, checkboxes = _a.checkboxes, fallBackImage = _a.fallBackImage, checkboxLegendLabel = _a.checkboxLegendLabel, _f = _a.imageAlt, imageAlt = _f === void 0 ? '' : _f, imageAutoHeight = _a.imageAutoHeight, item = _a.item, isSmall = _a.isSmall, label = _a.label, _g = _a.loading, loading = _g === void 0 ? false : _g, _h = _a.showPriceStripe, showPriceStripe = _h === void 0 ? false : _h, smallSkeleton = _a.smallSkeleton;
|
|
21
21
|
return (React.createElement(ListItemContainer, null,
|
|
22
22
|
React.createElement(ListLeft, { alignment: alignment },
|
|
23
23
|
React.createElement(ListImageContainer, { isSmall: isSmall },
|
|
24
|
-
React.createElement(ListImage, { autoHeight: imageAutoHeight, src: item === null || item === void 0 ? void 0 : item.image, alt:
|
|
24
|
+
React.createElement(ListImage, { autoHeight: imageAutoHeight, src: item === null || item === void 0 ? void 0 : item.image, alt: imageAlt, isSmall: isSmall, onError: function (e) {
|
|
25
25
|
if (fallBackImage) {
|
|
26
26
|
var target = e.target;
|
|
27
27
|
if (!target.dataset.fallback) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"react-slick": "^0.30.1",
|
|
77
77
|
"slick-carousel": "^1.8.1"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c93ef26954c59a6604f9941a859f635cc141d8a4"
|
|
80
80
|
}
|