ialdama-components
Advanced tools
Comparing version 0.0.3 to 0.0.31
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)}; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var n=[{name:"primary",className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"secondary",className:"bg-green-200 hover:bg-green-300 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"transparent",className:"bg-transparent hover:bg-white text-white hover:text-black font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"}];exports.Button=function(e){var a,o=e.children;e.onClick;var i=e.className;e.disabled,e.size;var l=e.type,s=void 0===l?"primary":l,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["children","onClick","className","disabled","size","type"]),u=i?"".concat(i):null===(a=n.find((function(e){return e.name===s})))||void 0===a?void 0:a.className;return t.default.createElement("button",r({className:u},c),o)}; | ||
***************************************************************************** */var r=[{name:"primary",className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"secondary",className:"bg-green-200 hover:bg-green-300 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"transparent",className:"bg-transparent hover:bg-white text-white hover:text-black font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"}];exports.Button=function(e){var o,a=e.children,i=e.onClick,l=e.className;e.disabled,e.size;var s=e.type,c=void 0===s?"primary":s,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","onClick","className","disabled","size","type"]),p=l?"".concat(l):null===(o=r.find((function(e){return e.name===c})))||void 0===o?void 0:o.className;return t.default.createElement("button",n({className:p},u,{onClick:i}),a)}; | ||
//# sourceMappingURL=index.js.map |
@@ -15,3 +15,3 @@ import e from"react"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},t.apply(this,arguments)};function r(r){var a,o=r.children;r.onClick;var i=r.className;r.disabled,r.size;var l=r.type,s=void 0===l?"primary":l,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(r,["children","onClick","className","disabled","size","type"]),p=i?"".concat(i):null===(a=n.find((function(e){return e.name===s})))||void 0===a?void 0:a.className;return e.createElement("button",t({className:p},c),o)}var n=[{name:"primary",className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"secondary",className:"bg-green-200 hover:bg-green-300 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"transparent",className:"bg-transparent hover:bg-white text-white hover:text-black font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"}];export{r as Button}; | ||
***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(n){var o,a=n.children,i=n.onClick,l=n.className;n.disabled,n.size;var s=n.type,c=void 0===s?"primary":s,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["children","onClick","className","disabled","size","type"]),u=l?"".concat(l):null===(o=r.find((function(e){return e.name===c})))||void 0===o?void 0:o.className;return e.createElement("button",t({className:u},p,{onClick:i}),a)}var r=[{name:"primary",className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"secondary",className:"bg-green-200 hover:bg-green-300 text-white font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"},{name:"transparent",className:"bg-transparent hover:bg-white text-white hover:text-black font-bold py-2 px-4 rounded-lg transition duration-200 ease-in-out"}];export{n as Button}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "ialdama-components", | ||
"version": "0.0.3", | ||
"version": "0.0.31", | ||
"description": "Simple tailwind components library", | ||
@@ -9,2 +9,3 @@ "main": "dist/cjs/index.js", | ||
"build": "rollup -c", | ||
"postinstall": "node postinstall.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -11,0 +12,0 @@ }, |
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
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36213
23
235
0
1
3