New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gits-id/button

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gits-id/button - npm Package Compare versions

Comparing version

to
0.5.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.5.0](https://github.com/gitsindonesia/ui-component/compare/v0.4.8...v0.5.0) (2022-06-20)
### Bug Fixes
* same color for text styled button ([26909ca](https://github.com/gitsindonesia/ui-component/commit/26909ca7146ac9fc6ef386717f7f6d5829f8fd42))
# [0.3.0](https://github.com/gitsindonesia/ui-component/compare/v0.2.6...v0.3.0) (2022-05-11)

@@ -8,0 +19,0 @@

2

dist/button.cjs.js

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

"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=require("vue"),m=require("@gits-id/spinner");function B(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var k=B(m);const S={key:0,class:"ml-2"},i=r.defineComponent({props:{size:{type:String,default:"md",validator:a=>["xs","sm","md","lg","xl"].includes(a)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(a){const e=a,{disabled:d,loading:n,loadingText:s}=r.toRefs(e),c=r.computed(()=>e.to?"router-link":e.href?"a":"button"),l=r.computed(()=>{const t={};return e.to?t.to=e.to:e.href?t.href=e.href:t.type=e.type,t}),b=r.computed(()=>{switch(e.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return e.color}}),g={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},u={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},v={default:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},y={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},p={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},f=r.computed(()=>{let t=g[e.color];return e.outlined?t=u[e.color]:e.text&&(t=v[e.color]),t}),h=r.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";e.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const o={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return e.loading?["disabled:cursor-not-allowed disabled:shadow-none",o[e.color]]:t}),x=r.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},o={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[e.size],e.text?"p-0":o[e.size]].join(" ")}),w=r.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",h.value,f.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!e.noRing,[p[e.color]]:!e.noRing,"rounded-full":e.rounded,"rounded-none":e.tile,shadow:e.shadow,"w-full":e.block,"btn-loading":e.loading,[y[e.size]]:!e.icon,[x.value]:e.icon}]);return(t,o)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c)),r.mergeProps({class:r.unref(w),rel:a.newTab?"noopener":"",target:a.newTab?"_blank":"",disabled:r.unref(d)||r.unref(n)},{...r.unref(l),...t.$attrs}),{default:r.withCtx(()=>[r.unref(n)?r.renderSlot(t.$slots,"loading",{key:0},()=>[r.createVNode(r.unref(k.default),{color:r.unref(b)},null,8,["color"]),r.unref(s)?(r.openBlock(),r.createElementBlock("span",S,r.toDisplayString(r.unref(s)),1)):r.createCommentVNode("",!0)]):r.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});exports.VBtn=i;exports.default=i;
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=require("vue"),m=require("@gits-id/spinner");function B(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var k=B(m);const S={key:0,class:"ml-2"},i=r.defineComponent({props:{size:{type:String,default:"md",validator:a=>["xs","sm","md","lg","xl"].includes(a)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(a){const e=a,{disabled:d,loading:n,loadingText:s}=r.toRefs(e),c=r.computed(()=>e.to?"router-link":e.href?"a":"button"),l=r.computed(()=>{const t={};return e.to?t.to=e.to:e.href?t.href=e.href:t.type=e.type,t}),b=r.computed(()=>{switch(e.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return e.color}}),g={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},u={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},v={default:"border-transparent bg-transparent text-gray-700 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},y={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},p={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},f=r.computed(()=>{let t=g[e.color];return e.outlined?t=u[e.color]:e.text&&(t=v[e.color]),t}),h=r.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";e.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const o={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return e.loading?["disabled:cursor-not-allowed disabled:shadow-none",o[e.color]]:t}),x=r.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},o={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[e.size],e.text?"p-0":o[e.size]].join(" ")}),w=r.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",h.value,f.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!e.noRing,[p[e.color]]:!e.noRing,"rounded-full":e.rounded,"rounded-none":e.tile,shadow:e.shadow,"w-full":e.block,"btn-loading":e.loading,[y[e.size]]:!e.icon,[x.value]:e.icon}]);return(t,o)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c)),r.mergeProps({class:r.unref(w),rel:a.newTab?"noopener":"",target:a.newTab?"_blank":"",disabled:r.unref(d)||r.unref(n)},{...r.unref(l),...t.$attrs}),{default:r.withCtx(()=>[r.unref(n)?r.renderSlot(t.$slots,"loading",{key:0},()=>[r.createVNode(r.unref(k.default),{color:r.unref(b)},null,8,["color"]),r.unref(s)?(r.openBlock(),r.createElementBlock("span",S,r.toDisplayString(r.unref(s)),1)):r.createCommentVNode("",!0)]):r.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});exports.VBtn=i;exports.default=i;

@@ -146,3 +146,3 @@ import { defineComponent, toRefs, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, createVNode, createElementBlock, toDisplayString, createCommentVNode } from 'vue';

const textVariants = {
default: "border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600",
default: "border-transparent bg-transparent text-gray-700 hover:text-gray-900 active:text-gray-600",
primary: "border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",

@@ -149,0 +149,0 @@ secondary: "border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",

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

var VBtn=function(o,r,c){"use strict";function l(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var b=l(c);const g={key:0,class:"ml-2"},s=r.defineComponent({props:{size:{type:String,default:"md",validator:a=>["xs","sm","md","lg","xl"].includes(a)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(a){const e=a,{disabled:y,loading:i,loadingText:d}=r.toRefs(e),p=r.computed(()=>e.to?"router-link":e.href?"a":"button"),f=r.computed(()=>{const t={};return e.to?t.to=e.to:e.href?t.href=e.href:t.type=e.type,t}),u=r.computed(()=>{switch(e.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return e.color}}),h={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},v={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},x={default:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},w={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},m={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},B=r.computed(()=>{let t=h[e.color];return e.outlined?t=v[e.color]:e.text&&(t=x[e.color]),t}),k=r.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";e.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const n={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return e.loading?["disabled:cursor-not-allowed disabled:shadow-none",n[e.color]]:t}),S=r.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},n={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[e.size],e.text?"p-0":n[e.size]].join(" ")}),V=r.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",k.value,B.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!e.noRing,[m[e.color]]:!e.noRing,"rounded-full":e.rounded,"rounded-none":e.tile,shadow:e.shadow,"w-full":e.block,"btn-loading":e.loading,[w[e.size]]:!e.icon,[S.value]:e.icon}]);return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(p)),r.mergeProps({class:r.unref(V),rel:a.newTab?"noopener":"",target:a.newTab?"_blank":"",disabled:r.unref(y)||r.unref(i)},{...r.unref(f),...t.$attrs}),{default:r.withCtx(()=>[r.unref(i)?r.renderSlot(t.$slots,"loading",{key:0},()=>[r.createVNode(r.unref(b.default),{color:r.unref(u)},null,8,["color"]),r.unref(d)?(r.openBlock(),r.createElementBlock("span",g,r.toDisplayString(r.unref(d)),1)):r.createCommentVNode("",!0)]):r.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});return o.VBtn=s,o.default=s,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),o}({},Vue,VSpinner);
var VBtn=function(o,r,c){"use strict";function l(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var b=l(c);const g={key:0,class:"ml-2"},s=r.defineComponent({props:{size:{type:String,default:"md",validator:a=>["xs","sm","md","lg","xl"].includes(a)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(a){const e=a,{disabled:y,loading:i,loadingText:d}=r.toRefs(e),p=r.computed(()=>e.to?"router-link":e.href?"a":"button"),f=r.computed(()=>{const t={};return e.to?t.to=e.to:e.href?t.href=e.href:t.type=e.type,t}),u=r.computed(()=>{switch(e.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return e.color}}),h={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},v={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},x={default:"border-transparent bg-transparent text-gray-700 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},w={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},m={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},B=r.computed(()=>{let t=h[e.color];return e.outlined?t=v[e.color]:e.text&&(t=x[e.color]),t}),k=r.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";e.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const n={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return e.loading?["disabled:cursor-not-allowed disabled:shadow-none",n[e.color]]:t}),S=r.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},n={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[e.size],e.text?"p-0":n[e.size]].join(" ")}),V=r.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",k.value,B.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!e.noRing,[m[e.color]]:!e.noRing,"rounded-full":e.rounded,"rounded-none":e.tile,shadow:e.shadow,"w-full":e.block,"btn-loading":e.loading,[w[e.size]]:!e.icon,[S.value]:e.icon}]);return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(p)),r.mergeProps({class:r.unref(V),rel:a.newTab?"noopener":"",target:a.newTab?"_blank":"",disabled:r.unref(y)||r.unref(i)},{...r.unref(f),...t.$attrs}),{default:r.withCtx(()=>[r.unref(i)?r.renderSlot(t.$slots,"loading",{key:0},()=>[r.createVNode(r.unref(b.default),{color:r.unref(u)},null,8,["color"]),r.unref(d)?(r.openBlock(),r.createElementBlock("span",g,r.toDisplayString(r.unref(d)),1)):r.createCommentVNode("",!0)]):r.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});return o.VBtn=s,o.default=s,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),o}({},Vue,VSpinner);

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

(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@gits-id/spinner")):typeof define=="function"&&define.amd?define(["exports","vue","@gits-id/spinner"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.VBtn={},a.Vue,a.VSpinner))})(this,function(a,e,c){"use strict";function l(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var b=l(c);const g={key:0,class:"ml-2"},s=e.defineComponent({props:{size:{type:String,default:"md",validator:o=>["xs","sm","md","lg","xl"].includes(o)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(o){const r=o,{disabled:p,loading:i,loadingText:d}=e.toRefs(r),f=e.computed(()=>r.to?"router-link":r.href?"a":"button"),y=e.computed(()=>{const t={};return r.to?t.to=r.to:r.href?t.href=r.href:t.type=r.type,t}),u=e.computed(()=>{switch(r.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return r.color}}),h={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},v={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},x={default:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},w={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},m={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},B=e.computed(()=>{let t=h[r.color];return r.outlined?t=v[r.color]:r.text&&(t=x[r.color]),t}),k=e.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";r.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const n={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return r.loading?["disabled:cursor-not-allowed disabled:shadow-none",n[r.color]]:t}),S=e.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},n={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[r.size],r.text?"p-0":n[r.size]].join(" ")}),V=e.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",k.value,B.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!r.noRing,[m[r.color]]:!r.noRing,"rounded-full":r.rounded,"rounded-none":r.tile,shadow:r.shadow,"w-full":r.block,"btn-loading":r.loading,[w[r.size]]:!r.icon,[S.value]:r.icon}]);return(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f)),e.mergeProps({class:e.unref(V),rel:o.newTab?"noopener":"",target:o.newTab?"_blank":"",disabled:e.unref(p)||e.unref(i)},{...e.unref(y),...t.$attrs}),{default:e.withCtx(()=>[e.unref(i)?e.renderSlot(t.$slots,"loading",{key:0},()=>[e.createVNode(e.unref(b.default),{color:e.unref(u)},null,8,["color"]),e.unref(d)?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0)]):e.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});a.VBtn=s,a.default=s,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@gits-id/spinner")):typeof define=="function"&&define.amd?define(["exports","vue","@gits-id/spinner"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.VBtn={},a.Vue,a.VSpinner))})(this,function(a,e,c){"use strict";function l(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var b=l(c);const g={key:0,class:"ml-2"},s=e.defineComponent({props:{size:{type:String,default:"md",validator:o=>["xs","sm","md","lg","xl"].includes(o)},color:{type:String,default:"default"},to:{type:[String,Object],default:""},href:{type:String,default:""},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ring:{type:Boolean,default:!0},tile:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1},type:{type:String,default:"button"},solid:{type:Boolean,default:!1},noRing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},newTab:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(o){const r=o,{disabled:p,loading:i,loadingText:d}=e.toRefs(r),f=e.computed(()=>r.to?"router-link":r.href?"a":"button"),y=e.computed(()=>{const t={};return r.to?t.to=r.to:r.href?t.href=r.href:t.type=r.type,t}),u=e.computed(()=>{switch(r.color){case"primary":case"info":case"warning":case"error":case"success":return"white";case"white":return"black";default:return r.color}}),h={default:"border-gray-400 text-gray-700 bg-white hover:border-gray-500 active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-primary-500 text-white hover:bg-primary-600 hover:border-primary-600 active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-secondary-500 text-white hover:bg-secondary-600 hover:border-secondary-600 active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-info-500 text-white hover:bg-info-600 hover:border-info-600 active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-warning-500 text-white hover:bg-warning-600 hover:border-warning-600 active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-success-500 text-white hover:bg-success-600 hover:border-success-600 active:bg-success-400 active:border-success-400",error:"border-error-500 bg-error-500 text-white hover:bg-error-600 hover:border-error-600 active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-gray-800 text-white hover:bg-gray-900 hover:border-gray-900 active:bg-gray-700 active:border-gray-700"},v={default:"border-gray-400 text-gray-700 hover:bg-gray-700 hover:border-gray-700 hover:text-white active:bg-gray-50 active:border-gray-600 active:text-gray-600",primary:"border-primary-500 bg-transparent text-primary-500 hover:bg-primary-600 hover:border-primary-600 hover:text-white active:bg-primary-400 active:border-primary-400",secondary:"border-secondary-500 bg-transparent text-secondary-500 hover:bg-secondary-600 hover:border-secondary-600 hover:text-white active:bg-secondary-400 active:border-secondary-400",info:"border-info-500 bg-transparent text-info-500 hover:bg-info-600 hover:border-info-600 hover:text-white active:bg-info-400 active:border-info-400",warning:"border-warning-500 bg-transparent text-warning-500 hover:bg-warning-600 hover:border-warning-600 hover:text-white active:bg-warning-400 active:border-warning-400",success:"border-success-500 bg-transparent text-success-500 hover:bg-success-600 hover:border-success-600 hover:text-white active:bg-success-400 active:border-success-400",error:"border-error-500 bg-transparent text-error-500 hover:bg-error-600 hover:border-error-600 hover:text-white active:bg-error-400 active:border-error-400",dark:"border-gray-800 bg-transparent text-gray-800 hover:bg-gray-900 hover:border-gray-900 hover:text-white active:bg-gray-700 active:border-gray-700"},x={default:"border-transparent bg-transparent text-gray-700 hover:text-gray-900 active:text-gray-600",primary:"border-transparent bg-transparent text-primary-500 hover:text-primary-600 active:text-primary-400",secondary:"border-transparent bg-transparent text-secondary-500 hover:text-secondary-600 active:text-secondary-400",info:"border-transparent bg-transparent text-info-500 hover:text-info-600 active:text-info-400",warning:"border-transparent bg-transparent text-warning-500 hover:text-warning-600 active:text-warning-400",success:"border-transparent bg-transparent text-success-500 hover:text-success-600 active:text-success-400",error:"border-transparent bg-transparent text-error-500 hover:text-error-600 active:text-error-400",dark:"border-transparent bg-transparent text-gray-800 hover:text-gray-900 active:text-gray-600"},w={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},m={default:"",primary:"focus:ring-primary-300",secondary:"focus:ring-secondary-300",info:"focus:ring-info-300",warning:"focus:ring-warning-300",success:"focus:ring-success-300",error:"focus:ring-error-300",dark:"focus:ring-gray-300"},B=e.computed(()=>{let t=h[r.color];return r.outlined?t=v[r.color]:r.text&&(t=x[r.color]),t}),k=e.computed(()=>{let t="disabled:cursor-not-allowed disabled:shadow-none disabled:text-gray-400";r.outlined?t+=" disabled:border-gray-300 disabled:hover:bg-transparent disabled:hover:text-gray-400":t+=" disabled:bg-gray-300 disabled:border-gray-300";const n={default:"disabled:hover:bg-transparent disabled:active:bg-transparent",primary:"disabled:hover:bg-primary-500 disabled:hover:border-primary-500 disabled:active:bg-primary-500",secondary:"disabled:hover:bg-secondary-500 disabled:hover:border-secondary-500 disabled:active:bg-secondary-500",info:"disabled:hover:bg-info-500 disabled:hover:border-info-500 disabled:active:bg-info-500",warning:"disabled:hover:bg-warning-500 disabled:hover:border-warning-500 disabled:active:bg-warning-500",error:"disabled:hover:bg-error-500 disabled:hover:border-error-500 disabled:active:bg-error-500",success:"disabled:hover:bg-success-500 disabled:hover:border-success-500 disabled:active:bg-success-500",dark:"disabled:hover:bg-gray-800 disabled:hover:border-gray-800 disabled:active:bg-gray-800"};return r.loading?["disabled:cursor-not-allowed disabled:shadow-none",n[r.color]]:t}),S=e.computed(()=>{const t={xs:"w-[26px] h-[26px]",sm:"w-[34px] h-[34px]",md:"w-[42px] h-[42px]",lg:"w-[54px] h-[54px]",xl:"w-[62px] h-[62px]"},n={xs:"px-1",sm:"px-1.5",md:"px-2",lg:"px-2.5",xl:"px-3"};return[t[r.size],r.text?"p-0":n[r.size]].join(" ")}),V=e.computed(()=>["inline-flex justify-center items-center border rounded-md font-medium transition duration-300",k.value,B.value,{"focus:ring focus:ring-offset-2 focus:outline-none":!r.noRing,[m[r.color]]:!r.noRing,"rounded-full":r.rounded,"rounded-none":r.tile,shadow:r.shadow,"w-full":r.block,"btn-loading":r.loading,[w[r.size]]:!r.icon,[S.value]:r.icon}]);return(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f)),e.mergeProps({class:e.unref(V),rel:o.newTab?"noopener":"",target:o.newTab?"_blank":"",disabled:e.unref(p)||e.unref(i)},{...e.unref(y),...t.$attrs}),{default:e.withCtx(()=>[e.unref(i)?e.renderSlot(t.$slots,"loading",{key:0},()=>[e.createVNode(e.unref(b.default),{color:e.unref(u)},null,8,["color"]),e.unref(d)?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0)]):e.renderSlot(t.$slots,"default",{key:1})]),_:3},16,["class","rel","target","disabled"]))}});a.VBtn=s,a.default=s,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "@gits-id/button",
"version": "0.4.8",
"version": "0.5.0",
"description": "GITS Button Component",

@@ -19,10 +19,10 @@ "scripts": {

"dependencies": {
"@gits-id/spinner": "^0.4.8",
"@gits-id/theme": "^0.4.8",
"@gits-id/utils": "^0.4.8",
"@gits-id/spinner": "^0.5.0",
"@gits-id/theme": "^0.5.0",
"@gits-id/utils": "^0.5.0",
"vue": "^3.2.33"
},
"devDependencies": {
"@gits-id/tailwind-components": "^0.4.8",
"@gits-id/tailwind-config": "^0.4.8",
"@gits-id/tailwind-components": "^0.5.0",
"@gits-id/tailwind-config": "^0.5.0",
"@vitejs/plugin-vue": "^2.2.4",

@@ -44,3 +44,3 @@ "@vue/test-utils": "^2.0.0-rc.17",

"types": "./dist/types/index.d.ts",
"gitHead": "afcb415e6ed97490619d67dbd084bb87ee29b8e9"
"gitHead": "3b70c1da06b8613cf5896903c262583af75b8586"
}

Sorry, the diff of this file is not supported yet