abaabil.button
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -1,1 +0,1 @@ | ||
import*as e from"react";import b from"abaabil.icon";const f=e.forwardRef(({as:u="button",icon:t,children:a,actionIcon:n,className:m="",disabled:l,isPressed:o,ariaLabel:s,...d},c)=>{const r=t&&!a&&s?s:void 0;return e.createElement(u,{className:`inline-flex items-center justify-center max-w-full h-default text-default px-default rounded-default ${l?"bg-stable-disabled text-on-stable-disabled":"bg-stable text-on-stable hover:bg-stable-hover focus:bg-stable-focus active:bg-stable-active"} ${m}`,...u==="button"?{type:"button"}:{role:"button"},...r&&{"aria-label":r},...typeof o=="boolean"&&{"aria-pressed":o},"aria-disabled":l,disabled:l,ref:c,...d},t?e.createElement(b,{id:t}):null,a?e.createElement("span",{className:"truncate mx-default/2"},a):null,n?e.createElement(b,{id:n,className:"ml-auto"}):null)});f.displayName="Button";var p=f;export{p as default}; | ||
import*as e from"react";import u from"abaabil.icon";const f=e.forwardRef(({as:s="button",icon:t,children:a,actionIcon:o,variant:d,className:m="",disabled:l,isPressed:r,ariaLabel:n,...i},c)=>{const b=t&&!a&&n?n:void 0,p=l?"bg-stable-disabled text-on-stable-disabled":`${d==="outlined"?"bg-transparent text-stable border-button border-stable hover:bg-stable hover:text-on-stable hover:border-stable":"bg-stable text-on-stable"} hover:bg-stable-hover focus:bg-stable-focus active:bg-stable-active`;return e.createElement(s,{className:`inline-flex items-center justify-center max-w-full h-default text-default px-default rounded-default ${p} ${m}`,...s==="button"?{type:"button"}:{role:"button"},...b&&{"aria-label":b},...typeof r=="boolean"&&{"aria-pressed":r},"aria-disabled":l,disabled:l,ref:c,...i},t?e.createElement(u,{id:t}):null,a?e.createElement("span",{className:"truncate mx-default/2"},a):null,o?e.createElement(u,{id:o,className:"ml-auto"}):null)});f.displayName="Button";var g=f;export{g as default}; |
{ | ||
"name": "abaabil.button", | ||
"author": "Abaabil", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"main": "dist/index.esm.min.js", | ||
@@ -35,3 +35,3 @@ "files": [ | ||
], | ||
"gitHead": "c1e41159e3f282e52e4f2d520611ab9da3634960" | ||
"gitHead": "e9bc1836057ae68aabdab77c1aa063927a7b756f" | ||
} |
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
3054