voiptime-components 0.0.6 → 0.0.8

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.es.js CHANGED
@@ -1,23 +1,56 @@
1
- import { defineComponent as e, createElementBlock as l, openBlock as r, renderSlot as s } from "vue";
2
- const a = /* @__PURE__ */ e({
1
+ import { defineComponent as s, createElementBlock as l, openBlock as r, renderSlot as a, createElementVNode as u, computed as _, createBlock as m, createCommentVNode as p, resolveDynamicComponent as i } from "vue";
2
+ const d = /* @__PURE__ */ s({
3
3
  __name: "VButton",
4
- setup(t) {
5
- function n() {
4
+ setup(n) {
5
+ function t() {
6
6
  alert("Hello World1!");
7
7
  }
8
- return (o, c) => (r(), l("button", {
8
+ return (o, e) => (r(), l("button", {
9
9
  class: "vt-button",
10
- onClick: n
10
+ onClick: t
11
11
  }, [
12
- s(o.$slots, "default")
12
+ a(o.$slots, "default")
13
13
  ]));
14
14
  }
15
- }), p = {
16
- install(t) {
17
- t.component("VButton", a);
15
+ }), f = (n, t) => {
16
+ const o = n.__vccOpts || n;
17
+ for (const [e, c] of t)
18
+ o[e] = c;
19
+ return o;
20
+ }, k = {}, v = {
21
+ viewBox: "0 0 20 20",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg"
24
+ };
25
+ function V(n, t) {
26
+ return r(), l("svg", v, t[0] || (t[0] = [
27
+ u("path", {
28
+ d: "M10.228 4.04565V15.2643M4.61865 9.65495H15.8373",
29
+ stroke: "currentColor",
30
+ "stroke-width": "1.60586",
31
+ "stroke-linecap": "round",
32
+ "stroke-linejoin": "round"
33
+ }, null, -1)
34
+ ]));
35
+ }
36
+ const B = /* @__PURE__ */ f(k, [["render", V]]), w = {
37
+ plus: B
38
+ }, x = /* @__PURE__ */ s({
39
+ __name: "VIcon",
40
+ props: {
41
+ name: {}
42
+ },
43
+ setup(n) {
44
+ const t = n, o = _(() => w[t.name]);
45
+ return (e, c) => o.value ? (r(), m(i(o.value), { key: 0 })) : p("", !0);
46
+ }
47
+ }), h = {
48
+ install(n) {
49
+ n.component("VButton", d), n.component("VIcon", x);
18
50
  }
19
51
  };
20
52
  export {
21
- a as VButton,
22
- p as default
53
+ d as VButton,
54
+ x as VIcon,
55
+ h as default
23
56
  };
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.VoiptimeComponents={},e.Vue))})(this,function(e,t){"use strict";const n=t.defineComponent({__name:"VButton",setup(o){function i(){alert("Hello World1!")}return(s,l)=>(t.openBlock(),t.createElementBlock("button",{class:"vt-button",onClick:i},[t.renderSlot(s.$slots,"default")]))}}),u={install(o){o.component("VButton",n)}};e.VButton=n,e.default=u,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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.VoiptimeComponents={},n.Vue))})(this,function(n,e){"use strict";const r=e.defineComponent({__name:"VButton",setup(o){function t(){alert("Hello World1!")}return(c,s)=>(e.openBlock(),e.createElementBlock("button",{class:"vt-button",onClick:t},[e.renderSlot(c.$slots,"default")]))}}),u=(o,t)=>{const c=o.__vccOpts||o;for(const[s,i]of t)c[s]=i;return c},p={},d={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a(o,t){return e.openBlock(),e.createElementBlock("svg",d,t[0]||(t[0]=[e.createElementVNode("path",{d:"M10.228 4.04565V15.2643M4.61865 9.65495H15.8373",stroke:"currentColor","stroke-width":"1.60586","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const m={plus:u(p,[["render",a]])},l=e.defineComponent({__name:"VIcon",props:{name:{}},setup(o){const t=o,c=e.computed(()=>m[t.name]);return(s,i)=>c.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),{key:0})):e.createCommentVNode("",!0)}}),f={install(o){o.component("VButton",r),o.component("VIcon",l)}};n.VButton=r,n.VIcon=l,n.default=f,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "voiptime-components",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -24,6 +24,9 @@
24
24
  "prepare": "npm run build",
25
25
  "preview": "vite preview"
26
26
  },
27
+ "dependencies": {
28
+ "vue": "^3.5.17"
29
+ },
27
30
  "peerDependencies": {
28
31
  "vue": "^3.5.17"
29
32
  },
@@ -37,4 +40,4 @@
37
40
  "vite-plugin-dts": "^4.5.4",
38
41
  "vue-tsc": "^2.2.12"
39
42
  }
40
- }
43
+ }
File without changes