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

tailwind-styled-components

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

tailwind-styled-components - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

7

dist/tailwind.js

@@ -9,3 +9,3 @@ "use strict";

const domElements_1 = __importDefault(require("./domElements"));
const tailwindcss_classnames_1 = require("tailwindcss-classnames");
const tailwind_merge_1 = require("tailwind-merge");
const isTwElement = Symbol("isTwElement?");

@@ -25,6 +25,5 @@ const mergeArrays = (template, templateElements) => {

const inheritedClassesArray = inheritedClasses ? inheritedClasses.split(" ") : [];
return (0, tailwindcss_classnames_1.classnames)(...newClasses
return (0, tailwind_merge_1.twMerge)(...newClasses
.concat(inheritedClassesArray)
.filter((c) => c !== " ")
.filter((v, i, arr) => arr.indexOf(v) === i));
.filter((c) => c !== " "));
};

@@ -31,0 +30,0 @@ exports.cleanTemplate = cleanTemplate;

{
"name": "tailwind-styled-components",
"version": "2.1.4",
"version": "2.1.5",
"keywords": [

@@ -26,2 +26,3 @@ "react",

"clean": "rimraf dist",
"pretest": "jest --clearCache",
"test": "jest",

@@ -49,3 +50,3 @@ "test:types": "tsc -p ./src/typing-tests/tsconfig.json",

"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.4.7",
"jest": "^27.5.1",
"prettier": "^2.5.1",

@@ -55,3 +56,3 @@ "react": "^17.0.2",

"rimraf": "^3.0.2",
"ts-jest": "^27.1.2",
"ts-jest": "^27.1.4",
"typescript": "^4.5.4"

@@ -64,4 +65,4 @@ },

"dependencies": {
"tailwindcss-classnames": "^3.0.1"
"tailwind-merge": "^1.2.0"
}
}

@@ -208,4 +208,2 @@ # Tailwind-Styled-Component

*Careful it does not overrides parent classes*
### Extends Styled Component

@@ -212,0 +210,0 @@

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