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

formidable-oss-badges

Package Overview
Dependencies
Maintainers
27
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formidable-oss-badges - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

CHANGELOG.md

2

package.json
{
"name": "formidable-oss-badges",
"version": "0.5.0",
"version": "0.5.1",
"description": "Badges for Formidable OSS",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -7,2 +7,25 @@ import React from "react";

const StyledLogo = styled(({ tagName, isHoverable, ...props }) => {
const Component = tagName || "svg";
// Do not forward `isHoverable` to DOM
// This method can be replaced with `styled.svg.withConfig({ shouldForwardProp: ... })`
// with styled-components@v5.1
return <Component {...props} />;
})`
${(props) =>
props.isHoverable &&
`
.inner-ring,
.outer-ring {
transition: 0.3s;
}
&:hover .inner-ring {
opacity: 0.3;
}
&:hover .outer-ring {
opacity: 0.6;
}
`}
`;
const FeaturedBadge = ({ name, className, isHoverable, small }) => {

@@ -13,20 +36,10 @@ const Logo = small

if (!Logo) return null;
const StyledLogo = styled(({ isHoverable, ...rest }) => <Logo {...rest} />)`
${({ isHoverable }) =>
isHoverable &&
`
.inner-ring,
.outer-ring {
transition: 0.3s;
}
&:hover .inner-ring {
opacity: 0.3;
}
&:hover .outer-ring {
opacity: 0.6;
}`}
`;
return <StyledLogo className={className} isHoverable={isHoverable} />;
return (
<StyledLogo
tagName={Logo}
className={className}
isHoverable={isHoverable}
/>
);
};

@@ -33,0 +46,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

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

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