voiptime-components 0.0.1 → 0.0.2

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,21 +1,23 @@
1
- import { createElementBlock as r, openBlock as s, renderSlot as _ } from "vue";
2
- const a = (t, e) => {
3
- const n = t.__vccOpts || t;
4
- for (const [o, c] of e)
5
- n[o] = c;
6
- return n;
7
- }, l = {}, u = { class: "my-button" };
8
- function d(t, e) {
9
- return s(), r("button", u, [
10
- _(t.$slots, "default", {}, void 0, !0)
11
- ]);
12
- }
13
- const f = /* @__PURE__ */ a(l, [["render", d], ["__scopeId", "data-v-c78b99f3"]]), i = {
1
+ import { defineComponent as e, createElementBlock as l, openBlock as r, renderSlot as s } from "vue";
2
+ const a = /* @__PURE__ */ e({
3
+ __name: "VButton",
4
+ setup(t) {
5
+ function n() {
6
+ alert("Hello World!");
7
+ }
8
+ return (o, c) => (r(), l("button", {
9
+ class: "vt-button",
10
+ onClick: n
11
+ }, [
12
+ s(o.$slots, "default")
13
+ ]));
14
+ }
15
+ }), p = {
14
16
  install(t) {
15
- t.component("MyButton", f);
17
+ t.component("VButton", a);
16
18
  }
17
19
  };
18
20
  export {
19
- f as MyButton,
20
- i as default
21
+ a as VButton,
22
+ p as default
21
23
  };
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.VueComponentLib={},e.Vue))})(this,function(e,t){"use strict";const c=(n,u)=>{const s=n.__vccOpts||n;for(const[l,_]of u)s[l]=_;return s},d={},i={class:"my-button"};function r(n,u){return t.openBlock(),t.createElementBlock("button",i,[t.renderSlot(n.$slots,"default",{},void 0,!0)])}const o=c(d,[["render",r],["__scopeId","data-v-c78b99f3"]]),f={install(n){n.component("MyButton",o)}};e.MyButton=o,e.default=f,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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.VueComponentLib={},e.Vue))})(this,function(e,t){"use strict";const n=t.defineComponent({__name:"VButton",setup(o){function i(){alert("Hello World!")}return(l,s)=>(t.openBlock(),t.createElementBlock("button",{class:"vt-button",onClick:i},[t.renderSlot(l.$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 +1 @@
1
- .my-button[data-v-c78b99f3]{padding:.5rem 1rem;background-color:#42b883;border:none;color:#fff;border-radius:4px;cursor:pointer}
1
+ .vt-button{padding:.5rem 1rem;background-color:#42b883;border:none;color:#fff;border-radius:4px;cursor:pointer}
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "voiptime-components",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "types": "dist/index.d.ts",
9
- "files": ["dist"],
9
+ "files": [
10
+ "dist"
11
+ ],
10
12
  "scripts": {
11
13
  "dev": "vite",
12
14
  "build": "vue-tsc -b && vite build",
@@ -23,6 +25,7 @@
23
25
  "@types/node": "^24.1.0",
24
26
  "@vitejs/plugin-vue": "^6.0.0",
25
27
  "@vue/tsconfig": "^0.7.0",
28
+ "sass": "^1.89.2",
26
29
  "typescript": "~5.8.3",
27
30
  "vite": "^7.0.4",
28
31
  "vite-plugin-dts": "^4.5.4",