Socket
Socket
Sign inDemoInstall

@react-pdf-viewer/theme

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf-viewer/theme - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

31

lib/cjs/theme.js

@@ -32,4 +32,4 @@ 'use strict';

return (React__namespace.createElement(core.Icon, { size: 16 },
React__namespace.createElement("path", { d: 'M19.5,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.106l-2.4-2.4a1,1,0,0,0-1.414,0l-2.4,2.4H5.5a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.894l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4H18.5a1,1,0,0,0,1-1Z' }),
React__namespace.createElement("path", { d: 'M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z' })));
React__namespace.createElement("path", { d: "M19.5,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.106l-2.4-2.4a1,1,0,0,0-1.414,0l-2.4,2.4H5.5a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.894l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4H18.5a1,1,0,0,0,1-1Z" }),
React__namespace.createElement("path", { d: "M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z" })));
};

@@ -39,4 +39,4 @@

return (React__namespace.createElement(core.Icon, { size: 16 },
React__namespace.createElement("path", { d: 'M19.491,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.1L12.7,2.1a1,1,0,0,0-1.414,0l-2.4,2.4H5.491a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.885l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4h3.394a1,1,0,0,0,1-1Z' }),
React__namespace.createElement("path", { d: 'M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z' })));
React__namespace.createElement("path", { d: "M19.491,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.1L12.7,2.1a1,1,0,0,0-1.414,0l-2.4,2.4H5.491a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.885l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4h3.394a1,1,0,0,0,1-1Z" }),
React__namespace.createElement("path", { d: "M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z" })));
};

@@ -77,4 +77,8 @@

var label = l10n && l10n.theme
? (isDarkTheme ? l10n.theme.switchLightTheme : l10n.theme.switchDarkTheme)
: (isDarkTheme ? 'Switch to the light theme' : 'Switch to the dark theme');
? isDarkTheme
? l10n.theme.switchLightTheme
: l10n.theme.switchDarkTheme
: isDarkTheme
? 'Switch to the light theme'
: 'Switch to the dark theme';
return (React__namespace.createElement(core.Tooltip, { position: core.Position.BottomCenter, target: React__namespace.createElement(core.MinimalButton, { onClick: onClick }, isDarkTheme ? React__namespace.createElement(LightIcon, null) : React__namespace.createElement(DarkIcon, null)), content: function () { return label; }, offset: TOOLTIP_OFFSET }));

@@ -99,4 +103,8 @@ };

var label = l10n && l10n.theme
? (isDarkTheme ? l10n.theme.switchLightTheme : l10n.theme.switchDarkTheme)
: (isDarkTheme ? 'Switch to the light theme' : 'Switch to the dark theme');
? isDarkTheme
? l10n.theme.switchLightTheme
: l10n.theme.switchDarkTheme
: isDarkTheme
? 'Switch to the light theme'
: 'Switch to the dark theme';
return (React__namespace.createElement(core.MenuItem, { icon: isDarkTheme ? React__namespace.createElement(LightIcon, null) : React__namespace.createElement(DarkIcon, null), onClick: onClick }, label));

@@ -106,5 +114,8 @@ };

var themePlugin = function () {
var SwitchThemeDecorator = function (props) { return (React__namespace.createElement(SwitchTheme, __assign({}, props))); };
var SwitchThemeDecorator = function (props) { return React__namespace.createElement(SwitchTheme, __assign({}, props)); };
var SwitchThemeButtonDecorator = function () { return (React__namespace.createElement(SwitchThemeDecorator, null, function (props) { return React__namespace.createElement(SwitchThemeButton, __assign({}, props)); })); };
var SwitchThemeMenuItemDecorator = function (props) { return (React__namespace.createElement(SwitchThemeDecorator, null, function (p) { return React__namespace.createElement(SwitchThemeMenuItem, { onClick: function () { p.onClick(); props.onClick(); } }); })); };
var SwitchThemeMenuItemDecorator = function (props) { return (React__namespace.createElement(SwitchThemeDecorator, null, function (p) { return (React__namespace.createElement(SwitchThemeMenuItem, { onClick: function () {
p.onClick();
props.onClick();
} })); })); };
return {

@@ -111,0 +122,0 @@ SwitchTheme: SwitchThemeDecorator,

@@ -27,5 +27,3 @@ /**

SwitchThemeButton: () => React.ReactElement;
SwitchThemeMenuItem: (
props: SwitchThemeMenuItemProps
) => React.ReactElement;
SwitchThemeMenuItem: (props: SwitchThemeMenuItemProps) => React.ReactElement;
}

@@ -32,0 +30,0 @@

{
"name": "@react-pdf-viewer/theme",
"version": "2.6.0",
"version": "2.6.1",
"description": "A React component to view a PDF document",

@@ -35,3 +35,3 @@ "license": "https://react-pdf-viewer.dev/license",

"dependencies": {
"@react-pdf-viewer/core": "2.6.0"
"@react-pdf-viewer/core": "2.6.1"
},

@@ -49,3 +49,3 @@ "peerDependencies": {

},
"gitHead": "91d6279570bd3d4672b131100392afd6e8658892"
"gitHead": "500247f24514da033bf92266f6903decaffebb68"
}
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