@react-pdf-viewer/theme
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -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" | ||
} |
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
11685
164
+ Added@react-pdf-viewer/core@2.6.1(transitive)
- Removed@react-pdf-viewer/core@2.6.0(transitive)
Updated@react-pdf-viewer/core@2.6.1