treqit-ui-library 1.2.0 → 1.4.0
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.
|
@@ -54,7 +54,7 @@ const m = (t, e) => {
|
|
|
54
54
|
type: t.type,
|
|
55
55
|
class: s(l.value),
|
|
56
56
|
disabled: t.disabled || t.loading,
|
|
57
|
-
onClick: n[0] || (n[0] = (
|
|
57
|
+
onClick: n[0] || (n[0] = (g) => a.$emit("click"))
|
|
58
58
|
}, [
|
|
59
59
|
t.loading ? (d(), o("div", p, [...n[1] || (n[1] = [
|
|
60
60
|
i("div", { class: "simple-spinner" }, null, -1)
|
|
@@ -66,12 +66,11 @@ const m = (t, e) => {
|
|
|
66
66
|
], 2)
|
|
67
67
|
], 10, f));
|
|
68
68
|
}
|
|
69
|
-
}, b = /* @__PURE__ */ m(y, [["__scopeId", "data-v-8db92d47"]]),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
};
|
|
69
|
+
}, b = /* @__PURE__ */ m(y, [["__scopeId", "data-v-8db92d47"]]), v = (t) => {
|
|
70
|
+
t.component("Button", b);
|
|
71
|
+
}, k = { install: v };
|
|
74
72
|
export {
|
|
75
73
|
b as Button,
|
|
76
|
-
|
|
74
|
+
k as default,
|
|
75
|
+
v as install
|
|
77
76
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.TreqitUiLibrary={},n.Vue))})(this,(function(n,e){"use strict";const r=(t,l)=>{const i=t.__vccOpts||t;for(const[a,o]of l)i[a]=o;return i},u=["type","disabled"],c={key:0,class:"btn-loader"},d=r({__name:"Button",props:{variant:{type:String,default:"primary",validator:t=>["primary","secondary","destructive","flat","elevated","text","outlined","outlined-primary","outlined-secondary","rounded"].includes(t)},size:{type:String,default:"medium",validator:t=>["sm","small","medium","large","x-large"].includes(t)},type:{type:String,default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},full:{type:Boolean,default:!1}},emits:["click"],setup(t){const l=t,i=e.computed(()=>["btn",`btn--${l.variant}`,`btn--${l.size==="sm"?"small":l.size}`,{"btn--loading":l.loading,"btn--full":l.full}]);return(a,o)=>(e.openBlock(),e.createElementBlock("button",{type:t.type,class:e.normalizeClass(i.value),disabled:t.disabled||t.loading,onClick:o[0]||(o[0]=p=>a.$emit("click"))},[t.loading?(e.openBlock(),e.createElementBlock("div",c,[...o[1]||(o[1]=[e.createElementVNode("div",{class:"simple-spinner"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["btn-content",{"content-hidden":t.loading}])},[e.renderSlot(a.$slots,"default",{},void 0,!0)],2)],10,u))}},[["__scopeId","data-v-8db92d47"]]),s=t=>{t.component("Button",d)},f={install:s};n.Button=d,n.default=f,n.install=s,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"types": "./dist/index.d.ts",
|
|
3
2
|
"exports": {
|
|
4
3
|
".": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"import": "./dist/treqit-ui-library.es.js",
|
|
6
|
+
"require": "./dist/treqit-ui-library.umd.cjs"
|
|
8
7
|
}
|
|
9
8
|
},
|
|
10
|
-
"main": "./dist/ui-library.umd.cjs",
|
|
11
|
-
"module": "./dist/ui-library.js",
|
|
9
|
+
"main": "./dist/treqit-ui-library.umd.cjs",
|
|
10
|
+
"module": "./dist/treqit-ui-library.es.js",
|
|
12
11
|
"files": [
|
|
13
12
|
"dist"
|
|
14
13
|
],
|
|
15
14
|
"name": "treqit-ui-library",
|
|
16
15
|
"private": false,
|
|
17
|
-
"version": "1.
|
|
16
|
+
"version": "1.4.0",
|
|
18
17
|
"type": "module",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "vite",
|
|
21
21
|
"build": "vue-tsc -b && vite build",
|
package/dist/ui-library.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.UiLibrary={},n.Vue))})(this,(function(n,e){"use strict";const s=(t,l)=>{const i=t.__vccOpts||t;for(const[a,o]of l)i[a]=o;return i},r=["type","disabled"],u={key:0,class:"btn-loader"},d=s({__name:"Button",props:{variant:{type:String,default:"primary",validator:t=>["primary","secondary","destructive","flat","elevated","text","outlined","outlined-primary","outlined-secondary","rounded"].includes(t)},size:{type:String,default:"medium",validator:t=>["sm","small","medium","large","x-large"].includes(t)},type:{type:String,default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},full:{type:Boolean,default:!1}},emits:["click"],setup(t){const l=t,i=e.computed(()=>["btn",`btn--${l.variant}`,`btn--${l.size==="sm"?"small":l.size}`,{"btn--loading":l.loading,"btn--full":l.full}]);return(a,o)=>(e.openBlock(),e.createElementBlock("button",{type:t.type,class:e.normalizeClass(i.value),disabled:t.disabled||t.loading,onClick:o[0]||(o[0]=m=>a.$emit("click"))},[t.loading?(e.openBlock(),e.createElementBlock("div",u,[...o[1]||(o[1]=[e.createElementVNode("div",{class:"simple-spinner"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["btn-content",{"content-hidden":t.loading}])},[e.renderSlot(a.$slots,"default",{},void 0,!0)],2)],10,r))}},[["__scopeId","data-v-8db92d47"]]),c={install(t){t.component("Button",d)}};n.Button=d,n.default=c,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
File without changes
|