@phila/phila-ui-button 1.0.1 → 2.0.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 CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=e.defineComponent({__name:"PhlButton",props:{disabled:{type:Boolean,default:!1}},setup(n){const o=n;return(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t[0]||(t[0]=e.createElementVNode("h3",null,"Example button",-1)),e.createElementVNode("button",e.mergeProps({class:"phila-button"},o),[e.renderSlot(l.$slots,"default")],16)],64))}});exports.Button=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=e.defineComponent({__name:"PhlButton",props:{disabled:{type:Boolean,default:!1}},setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({class:"phila-button"},o),[e.renderSlot(n.$slots,"default")],16))}});exports.Button=r;
package/dist/index.mjs CHANGED
@@ -1,19 +1,16 @@
1
- import { defineComponent as r, createElementBlock as s, openBlock as a, Fragment as p, createElementVNode as t, mergeProps as u, renderSlot as m } from "vue";
2
- const c = /* @__PURE__ */ r({
1
+ import { defineComponent as n, createElementBlock as r, openBlock as s, mergeProps as l, renderSlot as a } from "vue";
2
+ const u = /* @__PURE__ */ n({
3
3
  __name: "PhlButton",
4
4
  props: {
5
5
  disabled: { type: Boolean, default: !1 }
6
6
  },
7
- setup(o) {
8
- const n = o;
9
- return (l, e) => (a(), s(p, null, [
10
- e[0] || (e[0] = t("h3", null, "Example button", -1)),
11
- t("button", u({ class: "phila-button" }, n), [
12
- m(l.$slots, "default")
13
- ], 16)
14
- ], 64));
7
+ setup(e) {
8
+ const t = e;
9
+ return (o, p) => (s(), r("button", l({ class: "phila-button" }, t), [
10
+ a(o.$slots, "default")
11
+ ], 16));
15
12
  }
16
13
  });
17
14
  export {
18
- c as Button
15
+ u as Button
19
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phila/phila-ui-button",
3
- "version": "1.0.1",
3
+ "version": "2.0.1",
4
4
  "description": "Button component for Phila UI library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -24,10 +24,11 @@
24
24
  "author": "",
25
25
  "license": "MIT",
26
26
  "peerDependencies": {
27
- "vue": "^3.0.0",
28
- "@phila/phila-ui-core": "2.0.1"
27
+ "vue": "^3.0.0"
28
+ },
29
+ "dependencies": {
30
+ "@phila/phila-ui-core": "2.1.0"
29
31
  },
30
- "dependencies": {},
31
32
  "devDependencies": {
32
33
  "@types/node": "^24.0.0",
33
34
  "@vitejs/plugin-vue": "^6.0.1",
@@ -41,6 +42,7 @@
41
42
  },
42
43
  "scripts": {
43
44
  "build": "vite build",
45
+ "build-win": "vite build",
44
46
  "dev": "vite build --watch",
45
47
  "lint": "eslint src/**/*.{ts,vue}",
46
48
  "lint:fix": "eslint src/**/*.{ts,vue} --fix",