@ntbjs/react-components 1.3.0-rc.35 → 1.3.0-rc.36
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.
|
@@ -722,9 +722,9 @@ var AssetGalleryCompactCard = function AssetGalleryCompactCard(props) {
|
|
|
722
722
|
}, getReferenceProps()), React__default["default"].createElement(OverlayBackdrop$1, {
|
|
723
723
|
softSelected: softSelected,
|
|
724
724
|
selected: selected
|
|
725
|
-
}), React__default["default"].createElement(OverlayInfoTopActions$1, {
|
|
725
|
+
}), (asset === null || asset === void 0 ? void 0 : asset.actions) && React__default["default"].createElement(OverlayInfoTopActions$1, {
|
|
726
726
|
isOverlayHovered: isOverlayHovered
|
|
727
|
-
},
|
|
727
|
+
}, React__default["default"].createElement(AssetActionsBase, {
|
|
728
728
|
actions: asset.actions,
|
|
729
729
|
asset: asset
|
|
730
730
|
})), React__default["default"].createElement(OverlayInfo$1, null, isOverlayHovered && React__default["default"].createElement("span", null, asset.title), React__default["default"].createElement(OverlayInfoTop$1, null, React__default["default"].createElement(OverlayInfoTopLeft, {
|
|
@@ -768,7 +768,6 @@ AssetGalleryCompactCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
768
768
|
scrollPosition: defaultTheme.PropTypes.number,
|
|
769
769
|
collapseExtraInfo: defaultTheme.PropTypes.bool,
|
|
770
770
|
activeSummaryCard: defaultTheme.PropTypes.bool,
|
|
771
|
-
actionWidthHeight: defaultTheme.PropTypes.array,
|
|
772
771
|
displayIcon: defaultTheme.PropTypes.oneOf(['versions', 'verifications', ''])
|
|
773
772
|
} : {};
|
|
774
773
|
AssetGalleryCompactCard.defaultProps = {};
|
|
@@ -1738,15 +1737,15 @@ var AssetAction$2 = styled__default["default"].div.attrs(defaultTheme.applyDefau
|
|
|
1738
1737
|
return props.theme.primaryFontFamily;
|
|
1739
1738
|
});
|
|
1740
1739
|
var AssetActionButton = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n border-radius: 50%;\n width: ", ";\n height: ", ";\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);\n ", ";\n svg {\n pointer-events: none;\n width: ", ";\n height: ", ";\n ", ";\n }\n"])), function (props) {
|
|
1741
|
-
return "".concat(props.actionWidthHeight[0], "px");
|
|
1740
|
+
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[0], "px") : 'auto';
|
|
1742
1741
|
}, function (props) {
|
|
1743
|
-
return "".concat(props.actionWidthHeight[1], "px");
|
|
1742
|
+
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[1], "px") : 'auto';
|
|
1744
1743
|
}, function (props) {
|
|
1745
1744
|
return props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
1746
1745
|
}, function (props) {
|
|
1747
|
-
return "".concat(props.actionWidthHeight[0] - 14, "px");
|
|
1746
|
+
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[0] - 14, "px") : 'auto';
|
|
1748
1747
|
}, function (props) {
|
|
1749
|
-
return "".concat(props.actionWidthHeight[1] - 14, "px");
|
|
1748
|
+
return props.actionWidthHeight ? "".concat(props.actionWidthHeight[1] - 14, "px") : 'auto';
|
|
1750
1749
|
}, function (props) {
|
|
1751
1750
|
return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
1752
1751
|
});
|
package/package.json
CHANGED
package/widgets/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var AssetAction = require('../AssetAction-
|
|
5
|
+
var AssetAction = require('../AssetAction-32bdf257.js');
|
|
6
6
|
var ContextMenu = require('../ContextMenu-4eb8fdc5.js');
|
|
7
7
|
var AssetPreviewTopBar = require('../AssetPreviewTopBar-f800a63a.js');
|
|
8
8
|
var Instructions = require('../Instructions-52e8f6dd.js');
|