@expressms/smartapp-ui 0.0.6 → 0.0.8
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.
|
@@ -14,7 +14,7 @@ import { ReactComponent as ArrowBack } from '../../assets/icons/arrow-back.svg';
|
|
|
14
14
|
import { ReactComponent as Trash } from '../../assets/icons/trash.svg';
|
|
15
15
|
import '../../styles/stories.module.scss';
|
|
16
16
|
function Header(props) {
|
|
17
|
-
var _a = props.title, title = _a === void 0 ? '' : _a, _b = props.isBack, isBack = _b === void 0 ? false : _b, _c = props.isRemove, isRemove = _c === void 0 ? false : _c, _d = props.onClickBack, onClickBack = _d === void 0 ? function () { return undefined; } : _d, _e = props.onClickRemove, onClickRemove = _e === void 0 ? function () { return undefined; } : _e;
|
|
18
|
-
return (_jsxs("div", __assign({ className: "smartapp-header" }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && _jsx(ArrowBack, { onClick: function () { return onClickBack(); }, className: "smartapp-header__info--arrow-back" }), title && _jsx("p", __assign({ className: "smartapp-header__info--title" }, { children: title }))] })), isRemove && (_jsx("div", __assign({ onClick: function () { return onClickRemove(); }, className: "smartapp-header__trash" }, { children: _jsx(Trash, {}) })))] })));
|
|
17
|
+
var _a = props.title, title = _a === void 0 ? '' : _a, _b = props.isBack, isBack = _b === void 0 ? false : _b, _c = props.isRemove, isRemove = _c === void 0 ? false : _c, _d = props.onClickBack, onClickBack = _d === void 0 ? function () { return undefined; } : _d, _e = props.onClickRemove, onClickRemove = _e === void 0 ? function () { return undefined; } : _e, _f = props.arrowColor, arrowColor = _f === void 0 ? '#111111' : _f, _g = props.trashColor, trashColor = _g === void 0 ? '#EB5545' : _g;
|
|
18
|
+
return (_jsxs("div", __assign({ className: "smartapp-header" }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && (_jsx(ArrowBack, { style: { color: arrowColor, stroke: arrowColor }, onClick: function () { return onClickBack(); }, className: "smartapp-header__info--arrow-back" })), title && _jsx("p", __assign({ className: "smartapp-header__info--title" }, { children: title }))] })), isRemove && (_jsx("div", __assign({ onClick: function () { return onClickRemove(); }, className: "smartapp-header__trash" }, { children: _jsx(Trash, { style: { color: trashColor } }) })))] })));
|
|
19
19
|
}
|
|
20
20
|
export default Header;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressms/smartapp-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "SmartApp UI library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "build/main/index.js",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"jest-resolve": "^27.4.2",
|
|
55
55
|
"jest-watch-typeahead": "^1.0.0",
|
|
56
56
|
"mini-css-extract-plugin": "^2.4.5",
|
|
57
|
-
"node-sass": "^8.0.0",
|
|
58
57
|
"postcss": "^8.4.4",
|
|
59
58
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
60
59
|
"postcss-loader": "^6.2.1",
|