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

tailwindcss-classnames

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-classnames - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

8

dist/bundle.d.ts

@@ -92,2 +92,6 @@ // Generated by dts-bundle v0.7.3

export const hover: TPseudoClass;
export const sm: TPseudoClass;
export const md: TPseudoClass;
export const lg: TPseudoClass;
export const xl: TPseudoClass;
export const focus: TPseudoClass;

@@ -106,2 +110,6 @@ export const active: TPseudoClass;

hover: TPseudoClass<T>;
sm: TPseudoClass<T>;
md: TPseudoClass<T>;
lg: TPseudoClass<T>;
xl: TPseudoClass<T>;
active: TPseudoClass<T>;

@@ -108,0 +116,0 @@ disabled: TPseudoClass<T>;

2

dist/bundle.js

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define("tailwindcss-classnames",["exports"],n):n(e.TailwindcssClassnames={})}(this,function(e){"use strict";var n,t=(function(e){!function(){var n={}.hasOwnProperty;function t(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var s=t.apply(null,r);s&&e.push(s)}else if("object"===o)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()}(n={exports:{}},n.exports),n.exports),i=function(e){return"hover:"+e},r=function(e){return"active:"+e},o=function(e){return"disabled:"+e},s=function(e){return"visited:"+e},u=function(e){return"first-child:"+e},c=function(e){return"last-child:"+e},d=function(e){return"odd-child:"+e},f=function(e){return"odd-child:"+e},l=function(e){return"group-hover:"+e},a=function(e){return"focus-within:"+e};e.classnames=t,e.hover=i,e.focus=function(e){return"focus:"+e},e.active=r,e.disabled=o,e.visited=s,e.firstChild=u,e.lastChild=c,e.oddChild=d,e.evenChild=f,e.groupHover=l,e.focusWithin=a,e.createCustom=function(){return{classnames:t,hover:i,active:r,disabled:o,visited:s,firstChild:u,lastChild:c,oddChild:d,evenChild:f,groupHover:l,focusWithin:a}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("tailwindcss-classnames",["exports"],e):e(n.TailwindcssClassnames={})}(this,function(n){"use strict";var e,t=(function(n){!function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)&&r.length){var s=t.apply(null,r);s&&n.push(s)}else if("object"===o)for(var u in r)e.call(r,u)&&r[u]&&n.push(u)}}return n.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t}()}(e={exports:{}},e.exports),e.exports),i=function(n){return"hover:"+n},r=function(n){return"sm:"+n},o=function(n){return"md:"+n},s=function(n){return"lg:"+n},u=function(n){return"xl:"+n},c=function(n){return"active:"+n},f=function(n){return"disabled:"+n},d=function(n){return"visited:"+n},l=function(n){return"first-child:"+n},a=function(n){return"last-child:"+n},h=function(n){return"odd-child:"+n},p=function(n){return"odd-child:"+n},v=function(n){return"group-hover:"+n},m=function(n){return"focus-within:"+n};n.classnames=t,n.hover=i,n.sm=r,n.md=o,n.lg=s,n.xl=u,n.focus=function(n){return"focus:"+n},n.active=c,n.disabled=f,n.visited=d,n.firstChild=l,n.lastChild=a,n.oddChild=h,n.evenChild=p,n.groupHover=v,n.focusWithin=m,n.createCustom=function(){return{classnames:t,hover:i,sm:r,md:o,lg:s,xl:u,active:c,disabled:f,visited:d,firstChild:l,lastChild:a,oddChild:h,evenChild:p,groupHover:v,focusWithin:m}},Object.defineProperty(n,"__esModule",{value:!0})});
//# sourceMappingURL=bundle.js.map

@@ -90,2 +90,6 @@ export declare type TUtility = 'mx-auto';

export declare const hover: TPseudoClass;
export declare const sm: TPseudoClass;
export declare const md: TPseudoClass;
export declare const lg: TPseudoClass;
export declare const xl: TPseudoClass;
export declare const focus: TPseudoClass;

@@ -104,2 +108,6 @@ export declare const active: TPseudoClass;

hover: TPseudoClass<T>;
sm: TPseudoClass<T>;
md: TPseudoClass<T>;
lg: TPseudoClass<T>;
xl: TPseudoClass<T>;
active: TPseudoClass<T>;

@@ -106,0 +114,0 @@ disabled: TPseudoClass<T>;

import classnamesLib from 'classnames';
export var classnames = classnamesLib;
export var hover = function (className) { return "hover:" + className; };
export var sm = function (className) { return "sm:" + className; };
export var md = function (className) { return "md:" + className; };
export var lg = function (className) { return "lg:" + className; };
export var xl = function (className) { return "xl:" + className; };
export var focus = function (className) { return "focus:" + className; };

@@ -17,2 +21,6 @@ export var active = function (className) { return "active:" + className; };

hover: hover,
sm: sm,
md: md,
lg: lg,
xl: xl,
active: active,

@@ -19,0 +27,0 @@ disabled: disabled,

@@ -90,2 +90,6 @@ export declare type TUtility = 'mx-auto';

export declare const hover: TPseudoClass;
export declare const sm: TPseudoClass;
export declare const md: TPseudoClass;
export declare const lg: TPseudoClass;
export declare const xl: TPseudoClass;
export declare const focus: TPseudoClass;

@@ -104,2 +108,6 @@ export declare const active: TPseudoClass;

hover: TPseudoClass<T>;
sm: TPseudoClass<T>;
md: TPseudoClass<T>;
lg: TPseudoClass<T>;
xl: TPseudoClass<T>;
active: TPseudoClass<T>;

@@ -106,0 +114,0 @@ disabled: TPseudoClass<T>;

@@ -7,2 +7,6 @@ "use strict";

exports.hover = function (className) { return "hover:" + className; };
exports.sm = function (className) { return "sm:" + className; };
exports.md = function (className) { return "md:" + className; };
exports.lg = function (className) { return "lg:" + className; };
exports.xl = function (className) { return "xl:" + className; };
exports.focus = function (className) { return "focus:" + className; };

@@ -21,2 +25,6 @@ exports.active = function (className) { return "active:" + className; };

hover: exports.hover,
sm: exports.sm,
md: exports.md,
lg: exports.lg,
xl: exports.xl,
active: exports.active,

@@ -23,0 +31,0 @@ disabled: exports.disabled,

{
"name": "tailwindcss-classnames",
"version": "1.0.1",
"version": "1.1.0",
"description": "Functional typed classnames for TailwindCSS",

@@ -5,0 +5,0 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>",

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