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

@julo-ui/badge

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@julo-ui/badge - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/chunk-5CAM564U.mjs

25

dist/Badge.js

@@ -240,10 +240,4 @@ "use strict";

padding: 0.75rem 1rem;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
&[data-button-size='small'] {
padding: 0.5rem 1rem;
}
&:disabled {

@@ -257,2 +251,8 @@ cursor: not-allowed;

`;
var buttonSize = {
regular: { padding: "0.75rem 1rem" },
small: {
padding: "0.5rem 1rem"
}
};
var buttonVariant = {

@@ -357,2 +357,3 @@ primary: {

...buttonVariant[variant],
...buttonSize[size],
...sx

@@ -1026,3 +1027,5 @@ },

order: 2,
...isOnlyElement && { border: "none" },
...isOnlyElement && {
border: "none"
},
...!isOnlyElement && {

@@ -1043,2 +1046,10 @@ ...leftAddon && {

}
},
...(leftElement || leftAddon) && {
borderTopLeftRadius: "0",
borderBottomLeftRadius: "0"
},
...(rightAddon || rightElement) && {
borderTopRightRadius: "0",
borderBottomRightRadius: "0"
}

@@ -1045,0 +1056,0 @@ });

@@ -243,10 +243,4 @@ "use strict";

padding: 0.75rem 1rem;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
&[data-button-size='small'] {
padding: 0.5rem 1rem;
}
&:disabled {

@@ -260,2 +254,8 @@ cursor: not-allowed;

`;
var buttonSize = {
regular: { padding: "0.75rem 1rem" },
small: {
padding: "0.5rem 1rem"
}
};
var buttonVariant = {

@@ -360,2 +360,3 @@ primary: {

...buttonVariant[variant],
...buttonSize[size],
...sx

@@ -1029,3 +1030,5 @@ },

order: 2,
...isOnlyElement && { border: "none" },
...isOnlyElement && {
border: "none"
},
...!isOnlyElement && {

@@ -1046,2 +1049,10 @@ ...leftAddon && {

}
},
...(leftElement || leftAddon) && {
borderTopLeftRadius: "0",
borderBottomLeftRadius: "0"
},
...(rightAddon || rightElement) && {
borderTopRightRadius: "0",
borderBottomRightRadius: "0"
}

@@ -1048,0 +1059,0 @@ });

{
"name": "@julo-ui/badge",
"version": "0.0.3",
"version": "0.0.4",
"description": "A React component to display notification badge",

@@ -29,3 +29,3 @@ "keywords": [

"@emotion/react": "^11.10.6",
"@julo-ui/typography": "1.0.3"
"@julo-ui/typography": "1.0.4"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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