treqit-ui-library 1.2.0 → 1.4.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.
@@ -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] = (v) => a.$emit("click"))
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"]]), B = {
70
- install(t) {
71
- t.component("Button", b);
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
- B as default
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,22 @@
1
1
  {
2
- "types": "./dist/index.d.ts",
3
2
  "exports": {
4
3
  ".": {
5
- "import": "./dist/ui-library.es.js",
6
- "require": "./dist/ui-library.umd.cjs",
7
- "types": "./dist/index.d.ts"
8
- }
4
+ "types": "./dist/index.d.ts",
5
+ "import": "./dist/treqit-ui-library.js",
6
+ "require": "./dist/treqit-ui-library.umd.cjs"
7
+ },
8
+ "./dist/style.css": "./dist/treqit-ui-library.css"
9
9
  },
10
- "main": "./dist/ui-library.umd.cjs",
11
- "module": "./dist/ui-library.js",
10
+ "main": "./dist/treqit-ui-library.umd.cjs",
11
+ "module": "./dist/treqit-ui-library.js",
12
12
  "files": [
13
13
  "dist"
14
14
  ],
15
15
  "name": "treqit-ui-library",
16
16
  "private": false,
17
- "version": "1.2.0",
17
+ "version": "1.4.1",
18
18
  "type": "module",
19
+ "types": "./dist/index.d.ts",
19
20
  "scripts": {
20
21
  "dev": "vite",
21
22
  "build": "vue-tsc -b && vite build",
@@ -34,4 +35,4 @@
34
35
  "vite-plugin-dts": "^4.5.4",
35
36
  "vue-tsc": "^3.1.0"
36
37
  }
37
- }
38
+ }
@@ -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