@ntbjs/react-components 1.2.0-rc.57 → 1.2.0-rc.59
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/{ActionButton-06df3d6c.js → ActionButton-46735b89.js} +13 -5
- package/{AssetGallery-90a491d3.js → AssetGallery-afd76086.js} +15 -8
- package/inputs/ActionButton/index.js +1 -1
- package/inputs/index.js +1 -1
- package/package.json +1 -1
- package/widgets/AssetGallery/index.js +2 -2
- package/widgets/index.js +2 -2
|
@@ -11,7 +11,11 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
13
|
var _templateObject, _templateObject2;
|
|
14
|
-
var ActionButton$1 = styled__default['default'].button.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n
|
|
14
|
+
var ActionButton$1 = styled__default['default'].button.attrs(defaultTheme.applyDefaultTheme)(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ", ";\n height: ", ";\n border: 0;\n color: inherit;\n background-color: transparent;\n ", "\n background-position: center;\n background-repeat: no-repeat;\n background-size: 0 0;\n transition: background-size 250ms ease;\n cursor: pointer;\n\n ", "\n\n ", "\n\n &:disabled {\n opacity: 0.5;\n color: inherit;\n cursor: not-allowed;\n }\n\n svg {\n width: 100%;\n max-height: 20px;\n max-width: 20px;\n pointer-events: none;\n transition: color 250ms;\n }\n"])), function (props) {
|
|
15
|
+
return "".concat(props.buttonWidthHeight[0], "px");
|
|
16
|
+
}, function (props) {
|
|
17
|
+
return "".concat(props.buttonWidthHeight[1], "px");
|
|
18
|
+
}, function (props) {
|
|
15
19
|
var _props$backgroundColo, _props$backgroundColo2, _props$backgroundColo3, _props$backgroundColo4;
|
|
16
20
|
|
|
17
21
|
var darkThemeBgColor = (_props$backgroundColo = props === null || props === void 0 ? void 0 : (_props$backgroundColo2 = props.backgroundColors) === null || _props$backgroundColo2 === void 0 ? void 0 : _props$backgroundColo2[0]) !== null && _props$backgroundColo !== void 0 ? _props$backgroundColo : props.theme.getColor('gray-600');
|
|
@@ -30,13 +34,15 @@ var ActionButton = React__default['default'].forwardRef(function ActionButton(_r
|
|
|
30
34
|
disabled = _ref.disabled,
|
|
31
35
|
active = _ref.active,
|
|
32
36
|
onClick = _ref.onClick,
|
|
33
|
-
|
|
37
|
+
buttonWidthHeight = _ref.buttonWidthHeight,
|
|
38
|
+
props = defaultTheme._objectWithoutProperties(_ref, ["icon", "disabled", "active", "onClick", "buttonWidthHeight"]);
|
|
34
39
|
|
|
35
40
|
return React__default['default'].createElement(ActionButton$1, defaultTheme._extends({
|
|
36
41
|
ref: forwardedRef,
|
|
37
42
|
disabled: disabled,
|
|
38
43
|
active: active,
|
|
39
|
-
onClick: onClick
|
|
44
|
+
onClick: onClick,
|
|
45
|
+
buttonWidthHeight: buttonWidthHeight
|
|
40
46
|
}, props), icon);
|
|
41
47
|
});
|
|
42
48
|
ActionButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -44,10 +50,12 @@ ActionButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
44
50
|
disabled: defaultTheme.PropTypes.bool,
|
|
45
51
|
active: defaultTheme.PropTypes.bool,
|
|
46
52
|
onClick: defaultTheme.PropTypes.func,
|
|
47
|
-
backgroundColors: defaultTheme.PropTypes.arrayOf(defaultTheme.PropTypes.string)
|
|
53
|
+
backgroundColors: defaultTheme.PropTypes.arrayOf(defaultTheme.PropTypes.string),
|
|
54
|
+
buttonWidthHeight: defaultTheme.PropTypes.array
|
|
48
55
|
} : {};
|
|
49
56
|
ActionButton.defaultProps = {
|
|
50
|
-
onClick: function onClick() {}
|
|
57
|
+
onClick: function onClick() {},
|
|
58
|
+
buttonWidthHeight: [40, 40]
|
|
51
59
|
};
|
|
52
60
|
|
|
53
61
|
exports.ActionButton = ActionButton;
|
|
@@ -16,7 +16,7 @@ require('./Tab-f499ecbc.js');
|
|
|
16
16
|
require('./Tabs-4d7742bc.js');
|
|
17
17
|
var Tooltip = require('./Tooltip-66daf6e3.js');
|
|
18
18
|
require('./VerificationStatusIcon-b574fd21.js');
|
|
19
|
-
var ActionButton = require('./ActionButton-
|
|
19
|
+
var ActionButton = require('./ActionButton-46735b89.js');
|
|
20
20
|
require('./Button-49f82b31.js');
|
|
21
21
|
require('./Checkbox-68dc38a8.js');
|
|
22
22
|
require('./CompactAutocompleteSelect-87c8c7e7.js');
|
|
@@ -434,7 +434,8 @@ var ComputedActionButton$1 = React__default['default'].forwardRef(function Compu
|
|
|
434
434
|
className: className,
|
|
435
435
|
icon: newProps.icon,
|
|
436
436
|
backgroundColors: ['black', 'white'],
|
|
437
|
-
onClick: newProps.onClick
|
|
437
|
+
onClick: newProps.onClick,
|
|
438
|
+
buttonWidthHeight: newProps.actionButtonWidthHeight
|
|
438
439
|
}));
|
|
439
440
|
} else {
|
|
440
441
|
newProps.children = React__default['default'].createElement(ActionButton.ActionButton, {
|
|
@@ -444,7 +445,8 @@ var ComputedActionButton$1 = React__default['default'].forwardRef(function Compu
|
|
|
444
445
|
className: className,
|
|
445
446
|
icon: newProps.icon,
|
|
446
447
|
onClick: newProps.onClick,
|
|
447
|
-
backgroundColors: ['black', 'white']
|
|
448
|
+
backgroundColors: ['black', 'white'],
|
|
449
|
+
buttonWidthHeight: newProps.actionButtonWidthHeight
|
|
448
450
|
});
|
|
449
451
|
}
|
|
450
452
|
|
|
@@ -773,7 +775,8 @@ var AssetGalleryCompactCard = function AssetGalleryCompactCard(props) {
|
|
|
773
775
|
subActions: action.subActions,
|
|
774
776
|
onClick: function onClick(event) {
|
|
775
777
|
return onActionClick(event, action, index);
|
|
776
|
-
}
|
|
778
|
+
},
|
|
779
|
+
actionButtonWidthHeight: action.actionButtonWidthHeight
|
|
777
780
|
}));
|
|
778
781
|
})), React__default['default'].createElement(OverlayInfo$1, null, React__default['default'].createElement(OverlayInfoTop$1, null, React__default['default'].createElement(OverlayInfoTopVersions$1, {
|
|
779
782
|
collapseExtraInfo: collapseExtraInfo
|
|
@@ -844,7 +847,8 @@ AssetGalleryCompactCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
844
847
|
component: defaultTheme.PropTypes.func,
|
|
845
848
|
scrollPosition: defaultTheme.PropTypes.number,
|
|
846
849
|
collapseExtraInfo: defaultTheme.PropTypes.bool,
|
|
847
|
-
activeSummaryCard: defaultTheme.PropTypes.bool
|
|
850
|
+
activeSummaryCard: defaultTheme.PropTypes.bool,
|
|
851
|
+
actionButtonWidthHeight: defaultTheme.PropTypes.array
|
|
848
852
|
} : {};
|
|
849
853
|
AssetGalleryCompactCard.defaultProps = {};
|
|
850
854
|
var AssetGalleryCompactCard$1 = reactLazyLoadImageComponent.trackWindowScroll(React__default['default'].memo(AssetGalleryCompactCard, function (prevProps, nextProps) {
|
|
@@ -994,7 +998,8 @@ var ComputedActionButton = React__default['default'].forwardRef(function Compute
|
|
|
994
998
|
className: className,
|
|
995
999
|
icon: newProps.icon,
|
|
996
1000
|
backgroundColors: ['black', 'white'],
|
|
997
|
-
onClick: newProps.onClick
|
|
1001
|
+
onClick: newProps.onClick,
|
|
1002
|
+
buttonWidthHeight: newProps.actionButtonWidthHeight
|
|
998
1003
|
}));
|
|
999
1004
|
} else {
|
|
1000
1005
|
newProps.children = React__default['default'].createElement(ActionButton.ActionButton, {
|
|
@@ -1004,7 +1009,8 @@ var ComputedActionButton = React__default['default'].forwardRef(function Compute
|
|
|
1004
1009
|
className: className,
|
|
1005
1010
|
icon: newProps.icon,
|
|
1006
1011
|
onClick: newProps.onClick,
|
|
1007
|
-
backgroundColors: ['black', 'white']
|
|
1012
|
+
backgroundColors: ['black', 'white'],
|
|
1013
|
+
buttonWidthHeight: newProps.actionButtonWidthHeight
|
|
1008
1014
|
});
|
|
1009
1015
|
}
|
|
1010
1016
|
|
|
@@ -1204,7 +1210,8 @@ var AssetGalleryGridCard = function AssetGalleryGridCard(props) {
|
|
|
1204
1210
|
onClick: function onClick(event) {
|
|
1205
1211
|
return onActionClick(event, action, index);
|
|
1206
1212
|
},
|
|
1207
|
-
subActions: action === null || action === void 0 ? void 0 : action.subActions
|
|
1213
|
+
subActions: action === null || action === void 0 ? void 0 : action.subActions,
|
|
1214
|
+
actionButtonWidthHeight: action.actionButtonWidthHeight
|
|
1208
1215
|
}));
|
|
1209
1216
|
}))), React__default['default'].createElement(OverlayInfoBottom, null, selectable && React__default['default'].createElement(OverlayInfoBottomSelectButton, {
|
|
1210
1217
|
selected: selected
|
package/inputs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ActionButton = require('../ActionButton-
|
|
5
|
+
var ActionButton = require('../ActionButton-46735b89.js');
|
|
6
6
|
var Button = require('../Button-49f82b31.js');
|
|
7
7
|
var Checkbox = require('../Checkbox-68dc38a8.js');
|
|
8
8
|
var CompactAutocompleteSelect = require('../CompactAutocompleteSelect-87c8c7e7.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AssetGallery = require('../../AssetGallery-
|
|
3
|
+
var AssetGallery = require('../../AssetGallery-afd76086.js');
|
|
4
4
|
require('../../defaultTheme-ea44e34a.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('lodash');
|
|
@@ -28,7 +28,7 @@ require('../../SectionSeparator-259a22ed.js');
|
|
|
28
28
|
require('../../close-ebf2f3cf.js');
|
|
29
29
|
require('react-lazy-load-image-component');
|
|
30
30
|
require('../../warning-circle-24522402.js');
|
|
31
|
-
require('../../ActionButton-
|
|
31
|
+
require('../../ActionButton-46735b89.js');
|
|
32
32
|
require('../../Button-49f82b31.js');
|
|
33
33
|
require('../../ContextMenu-4ec3d9f3.js');
|
|
34
34
|
require('../../expand-more-94585605.js');
|
package/widgets/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var AssetGallery = require('../AssetGallery-
|
|
5
|
+
var AssetGallery = require('../AssetGallery-afd76086.js');
|
|
6
6
|
var ContextMenu = require('../ContextMenu-4ec3d9f3.js');
|
|
7
7
|
var AssetPreviewTopBar = require('../AssetPreviewTopBar-c28715f7.js');
|
|
8
8
|
var Instructions = require('../Instructions-b9f2e184.js');
|
|
@@ -33,7 +33,7 @@ require('../SectionSeparator-259a22ed.js');
|
|
|
33
33
|
require('../close-ebf2f3cf.js');
|
|
34
34
|
require('react-lazy-load-image-component');
|
|
35
35
|
require('../warning-circle-24522402.js');
|
|
36
|
-
require('../ActionButton-
|
|
36
|
+
require('../ActionButton-46735b89.js');
|
|
37
37
|
require('../Button-49f82b31.js');
|
|
38
38
|
require('../expand-more-94585605.js');
|
|
39
39
|
require('../CompactAutocompleteSelect-87c8c7e7.js');
|