@electron-lab/title-bar
Advanced tools
Comparing version 0.2.0 to 0.2.1
import React, { CSSProperties } from 'react'; | ||
import './titlebar.less'; | ||
declare type TitleBarProps = { | ||
title?: React.ReactNode; | ||
backgroundColor?: CSSProperties['backgroundColor']; | ||
@@ -6,0 +5,0 @@ dark?: boolean; |
@@ -27,3 +27,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
var TitleBar = function TitleBar(_ref) { | ||
var title = _ref.title, | ||
var extra = _ref.extra, | ||
backgroundColor = _ref.backgroundColor, | ||
@@ -34,2 +34,3 @@ dark = _ref.dark, | ||
hideButtonWhileDisable = _ref.hideButtonWhileDisable; | ||
var title = children; | ||
@@ -59,4 +60,4 @@ var _useState = useState(title || document.title), | ||
}, /*#__PURE__*/React.createElement("div", { | ||
className: cx(getClassName('children')) | ||
}, children), platform === 'win32' && /*#__PURE__*/React.createElement("div", { | ||
className: cx(getClassName('extra')) | ||
}, extra), platform === 'win32' && /*#__PURE__*/React.createElement("div", { | ||
className: cx(getClassName('actions')) | ||
@@ -63,0 +64,0 @@ }, /*#__PURE__*/React.createElement(ActionButton.Min, { |
import React, { CSSProperties } from 'react'; | ||
import './titlebar.less'; | ||
declare type TitleBarProps = { | ||
title?: React.ReactNode; | ||
backgroundColor?: CSSProperties['backgroundColor']; | ||
@@ -6,0 +5,0 @@ dark?: boolean; |
@@ -47,3 +47,3 @@ "use strict"; | ||
var TitleBar = function TitleBar(_ref) { | ||
var title = _ref.title, | ||
var extra = _ref.extra, | ||
backgroundColor = _ref.backgroundColor, | ||
@@ -54,2 +54,3 @@ dark = _ref.dark, | ||
hideButtonWhileDisable = _ref.hideButtonWhileDisable; | ||
var title = children; | ||
@@ -79,4 +80,4 @@ var _useState = (0, _react.useState)(title || document.title), | ||
}, /*#__PURE__*/_react.default.createElement("div", { | ||
className: (0, _classnames.default)(getClassName('children')) | ||
}, children), platform === 'win32' && /*#__PURE__*/_react.default.createElement("div", { | ||
className: (0, _classnames.default)(getClassName('extra')) | ||
}, extra), platform === 'win32' && /*#__PURE__*/_react.default.createElement("div", { | ||
className: (0, _classnames.default)(getClassName('actions')) | ||
@@ -83,0 +84,0 @@ }, /*#__PURE__*/_react.default.createElement(_ActionButton.ActionButton.Min, { |
{ | ||
"name": "@electron-lab/title-bar", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "lib/index.js", | ||
@@ -24,3 +24,3 @@ "module": "es/index.js", | ||
], | ||
"gitHead": "4cce2a40ac4266d581687a70e5418829e447b308", | ||
"gitHead": "3e04b0a594510a1358ce8503e6162621adb24e88", | ||
"devDependencies": { | ||
@@ -27,0 +27,0 @@ "jest": "^27.1.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59600