Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electron-lab/title-bar

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-lab/title-bar - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

1

es/TitleBar.d.ts
import React, { CSSProperties } from 'react';
import './titlebar.less';
declare type TitleBarProps = {
title?: React.ReactNode;
backgroundColor?: CSSProperties['backgroundColor'];

@@ -6,0 +5,0 @@ dark?: boolean;

7

es/TitleBar.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc