@brighthr/component-button
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -1,2 +0,2 @@ | ||
import*as t from"react";function e({text:e="",id:p,type:x="button",size:s="base"}){const u=()=>{const t=["rounded text-white bg-neutral-400 font-bold"];return"xs"===s&&t.push("text-xs px-[11px] py-[7px]"),"sm"===s&&t.push("text-sm px-[13px] py-[9px]"),"base"===s&&t.push("text-sm px-[17px] py-[9px]"),"lg"===s&&t.push("text-base px-[17px] py-[9px]"),"xl"===s&&t.push("text-base px-[25px] py-[13px] hover:underline"),t.join(" ")};return t.createElement("button","submit"===x?{id:p,type:"submit",className:u()}:{id:p,type:"button",className:u()},e)}export{e as default}; | ||
import*as t from"react";function e({text:e="",id:p,type:x="button",size:s="base"}){const u=()=>{const t=["rounded text-white bg-primary-400 font-bold"];return"xs"===s&&t.push("text-xs px-[11px] py-[7px]"),"sm"===s&&t.push("text-sm px-[13px] py-[9px]"),"base"===s&&t.push("text-sm px-[17px] py-[9px]"),"lg"===s&&t.push("text-base px-[17px] py-[9px]"),"xl"===s&&t.push("text-base px-[25px] py-[13px] hover:underline"),t.join(" ")};return t.createElement("button","submit"===x?{id:p,type:"submit",className:u()}:{id:p,type:"button",className:u()},e)}export{e as default}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
import*as t from"react";function e(e){var p=e.text,x=void 0===p?"":p,s=e.id,o=void 0===s?void 0:s,u=e.type,i=e.size,a=void 0===i?"base":i,n=function(){var t=["rounded text-white bg-neutral-400 font-bold"];return"xs"===a&&t.push("text-xs px-[11px] py-[7px]"),"sm"===a&&t.push("text-sm px-[13px] py-[9px]"),"base"===a&&t.push("text-sm px-[17px] py-[9px]"),"lg"===a&&t.push("text-base px-[17px] py-[9px]"),"xl"===a&&t.push("text-base px-[25px] py-[13px] hover:underline"),t.join(" ")};return t.createElement("button","submit"===(void 0===u?"button":u)?{id:o,type:"submit",className:n()}:{id:o,type:"button",className:n()},x)}export{e as default}; | ||
import*as t from"react";function e(e){var p=e.text,x=void 0===p?"":p,s=e.id,i=void 0===s?void 0:s,o=e.type,u=e.size,a=void 0===u?"base":u,r=function(){var t=["rounded text-white bg-primary-400 font-bold"];return"xs"===a&&t.push("text-xs px-[11px] py-[7px]"),"sm"===a&&t.push("text-sm px-[13px] py-[9px]"),"base"===a&&t.push("text-sm px-[17px] py-[9px]"),"lg"===a&&t.push("text-base px-[17px] py-[9px]"),"xl"===a&&t.push("text-base px-[25px] py-[13px] hover:underline"),t.join(" ")};return t.createElement("button","submit"===(void 0===o?"button":o)?{id:i,type:"submit",className:r()}:{id:i,type:"button",className:r()},x)}export{e as default}; | ||
//# sourceMappingURL=index.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e||self).componentButton=t(e.react)}(this,function(e){function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var n=t(e);return function(e){var t=e.text,o=void 0===t?"":t,p=e.id,r=void 0===p?void 0:p,u=e.type,i=e.size,s=void 0===i?"base":i,x=function(){var e=["rounded text-white bg-neutral-400 font-bold"];return"xs"===s&&e.push("text-xs px-[11px] py-[7px]"),"sm"===s&&e.push("text-sm px-[13px] py-[9px]"),"base"===s&&e.push("text-sm px-[17px] py-[9px]"),"lg"===s&&e.push("text-base px-[17px] py-[9px]"),"xl"===s&&e.push("text-base px-[25px] py-[13px] hover:underline"),e.join(" ")};return n.createElement("button","submit"===(void 0===u?"button":u)?{id:r,type:"submit",className:x()}:{id:r,type:"button",className:x()},o)}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e||self).componentButton=t(e.react)}(this,function(e){function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var n=t(e);return function(e){var t=e.text,o=void 0===t?"":t,p=e.id,r=void 0===p?void 0:p,u=e.type,i=e.size,s=void 0===i?"base":i,x=function(){var e=["rounded text-white bg-primary-400 font-bold"];return"xs"===s&&e.push("text-xs px-[11px] py-[7px]"),"sm"===s&&e.push("text-sm px-[13px] py-[9px]"),"base"===s&&e.push("text-sm px-[17px] py-[9px]"),"lg"===s&&e.push("text-base px-[17px] py-[9px]"),"xl"===s&&e.push("text-base px-[25px] py-[13px] hover:underline"),e.join(" ")};return n.createElement("button","submit"===(void 0===u?"button":u)?{id:r,type:"submit",className:x()}:{id:r,type:"button",className:x()},o)}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@brighthr/component-button", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "type": "module", | ||
}, | ||
"gitHead": "5796c716180de8f9cca75850e1ff7852dbee84cd" | ||
"gitHead": "791cf28b4237e1916d7ffbbfdb907e94943a06b0" | ||
} |
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
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
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