@clicktap/ui 0.14.10 → 0.14.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{forwardRef as u}from"react";import{Button as f}from"react-aria-components";import{cn as p}from"../../utils/cn.js";const v=u(function({className:e,isDisabled:a=!1,isLoading:t=!1,size:r="md",variant:s="solid",...o},d){const l=["flex items-center justify-center","rounded-md border-solid border","font-semibold text-sm","py-2 px-8","transition-all duration-200 ease-in-out","focus:outline-2 focus:outline focus:outline-slate-200 pressed:scale-95",r==="sm"&&"h-8",r==="md"&&"h-10",r==="lg"&&"h-12",s==="ghost"&&["bg-transparent hover:bg-transparent focus:bg-transparent disabled:bg-transparent","border-transparent hover:border-transparent focus:border-transparent disabled:border-transparent","text-slate-900 disabled:text-slate-400",t&&"disabled:text-slate-900"],s==="outline"&&["bg-transparent hover:bg-transparent focus:bg-transparent disabled:bg-transparent","border-slate-300 hover:border-slate-400 focus:border-slate-400 disabled:border-slate-200","text-slate-900 disabled:text-slate-500",t&&["disabled:border-slate-300","disabled:text-slate-900"]],s==="solid"&&["bg-slate-800 hover:bg-slate-900 focus:bg-slate-900 disabled:bg-slate-900","border-slate-800 hover:border-slate-900 focus:border-slate-900 disabled:border-slate-200","text-white disabled:text-slate-400",t&&["disabled:border-slate-900","disabled:text-white"]]];return i(f,{ref:d,type:"button",isDisabled:a,className:n=>{const b=typeof e=="function"?e(n):e;return p(l,b)},...o})});export{v as Button,v as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clicktap/ui",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Clicktap",
|
|
6
6
|
"description": "A library of React UI components and low-level hooks.",
|
|
@@ -57,5 +57,6 @@
|
|
|
57
57
|
"react-aria-components": "^1.1.1",
|
|
58
58
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
59
59
|
"react-international-phone": "^4.3.0"
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
"tailwind": "./tailwind.config.js"
|
|
61
62
|
}
|