@azulejo-kit/button 1.3.0 → 1.3.1
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.
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ const m = ["disabled", "type"], g = {
|
|
|
54
54
|
style: y({ visibility: n.isLoading ? "hidden" : "visible" })
|
|
55
55
|
}, [
|
|
56
56
|
a(t.$slots, "default", {}, () => [
|
|
57
|
-
i[1] || (i[1] = p("Clica aqui", -1))
|
|
57
|
+
i[1] || (i[1] = p("Clica aqui v.1.2.0", -1))
|
|
58
58
|
])
|
|
59
59
|
], 4)),
|
|
60
60
|
t.$slots.icon && n.iconPosition === "right" && !n.isLoading ? (o(), s("span", h, [
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.button={},o.Vue))})(this,function(o,e){"use strict";const l=["disabled","type"],a={key:0,class:"btn__icon"},d={key:1,class:"btn__icon",style:{position:"absolute"}},c={key:2,class:"btn__icon"},r={key:4,class:"btn__icon"},b=e.defineComponent({__name:"index",props:{appearance:{default:"standard"},size:{default:"m"},disabled:{type:Boolean},ghost:{type:Boolean},outlined:{type:Boolean},iconPosition:{},type:{default:"button"},isLoading:{type:Boolean}},setup(n){const t=n,p=e.computed(()=>({[`btn--${t.appearance}`]:t.appearance&&t.appearance!=="standard",[`btn--${t.size}`]:t.size&&t.size!=="m","btn--ghost":t.ghost,"btn--outlined":t.outlined,"btn--icon-only":t.iconPosition==="only"}));return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",p.value]),disabled:n.disabled,type:n.type},[i.$slots.icon&&n.iconPosition==="left"&&!n.isLoading?(e.openBlock(),e.createElementBlock("span",a,[e.renderSlot(i.$slots,"icon")])):e.createCommentVNode("",!0),n.isLoading?(e.openBlock(),e.createElementBlock("span",d,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"btn__spinner","aria-hidden":"true"},null,-1)])])):e.createCommentVNode("",!0),i.$slots.icon&&n.iconPosition==="only"?(e.openBlock(),e.createElementBlock("span",c,[e.renderSlot(i.$slots,"icon")])):(e.openBlock(),e.createElementBlock("span",{key:3,class:"btn__label",style:e.normalizeStyle({visibility:n.isLoading?"hidden":"visible"})},[e.renderSlot(i.$slots,"default",{},()=>[s[1]||(s[1]=e.createTextVNode("Clica aqui",-1))])],4)),i.$slots.icon&&n.iconPosition==="right"&&!n.isLoading?(e.openBlock(),e.createElementBlock("span",r,[e.renderSlot(i.$slots,"icon")])):e.createCommentVNode("",!0)],10,l))}});o.AzButton=b,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.button={},o.Vue))})(this,function(o,e){"use strict";const l=["disabled","type"],a={key:0,class:"btn__icon"},d={key:1,class:"btn__icon",style:{position:"absolute"}},c={key:2,class:"btn__icon"},r={key:4,class:"btn__icon"},b=e.defineComponent({__name:"index",props:{appearance:{default:"standard"},size:{default:"m"},disabled:{type:Boolean},ghost:{type:Boolean},outlined:{type:Boolean},iconPosition:{},type:{default:"button"},isLoading:{type:Boolean}},setup(n){const t=n,p=e.computed(()=>({[`btn--${t.appearance}`]:t.appearance&&t.appearance!=="standard",[`btn--${t.size}`]:t.size&&t.size!=="m","btn--ghost":t.ghost,"btn--outlined":t.outlined,"btn--icon-only":t.iconPosition==="only"}));return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",p.value]),disabled:n.disabled,type:n.type},[i.$slots.icon&&n.iconPosition==="left"&&!n.isLoading?(e.openBlock(),e.createElementBlock("span",a,[e.renderSlot(i.$slots,"icon")])):e.createCommentVNode("",!0),n.isLoading?(e.openBlock(),e.createElementBlock("span",d,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"btn__spinner","aria-hidden":"true"},null,-1)])])):e.createCommentVNode("",!0),i.$slots.icon&&n.iconPosition==="only"?(e.openBlock(),e.createElementBlock("span",c,[e.renderSlot(i.$slots,"icon")])):(e.openBlock(),e.createElementBlock("span",{key:3,class:"btn__label",style:e.normalizeStyle({visibility:n.isLoading?"hidden":"visible"})},[e.renderSlot(i.$slots,"default",{},()=>[s[1]||(s[1]=e.createTextVNode("Clica aqui v.1.2.0",-1))])],4)),i.$slots.icon&&n.iconPosition==="right"&&!n.isLoading?(e.openBlock(),e.createElementBlock("span",r,[e.renderSlot(i.$slots,"icon")])):e.createCommentVNode("",!0)],10,l))}});o.AzButton=b,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azulejo-kit/button",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"vue": ">=3.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2b3a49e86ff3ef604abf225abdafb8c845966bd0"
|
|
43
43
|
}
|